Firsty

Search...

Search...

Balance

Create eSIM balance update

Experimental. This endpoint is still settling — its request and response shape may change without a deprecation cycle.

Applies a credit or debit. clientTransactionId makes retries idempotent; this endpoint does not use X-Idempotency-Key.

post/profiles/{profileReference}/esims/{esimReference}/balance/updates

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

typestringrequired
Optionscreditdebit
amountintegerrequired

Update amount in integer minor currency units

Responses

200Existing update returned for an idempotent replayapplication/json
Show response body
dataobjectrequired
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

201Balance update createdapplication/json
Show response body
dataobjectrequired
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

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.