Gateway

Get a credit top-up

Changed on

Returns the status of a credit top-up in the authenticated workspace. Needs credits:read or billing:write. Poll until final is true. Declined, expired and failed top-ups carry a reason code; do not retry them automatically.

get/credits/topups/{id}

Request

  • Base URL
    https://api.phaseo.app/v1
  • URL
    https://api.phaseo.app/v1/credits/topups/{id}
  • Auth
    HTTP bearer

Path parameters

idstring uuid required

Top-up ID.

Response

Top-up status

oktrue required

Example response

{
  "topup": {
    "reason": "declined",
    "amount_cents": 2000,
    "amount_usd": 20,
    "currency": "usd",
    "payment_method": {
      "brand": "visa",
      "last4": "4242"
    }
  }
}

Changes