Developers
API v3 · CurrentSage 100 Contractor Requests API
Browse the selected domain reference below. For authentication, request and response conventions, errors, locking, and writes, start with the Getting started guide.
API v3 reference
Requests API
Follow a write that outlived its wait: it answers 202 with a request id, and the request resolves to the answer the write would have given. Cancel a write that has not started.
- Operations
- 2
- Release
- v3.0.0-alpha.30
Authentication, headers, the shared query contract, errors, locking and writes are in Getting started. The interactive reference, with every schema, is below.
Operations
GET/api/v3/requests/{id}Get a request's outcome
The request's outcome, or 202 while it has none.
Once the outcome is known this answers exactly what the original call would have answered: the same status, X-Error-Code and body, so one parser serves both. The response is held for 24 hours after the outcome; after that, and for a request that was answered at once, the answer is 200 with a RequestStatus summary. OPDC-Request-State on every answer says which.
wait holds the call until the outcome arrives or the wait passes, whichever is first. Disconnecting from a poll cancels nothing.
Parameters
idrequiredstringThe request id from
OPDC-Request-Id.waitquerystringHow long to hold the call for an outcome: seconds, or a duration such as
25s; at most 30.
POST/api/v3/requests/{id}/cancelCancel a request
Cancel a write that has not started.
A write still waiting for the on-premise agent is refused when the agent comes to it, and nothing is written: the answer is 202 with state: cancel_requested, and the request itself then resolves to 409 REQUEST_CANCELLED. A cancelled write releases its Idempotency-Key, so a retry under the same key runs afresh.
A write already running is not interrupted: 409 REQUEST_ALREADY_STARTED, and it runs to its outcome. A request that already has its outcome answers 409 REQUEST_ALREADY_COMPLETED; nothing is ever undone by a cancel. Reads answer within their wait and are not cancelled here.
Parameters
idrequiredstringThe request id from
OPDC-Request-Id.
Section 6
This is the v3 contract itself, not a description of it. The document below is OpenAPI 3.1 compiled from the TypeSpec the server and the generated clients are both built from, so what it says is what the API does. The guide above covers the 87 query entities, 38 writes, and the problem shape for each status. This reference includes the complete field and type definitions.
Only the selected domain is loaded into the interactive reference. The complete v3 contract remains available for generators and tooling.
The field-level reference for all 213 operations. Expand an entity's model to see its available properties and types. Those property names are used in select, orderBy, matchFields and every match.field.
Use it as an index rather than reading it front to back. The 87 /query entries all share the contract from section 2, and every operation's failure responses are drawn from the 16 statuses the contract declares (see section 3). Those responses are declared once and referenced, so a status on one route has the same meaning on every route.
Something here does not match what you see?
This guide is maintained by hand alongside the generated reference, so if a field, a status value or a cascade does not behave the way it is described here, that is worth reporting rather than working around. Tell us what you called and what came back.
Contact us