API v2.4 / eSIMs / Revoke specific Bundle
DELETE /esims/{iccid}/bundles/{name}/assignments/{assignmentId}
This endpoint revokes a specific bundle from an eSIM using assignment ID.
Revokes latest assignment of a given Bundle type. If a bundle assignment has not been started and no data has been consumed, the bundle assignment can either be returned to the inventory or credited back to the organisations balance. If the bundle assignment has started, or was purchased outside of their permitted refund period, typically 60 days, it cannot be returned to the inventory or taken as a credit.
IMPORTANT: Access to the refund functionality is disabled by default. To enable refunds (either to inventory or balance), you must first contact your account manager. Without this feature enabled, this endpoint will only revoke the bundle assignment without a refund.
Note: Bundle names are case sensitive and should be typed like the following “esim_1GB_7D_IM_U”.
Authorizations
Parameters
Path Parameters
(Required) The ICCID of the eSIM
Example
8944123456789012000(Required) Name of Bundle Format as defined in [List Catalogue](/api/#get-/catalogue) API call. Example: `esim_10GB_30D_IM_U`
Example
esim_10GB_30D_IM_U(Required) ID of individual Bundle Assignment to revoke from an eSIM
Example
123231231Query Parameters
type `validate` will provide options for the revoke and the behaviours, if any. type `transaction` will execute the revoke. Defaults to `transaction`
Example
validateIf Applicable, refund the value of this bundle to organisation balance
Example
trueResponses
200
OK
object
Status message of api request
Example
{ "status": "Successfully Revoked Bundle, bundle has been refunded to inventory"}400
Bad Request - returned when request format is not accepted
object
Status of api functions which do not return data
403
Unauthorised - returned when the api token is invalid; the user does not have any available Bundles left or the ICCID is not accessible by the user
object
Status of api functions which do not return data
429
Too Many Requests
object
Status of api functions which do not return data
500
Server Error
object
Status of api functions which do not return data
503
Processing - Please come back later or use the Retry-After (seconds) header
object
Status of api functions which do not return data