SIM Management
API Reference
Search submissions

Search submissions

GET /api/SimSubmission

Returns submissions visible to the authenticated API user. Use Authentication for a bearer token. This is a collection search; to inspect one submission and its commands, use Get submission status.

Query parameters

Supply CompanyId or AccountId for customer integrations. The published schema also exposes SimGroupId, but it is not a substitute for company/account scope in the current search implementation. Scope is checked against the authenticated user's permissions.

ParameterTypeBehaviour
CompanyIdintegerCompany scope; required when no account scope is supplied
AccountIdintegerAccount scope; takes precedence over company scope
SearchTypestringserial for an exact SIM serial number match, or tel for an exact telephone number match
SearchTermstringValue for SearchType; preserve identifiers as strings
TicketNumberUUIDExact submission identifier
StatusstringExact submission status, such as complete
ActionDatedate-timeExact scheduled action timestamp
CreatedBy, CancelledBy, Description, TypestringText filters; these use substring matching
TakeintegerNumber of results to request; defaults to 250. Use a bounded positive value
SkipintegerNumber of results to skip; use zero for the first page
OrderBystringAscending sort column; cannot be combined with OrderByDesc
OrderByDescstringDescending sort column; defaults to newest createdOn first when neither sort parameter is supplied
WrapWithstringInclude total-count to request a total count

Supported sort columns are ticketNumber, description, type, status, createdOn, createdBy, actionOn, cancelledOn, cancelledBy and completedOn. This endpoint uses its own search implementation rather than arbitrary AutoQueryable property filters. It also accepts date comparisons on actionOn, createdOn, cancelledOn and completedOn, for example createdOn%3E2026-11-01. Use one comparison per date column in a request.

Request

curl --get 'https://api.cellhire.com/api/SimSubmission' \
  --header 'Authorization: Bearer <access-token>' \
  --data-urlencode 'AccountId=1234' \
  --data-urlencode 'Take=50' \
  --data-urlencode 'Skip=0' \
  --data-urlencode 'OrderByDesc=createdOn' \
  --data-urlencode 'WrapWith=total-count'

Response

200 OK returns a wrapper with result, count and nullable totalCount. Each result contains the submission fields described in Submissions, including ticketNumber, companyId, description, type, status, creation/action/completion dates and error information. Fetch the by-ticket endpoint with includeCommands=true for command and individual SIM results. The public OpenAPI response annotation currently describes an array; the search implementation returns this wrapper.

{
  "result": [],
  "count": 0,
  "totalCount": 0
}

Increase Skip by the number of returned items and stop on an empty page. In the current implementation totalCount can reflect results remaining after Skip; do not assume it is a stable pre-pagination total. Account-scoped searches give the clearest pagination behaviour; a company search may combine results from separately permitted accounts.

Errors

StatusMeaning
400Missing customer search scope, conflicting sort directions or invalid parameter types
401Missing/invalid token or no permitted search scope
500Search failure, including unsupported date filter columns