Firsty

Search...

Search...

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.

put/profiles/{profileReference}/esims/{esimReference}/balance

Authorization

Authorization: Bearer {token} — an OAuth2 access token from the client-credentials flow. How authentication works

Path parameters

profileReferencestringrequired

The eSIM's profile reference (16-digit numeric string)

esimReferencestringrequired

eSIM reference identifier (18-digit opaque token)

Request body

application/json · required

currencystringrequired

Three-letter ISO 4217 currency code

reasonstringrequired

Machine-readable reason

detailstring

Optional human-readable context

clientTransactionIdstringrequired

Client identifier used for idempotency

balanceintegerrequired

Target balance in integer minor currency units

Responses

200Balance set or already at targetapplication/json
Show response body
dataobjectrequired
Show properties
profileReferencestringrequired
esimReferencestringrequired
currencystringrequired

Three-letter ISO 4217 currency code

balanceintegerrequired

Current balance in integer minor currency units

updatedAtstring · date-timerequired
updateone of EsimBalanceUpdate | option 2required

Applied update, or null when balance was already at target

Show properties
EsimBalanceUpdateobject
Show properties
profileReferencestringrequired
esimReferencestringrequired
typestringrequired
Optionscreditdebit
sourcestringrequired
Optionsclientprovider
amountintegerrequired

Update amount in integer minor currency units

balanceAfterintegerrequired

Balance after this update

overdraftAmountintegerrequired

Amount not covered when balance reached zero

currencystringrequired

Three-letter ISO 4217 currency code

reasonstringrequired
detailstring | nullrequired
clientTransactionIdstring | nullrequired

Client transaction identifier, present for client updates

providerTransactionIdstring | nullrequired

External transaction identifier when available

occurredAtstring | null · date-timerequired

When the balance update occurred

createdAtstring · date-timerequired

When the update was recorded

option 2null
400Bad 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.