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.
| Parameter | Type | Behaviour |
|---|---|---|
CompanyId | integer | Company scope; required when no account scope is supplied |
AccountId | integer | Account scope; takes precedence over company scope |
SearchType | string | serial for an exact SIM serial number match, or tel for an exact telephone number match |
SearchTerm | string | Value for SearchType; preserve identifiers as strings |
TicketNumber | UUID | Exact submission identifier |
Status | string | Exact submission status, such as complete |
ActionDate | date-time | Exact scheduled action timestamp |
CreatedBy, CancelledBy, Description, Type | string | Text filters; these use substring matching |
Take | integer | Number of results to request; defaults to 250. Use a bounded positive value |
Skip | integer | Number of results to skip; use zero for the first page |
OrderBy | string | Ascending sort column; cannot be combined with OrderByDesc |
OrderByDesc | string | Descending sort column; defaults to newest createdOn first when neither sort parameter is supplied |
WrapWith | string | Include 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
| Status | Meaning |
|---|---|
400 | Missing customer search scope, conflicting sort directions or invalid parameter types |
401 | Missing/invalid token or no permitted search scope |
500 | Search failure, including unsupported date filter columns |