api:sim:assign
Table of Contents
API : SIM Assign
Introduction
This request will register the SIM card as being in storage at the customer or reseller specified.
Request
| URL | https://api.telecomx.dk/sim/SIM_ID/assign | |
|---|---|---|
| Method | GET | |
| Access level | ADMIN. | |
| Param | SIM_ID | SIM card number (ICC) |
| Query | customer | Id of the customer the SIM card should be registered as being in storage at |
| autoAssign | Assigns all of the SIM-cards as “auto-assign” SIM-cards on a specific reseller. If a SIM-card is an “autoAssign” SIM, it means that when new MVNO accounts are created on the reseller's customer, this SIM can be automatically assigned to the MVNO. Can be used by resellers who have a storage of SIM cards. Only valid, if the SIM-cards are being assigned to a reseller. | |
Query example
GET https://api.telecomx.dk/sim/1234567890123456789/assign?customer=1234567890ABCDEF12345678 GET https://api.telecomx.dk/sim/1234567890123456789/assign?customer=1234567890ABCDEF12345678&autoAssign=true
Response
| Json object | ||
|---|---|---|
| success | Boolean | True on success |
Example
{ success: true }
Errors
| Error code | Message | Description |
|---|---|---|
| 400 | bad_request | SIM number not found in request URI |
| 422 | customer | Customer not found |
| 404 | not_found | SIM not found |
| 403 | access_denied | Insufficient access level |
| 500 | internal_error | <Unspecified> |
api/sim/assign.txt · Last modified: 2024/02/16 12:49 by Joakim Andersen