Balance
Set eSIM balance
Experimental. This endpoint is still settling — its request and response shape may change without a deprecation cycle.
Sets an absolute target balance. clientTransactionId makes retries idempotent; this endpoint does not use X-Idempotency-Key.
/profiles/{profileReference}/esims/{esimReference}/balanceAuthorization
Authorization: Bearer {token} — an OAuth2 access token from the client-credentials flow. How authentication works
Path parameters
profileReferencestringrequiredThe eSIM's profile reference (16-digit numeric string)
esimReferencestringrequiredeSIM reference identifier (18-digit opaque token)
Request body
application/json · required
currencystringrequiredThree-letter ISO 4217 currency code
reasonstringrequiredMachine-readable reason
detailstringOptional human-readable context
clientTransactionIdstringrequiredClient identifier used for idempotency
balanceintegerrequiredTarget balance in integer minor currency units
Responses
200Balance set or already at targetapplication/jsonShow response bodyHide response body
dataobjectrequiredShow propertiesHide properties
profileReferencestringrequiredesimReferencestringrequiredcurrencystringrequiredThree-letter ISO 4217 currency code
balanceintegerrequiredCurrent balance in integer minor currency units
updatedAtstring · date-timerequiredupdateone of EsimBalanceUpdate | option 2requiredApplied update, or null when balance was already at target
Show propertiesHide properties
EsimBalanceUpdateobjectShow propertiesHide properties
profileReferencestringrequiredesimReferencestringrequiredtypestringrequiredcreditdebitsourcestringrequiredclientprovideramountintegerrequiredUpdate amount in integer minor currency units
balanceAfterintegerrequiredBalance after this update
overdraftAmountintegerrequiredAmount not covered when balance reached zero
currencystringrequiredThree-letter ISO 4217 currency code
reasonstringrequireddetailstring | nullrequiredclientTransactionIdstring | nullrequiredClient transaction identifier, present for client updates
providerTransactionIdstring | nullrequiredExternal transaction identifier when available
occurredAtstring | null · date-timerequiredWhen the balance update occurred
createdAtstring · date-timerequiredWhen the update was recorded
option 2null400Bad request - invalid parameters401Unauthorized - missing or invalid API key403Forbidden - client does not have access to this resource404Resource not found409Another operation is already in progress422Request cannot be applied to the current resource429Rate limit exceeded500Internal server error502Temporary service failure503Service temporarily unavailable. Safe to retry.