eSIM Commerce API

Reseller API

Changelog

Changes to the Reseller API that may affect your integration, including new fields, behavior changes, limits, and clarified descriptions. Newest first.

  1. Changed

    Suspend and unsuspend requests between 21:00 and 09:02 JST are queued

    Affects PUT /esims/{iccid}/suspend PUT /esims/{iccid}/unsuspend GET /esims/{iccid} POST /orders scheduledOperation
    Environment Production Sandbox
    • The upstream system cannot accept suspend or unsuspend between 21:00 and 09:02 JST. A request received in that window (after the usual validation) is now accepted and queued instead of failing (Production; see below for Sandbox). The API returns 202 Accepted. 202 is not a failure: the operation will run from 09:02 JST unless canceled by the opposite request. The eSIM state in the 202 body is not changed yet.
    • The suspend and unsuspend responses, and GET /esims/{iccid}, now include scheduledOperation (action, status, scheduledAt, requestedAt; null when nothing is queued). status is pending while waiting, or failed if the queued operation ultimately failed (the eSIM state may not have been changed; check contractStatus). failed is shown until a new suspend or unsuspend request is received. The eSIM objects in the POST /orders response also include scheduledOperation (always null).
    • To confirm the result, poll GET /esims/{iccid} after scheduledAt. When scheduledOperation is null and contractStatus has changed, it succeeded; when status is failed, send the request again. Retries can keep it pending for up to about 30 minutes.
    • A request in the opposite direction cancels the queued operation and returns 200; a request that would leave the eSIM in its current state is not queued and also returns 200. Repeating the same request (between 21:00 and 09:02 JST) returns the existing queued operation. The cancellation also works after 09:02 JST, until the queued operation has been executed.
    • If a previous suspend/unsuspend request for the eSIM is being processed (for example, a queued request being executed after 09:02 JST, or a simultaneous request), a new request returns 409 with code: conflict. Wait a little, check scheduledOperation with GET /esims/{iccid}, and send the request again only if it is still needed. This can last up to about 10 minutes.
    • Sandbox: previously, suspend/unsuspend in this window were applied immediately with 200. They now behave like Production (202, applied from 09:02 JST), so tests run in this window must expect 202.
  2. Changed

    eSIM details reflect the latest provider data after suspend and unsuspend

    Affects PUT /esims/{iccid}/suspend PUT /esims/{iccid}/unsuspend GET /esims/{iccid} serviceRestricted
    Environment Production
    • After a successful suspend or unsuspend, GET /esims/{iccid} now returns all fields as reported by the provider in that operation, including serviceRestricted. Previously only contractStatus was updated, so other fields could keep the values from before the operation until the next status refresh.
  3. Changed

    Reusing an Idempotency-Key with a different order now returns 422

    Affects POST /orders Idempotency-Key header and error response 422
    Environment Production Sandbox
    • When an Idempotency-Key was already used for an order with a different planCode or quantity, the API now returns 422 with code idempotency_key_mismatch. Nothing is charged and the existing order is not returned. Previously the original order was returned with 201, which could be mistaken for a new order.
    • Resending the same key with the same planCode and quantity still returns the original order. To place a different order, use a new Idempotency-Key.
  4. Changed

    Order amount over the limit now returns 400 instead of 409

    Affects POST /production/esims/order error responses 400, 409, 500
    Environment Production only
    • When quantity times the unit price exceeds the maximum amount per order, the API now returns 400 with code invalid_input. Reduce quantity and retry. This case was previously reported as 409 insufficient_balance; it is now a 400 because the order amount itself is over the limit, not because the wallet is short.
    • 409 insufficient_balance is now returned only when the wallet balance is actually not enough. A failure caused by our own configuration is returned as 500 internal_error instead of 409.
  5. Added

    Machine-readable code in error responses

    Affects All endpoints, error responses code
    Environment Production Sandbox
    • Every error response now includes a code field (lowercase snake_case, for example insufficient_balance or esim_not_found). Existing fields (statusCode, message, error) are unchanged, and success responses are unchanged.
    • Use code instead of parsing message. The list of codes and the recommended action for each are in the Errors section of the API reference. New codes may be added later, so treat an unknown code as the generic error of its HTTP status.
  6. Added

    Request logging and the x-request-id response header

    Affects All endpoints x-request-id
    Environment Production Sandbox
    • Requests made with an API key are logged for 90 days: the source IP address, method, path (without the query string), response status, response time, User-Agent, and request ID. Request and response bodies are not logged.
    • Requests rejected at authentication are logged too, with the reason, when the key ID matches an existing key. Repeated rejections from the same IP address may be logged less often.
    • A request whose connection closes before the response is complete is logged with status 499. This means the connection was lost before the response was fully returned; the request itself may still have been processed to completion.
    • Every response includes an x-request-id header. If your request carries an X-Request-ID header (alphanumeric characters and ._:-, up to 128 characters), that value is returned; otherwise the server returns a generated value. Please include this value when contacting support about a specific request.
  7. Clarified

    Descriptions of lastUpdatedAt and dataUsageUpdatedAt

    Affects GET /esims/{iccid} lastUpdatedAt dataUsageUpdatedAt
    Environment Production Sandbox

    No change in behavior. The descriptions now match how the values are produced:

    • lastUpdatedAt: removed the note suggesting that calling the API again returns real-time status. In Production, eSIM data can lag behind the carrier by up to about 24 hours (see 2026-06-26).
    • dataUsageUpdatedAt: reworded to state the point in time that the usage figures in the response reflect (23:59:59 JST on the latest reported usage day, converted to UTC).
  8. Changed

    eSIM status is refreshed from the carrier at most once per day

    Affects GET /esims/{iccid}
    Environment Production only

    The carrier updates eSIM status data once per day, so the API no longer queries the carrier on every request:

    • Before 09:00 JST, the API returns the stored data without querying the carrier.
    • After 09:00 JST, once a change has been picked up for that JST day, the API returns the stored data until the next day.

    Calling the endpoint again does not return newer data in these cases.

    Sandbox does not query the carrier and is not affected by this change.

  9. Changed

    activatedOn is now based on the first network attach

    Affects GET /esims/{iccid} activatedOn
    Environment Production Sandbox

    activatedOn is now set from the date the device first connected to the domestic carrier network (first network attach). Previously it was set from the date of the first data usage. As a result, activation is reflected earlier.