Skip to main content

Change a SIM's plan

One endpoint puts a SIM on a plan, whatever state it's in, and Axis works out what that means. The rule to remember: a SIM that's already on a plan moves at the start of next month. Plans are billed by the month, so a SIM stays on its current plan (and its current allowance) until the month is out.

Move a SIM to another pool or tariff​

PUT/api/v1/sims/{id}/planTry it →
curl -X PUT https://app.zentarinetworks.com/api/v1/sims/4183/plan \
-H "Authorization: Bearer $AXIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "poolId": 9 }'
{
"outcome": "scheduled",
"ticket": null,
"effectiveFrom": "2026-11-01T00:00:00Z",
"message": "Queued: the change happens at the start of next month (1 November 2026)."
}

The SIM now shows what's coming:

{
"id": 4183,
"plan": { "kind": "tariff", "poolId": null, "tariffId": 2, "name": "UK 5GB" },
"pendingPlanChange": { "kind": "pool", "poolId": 9, "tariffId": null, "effectiveFrom": "2026-11-01T00:00:00Z" },
…
}

On the 1st, Axis makes the move and records a reprovision ticket in the SIM's history. Asking again with a different plan before then replaces the queued change.

Take a SIM off its plan​

DELETE/api/v1/sims/{id}/planTry it →

Also queued for the start of next month: the SIM keeps working, and is billed, until then. On the 1st it's switched off on the network (an unprovision ticket) and becomes offline.

{
"outcome": "scheduled",
"ticket": null,
"effectiveFrom": "2026-11-01T00:00:00Z",
"message": "Queued: the change happens at the start of next month (1 November 2026)."
}

pendingPlanChange.kind is then "unassign".

Change your mind​

DELETE/api/v1/sims/{id}/pending-plan-changeTry it →

Clears whatever is queued, leaving the SIM on its current plan. 204 No Content. (Asking for the plan it's already on, with PUT /plan, does the same.)

Finding SIMs with changes queued​

There's no filter for this, but every SIM has pendingPlanChange, so a sync or a report on your side can pick them out. The Estate report also shows each SIM's plan.

What can go wrong​

AnswerWhyWhat to do
400 invalid_requestBoth or neither of poolId/tariffId, a pool tariff used directly, or a pool or tariff that isn't yoursSend one of your own pools, or a standard tariff
402 payment_requiredOnly when the SIM had no plan (switching it on starts billing) and there's no cardAn admin adds a card in the portal
404 not_foundNot your SIMCheck the id