Skip to main content

Purchase eSIMs

POST 

/actions/purchase/esims

Purchases and registers the specified amount of eSIMs to the current user's account.

If sim_card_group_id is provided, the eSIMs will be associated with that group. Otherwise, the default group for the current user will be used.

Request

Body

required

    sim_card_group_id uuid

    The group SIMCardGroup identification. This attribute can be null when it's present in an associated resource.

    tags string[]

    Searchable tags associated with the SIM cards

    amount integerrequired

    Possible values: >= 1

    The amount of eSIMs to be purchased.

    status string

    Possible values: [enabled, disabled, standby]

    Default value: enabled

    Status on which the SIM cards will be set after being successfully registered.

Responses

202: Successful response

Schema

    data

    object[]

    Successfully registered SIM cards.

  • Array [

  • id uuid

    Identifies the resource.

    record_type string

    status

    object

    value string

    Possible values: [registering, enabling, enabled, disabling, disabled, data_limit_exceeded, setting_standby, standby]

    The current status of the SIM card. It will be one of the following:

    • registering - the card is being registered
    • enabling - the card is being enabled
    • enabled - the card is enabled and ready for use
    • disabling - the card is being disabled
    • disabled - the card has been disabled and cannot be used
    • data_limit_exceeded - the card has exceeded its data consumption limit
    • setting_standby - the process to set the card in stand by is in progress
    • standby - the card is in stand by
    Transitioning between the enabled and disabled states may take a period of time.
    reason string

    It describes why the SIM card is in the current status.

    type string

    Possible values: [physical, esim]

    The type of SIM card

    iccid string

    The ICCID is the identifier of the specific SIM card/chip. Each SIM is internationally identified by its integrated circuit card identifier (ICCID). ICCIDs are stored in the SIM card's memory and are also engraved or printed on the SIM card body during a process called personalization.

    imsi string

    SIM cards are identified on their individual network operators by a unique International Mobile Subscriber Identity (IMSI).
    Mobile network operators connect mobile phone calls and communicate with their market SIM cards using their IMSIs. The IMSI is stored in the Subscriber Identity Module (SIM) inside the device and is sent by the device to the appropriate network. It is used to acquire the details of the device in the Home Location Register (HLR) or the Visitor Location Register (VLR).

    msisdn string

    Mobile Station International Subscriber Directory Number (MSISDN) is a number used to identify a mobile phone number internationally.
    MSISDN is defined by the E.164 numbering plan. It includes a country code and a National Destination Code which identifies the subscriber's operator.

    sim_card_group_id uuid

    The group SIMCardGroup identification. This attribute can be null when it's present in an associated resource.

    tags string[]

    Searchable tags associated with the SIM card

    data_limit

    object

    The SIM card individual data limit configuration.

    amount decimal
    unit string

    Possible values: [MB, GB]

    current_billing_period_consumed_data

    object

    The SIM card consumption so far in the current billing cycle.

    amount decimal
    unit string

    Default value: MB

    actions_in_progress boolean

    Default value: false

    Indicate whether the SIM card has any pending (in-progress) actions.

    created_at string

    ISO 8601 formatted date-time indicating when the resource was created.

    updated_at string

    ISO 8601 formatted date-time indicating when the resource was updated.

  • ]

  • errors

    Error[]

  • Array [

  • code intrequired
    title stringrequired
    detail string

    source

    object

    pointer json-pointer

    JSON pointer (RFC6901) to the offending entity.

    parameter string

    Indicates which query parameter caused the error.

    meta object
  • ]

Loading...