Gateway
Get a credit top-up
Changed onReturns 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 URLhttps://api.phaseo.app/v1
- URLhttps://api.phaseo.app/v1/credits/topups/{id}
- AuthHTTP bearer
Path parameters
idstring uuid required
Top-up ID.
Response
Top-up status
Example response
{
"topup": {
"reason": "declined",
"amount_cents": 2000,
"amount_usd": 20,
"currency": "usd",
"payment_method": {
"brand": "visa",
"last4": "4242"
}
}
}Changes
- info
endpoint added
- info