post
https://api.bnesim.com/v2.0/enterprise/simcard/add-esim
Purchases and assigns an eSIM with a specific data plan to a licensed user. This endpoint combines product purchase and eSIM provisioning in a single operation, returning a transaction ID to track the activation status.
Purpose
- Purchase data plans for specific licenses
- Provision new eSIMs with selected products
- Assign eSIMs to registered users/devices
- Enable immediate connectivity for licensed entities
Prerequisites
- Valid license created via License Activation API
- License CLI obtained from Activation Transaction Status
- Product ID from the Products endpoint
Request
- Method: POST
- URL:
https://api.bnesim.com/v2.0/enterprise/simcard/add-esim
- Content-Type:
multipart/form-data
- Authentication: Bearer token required
Parameters
license_cli(Required): Customer Line Identifier of the target license- Obtained from Activation Transaction Status endpoint
- Identifies which license will receive the eSIM
- Format: Numeric string (e.g., "123456789")
- Obtained from Activation Transaction Status endpoint
product_id(Required): ID of the data plan to purchase- Obtained from Products endpoint
- Determines data volume, validity, and pricing
- Must be available in the target region
- Obtained from Products endpoint
scheduled_activation_date(Optional): scheduled date to activate the eSIM
Response
success: Boolean indicating if the request was successful
activationTransaction: Transaction ID for tracking eSIM activation- Use with Activation Transaction Status endpoint
- Required to retrieve eSIM details (ICCID, QR code, etc.)
- Use with Activation Transaction Status endpoint
Activation Workflow
- Select a product using the Products endpoint
- Call this endpoint with license_cli and product_id
- Save the returned activationTransaction ID
- Check status using Activation Transaction Status endpoint
- Once activated, retrieve eSIM details using Simcard Detail endpoint
Example cURL
curl --request POST \
--url https://api.bnesim.com/v2.0/enterprise/simcard/add-esim \
--header "accept: application/json" \
--header "authorization: Bearer {{bearerToken}}" \
--header "content-type: multipart/form-data" \
--form license_cli={{license_cli}} \
--form product_id={{product_id}}
Important Notes
- The eSIM is automatically provisioned upon successful activation
- Billing occurs immediately upon successful request
- Multiple eSIMs can be assigned to a single license (check account limits)
- The activation process typically completes within seconds
- Failed activations will not result in charges
- Product availability depends on the target region/country
Errors
Errors are returned with HTTP 200 and success: false, plus a translation_key and an UPPER_CASE error_code you can branch on:
| error_code | Meaning |
|---|---|
INSUFFICIENT_CREDIT | Your account credit cannot cover the purchase. The response also carries credit (your current credit) and required_amount (EUR needed). Nothing was charged. |
INSUFFICIENT_ENTERPRISE_CREDIT | (enterprise credit) the enterprise credit cannot cover the purchase; same extra fields. |
ESIM_ACTIVATION_FAILED | Any other failure. |
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…