api:sim:create
Table of Contents
API : SIM Create
Introduction
This request will create one or more SIM cards.
This is used by an ADMIN to add newly minted SIM cards. A max of 10.000 records can be created.
Request
| URL | https://api.telecomx.dk/sim | ||
|---|---|---|---|
| Method | POST | ||
| Access level | ADMIN. | ||
| Body | data | String | A blob of text, with one SIM card pr line, in the CSV format: SIM_CARD_NUMBER;PUK1;PUK2;PIN1;PIN2;FORM_FACTOR;NETWORK;ACTIVATION_CODE;TAG;AUTO_ASSIGN |
Query example
{
data: '123456789012345789F;878985;878965;1234;4321;NANO;TELENOR\n123456789012345789;878985;878965;1234;4321;NANO;TELENOR\n123456789012345789;878985;878965;1234;4321;NANO;TELENOR\n ...'
}
Response
Example
{ success: true }
Errors
| Error code | Message | Description |
|---|---|---|
| 400 | bad_request | Data not found in body of request |
| 409 | data | Too many items - max. 10000 items pr. request allowed |
| 422 | data | No valid SIMs found in data |
| 422 | inStorageAt | Invalid “inStorageAt”-property |
| 403 | access_denied | Insufficient access level |
| 500 | internal_error | <Unspecified> |
api/sim/create.txt · Last modified: 2024/02/20 10:54 by Joakim Andersen