Get prepaid balance
GET /v2/api-gateway/moon-credit
Returns the organization's available prepaid balance as a number; 0 when no prepaid balance account exists yet. Identical to V1 GET /v1/api-gateway/moon-credit.
Request
Authentication: your API key in the x-api-key header.
Example request
cURL
curl --request GET \
--url 'https://api.themooncard.com/v2/api-gateway/moon-credit' \
--header 'x-api-key: YOUR_API_KEY'Responses
200 Success
| Field | Type | Description |
|---|---|---|
balance required | number | Available prepaid balance for the organization. |
JSON
{
"balance": 1250.75
}401 Error
Missing or invalid credentials, e.g. { "message": "Invalid API Key", "code": "UNAUTHORIZED" }.
The body is the standard error object: see Errors.
500 Error
Unexpected server error. Body is { message: "Internal server error", code: "INTERNAL_.
The body is the standard error object: see Errors.
Last updated August 17, 2026