Factory Test Mode

The factory test mode (FTM) feature allows you to test SIM cards prior to their deployment in a production environment. SIM cards in FTM provide 100 KB of data usage and 10 SMS MT/MO free of charge.

In this state, you won’t be charged the monthly SIM hosting fees and the data consumed won’t affect the pooled allowance.

Patch your SIM to Factory Test

A SIM card can only be patched to “Factory Test” from the “Issued” state. To patch your SIM card, follow these steps:

  1. Open the Swagger API Reference.
  2. Authorize your account, if you haven’t already.
  3. Go to the SIMs section and select /api​/v1​/sim​/{sim_id} Update a SIM.
  4. Select Try it out and enter the sim_id.
  5. Edit the Request body to change the SIM status ID to 4 (Factory Test):
    {
     "status": {
         "id": 4
     }
    }
    
  6. When you’re satisfied with your request, click Execute. The server responds with code 204 if successful.

Activate FTM in bulk

To activate FTM in bulk, use the following API calls.

First, update the SIM status to Factory Test.

PATCH https://simforthings.bics.com/api/v1/sim/

{
    "status": {
        "id": 4
    }
}

Second, create the endpoints.

POST https://simforthings.bics.com/api/v1/endpoint

{
    "name": "DEVICE_NAME",
    "status": {
        "id": 0
    },
    "service_profile": {
        "id": 1234
    },
    "tariff_profile": {
        "id": 1234
    },
    "sim": {
        "id": 1234,
        "activate": false
    }
}

Replace 1234 with the relevant ID values.