Credits
Get Credit Top-up
Check whether a top-up has been paid and credited at /api/v1/credits/topups/
GET
Get a credit top-up
Overview
Returns a top-up’s checkoutstatus and whether it has been credited. This is the read behind morph billing topup-status. Each call re-reads the checkout from Coinbase and credits the balance as soon as the payment settles, so there is no need to wait for a webhook.
Gate on credited. FAILED, EXPIRED and DEACTIVATED are terminal and unpaid: create a new top-up. While the checkout is still ACTIVE, x402_url is returned again so a retry can pay it.Authorizations
Morph API key, passed as Authorization: Bearer sk-.... Create keys at https://www.morphllm.com/dashboard/api-keys.
Path Parameters
Response
The top-up state.
Current state of a top-up.
Coinbase checkout status. ACTIVE accepts payment at x402_url; PROCESSING means capture is under way; COMPLETED means settled. FAILED, EXPIRED and DEACTIVATED are terminal and unpaid, so start a new top-up. A completed top-up can later become REFUNDED or PARTIALLY_REFUNDED.
Available options:
ACTIVE, PROCESSING, COMPLETED, FAILED, EXPIRED, DEACTIVATED, REFUNDED, PARTIALLY_REFUNDED Example:
"ACTIVE"