Suspend and unsuspend requests between 21:00 and 09:02 JST are queued
PUT /esims/{iccid}/suspend PUT /esims/{iccid}/unsuspend
GET /esims/{iccid} POST /orders
scheduledOperation
-
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.202is not a failure: the operation will run from 09:02 JST unless canceled by the opposite request. The eSIM state in the202body is not changed yet. -
The suspend and unsuspend responses, and
GET /esims/{iccid}, now includescheduledOperation(action,status,scheduledAt,requestedAt;nullwhen nothing is queued).statusispendingwhile waiting, orfailedif the queued operation ultimately failed (the eSIM state may not have been changed; checkcontractStatus).failedis shown until a new suspend or unsuspend request is received. The eSIM objects in thePOST /ordersresponse also includescheduledOperation(alwaysnull). -
To confirm the result, poll
GET /esims/{iccid}afterscheduledAt. WhenscheduledOperationisnullandcontractStatushas changed, it succeeded; whenstatusisfailed, 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 returns200. 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
409withcode: conflict. Wait a little, checkscheduledOperationwithGET /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 expect202.