Me

Buy credit for the caller

Changed on

Charges the saved card. Without one, set up billing first.

post/api/v1/me/billing/purchases

Request

  • Base URL
    https://entire.io (the document declares no server; this is the origin it was published from)
  • URL
    https://entire.io/api/v1/me/billing/purchases
  • Auth
    none declared. Required headers: Idempotency-Key

Headers

Idempotency-Keystring required

One key per purchase attempt, reused on retries. A repeat with the same key is the same purchase.

Request body

amount_centsinteger required

Response

The purchase was accepted and the saved card is being charged.

idstring required

The purchase id. Poll the purchase by it.

status'pending' | 'paid' | 'failed' | 'expired' required

pending until charged; then paid, failed, or expired.

amount_centsinteger required
charge_idstring

Matches the charges list id once settled.

Changes

    • info

      added the optional property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • warning

      removed the request property

    • warning

      removed the request property

    • warning

      removed the optional property from the response with the status