SIM Management
API Reference
Configure fair usage

Configure fair usage

POST /api/SimSubmission/ConfigureFairUsage

Queues changes to the roaming bucket allowances of an active bundle on one Orange (France) LMVNO SIM. This changes real service allowances. Confirm the SIM and all requested allowances before submitting. Use API authentication.

The SIM must be accessible to the authenticated user, have an owning account, a valid network and an existing MSISDN, and have an active bundle. This operation is available for network 234 only.

Request

FieldTypeDescription
serialNumberstringSerial number of the SIM to update. This is a single string, not an array.
bucketsobject arraySupply all three roaming buckets listed below.
buckets[].namestringusaCanada, maghrebTurkey or restOfWorld. Names are matched without regard to case. Supply each once.
buckets[].allowanceMBintegerAllowance in whole MB, at least 10 and no more than 512,000 MB. Must use supported increments.
namestring or nullOptional submission name. Defaults to Configure Bundle Control.

Supported allowance increments are 1 MB from 10 to 19 MB, 10 MB from 20 to 199 MB, 100 MB from 200 to 999 MB, 1,024 MB from 1,024 to 102,399 MB, and 10,240 MB from 102,400 to 512,000 MB. Values from 1,000 to 1,023 MB are not supported. These restrictions can fail submission validation even when the initial request was accepted.

curl --location 'https://api.cellhire.com/api/SimSubmission/ConfigureFairUsage' \
  --header 'Authorization: Bearer <access-token>' \
  --header 'Content-Type: application/json;charset=UTF-8' \
  --data '{
    "serialNumber": "01234567890",
    "name": "Approved roaming allowances",
    "buckets": [
      { "name": "usaCanada", "allowanceMB": 1024 },
      { "name": "maghrebTurkey", "allowanceMB": 1024 },
      { "name": "restOfWorld", "allowanceMB": 1024 }
    ]
  }'

Responses

200 OK returns a submission ticket:

{ "ticketNumber": "1beeb8dd-1825-4bcd-8a62-f941aacb8d15" }

Follow submission status and recovery and check the SIM result before reporting the new allowances as active. Do not automatically repeat a POST after a timeout.

StatusMeaning
400Missing buckets, invalid allowance values, unavailable SIM, invalid account/network state, unsupported network, or no bundle found.
403The authenticated user is not permitted to configure fair usage.
500Submission creation failed or the command type is unavailable.