SIM Management
API Reference
Cancel or complete submissions

Cancel or manually complete a submission

Use submission status reads to monitor a job. These write operations change its lifecycle; they do not replace polling or automatically undo completed network changes. There is no sandbox. Confirm the ticket and intended action before sending a write request.

Cancel a submission

DELETE /api/SimSubmission/{ticketNumber}

Requests cancellation of a submission the authenticated user can access and execute. Cancellation is supported while a submission is pending, validating or ready. A job that is already running, complete, failed or invalid cannot be cancelled through this operation. Do not assume a network-processing job is cancellable.

ParameterLocationTypeRestrictions
ticketNumberpathUUIDRequired submission ticket
reasonquerystringRequired, 1 to 200 characters; provide a meaningful non-whitespace reason
curl --request DELETE 'https://api.cellhire.com/api/SimSubmission/<ticket-number>?reason=Customer%20requested%20cancellation' \
  --header 'Authorization: Bearer <access-token>'

200 OK returns the ticket. Re-read the submission to verify its resulting status. A cancellation response is not evidence that earlier network changes have been reversed.

{ "ticketNumber": "1beeb8dd-1825-4bcd-8a62-f941aacb8d15" }
StatusMeaning
400Invalid ticket/reason, cancellation already requested, already cancelled, or too late to cancel
401Missing or invalid token
403Writes are forbidden for the authenticated session
404Submission not found or the user cannot access/execute it

Manually complete a submission

POST /api/SimSubmission/{id}/complete

This operation appears in the public schema but requires the internal authentication policy and the Cellhire role. Customer API credentials do not grant this permission. Customer integrations should monitor network-processing jobs through status reads and contact Cellhire if they require intervention.

For authorised internal callers, the submission must be in network-processing. This operation records manual completion or cancellation and can update SIM records using the supplied mappings. It is not a request to the network to provision or cancel a SIM.

FieldTypeRestrictions
idUUID in pathRequired submission ticket
statusstring in bodyRequired; complete or cancelled only
reasonstring or nullOptional, maximum 200 characters
msisdnsobject or nullOptional mapping from original submission serial number to MSISDN
serialNumbersobject or nullOptional mapping from original submission serial number to replacement serial number
lpaStringsobject or nullOptional mapping from original submission serial number to eSIM LPA string

The mappings apply when completing a submission. Keys must identify SIMs on the submission; replacement serial numbers must remain unique. MSISDN updates require a current rental agreement. Non-empty LPA strings must contain no more than 255 characters. Treat eSIM activation information as sensitive.

The following request is for authorised internal callers only:

curl --request POST 'https://api.cellhire.com/api/SimSubmission/<ticket-number>/complete' \
  --header 'Authorization: Bearer <internal-access-token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "status": "complete",
    "reason": "Network completion confirmed"
  }'

200 OK returns ticketNumber. 400 indicates invalid fields or a status other than complete/cancelled; 401/403 indicates failed authentication/authorisation; 404 indicates an unavailable submission; 409 indicates the submission is not in network-processing or a supplied mapping cannot be applied. Other processing failures can return 500.