{
"error": "Bad Request",
"errors": [
{
"code": "tooSmall",
"detail": "Too small: expected number to be >=1",
"meta": {},
"source": {
"pointer": "/page"
}
}
],
"statusCode": 400
}
{
"error": "Bad Request",
"errors": [
{
"code": "tooSmall",
"detail": "Too small: expected number to be >=1",
"meta": {},
"source": {
"pointer": "/page"
}
}
],
"statusCode": 400
}
{
"error": "Bad Request",
"errors": [
{
"code": "tooSmall",
"detail": "Too small: expected number to be >=1",
"meta": {},
"source": {
"pointer": "/page"
}
}
],
"statusCode": 400
}
{
"error": "Bad Request",
"errors": [
{
"code": "tooSmall",
"detail": "Too small: expected number to be >=1",
"meta": {},
"source": {
"pointer": "/page"
}
}
],
"statusCode": 400
}
{
"error": "Bad Request",
"errors": [
{
"code": "tooSmall",
"detail": "Too small: expected number to be >=1",
"meta": {},
"source": {
"pointer": "/page"
}
}
],
"statusCode": 400
}
{
"error": "Bad Request",
"errors": [
{
"code": "tooSmall",
"detail": "Too small: expected number to be >=1",
"meta": {},
"source": {
"pointer": "/page"
}
}
],
"statusCode": 400
}
{
"error": "Bad Request",
"errors": [
{
"code": "tooSmall",
"detail": "Too small: expected number to be >=1",
"meta": {},
"source": {
"pointer": "/page"
}
}
],
"statusCode": 400
}
Orders
Update an order
Changes an order placed at a location under a company linked to the API token and returns it. The body is a JSON Merge Patch (RFC 7396): a member left out keeps its value, null clears it, and an array replaces the whole list, except participant.identifiers, which is merged by type. settings says why the order changes and is required; a body with only settings changes nothing and returns the order. Every change is checked before any is saved. The participant’s identifiers are included only for tokens that also carry order.participant.read. Returns 400 at the member at fault, 422 when the order’s status or history no longer allows the change or no collection site can take it, 404 for any order the token cannot see, and 409 when If-Match names an older version. Requires the order.update scope.
The ETag of the version this change is based on, from GET /orders/{id}. It is checked before anything is saved: when the order has changed since, the response is 409.
Collection site to move the order to, such as one from GET /orders/{id}/clinics; any clinic GET /clinics/{id} serves, offering every service on the order. Schedules an ordered order. Allowed until collection starts; for an expired or noShow order, only when its lab is Quest, LabCorp, CRL or Origin.
DOT job category of the participant, one of those the order’s agency publishes (see GET /agencies). Required when agency changes to one that publishes more than one job category on an order with a DOT service; a sole category is assigned automatically.
Web page where someone picks the collection site, without signing in; null unless the order is ordered with no clinic and isn’t a link order. Anyone with it can see the participant’s address and choose the site.
Present on a create response when an equivalent existing order was returned instead.
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Origin One API","description":"REST API documentation for the Origin One platform.","colors":{"primary":"#163862","light":"#6ba4d6","dark":"#0f2a48"},"logo":{"light":"https://mintcdn.com/originone-30fd7a89/G_6EiTV7ltEsdig3/logo/light.svg?fit=max\u0026auto=format\u0026n=G_6EiTV7ltEsdig3\u0026q=85\u0026s=c9d12df15e2e3322ba9464137f6103cc","dark":"https://mintcdn.com/originone-30fd7a89/G_6EiTV7ltEsdig3/logo/dark.svg?fit=max\u0026auto=format\u0026n=G_6EiTV7ltEsdig3\u0026q=85\u0026s=2ebef81abf59be09e6720d0e762fb553"},"favicon":"https://mintcdn.com/originone-30fd7a89/G_6EiTV7ltEsdig3/favicon.png?fit=max\u0026auto=format\u0026n=G_6EiTV7ltEsdig3\u0026q=85\u0026s=88ea1503f80c7ff7793dbac7a67fcbfa","api":{"openapi":"api-reference/openapi.json","playground":{"display":"interactive"},"examples":{"defaults":"required","languages":["bash","javascript","python"]}},"footer":{"socials":{"website":"https://originone.ai"}},"fonts":{"family":"Archivo"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"originone-30fd7a89","hasAudioNarration":false,"actualSubdomain":"originone-30fd7a89","customDomains":["api.docs.originone.ai"],"gitSource":{"type":"github","owner":"origin-o1","repo":"api-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6af4b31ac8baa3557b0fd1c4","clientVersion":"0.0.4111","searchFilterCounts":[{"language":"default","tag":"API reference","count":23},{"language":"default","tag":"Documentation","count":13},{"language":"default","tag":"Getting started","count":11},{"language":"default","tag":"Orders","count":6},{"language":"default","tag":"Clinics","count":3},{"language":"default","tag":"Agencies","count":2},{"language":"default","tag":"Companies","count":2},{"language":"default","tag":"Locations","count":2},{"language":"default","tag":"Packages","count":2},{"language":"default","tag":"Services","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[],"page":{"pagePath":"api-reference/orders/update","slug":"/api-reference/orders/update","pageMetadata":{"title":"Update an order","openapi":"api-reference/openapi.json PATCH /api/v2/orders/{id}","description":"Changes an order placed at a location under a company linked to the API token and returns it. The body is a JSON Merge Patch (RFC 7396): a member left out keeps its value, `null` clears it, and an array replaces the whole list, except `participant.identifiers`, which is merged by type. `settings` says why the order changes and is required; a body with only `settings` changes nothing and returns the order. Every change is checked before any is saved. The participant’s `identifiers` are included only for tokens that also carry `order.participant.read`. Returns 400 at the member at fault, 422 when the order’s status or history no longer allows the change or no collection site can take it, 404 for any order the token cannot see, and 409 when `If-Match` names an older version. Requires the `order.update` scope.","href":"/api-reference/orders/update"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Changes an order placed at a location under a company linked to the API token and returns it. The body is a JSON Merge Patch (RFC 7396): a member left out keeps its value, \", _jsx(_components.code, {\n children: \"null\"\n }), \" clears it, and an array replaces the whole list, except \", _jsx(_components.code, {\n children: \"participant.identifiers\"\n }), \", which is merged by type. \", _jsx(_components.code, {\n children: \"settings\"\n }), \" says why the order changes and is required; a body with only \", _jsx(_components.code, {\n children: \"settings\"\n }), \" changes nothing and returns the order. Every change is checked before any is saved. The participant’s \", _jsx(_components.code, {\n children: \"identifiers\"\n }), \" are included only for tokens that also carry \", _jsx(_components.code, {\n children: \"order.participant.read\"\n }), \". Returns 400 at the member at fault, 422 when the order’s status or history no longer allows the change or no collection site can take it, 404 for any order the token cannot see, and 409 when \", _jsx(_components.code, {\n children: \"If-Match\"\n }), \" names an older version. Requires the \", _jsx(_components.code, {\n children: \"order.update\"\n }), \" scope.\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,..._provideComponents(),...props.components},{Tip}=_components;if(!Tip)_missingMdxReference(`Tip`,true);return _jsx(Tip,{children:_jsxs(_components.p,{children:[_jsx(_components.a,{href:`/editing-orders`,children:`Editing orders`}),` explains how the merge patch applies, the `,_jsx(_components.code,{children:`settings`}),` every request needs, and what to do when a request fails partway.`]})})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Update an order","openapi":"api-reference/openapi.json PATCH /api/v2/orders/{id}","description":"Changes an order placed at a location under a company linked to the API token and returns it. The body is a JSON Merge Patch (RFC 7396): a member left out keeps its value, `null` clears it, and an array replaces the whole list, except `participant.identifiers`, which is merged by type. `settings` says why the order changes and is required; a body with only `settings` changes nothing and returns the order. Every change is checked before any is saved. The participant’s `identifiers` are included only for tokens that also carry `order.participant.read`. Returns 400 at the member at fault, 422 when the order’s status or history no longer allows the change or no collection site can take it, 404 for any order the token cannot see, and 409 when `If-Match` names an older version. Requires the `order.update` scope.","href":"/api-reference/orders/update"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"description":"Changes an order placed at a location under a company linked to the API token and returns it. The body is a JSON Merge Patch (RFC 7396): a member left out keeps its value, `null` clears it, and an array replaces the whole list, except `participant.identifiers`, which is merged by type. `settings` says why the order changes and is required; a body with only `settings` changes nothing and returns the order. Every change is checked before any is saved. The participant’s `identifiers` are included only for tokens that also carry `order.participant.read`. Returns 400 at the member at fault, 422 when the order’s status or history no longer allows the change or no collection site can take it, 404 for any order the token cannot see, and 409 when `If-Match` names an older version. Requires the `order.update` scope.","operationId":"updateOrder","parameters":["278680d3-cd3a-41f7-b0ea-ee32ed755698","4e238b2e-2b77-4ccc-a44a-6cd271a5457e"],"requestBody":"cc4a7846-0e16-446f-bd26-5d914cd66d89","responses":{"200":"f7d64d47-b7f5-45f0-90e2-0da2a792d072","400":"98ed96d4-65ea-4bfc-b2e9-e298be429563","401":"4275f2e7-88a8-4172-abaa-6e640e44c9f3","403":"82753c1d-6124-4d2f-b063-672188b0d9da","404":"e852fc30-8811-4de8-a9ab-8b940552bde9","409":"0cc9d07b-c18c-4e1d-be76-586d35ac7345","422":"5840ccc0-87f1-4434-99f8-89b042615032","default":"e20dccc0-b1d2-4326-8fff-c084a44a7794"},"security":["95f6e16e-7e4f-4f22-8724-fbd62281397d"],"summary":"Update an order","tags":["orders"],"method":"patch","type":"path","servers":["2f5acdaa-e8e6-4dd5-879d-bb7e67c8f7aa","1c5d71e5-631c-4aaa-8550-95b739fc7a5a"],"path":"/api/v2/orders/{id}","baseUrlOptions":["https://api.stage.origin.one","https://api.origin.one"],"title":"Update an order","codeSamples":[],"requestExampleLanguages":["bash","javascript","python"],"requiredOnlyExamples":true,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"278680d3-cd3a-41f7-b0ea-ee32ed755698":{"name":"id","required":true,"in":"path","description":"Unique identifier of the resource.","schema":{"type":"string","example":"a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11","description":"Unique identifier of the resource.","isRequired":true,"uniqueKey":"","typeLabel":"string"}},"4e238b2e-2b77-4ccc-a44a-6cd271a5457e":{"name":"If-Match","in":"header","description":"The `ETag` of the version this change is based on, from `GET /orders/{id}`. It is checked before anything is saved: when the order has changed since, the response is 409.","required":false,"schema":{"type":"string","isRequired":false,"description":"The `ETag` of the version this change is based on, from `GET /orders/{id}`. It is checked before anything is saved: when the order has changed since, the response is 409.","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/merge-patch+json":{"schema":{"type":"object","properties":{"settings":{"type":"object","properties":{"changeReason":{"type":"string","enum":["missingInformation","misspelling","other","wrongParticipantLocation","wrongParticipantName","wrongReasonForTest"],"description":"Why the order is being changed; recorded in the order’s history.","example":"misspelling","isRequired":true,"uniqueKey":"settings.changeReason","typeLabel":"enum\u003cstring>"},"otherChangeReason":{"type":"string","minLength":1,"maxLength":60,"description":"Detail for a `changeReason` of `other`, up to 60 characters; required with `other` and not allowed otherwise.","example":"Participant moved","uniqueKey":"settings.otherChangeReason","typeLabel":"string"},"clinicSelectionMode":{"type":"string","enum":["closestToParticipant","configured","requesterSelects"],"description":"How the new collection site is chosen when `packages` changes the package and the order’s site can’t collect it, or the order has none; ignored otherwise. `closestToParticipant` takes the nearest site within 100 miles that offers every service, and needs the participant’s address `line1`, `city` and `postalCode`; `configured` takes the location’s first configured site for the package that does. Both schedule an `ordered` order, and refuse the edit when no site qualifies. `requesterSelects` picks no site and is allowed only while the order is `ordered`. Not allowed with `clinic`.","example":"closestToParticipant","uniqueKey":"settings.clinicSelectionMode","typeLabel":"enum\u003cstring>"},"reIssueDocuments":{"oneOf":[{"type":"boolean","description":"Whether to regenerate the order’s documents after the change. Ignored while the order is `ordered`, `expired` or `noShow`.","example":true,"uniqueKey":"settings.reIssueDocuments.oneOf.0","typeLabel":"boolean"},{"type":"number","description":"Whether to regenerate the order’s documents after the change. Ignored while the order is `ordered`, `expired` or `noShow`.","enum":[1],"example":true,"uniqueKey":"settings.reIssueDocuments.oneOf.1","typeLabel":"enum\u003cnumber>"},{"type":"number","description":"Whether to regenerate the order’s documents after the change. Ignored while the order is `ordered`, `expired` or `noShow`.","enum":[0],"example":true,"uniqueKey":"settings.reIssueDocuments.oneOf.2","typeLabel":"enum\u003cnumber>"},{"type":"string","description":"Whether to regenerate the order’s documents after the change. Ignored while the order is `ordered`, `expired` or `noShow`.","enum":["true"],"example":true,"uniqueKey":"settings.reIssueDocuments.oneOf.3","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Whether to regenerate the order’s documents after the change. Ignored while the order is `ordered`, `expired` or `noShow`.","enum":["false"],"example":true,"uniqueKey":"settings.reIssueDocuments.oneOf.4","typeLabel":"enum\u003cstring>"}],"uniqueKey":"settings.reIssueDocuments","typeLabel":"boolean · enum\u003cnumber> · enum\u003cnumber> · enum\u003cstring> · enum\u003cstring>"},"resendNotifications":{"oneOf":[{"type":"boolean","description":"Whether to send the order’s current status notification again.","example":true,"uniqueKey":"settings.resendNotifications.oneOf.0","typeLabel":"boolean"},{"type":"number","description":"Whether to send the order’s current status notification again.","enum":[1],"example":true,"uniqueKey":"settings.resendNotifications.oneOf.1","typeLabel":"enum\u003cnumber>"},{"type":"number","description":"Whether to send the order’s current status notification again.","enum":[0],"example":true,"uniqueKey":"settings.resendNotifications.oneOf.2","typeLabel":"enum\u003cnumber>"},{"type":"string","description":"Whether to send the order’s current status notification again.","enum":["true"],"example":true,"uniqueKey":"settings.resendNotifications.oneOf.3","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Whether to send the order’s current status notification again.","enum":["false"],"example":true,"uniqueKey":"settings.resendNotifications.oneOf.4","typeLabel":"enum\u003cstring>"}],"uniqueKey":"settings.resendNotifications","typeLabel":"boolean · enum\u003cnumber> · enum\u003cnumber> · enum\u003cstring> · enum\u003cstring>"}},"required":["changeReason"],"description":"Why the order is changing and what to send afterwards. Not part of the order; never returned.","isRequired":true,"uniqueKey":"settings","typeLabel":"object"},"agency":{"oneOf":[{"type":"object","description":"Regulatory agency, one of `GET /agencies`; `null` removes it. Required while the order has a DOT service, and not allowed otherwise.","required":["id"],"properties":{"id":{"example":"1","description":"Unique identifier of the agency.","type":"string","isRequired":true,"uniqueKey":"agency.oneOf.0.id","typeLabel":"string"}},"uniqueKey":"agency.oneOf.0","typeLabel":"object"},{"type":"null","description":"Regulatory agency, one of `GET /agencies`; `null` removes it. Required while the order has a DOT service, and not allowed otherwise.","uniqueKey":"agency.oneOf.1","typeLabel":"null"}],"uniqueKey":"agency","typeLabel":"object | null"},"clinic":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the clinic.","example":"42","isRequired":true,"uniqueKey":"clinic.id","typeLabel":"string"}},"required":["id"],"description":"Collection site to move the order to, such as one from `GET /orders/{id}/clinics`; any clinic `GET /clinics/{id}` serves, offering every service on the order. Schedules an `ordered` order. Allowed until collection starts; for an `expired` or `noShow` order, only when its lab is Quest, LabCorp, CRL or Origin.","uniqueKey":"clinic","typeLabel":"object"},"expiresAt":{"type":"string","format":"date-time","description":"When the order expires (ISO 8601 date-time with offset), at least one hour from now. An expired or no-show order becomes active again.","example":"2026-10-30T17:00:00Z","uniqueKey":"expiresAt","typeLabel":"string\u003cdate-time>"},"jobCategory":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the job category.","example":"3987402f-e963-45a9-8799-b9ea6621adae","isRequired":true,"uniqueKey":"jobCategory.id","typeLabel":"string"}},"required":["id"],"description":"DOT job category of the participant, one of those the order’s `agency` publishes (see `GET /agencies`). Required when `agency` changes to one that publishes more than one job category on an order with a DOT service; a sole category is assigned automatically.","uniqueKey":"jobCategory","typeLabel":"object"},"location":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the location.","example":"456","isRequired":true,"uniqueKey":"location.id","typeLabel":"string"}},"required":["id"],"description":"Location to move the order to; must be under a company linked to the API token, and offer the order’s package.","uniqueKey":"location","typeLabel":"object"},"otherTestReason":{"oneOf":[{"type":"string","description":"Detail for a `testReason` of `other`, up to 30 characters; `null` clears it. Cleared automatically when `testReason` changes to another value.","maxLength":30,"minLength":1,"example":"Court order","uniqueKey":"otherTestReason.oneOf.0","typeLabel":"string"},{"type":"null","description":"Detail for a `testReason` of `other`, up to 30 characters; `null` clears it. Cleared automatically when `testReason` changes to another value.","example":"Court order","uniqueKey":"otherTestReason.oneOf.1","typeLabel":"null"}],"uniqueKey":"otherTestReason","typeLabel":"string | null"},"packages":{"minItems":1,"maxItems":1,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the package.","example":"789","isRequired":true,"uniqueKey":"packages.items.[INDEX].id","typeLabel":"string"}},"required":["id"],"uniqueKey":"packages.items.[INDEX]","typeLabel":"object"},"description":"The package to order instead, as a one-item list. Must be available at the location; allowed only until collection starts.","uniqueKey":"packages","typeLabel":"object[]"},"participant":{"type":"object","properties":{"address":{"type":"object","properties":{"city":{"type":"string","minLength":1,"description":"City.","example":"Los Angeles","uniqueKey":"participant.address.city","typeLabel":"string"},"country":{"type":"string","enum":["US","CA"],"description":"Country code (ISO 3166-1 alpha-2); US or CA. Requires `state`.","example":"US","uniqueKey":"participant.address.country","typeLabel":"enum\u003cstring>"},"line1":{"type":"string","minLength":1,"description":"First line of the street address.","example":"21143 Hawthorne Blvd","uniqueKey":"participant.address.line1","typeLabel":"string"},"line2":{"oneOf":[{"type":"string","description":"Second line of the street address; `null` clears it.","minLength":1,"example":"Suite 400","uniqueKey":"participant.address.line2.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"participant.address.line2.oneOf.1","typeLabel":"null"}],"uniqueKey":"participant.address.line2","typeLabel":"string | null"},"postalCode":{"type":"string","minLength":1,"description":"Postal code; US `12345` or `12345-6789`, Canada `A1A 1A1`.","example":"90503","uniqueKey":"participant.address.postalCode","typeLabel":"string"},"state":{"type":"string","minLength":2,"maxLength":2,"description":"State or province code, in the address’s country.","example":"CA","uniqueKey":"participant.address.state","typeLabel":"string"}},"description":"Postal address; only the members given change. It cannot be removed.","uniqueKey":"participant.address","typeLabel":"object"},"birthDate":{"oneOf":[{"type":"string","description":"Date of birth (ISO 8601 date); `null` clears it.","format":"date","example":"1980-11-11","uniqueKey":"participant.birthDate.oneOf.0","typeLabel":"string\u003cdate>"},{"type":"null","description":"Date of birth (ISO 8601 date); `null` clears it.","example":"1980-11-11","uniqueKey":"participant.birthDate.oneOf.1","typeLabel":"null"}],"uniqueKey":"participant.birthDate","typeLabel":"string\u003cdate> | null"},"email":{"oneOf":[{"type":"string","description":"Email address; `null` clears it.","format":"email","example":"john.doe@example.com","uniqueKey":"participant.email.oneOf.0","typeLabel":"string\u003cemail>"},{"type":"null","description":"Email address; `null` clears it.","example":"john.doe@example.com","uniqueKey":"participant.email.oneOf.1","typeLabel":"null"}],"uniqueKey":"participant.email","typeLabel":"string\u003cemail> | null"},"firstName":{"type":"string","minLength":1,"description":"First name.","example":"John","uniqueKey":"participant.firstName","typeLabel":"string"},"identifiers":{"type":"array","items":{"oneOf":[{"type":"object","required":["type","value"],"properties":{"type":{"type":"string","description":"Kind of identifier.","enum":["ssn"],"isRequired":true,"uniqueKey":"participant.identifiers.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"value":{"oneOf":[{"type":"string","description":"Social Security number; one sent back masked, as the order returns it, is kept. `null` removes the identifier.","minLength":1,"example":"123-12-1234","isRequired":true,"uniqueKey":"participant.identifiers.items.[INDEX].oneOf.0.value.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"participant.identifiers.items.[INDEX].oneOf.0.value.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"participant.identifiers.items.[INDEX].oneOf.0.value","typeLabel":"string | null"}},"uniqueKey":"participant.identifiers.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["type","value"],"properties":{"type":{"type":"string","description":"Kind of identifier.","enum":["employerId"],"isRequired":true,"uniqueKey":"participant.identifiers.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"value":{"oneOf":[{"type":"string","description":"Employer-assigned identifier. `null` removes the identifier.","minLength":1,"example":"E-42","isRequired":true,"uniqueKey":"participant.identifiers.items.[INDEX].oneOf.1.value.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"participant.identifiers.items.[INDEX].oneOf.1.value.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"participant.identifiers.items.[INDEX].oneOf.1.value","typeLabel":"string | null"}},"uniqueKey":"participant.identifiers.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","required":["type","value"],"properties":{"type":{"type":"string","description":"Kind of identifier.","enum":["driverLicense"],"isRequired":true,"uniqueKey":"participant.identifiers.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"},"value":{"oneOf":[{"type":"string","description":"License number. `null` removes the identifier.","minLength":1,"example":"D1234567","isRequired":true,"uniqueKey":"participant.identifiers.items.[INDEX].oneOf.2.value.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"participant.identifiers.items.[INDEX].oneOf.2.value.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"participant.identifiers.items.[INDEX].oneOf.2.value","typeLabel":"string | null"},"issuingCountry":{"default":"US","description":"Issuing country code; US or CA.","example":"US","type":"string","enum":["US","CA"],"uniqueKey":"participant.identifiers.items.[INDEX].oneOf.2.issuingCountry","typeLabel":"enum\u003cstring>"},"issuingState":{"type":"string","minLength":2,"maxLength":2,"description":"Issuing state or province code; required with a `value`.","example":"CA","uniqueKey":"participant.identifiers.items.[INDEX].oneOf.2.issuingState","typeLabel":"string"}},"uniqueKey":"participant.identifiers.items.[INDEX].oneOf.2","typeLabel":"object"}],"uniqueKey":"participant.identifiers.items.[INDEX]","typeLabel":"object"},"description":"Government and employer identifiers to change, at most one of each type, merged by type: each entry replaces the stored identifier of its type, a `null` value removes it, and a type left out is kept. At least one identifier must remain.","uniqueKey":"participant.identifiers","typeLabel":"object[]"},"lastName":{"type":"string","minLength":1,"description":"Last name.","example":"Doe","uniqueKey":"participant.lastName","typeLabel":"string"},"middleName":{"oneOf":[{"type":"string","description":"Middle name; `null` clears it.","minLength":1,"example":"Q","uniqueKey":"participant.middleName.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"participant.middleName.oneOf.1","typeLabel":"null"}],"uniqueKey":"participant.middleName","typeLabel":"string | null"},"phone":{"oneOf":[{"type":"string","description":"Phone number, stored as E.164; `null` clears it.","example":"+13033232323","uniqueKey":"participant.phone.oneOf.0","typeLabel":"string"},{"type":"null","description":"Phone number, stored as E.164; `null` clears it.","example":"+13033232323","uniqueKey":"participant.phone.oneOf.1","typeLabel":"null"}],"uniqueKey":"participant.phone","typeLabel":"string | null"}},"description":"Changes to the person being tested; only the members given change.","uniqueKey":"participant","typeLabel":"object"},"testReason":{"type":"string","enum":["blindSample","fitnessForDuty","followUp","jobTransfer","notIndicated","other","periodic","periodicMedical","postAccident","preEmployment","preSiteAccess","probation","promotion","random","reasonableSuspicion","returnToDuty","splitSpecimen","sweep","unauthorizedTest","unknown","injury"],"description":"Reason for the test.","example":"preEmployment","uniqueKey":"testReason","typeLabel":"enum\u003cstring>"}},"required":["settings"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"settings":{"changeReason":"misspelling","otherChangeReason":"Participant moved","clinicSelectionMode":"closestToParticipant","reIssueDocuments":true,"resendNotifications":true},"agency":{"id":"1"},"expiresAt":"2026-10-30T17:00:00Z","otherTestReason":"Court order","packages":[{"id":"789"}],"participant":{"address":{"city":"Los Angeles","country":"US","line1":"21143 Hawthorne Blvd","line2":"Suite 400","postalCode":"90503","state":"CA"},"birthDate":"1980-11-11","email":"john.doe@example.com","firstName":"John","identifiers":[{"type":"ssn","value":"123-12-1234"}],"lastName":"Doe","middleName":"Q","phone":"+13033232323"},"testReason":"preEmployment"}}},"exampleType":"generated"},"application/json":{"schema":{"type":"object","properties":{"settings":{"type":"object","properties":{"changeReason":{"type":"string","enum":["missingInformation","misspelling","other","wrongParticipantLocation","wrongParticipantName","wrongReasonForTest"],"description":"Why the order is being changed; recorded in the order’s history.","example":"misspelling","isRequired":true,"uniqueKey":"settings.changeReason","typeLabel":"enum\u003cstring>"},"otherChangeReason":{"type":"string","minLength":1,"maxLength":60,"description":"Detail for a `changeReason` of `other`, up to 60 characters; required with `other` and not allowed otherwise.","example":"Participant moved","uniqueKey":"settings.otherChangeReason","typeLabel":"string"},"clinicSelectionMode":{"type":"string","enum":["closestToParticipant","configured","requesterSelects"],"description":"How the new collection site is chosen when `packages` changes the package and the order’s site can’t collect it, or the order has none; ignored otherwise. `closestToParticipant` takes the nearest site within 100 miles that offers every service, and needs the participant’s address `line1`, `city` and `postalCode`; `configured` takes the location’s first configured site for the package that does. Both schedule an `ordered` order, and refuse the edit when no site qualifies. `requesterSelects` picks no site and is allowed only while the order is `ordered`. Not allowed with `clinic`.","example":"closestToParticipant","uniqueKey":"settings.clinicSelectionMode","typeLabel":"enum\u003cstring>"},"reIssueDocuments":{"oneOf":[{"type":"boolean","description":"Whether to regenerate the order’s documents after the change. Ignored while the order is `ordered`, `expired` or `noShow`.","example":true,"uniqueKey":"settings.reIssueDocuments.oneOf.0","typeLabel":"boolean"},{"type":"number","description":"Whether to regenerate the order’s documents after the change. Ignored while the order is `ordered`, `expired` or `noShow`.","enum":[1],"example":true,"uniqueKey":"settings.reIssueDocuments.oneOf.1","typeLabel":"enum\u003cnumber>"},{"type":"number","description":"Whether to regenerate the order’s documents after the change. Ignored while the order is `ordered`, `expired` or `noShow`.","enum":[0],"example":true,"uniqueKey":"settings.reIssueDocuments.oneOf.2","typeLabel":"enum\u003cnumber>"},{"type":"string","description":"Whether to regenerate the order’s documents after the change. Ignored while the order is `ordered`, `expired` or `noShow`.","enum":["true"],"example":true,"uniqueKey":"settings.reIssueDocuments.oneOf.3","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Whether to regenerate the order’s documents after the change. Ignored while the order is `ordered`, `expired` or `noShow`.","enum":["false"],"example":true,"uniqueKey":"settings.reIssueDocuments.oneOf.4","typeLabel":"enum\u003cstring>"}],"uniqueKey":"settings.reIssueDocuments","typeLabel":"boolean · enum\u003cnumber> · enum\u003cnumber> · enum\u003cstring> · enum\u003cstring>"},"resendNotifications":{"oneOf":[{"type":"boolean","description":"Whether to send the order’s current status notification again.","example":true,"uniqueKey":"settings.resendNotifications.oneOf.0","typeLabel":"boolean"},{"type":"number","description":"Whether to send the order’s current status notification again.","enum":[1],"example":true,"uniqueKey":"settings.resendNotifications.oneOf.1","typeLabel":"enum\u003cnumber>"},{"type":"number","description":"Whether to send the order’s current status notification again.","enum":[0],"example":true,"uniqueKey":"settings.resendNotifications.oneOf.2","typeLabel":"enum\u003cnumber>"},{"type":"string","description":"Whether to send the order’s current status notification again.","enum":["true"],"example":true,"uniqueKey":"settings.resendNotifications.oneOf.3","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Whether to send the order’s current status notification again.","enum":["false"],"example":true,"uniqueKey":"settings.resendNotifications.oneOf.4","typeLabel":"enum\u003cstring>"}],"uniqueKey":"settings.resendNotifications","typeLabel":"boolean · enum\u003cnumber> · enum\u003cnumber> · enum\u003cstring> · enum\u003cstring>"}},"required":["changeReason"],"description":"Why the order is changing and what to send afterwards. Not part of the order; never returned.","isRequired":true,"uniqueKey":"settings","typeLabel":"object"},"agency":{"oneOf":[{"type":"object","description":"Regulatory agency, one of `GET /agencies`; `null` removes it. Required while the order has a DOT service, and not allowed otherwise.","required":["id"],"properties":{"id":{"example":"1","description":"Unique identifier of the agency.","type":"string","isRequired":true,"uniqueKey":"agency.oneOf.0.id","typeLabel":"string"}},"uniqueKey":"agency.oneOf.0","typeLabel":"object"},{"type":"null","description":"Regulatory agency, one of `GET /agencies`; `null` removes it. Required while the order has a DOT service, and not allowed otherwise.","uniqueKey":"agency.oneOf.1","typeLabel":"null"}],"uniqueKey":"agency","typeLabel":"object | null"},"clinic":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the clinic.","example":"42","isRequired":true,"uniqueKey":"clinic.id","typeLabel":"string"}},"required":["id"],"description":"Collection site to move the order to, such as one from `GET /orders/{id}/clinics`; any clinic `GET /clinics/{id}` serves, offering every service on the order. Schedules an `ordered` order. Allowed until collection starts; for an `expired` or `noShow` order, only when its lab is Quest, LabCorp, CRL or Origin.","uniqueKey":"clinic","typeLabel":"object"},"expiresAt":{"type":"string","format":"date-time","description":"When the order expires (ISO 8601 date-time with offset), at least one hour from now. An expired or no-show order becomes active again.","example":"2026-10-30T17:00:00Z","uniqueKey":"expiresAt","typeLabel":"string\u003cdate-time>"},"jobCategory":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the job category.","example":"3987402f-e963-45a9-8799-b9ea6621adae","isRequired":true,"uniqueKey":"jobCategory.id","typeLabel":"string"}},"required":["id"],"description":"DOT job category of the participant, one of those the order’s `agency` publishes (see `GET /agencies`). Required when `agency` changes to one that publishes more than one job category on an order with a DOT service; a sole category is assigned automatically.","uniqueKey":"jobCategory","typeLabel":"object"},"location":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the location.","example":"456","isRequired":true,"uniqueKey":"location.id","typeLabel":"string"}},"required":["id"],"description":"Location to move the order to; must be under a company linked to the API token, and offer the order’s package.","uniqueKey":"location","typeLabel":"object"},"otherTestReason":{"oneOf":[{"type":"string","description":"Detail for a `testReason` of `other`, up to 30 characters; `null` clears it. Cleared automatically when `testReason` changes to another value.","maxLength":30,"minLength":1,"example":"Court order","uniqueKey":"otherTestReason.oneOf.0","typeLabel":"string"},{"type":"null","description":"Detail for a `testReason` of `other`, up to 30 characters; `null` clears it. Cleared automatically when `testReason` changes to another value.","example":"Court order","uniqueKey":"otherTestReason.oneOf.1","typeLabel":"null"}],"uniqueKey":"otherTestReason","typeLabel":"string | null"},"packages":{"minItems":1,"maxItems":1,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the package.","example":"789","isRequired":true,"uniqueKey":"packages.items.[INDEX].id","typeLabel":"string"}},"required":["id"],"uniqueKey":"packages.items.[INDEX]","typeLabel":"object"},"description":"The package to order instead, as a one-item list. Must be available at the location; allowed only until collection starts.","uniqueKey":"packages","typeLabel":"object[]"},"participant":{"type":"object","properties":{"address":{"type":"object","properties":{"city":{"type":"string","minLength":1,"description":"City.","example":"Los Angeles","uniqueKey":"participant.address.city","typeLabel":"string"},"country":{"type":"string","enum":["US","CA"],"description":"Country code (ISO 3166-1 alpha-2); US or CA. Requires `state`.","example":"US","uniqueKey":"participant.address.country","typeLabel":"enum\u003cstring>"},"line1":{"type":"string","minLength":1,"description":"First line of the street address.","example":"21143 Hawthorne Blvd","uniqueKey":"participant.address.line1","typeLabel":"string"},"line2":{"oneOf":[{"type":"string","description":"Second line of the street address; `null` clears it.","minLength":1,"example":"Suite 400","uniqueKey":"participant.address.line2.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"participant.address.line2.oneOf.1","typeLabel":"null"}],"uniqueKey":"participant.address.line2","typeLabel":"string | null"},"postalCode":{"type":"string","minLength":1,"description":"Postal code; US `12345` or `12345-6789`, Canada `A1A 1A1`.","example":"90503","uniqueKey":"participant.address.postalCode","typeLabel":"string"},"state":{"type":"string","minLength":2,"maxLength":2,"description":"State or province code, in the address’s country.","example":"CA","uniqueKey":"participant.address.state","typeLabel":"string"}},"description":"Postal address; only the members given change. It cannot be removed.","uniqueKey":"participant.address","typeLabel":"object"},"birthDate":{"oneOf":[{"type":"string","description":"Date of birth (ISO 8601 date); `null` clears it.","format":"date","example":"1980-11-11","uniqueKey":"participant.birthDate.oneOf.0","typeLabel":"string\u003cdate>"},{"type":"null","description":"Date of birth (ISO 8601 date); `null` clears it.","example":"1980-11-11","uniqueKey":"participant.birthDate.oneOf.1","typeLabel":"null"}],"uniqueKey":"participant.birthDate","typeLabel":"string\u003cdate> | null"},"email":{"oneOf":[{"type":"string","description":"Email address; `null` clears it.","format":"email","example":"john.doe@example.com","uniqueKey":"participant.email.oneOf.0","typeLabel":"string\u003cemail>"},{"type":"null","description":"Email address; `null` clears it.","example":"john.doe@example.com","uniqueKey":"participant.email.oneOf.1","typeLabel":"null"}],"uniqueKey":"participant.email","typeLabel":"string\u003cemail> | null"},"firstName":{"type":"string","minLength":1,"description":"First name.","example":"John","uniqueKey":"participant.firstName","typeLabel":"string"},"identifiers":{"type":"array","items":{"oneOf":[{"type":"object","required":["type","value"],"properties":{"type":{"type":"string","description":"Kind of identifier.","enum":["ssn"],"isRequired":true,"uniqueKey":"participant.identifiers.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"value":{"oneOf":[{"type":"string","description":"Social Security number; one sent back masked, as the order returns it, is kept. `null` removes the identifier.","minLength":1,"example":"123-12-1234","isRequired":true,"uniqueKey":"participant.identifiers.items.[INDEX].oneOf.0.value.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"participant.identifiers.items.[INDEX].oneOf.0.value.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"participant.identifiers.items.[INDEX].oneOf.0.value","typeLabel":"string | null"}},"uniqueKey":"participant.identifiers.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["type","value"],"properties":{"type":{"type":"string","description":"Kind of identifier.","enum":["employerId"],"isRequired":true,"uniqueKey":"participant.identifiers.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"value":{"oneOf":[{"type":"string","description":"Employer-assigned identifier. `null` removes the identifier.","minLength":1,"example":"E-42","isRequired":true,"uniqueKey":"participant.identifiers.items.[INDEX].oneOf.1.value.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"participant.identifiers.items.[INDEX].oneOf.1.value.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"participant.identifiers.items.[INDEX].oneOf.1.value","typeLabel":"string | null"}},"uniqueKey":"participant.identifiers.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","required":["type","value"],"properties":{"type":{"type":"string","description":"Kind of identifier.","enum":["driverLicense"],"isRequired":true,"uniqueKey":"participant.identifiers.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"},"value":{"oneOf":[{"type":"string","description":"License number. `null` removes the identifier.","minLength":1,"example":"D1234567","isRequired":true,"uniqueKey":"participant.identifiers.items.[INDEX].oneOf.2.value.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"participant.identifiers.items.[INDEX].oneOf.2.value.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"participant.identifiers.items.[INDEX].oneOf.2.value","typeLabel":"string | null"},"issuingCountry":{"default":"US","description":"Issuing country code; US or CA.","example":"US","type":"string","enum":["US","CA"],"uniqueKey":"participant.identifiers.items.[INDEX].oneOf.2.issuingCountry","typeLabel":"enum\u003cstring>"},"issuingState":{"type":"string","minLength":2,"maxLength":2,"description":"Issuing state or province code; required with a `value`.","example":"CA","uniqueKey":"participant.identifiers.items.[INDEX].oneOf.2.issuingState","typeLabel":"string"}},"uniqueKey":"participant.identifiers.items.[INDEX].oneOf.2","typeLabel":"object"}],"uniqueKey":"participant.identifiers.items.[INDEX]","typeLabel":"object"},"description":"Government and employer identifiers to change, at most one of each type, merged by type: each entry replaces the stored identifier of its type, a `null` value removes it, and a type left out is kept. At least one identifier must remain.","uniqueKey":"participant.identifiers","typeLabel":"object[]"},"lastName":{"type":"string","minLength":1,"description":"Last name.","example":"Doe","uniqueKey":"participant.lastName","typeLabel":"string"},"middleName":{"oneOf":[{"type":"string","description":"Middle name; `null` clears it.","minLength":1,"example":"Q","uniqueKey":"participant.middleName.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"participant.middleName.oneOf.1","typeLabel":"null"}],"uniqueKey":"participant.middleName","typeLabel":"string | null"},"phone":{"oneOf":[{"type":"string","description":"Phone number, stored as E.164; `null` clears it.","example":"+13033232323","uniqueKey":"participant.phone.oneOf.0","typeLabel":"string"},{"type":"null","description":"Phone number, stored as E.164; `null` clears it.","example":"+13033232323","uniqueKey":"participant.phone.oneOf.1","typeLabel":"null"}],"uniqueKey":"participant.phone","typeLabel":"string | null"}},"description":"Changes to the person being tested; only the members given change.","uniqueKey":"participant","typeLabel":"object"},"testReason":{"type":"string","enum":["blindSample","fitnessForDuty","followUp","jobTransfer","notIndicated","other","periodic","periodicMedical","postAccident","preEmployment","preSiteAccess","probation","promotion","random","reasonableSuspicion","returnToDuty","splitSpecimen","sweep","unauthorizedTest","unknown","injury"],"description":"Reason for the test.","example":"preEmployment","uniqueKey":"testReason","typeLabel":"enum\u003cstring>"}},"required":["settings"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"settings":{"changeReason":"misspelling","otherChangeReason":"Participant moved","clinicSelectionMode":"closestToParticipant","reIssueDocuments":true,"resendNotifications":true},"agency":{"id":"1"},"expiresAt":"2026-10-30T17:00:00Z","otherTestReason":"Court order","packages":[{"id":"789"}],"participant":{"address":{"city":"Los Angeles","country":"US","line1":"21143 Hawthorne Blvd","line2":"Suite 400","postalCode":"90503","state":"CA"},"birthDate":"1980-11-11","email":"john.doe@example.com","firstName":"John","identifiers":[{"type":"ssn","value":"123-12-1234"}],"lastName":"Doe","middleName":"Q","phone":"+13033232323"},"testReason":"preEmployment"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"f7d64d47-b7f5-45f0-90e2-0da2a792d072":{"headers":{"ETag":{"description":"Version of the order; send it in `If-Match` to change only this version.","schema":{"example":"W/\"5a1-Lr0V3wqYk6wX0Qp9c1xQyR8m2nA\"","type":"string"}}},"description":"Success.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the order.","example":"a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"object":{"type":"string","description":"Object type; always `order`.","example":"order","enum":["order"],"isRequired":true,"uniqueKey":"object","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"Human-readable order code.","example":"CPmJ6QbYMo","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"agency":{"oneOf":[{"type":"object","description":"Regulatory agency the order was placed under; null for a non-regulated order.","required":["code","id","object","url"],"properties":{"code":{"type":"string","description":"Agency code, as regulations name it.","example":"FAA","isRequired":true,"uniqueKey":"agency.oneOf.0.code","typeLabel":"string"},"id":{"type":"string","description":"Unique identifier of the agency.","example":"3","isRequired":true,"uniqueKey":"agency.oneOf.0.id","typeLabel":"string"},"object":{"type":"string","description":"Object type; always `agency`.","example":"agency","enum":["agency"],"isRequired":true,"uniqueKey":"agency.oneOf.0.object","typeLabel":"enum\u003cstring>"},"url":{"type":"string","description":"Canonical path of this resource, relative to the API origin.","example":"/api/v2/agencies/3","format":"uri-reference","isRequired":true,"uniqueKey":"agency.oneOf.0.url","typeLabel":"string\u003curi-reference>"}},"isRequired":true,"uniqueKey":"agency.oneOf.0","typeLabel":"object"},{"type":"null","description":"Regulatory agency the order was placed under; null for a non-regulated order.","isRequired":true,"uniqueKey":"agency.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"agency","typeLabel":"object | null"},"clinic":{"oneOf":[{"type":"object","description":"Collection site; null until one is assigned.","required":["address","id","name","object","phone","url"],"properties":{"address":{"oneOf":[{"type":"object","description":"Postal address; null when the clinic has none.","required":["city","country","line1","line2","object","postalCode","state"],"properties":{"city":{"oneOf":[{"description":"City or town.","example":"Seattle","type":"string","isRequired":true,"uniqueKey":"clinic.oneOf.0.address.oneOf.0.city.oneOf.0","typeLabel":"string"},{"description":"City or town.","example":"Seattle","type":"null","isRequired":true,"uniqueKey":"clinic.oneOf.0.address.oneOf.0.city.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"clinic.oneOf.0.address.oneOf.0.city","typeLabel":"string | null"},"country":{"oneOf":[{"description":"Country code.","example":"US","type":"string","isRequired":true,"uniqueKey":"clinic.oneOf.0.address.oneOf.0.country.oneOf.0","typeLabel":"string"},{"description":"Country code.","example":"US","type":"null","isRequired":true,"uniqueKey":"clinic.oneOf.0.address.oneOf.0.country.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"clinic.oneOf.0.address.oneOf.0.country","typeLabel":"string | null"},"line1":{"oneOf":[{"description":"First line of the street address.","example":"123 Main St","type":"string","isRequired":true,"uniqueKey":"clinic.oneOf.0.address.oneOf.0.line1.oneOf.0","typeLabel":"string"},{"description":"First line of the street address.","example":"123 Main St","type":"null","isRequired":true,"uniqueKey":"clinic.oneOf.0.address.oneOf.0.line1.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"clinic.oneOf.0.address.oneOf.0.line1","typeLabel":"string | null"},"line2":{"oneOf":[{"description":"Second line of the street address.","example":"Suite 400","type":"string","isRequired":true,"uniqueKey":"clinic.oneOf.0.address.oneOf.0.line2.oneOf.0","typeLabel":"string"},{"description":"Second line of the street address.","example":"Suite 400","type":"null","isRequired":true,"uniqueKey":"clinic.oneOf.0.address.oneOf.0.line2.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"clinic.oneOf.0.address.oneOf.0.line2","typeLabel":"string | null"},"object":{"type":"string","description":"Object type; always `address`.","example":"address","enum":["address"],"isRequired":true,"uniqueKey":"clinic.oneOf.0.address.oneOf.0.object","typeLabel":"enum\u003cstring>"},"postalCode":{"oneOf":[{"description":"Postal or ZIP code.","example":"98101","type":"string","isRequired":true,"uniqueKey":"clinic.oneOf.0.address.oneOf.0.postalCode.oneOf.0","typeLabel":"string"},{"description":"Postal or ZIP code.","example":"98101","type":"null","isRequired":true,"uniqueKey":"clinic.oneOf.0.address.oneOf.0.postalCode.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"clinic.oneOf.0.address.oneOf.0.postalCode","typeLabel":"string | null"},"state":{"oneOf":[{"description":"State or region code.","example":"WA","type":"string","isRequired":true,"uniqueKey":"clinic.oneOf.0.address.oneOf.0.state.oneOf.0","typeLabel":"string"},{"description":"State or region code.","example":"WA","type":"null","isRequired":true,"uniqueKey":"clinic.oneOf.0.address.oneOf.0.state.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"clinic.oneOf.0.address.oneOf.0.state","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"clinic.oneOf.0.address.oneOf.0","typeLabel":"object"},{"type":"null","description":"Postal address; null when the clinic has none.","isRequired":true,"uniqueKey":"clinic.oneOf.0.address.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"clinic.oneOf.0.address","typeLabel":"object | null"},"id":{"type":"string","description":"Unique identifier of the clinic.","example":"42","isRequired":true,"uniqueKey":"clinic.oneOf.0.id","typeLabel":"string"},"name":{"type":"string","description":"Clinic name.","example":"Austin Downtown Clinic","isRequired":true,"uniqueKey":"clinic.oneOf.0.name","typeLabel":"string"},"object":{"type":"string","description":"Object type; always `clinic`.","example":"clinic","enum":["clinic"],"isRequired":true,"uniqueKey":"clinic.oneOf.0.object","typeLabel":"enum\u003cstring>"},"phone":{"oneOf":[{"description":"Primary phone number.","example":"+1-512-555-0100","type":"string","isRequired":true,"uniqueKey":"clinic.oneOf.0.phone.oneOf.0","typeLabel":"string"},{"description":"Primary phone number.","example":"+1-512-555-0100","type":"null","isRequired":true,"uniqueKey":"clinic.oneOf.0.phone.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"clinic.oneOf.0.phone","typeLabel":"string | null"},"url":{"type":"string","description":"Canonical path of this resource, relative to the API origin.","example":"/api/v2/clinics/42","format":"uri-reference","isRequired":true,"uniqueKey":"clinic.oneOf.0.url","typeLabel":"string\u003curi-reference>"}},"isRequired":true,"uniqueKey":"clinic.oneOf.0","typeLabel":"object"},{"type":"null","description":"Collection site; null until one is assigned.","isRequired":true,"uniqueKey":"clinic.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"clinic","typeLabel":"object | null"},"clinicSelectionUrl":{"oneOf":[{"type":"string","description":"Web page where someone picks the collection site, without signing in; null unless the order is `ordered` with no `clinic` and isn’t a `link` order. Anyone with it can see the participant’s address and choose the site.","format":"uri","example":"https://acme.originone.ai/collection-site/CPmJ6QbYMo","isRequired":true,"uniqueKey":"clinicSelectionUrl.oneOf.0","typeLabel":"string\u003curi>"},{"type":"null","description":"Web page where someone picks the collection site, without signing in; null unless the order is `ordered` with no `clinic` and isn’t a `link` order. Anyone with it can see the participant’s address and choose the site.","example":"https://acme.originone.ai/collection-site/CPmJ6QbYMo","isRequired":true,"uniqueKey":"clinicSelectionUrl.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"clinicSelectionUrl","typeLabel":"string\u003curi> | null"},"company":{"oneOf":[{"type":"object","description":"Company the order was placed for.","required":["id","name","object","url"],"properties":{"id":{"type":"string","description":"Unique identifier of the company.","example":"123","isRequired":true,"uniqueKey":"company.oneOf.0.id","typeLabel":"string"},"name":{"type":"string","description":"Company name.","example":"Acme Inc","isRequired":true,"uniqueKey":"company.oneOf.0.name","typeLabel":"string"},"object":{"type":"string","description":"Object type; always `company`.","example":"company","enum":["company"],"isRequired":true,"uniqueKey":"company.oneOf.0.object","typeLabel":"enum\u003cstring>"},"url":{"type":"string","description":"Canonical path of this resource, relative to the API origin.","example":"/api/v2/companies/123","format":"uri-reference","isRequired":true,"uniqueKey":"company.oneOf.0.url","typeLabel":"string\u003curi-reference>"}},"isRequired":true,"uniqueKey":"company.oneOf.0","typeLabel":"object"},{"type":"null","description":"Company the order was placed for.","isRequired":true,"uniqueKey":"company.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"company","typeLabel":"object | null"},"createdAt":{"format":"date-time","type":"string","description":"When the order was created.","example":"2026-09-24T09:00:00.000Z","isRequired":true,"uniqueKey":"createdAt","typeLabel":"string\u003cdate-time>"},"expiresAt":{"oneOf":[{"type":"string","description":"When the order expires; null when it does not.","format":"date-time","example":"2026-09-24T15:15:00.000Z","isRequired":true,"uniqueKey":"expiresAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","description":"When the order expires; null when it does not.","example":"2026-09-24T15:15:00.000Z","isRequired":true,"uniqueKey":"expiresAt.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"expiresAt","typeLabel":"string\u003cdate-time> | null"},"isFinal":{"type":"boolean","description":"Whether the order has reached an outcome. Cancelled, expired and no-show orders report `false`; check `status` for those.","example":false,"isRequired":true,"uniqueKey":"isFinal","typeLabel":"boolean"},"jobCategory":{"oneOf":[{"type":"object","description":"DOT job category of the participant; null when the order has none.","required":["id","name","object","url"],"properties":{"id":{"type":"string","description":"Unique identifier of the job category.","example":"3987402f-e963-45a9-8799-b9ea6621adae","isRequired":true,"uniqueKey":"jobCategory.oneOf.0.id","typeLabel":"string"},"name":{"type":"string","description":"Job category name.","example":"Flight Crewmember","isRequired":true,"uniqueKey":"jobCategory.oneOf.0.name","typeLabel":"string"},"object":{"type":"string","description":"Object type; always `jobCategory`.","example":"jobCategory","enum":["jobCategory"],"isRequired":true,"uniqueKey":"jobCategory.oneOf.0.object","typeLabel":"enum\u003cstring>"},"url":{"type":"string","description":"Canonical path of this resource, relative to the API origin.","example":"/api/v2/agencies/3/jobCategories/3987402f-e963-45a9-8799-b9ea6621adae","format":"uri-reference","isRequired":true,"uniqueKey":"jobCategory.oneOf.0.url","typeLabel":"string\u003curi-reference>"}},"isRequired":true,"uniqueKey":"jobCategory.oneOf.0","typeLabel":"object"},{"type":"null","description":"DOT job category of the participant; null when the order has none.","isRequired":true,"uniqueKey":"jobCategory.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"jobCategory","typeLabel":"object | null"},"location":{"oneOf":[{"type":"object","description":"Location the order was placed at.","required":["id","name","object","url"],"properties":{"id":{"type":"string","description":"Unique identifier of the location.","example":"456","isRequired":true,"uniqueKey":"location.oneOf.0.id","typeLabel":"string"},"name":{"type":"string","description":"Location name.","example":"Acme Downtown","isRequired":true,"uniqueKey":"location.oneOf.0.name","typeLabel":"string"},"object":{"type":"string","description":"Object type; always `location`.","example":"location","enum":["location"],"isRequired":true,"uniqueKey":"location.oneOf.0.object","typeLabel":"enum\u003cstring>"},"url":{"type":"string","description":"Canonical path of this resource, relative to the API origin.","example":"/api/v2/locations/456","format":"uri-reference","isRequired":true,"uniqueKey":"location.oneOf.0.url","typeLabel":"string\u003curi-reference>"}},"isRequired":true,"uniqueKey":"location.oneOf.0","typeLabel":"object"},{"type":"null","description":"Location the order was placed at.","isRequired":true,"uniqueKey":"location.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"location","typeLabel":"object | null"},"otherTestReason":{"oneOf":[{"description":"Detail for a `testReason` of `other`; null when none was given.","example":"courtOrdered","type":"string","isRequired":true,"uniqueKey":"otherTestReason.oneOf.0","typeLabel":"string"},{"description":"Detail for a `testReason` of `other`; null when none was given.","example":"courtOrdered","type":"null","isRequired":true,"uniqueKey":"otherTestReason.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"otherTestReason","typeLabel":"string | null"},"packages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the package.","example":"789","isRequired":true,"uniqueKey":"packages.items.[INDEX].id","typeLabel":"string"},"name":{"type":"string","description":"Package name, as the tenant calls it.","example":"DOT Pre-Employment Drug Test","isRequired":true,"uniqueKey":"packages.items.[INDEX].name","typeLabel":"string"},"object":{"type":"string","description":"Object type; always `package`.","example":"package","enum":["package"],"isRequired":true,"uniqueKey":"packages.items.[INDEX].object","typeLabel":"enum\u003cstring>"},"url":{"type":"string","description":"Canonical path of this resource, relative to the API origin.","example":"/api/v2/packages/789","format":"uri-reference","isRequired":true,"uniqueKey":"packages.items.[INDEX].url","typeLabel":"string\u003curi-reference>"}},"required":["id","name","object","url"],"uniqueKey":"packages.items.[INDEX]","typeLabel":"object"},"description":"Packages the order was created from.","isRequired":true,"uniqueKey":"packages","typeLabel":"object[]"},"participant":{"type":"object","properties":{"address":{"oneOf":[{"type":"object","description":"Postal address; null when none was provided.","required":["city","country","line1","line2","object","postalCode","state"],"properties":{"city":{"oneOf":[{"description":"City or town.","example":"Seattle","type":"string","isRequired":true,"uniqueKey":"participant.address.oneOf.0.city.oneOf.0","typeLabel":"string"},{"description":"City or town.","example":"Seattle","type":"null","isRequired":true,"uniqueKey":"participant.address.oneOf.0.city.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"participant.address.oneOf.0.city","typeLabel":"string | null"},"country":{"oneOf":[{"description":"Country code.","example":"US","type":"string","isRequired":true,"uniqueKey":"participant.address.oneOf.0.country.oneOf.0","typeLabel":"string"},{"description":"Country code.","example":"US","type":"null","isRequired":true,"uniqueKey":"participant.address.oneOf.0.country.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"participant.address.oneOf.0.country","typeLabel":"string | null"},"line1":{"oneOf":[{"description":"First line of the street address.","example":"123 Main St","type":"string","isRequired":true,"uniqueKey":"participant.address.oneOf.0.line1.oneOf.0","typeLabel":"string"},{"description":"First line of the street address.","example":"123 Main St","type":"null","isRequired":true,"uniqueKey":"participant.address.oneOf.0.line1.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"participant.address.oneOf.0.line1","typeLabel":"string | null"},"line2":{"oneOf":[{"description":"Second line of the street address.","example":"Suite 400","type":"string","isRequired":true,"uniqueKey":"participant.address.oneOf.0.line2.oneOf.0","typeLabel":"string"},{"description":"Second line of the street address.","example":"Suite 400","type":"null","isRequired":true,"uniqueKey":"participant.address.oneOf.0.line2.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"participant.address.oneOf.0.line2","typeLabel":"string | null"},"object":{"type":"string","description":"Object type; always `address`.","example":"address","enum":["address"],"isRequired":true,"uniqueKey":"participant.address.oneOf.0.object","typeLabel":"enum\u003cstring>"},"postalCode":{"oneOf":[{"description":"Postal or ZIP code.","example":"98101","type":"string","isRequired":true,"uniqueKey":"participant.address.oneOf.0.postalCode.oneOf.0","typeLabel":"string"},{"description":"Postal or ZIP code.","example":"98101","type":"null","isRequired":true,"uniqueKey":"participant.address.oneOf.0.postalCode.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"participant.address.oneOf.0.postalCode","typeLabel":"string | null"},"state":{"oneOf":[{"description":"State or region code.","example":"WA","type":"string","isRequired":true,"uniqueKey":"participant.address.oneOf.0.state.oneOf.0","typeLabel":"string"},{"description":"State or region code.","example":"WA","type":"null","isRequired":true,"uniqueKey":"participant.address.oneOf.0.state.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"participant.address.oneOf.0.state","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"participant.address.oneOf.0","typeLabel":"object"},{"type":"null","description":"Postal address; null when none was provided.","isRequired":true,"uniqueKey":"participant.address.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"participant.address","typeLabel":"object | null"},"birthDate":{"oneOf":[{"type":"string","description":"Date of birth (ISO 8601 date).","format":"date","example":"1980-11-11","isRequired":true,"uniqueKey":"participant.birthDate.oneOf.0","typeLabel":"string\u003cdate>"},{"type":"null","description":"Date of birth (ISO 8601 date).","example":"1980-11-11","isRequired":true,"uniqueKey":"participant.birthDate.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"participant.birthDate","typeLabel":"string\u003cdate> | null"},"email":{"oneOf":[{"description":"Email address.","example":"john.doe@example.com","type":"string","isRequired":true,"uniqueKey":"participant.email.oneOf.0","typeLabel":"string"},{"description":"Email address.","example":"john.doe@example.com","type":"null","isRequired":true,"uniqueKey":"participant.email.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"participant.email","typeLabel":"string | null"},"firstName":{"oneOf":[{"description":"First name.","example":"John","type":"string","isRequired":true,"uniqueKey":"participant.firstName.oneOf.0","typeLabel":"string"},{"description":"First name.","example":"John","type":"null","isRequired":true,"uniqueKey":"participant.firstName.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"participant.firstName","typeLabel":"string | null"},"lastName":{"oneOf":[{"description":"Last name.","example":"Doe","type":"string","isRequired":true,"uniqueKey":"participant.lastName.oneOf.0","typeLabel":"string"},{"description":"Last name.","example":"Doe","type":"null","isRequired":true,"uniqueKey":"participant.lastName.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"participant.lastName","typeLabel":"string | null"},"middleName":{"oneOf":[{"description":"Middle name.","example":"Q","type":"string","isRequired":true,"uniqueKey":"participant.middleName.oneOf.0","typeLabel":"string"},{"description":"Middle name.","example":"Q","type":"null","isRequired":true,"uniqueKey":"participant.middleName.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"participant.middleName","typeLabel":"string | null"},"phone":{"oneOf":[{"description":"Phone number (E.164).","example":"+13033232323","type":"string","isRequired":true,"uniqueKey":"participant.phone.oneOf.0","typeLabel":"string"},{"description":"Phone number (E.164).","example":"+13033232323","type":"null","isRequired":true,"uniqueKey":"participant.phone.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"participant.phone","typeLabel":"string | null"},"identifiers":{"type":"array","items":{"type":"object","properties":{"issuingCountry":{"oneOf":[{"description":"Issuing country code; set for a driver’s license.","example":"US","type":"string","isRequired":true,"uniqueKey":"participant.identifiers.items.[INDEX].issuingCountry.oneOf.0","typeLabel":"string"},{"description":"Issuing country code; set for a driver’s license.","example":"US","type":"null","isRequired":true,"uniqueKey":"participant.identifiers.items.[INDEX].issuingCountry.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"participant.identifiers.items.[INDEX].issuingCountry","typeLabel":"string | null"},"issuingState":{"oneOf":[{"description":"Issuing state or province code; set for a driver’s license.","example":"WA","type":"string","isRequired":true,"uniqueKey":"participant.identifiers.items.[INDEX].issuingState.oneOf.0","typeLabel":"string"},{"description":"Issuing state or province code; set for a driver’s license.","example":"WA","type":"null","isRequired":true,"uniqueKey":"participant.identifiers.items.[INDEX].issuingState.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"participant.identifiers.items.[INDEX].issuingState","typeLabel":"string | null"},"object":{"type":"string","description":"Object type; always `participantIdentifier`.","example":"participantIdentifier","enum":["participantIdentifier"],"isRequired":true,"uniqueKey":"participant.identifiers.items.[INDEX].object","typeLabel":"enum\u003cstring>"},"type":{"oneOf":[{"type":"string","description":"Kind of identifier. New values may be added; skip one you do not know.","enum":["ssn","driverLicense","employerId"],"example":"driverLicense","isRequired":true,"uniqueKey":"participant.identifiers.items.[INDEX].type.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Kind of identifier. New values may be added; skip one you do not know.","example":"driverLicense","isRequired":true,"uniqueKey":"participant.identifiers.items.[INDEX].type.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"participant.identifiers.items.[INDEX].type","typeLabel":"enum\u003cstring> | string"},"value":{"type":"string","description":"The identifier. A Social Security number is masked to its last four digits.","example":"D1234567","isRequired":true,"uniqueKey":"participant.identifiers.items.[INDEX].value","typeLabel":"string"}},"required":["issuingCountry","issuingState","object","type","value"],"uniqueKey":"participant.identifiers.items.[INDEX]","typeLabel":"object"},"description":"Government and employer identifiers. Present only for API tokens with the `order.participant.read` scope, and never on a cancellation.","uniqueKey":"participant.identifiers","typeLabel":"object[]"}},"required":["address","birthDate","email","firstName","lastName","middleName","phone"],"description":"The person being tested.","isRequired":true,"uniqueKey":"participant","typeLabel":"object"},"schedulingUrl":{"oneOf":[{"type":"string","description":"Web page where the participant completes a `link` order, the one the link they receive opens; null unless a `link` order is `ordered`.","format":"uri","example":"https://acme.originone.ai/schedule/CPmJ6QbYMo","isRequired":true,"uniqueKey":"schedulingUrl.oneOf.0","typeLabel":"string\u003curi>"},{"type":"null","description":"Web page where the participant completes a `link` order, the one the link they receive opens; null unless a `link` order is `ordered`.","example":"https://acme.originone.ai/schedule/CPmJ6QbYMo","isRequired":true,"uniqueKey":"schedulingUrl.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"schedulingUrl","typeLabel":"string\u003curi> | null"},"services":{"type":"array","items":{"type":"object","properties":{"attributes":{"oneOf":[{"type":"object","description":"Testing category and specimen type; null when the service has neither.","required":["category","type"],"properties":{"category":{"oneOf":[{"type":"string","description":"Testing category. New values may be added.","enum":["dot","dotLookalike","instantTestAllInOneCup","instantTestOral","nonStandardPanels","oral","standardPanels","standardPanelsPlusExpOpi","standardPanelsPlusExpOpiPlusFentanyl","standardPanelsPlusExpOpiPlusMdma","standardPanelsPlusExpOpiPlusMdmaPlusFentanyl","standardPanelsPlusMdmaPlusExpOpiPlusOxy","urine"],"example":"standardPanels","isRequired":true,"uniqueKey":"services.items.[INDEX].attributes.oneOf.0.category.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Testing category. New values may be added.","example":"standardPanels","isRequired":true,"uniqueKey":"services.items.[INDEX].attributes.oneOf.0.category.oneOf.1","typeLabel":"string"},{"type":"null","description":"Testing category. New values may be added.","example":"standardPanels","isRequired":true,"uniqueKey":"services.items.[INDEX].attributes.oneOf.0.category.oneOf.2","typeLabel":"null"}],"isRequired":true,"uniqueKey":"services.items.[INDEX].attributes.oneOf.0.category","typeLabel":"enum\u003cstring> | string | null"},"type":{"oneOf":[{"type":"string","description":"Specimen type. New values may be added.","enum":["blood","hair","oral","urine"],"example":"urine","isRequired":true,"uniqueKey":"services.items.[INDEX].attributes.oneOf.0.type.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Specimen type. New values may be added.","example":"urine","isRequired":true,"uniqueKey":"services.items.[INDEX].attributes.oneOf.0.type.oneOf.1","typeLabel":"string"},{"type":"null","description":"Specimen type. New values may be added.","example":"urine","isRequired":true,"uniqueKey":"services.items.[INDEX].attributes.oneOf.0.type.oneOf.2","typeLabel":"null"}],"isRequired":true,"uniqueKey":"services.items.[INDEX].attributes.oneOf.0.type","typeLabel":"enum\u003cstring> | string | null"}},"isRequired":true,"uniqueKey":"services.items.[INDEX].attributes.oneOf.0","typeLabel":"object"},{"type":"null","description":"Testing category and specimen type; null when the service has neither.","isRequired":true,"uniqueKey":"services.items.[INDEX].attributes.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"services.items.[INDEX].attributes","typeLabel":"object | null"},"courierServiceName":{"oneOf":[{"description":"Courier carrying the specimen.","example":"FedEx","type":"string","isRequired":true,"uniqueKey":"services.items.[INDEX].courierServiceName.oneOf.0","typeLabel":"string"},{"description":"Courier carrying the specimen.","example":"FedEx","type":"null","isRequired":true,"uniqueKey":"services.items.[INDEX].courierServiceName.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"services.items.[INDEX].courierServiceName","typeLabel":"string | null"},"id":{"type":"string","description":"Unique identifier of the service on this order.","isRequired":true,"uniqueKey":"services.items.[INDEX].id","typeLabel":"string"},"isDot":{"type":"boolean","description":"Whether the service is a DOT-regulated test.","example":false,"isRequired":true,"uniqueKey":"services.items.[INDEX].isDot","typeLabel":"boolean"},"isFinal":{"type":"boolean","description":"Whether the service status is terminal.","example":false,"isRequired":true,"uniqueKey":"services.items.[INDEX].isFinal","typeLabel":"boolean"},"lab":{"oneOf":[{"type":"object","description":"Lab testing the specimen; null when none is named.","required":["id","name","object","type"],"properties":{"id":{"type":"string","description":"Unique identifier of the vendor.","example":"64cba816-3c52-4a63-9d0e-0f2b5d1a7e11","isRequired":true,"uniqueKey":"services.items.[INDEX].lab.oneOf.0.id","typeLabel":"string"},"name":{"type":"string","description":"Vendor name.","example":"CRL","isRequired":true,"uniqueKey":"services.items.[INDEX].lab.oneOf.0.name","typeLabel":"string"},"object":{"type":"string","description":"Object type; always `vendor`.","example":"vendor","enum":["vendor"],"isRequired":true,"uniqueKey":"services.items.[INDEX].lab.oneOf.0.object","typeLabel":"enum\u003cstring>"},"type":{"oneOf":[{"type":"string","description":"What the vendor does. New values may be added.","enum":["mro","lab","payment","bgc","other","tpa","system"],"example":"lab","isRequired":true,"uniqueKey":"services.items.[INDEX].lab.oneOf.0.type.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","description":"What the vendor does. New values may be added.","example":"lab","isRequired":true,"uniqueKey":"services.items.[INDEX].lab.oneOf.0.type.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"services.items.[INDEX].lab.oneOf.0.type","typeLabel":"enum\u003cstring> | string"}},"isRequired":true,"uniqueKey":"services.items.[INDEX].lab.oneOf.0","typeLabel":"object"},{"type":"null","description":"Lab testing the specimen; null when none is named.","isRequired":true,"uniqueKey":"services.items.[INDEX].lab.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"services.items.[INDEX].lab","typeLabel":"object | null"},"name":{"type":"string","description":"Service name.","example":"5 Panel Urine","isRequired":true,"uniqueKey":"services.items.[INDEX].name","typeLabel":"string"},"object":{"type":"string","description":"Object type; always `orderService`.","example":"orderService","enum":["orderService"],"isRequired":true,"uniqueKey":"services.items.[INDEX].object","typeLabel":"enum\u003cstring>"},"screenHistory":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","description":"Object type; always `orderServiceScreenHistory`.","example":"orderServiceScreenHistory","enum":["orderServiceScreenHistory"],"isRequired":true,"uniqueKey":"services.items.[INDEX].screenHistory.items.[INDEX].object","typeLabel":"enum\u003cstring>"},"occurredAt":{"format":"date-time","type":"string","description":"When the milestone was reached.","example":"2026-09-24T15:15:00.000Z","isRequired":true,"uniqueKey":"services.items.[INDEX].screenHistory.items.[INDEX].occurredAt","typeLabel":"string\u003cdate-time>"},"type":{"oneOf":[{"type":"string","description":"Milestone reached. New values may be added; skip one you do not know.","enum":["inMROReview","labReceived","notApplicable","ordered","resultReceived","resultReleased","specimenCollected"],"example":"specimenCollected","isRequired":true,"uniqueKey":"services.items.[INDEX].screenHistory.items.[INDEX].type.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Milestone reached. New values may be added; skip one you do not know.","example":"specimenCollected","isRequired":true,"uniqueKey":"services.items.[INDEX].screenHistory.items.[INDEX].type.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"services.items.[INDEX].screenHistory.items.[INDEX].type","typeLabel":"enum\u003cstring> | string"}},"required":["object","occurredAt","type"],"uniqueKey":"services.items.[INDEX].screenHistory.items.[INDEX]","typeLabel":"object"},"description":"Milestones reached so far, in screening order; one not reached yet is absent.","isRequired":true,"uniqueKey":"services.items.[INDEX].screenHistory","typeLabel":"object[]"},"specimenId":{"oneOf":[{"description":"Specimen identifier.","example":"SP-1","type":"string","isRequired":true,"uniqueKey":"services.items.[INDEX].specimenId.oneOf.0","typeLabel":"string"},{"description":"Specimen identifier.","example":"SP-1","type":"null","isRequired":true,"uniqueKey":"services.items.[INDEX].specimenId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"services.items.[INDEX].specimenId","typeLabel":"string | null"},"status":{"oneOf":[{"type":"string","description":"Current service status. Values follow the `family_detail` convention; new details may appear.","enum":["adulterated","adulterated_failACTC","adulterated_failTC","cancelled","lostInTransit","complete","complete_abnormal","complete_critical","complete_allergy","complete_allergy_fever","complete_clear","complete_deferred","complete_discrepancy","complete_disqualified","complete_dryMouth","complete_fever","complete_hits","complete_meetsStandards","complete_meetsStandardsWithRestrictions","complete_MROReportReleased","complete_noHits","complete_noMatch","complete_noRecord","complete_noReviewNoReport","complete_notClear","complete_notMeetsStandards","complete_outOfScope","complete_periodicMonitoringRequired","complete_record","complete_reject","complete_seeComments","complete_forBilling","complete_requiresProviderAssessment","complete_unableToVerify","complete_unknown","complete_verified","declined","expired","fail","fitForDuty","incomplete","incomplete_collectionCompletedNoInsufficientSpecimenProvided","incomplete_collectionCompleteNotEnoughSpecimenProvided","incomplete_qnsQuantityNotSufficient","incomplete_donorUnable","incomplete_excused","incomplete_incompleteExamination","incomplete_invalid","incomplete_labReject","incomplete_refusalToTest","incomplete_shyBladder","incomplete_shyLung","integrationError","negative","negative_negativeDilute","negative_negativeSeeReport","nonNegative","noShow","notFitForDuty","notRun","ordered","pass","pending","pending_additionalResearchNeeded","pending_arrivedAtTheClinic","pending_atTheLab","pending_awaitingMROContact","pending_awaitingReview","pending_awaitingSignOff","pending_collectionCompleted","pending_collectionInitiated","pending_collectionSuspended","pending_derNotificationRequired","pending_determinationPending","pending_inMROReview","pending_inProcess","pending_inRecovery","pending_pendingAffidavit","pending_pendingFax","pending_pendingMRO","pending_pendingMROCCF","pending_possibleHitsFound","pending_presumptivePositive","pending_resultPending","pending_review","pending_sentToLab","pending_shyBladder","pending_unableToContact","pending_underReview","pending_collectionCancelled","pending_processingCancelled","pending_processingCompleted","positive","positive_positiveDilute","positive_positiveUntilPrescriptionVerified","positive_positiveDiluteUntilPrescriptionVerified","positive_positiveUnableContactDonor","processing_incompleteExamination","released","scheduled","substituted","testCancelled","testNotPerformed","unobtainable","notReported"],"example":"pending_collectionCompleted","isRequired":true,"uniqueKey":"services.items.[INDEX].status.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Current service status. Values follow the `family_detail` convention; new details may appear.","example":"pending_collectionCompleted","isRequired":true,"uniqueKey":"services.items.[INDEX].status.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"services.items.[INDEX].status","typeLabel":"enum\u003cstring> | string"},"statusHistory":{"type":"array","items":{"type":"object","properties":{"groupType":{"oneOf":[{"type":"string","description":"Milestone the status belongs to.","enum":["inMROReview","labReceived","notApplicable","ordered","resultReceived","resultReleased","specimenCollected"],"example":"specimenCollected","isRequired":true,"uniqueKey":"services.items.[INDEX].statusHistory.items.[INDEX].groupType.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Milestone the status belongs to.","example":"specimenCollected","isRequired":true,"uniqueKey":"services.items.[INDEX].statusHistory.items.[INDEX].groupType.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"services.items.[INDEX].statusHistory.items.[INDEX].groupType","typeLabel":"enum\u003cstring> | string"},"object":{"type":"string","description":"Object type; always `orderServiceStatusHistory`.","example":"orderServiceStatusHistory","enum":["orderServiceStatusHistory"],"isRequired":true,"uniqueKey":"services.items.[INDEX].statusHistory.items.[INDEX].object","typeLabel":"enum\u003cstring>"},"occurredAt":{"format":"date-time","type":"string","description":"When the status happened, such as the collection time.","example":"2026-09-24T15:15:00.000Z","isRequired":true,"uniqueKey":"services.items.[INDEX].statusHistory.items.[INDEX].occurredAt","typeLabel":"string\u003cdate-time>"},"status":{"oneOf":[{"type":"string","description":"Service status at that moment.","enum":["adulterated","adulterated_failACTC","adulterated_failTC","cancelled","lostInTransit","complete","complete_abnormal","complete_critical","complete_allergy","complete_allergy_fever","complete_clear","complete_deferred","complete_discrepancy","complete_disqualified","complete_dryMouth","complete_fever","complete_hits","complete_meetsStandards","complete_meetsStandardsWithRestrictions","complete_MROReportReleased","complete_noHits","complete_noMatch","complete_noRecord","complete_noReviewNoReport","complete_notClear","complete_notMeetsStandards","complete_outOfScope","complete_periodicMonitoringRequired","complete_record","complete_reject","complete_seeComments","complete_forBilling","complete_requiresProviderAssessment","complete_unableToVerify","complete_unknown","complete_verified","declined","expired","fail","fitForDuty","incomplete","incomplete_collectionCompletedNoInsufficientSpecimenProvided","incomplete_collectionCompleteNotEnoughSpecimenProvided","incomplete_qnsQuantityNotSufficient","incomplete_donorUnable","incomplete_excused","incomplete_incompleteExamination","incomplete_invalid","incomplete_labReject","incomplete_refusalToTest","incomplete_shyBladder","incomplete_shyLung","integrationError","negative","negative_negativeDilute","negative_negativeSeeReport","nonNegative","noShow","notFitForDuty","notRun","ordered","pass","pending","pending_additionalResearchNeeded","pending_arrivedAtTheClinic","pending_atTheLab","pending_awaitingMROContact","pending_awaitingReview","pending_awaitingSignOff","pending_collectionCompleted","pending_collectionInitiated","pending_collectionSuspended","pending_derNotificationRequired","pending_determinationPending","pending_inMROReview","pending_inProcess","pending_inRecovery","pending_pendingAffidavit","pending_pendingFax","pending_pendingMRO","pending_pendingMROCCF","pending_possibleHitsFound","pending_presumptivePositive","pending_resultPending","pending_review","pending_sentToLab","pending_shyBladder","pending_unableToContact","pending_underReview","pending_collectionCancelled","pending_processingCancelled","pending_processingCompleted","positive","positive_positiveDilute","positive_positiveUntilPrescriptionVerified","positive_positiveDiluteUntilPrescriptionVerified","positive_positiveUnableContactDonor","processing_incompleteExamination","released","scheduled","substituted","testCancelled","testNotPerformed","unobtainable","notReported"],"example":"pending_collectionCompleted","isRequired":true,"uniqueKey":"services.items.[INDEX].statusHistory.items.[INDEX].status.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Service status at that moment.","example":"pending_collectionCompleted","isRequired":true,"uniqueKey":"services.items.[INDEX].statusHistory.items.[INDEX].status.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"services.items.[INDEX].statusHistory.items.[INDEX].status","typeLabel":"enum\u003cstring> | string"}},"required":["groupType","object","occurredAt","status"],"uniqueKey":"services.items.[INDEX].statusHistory.items.[INDEX]","typeLabel":"object"},"description":"Status changes, oldest first.","isRequired":true,"uniqueKey":"services.items.[INDEX].statusHistory","typeLabel":"object[]"},"statusUpdatedAt":{"oneOf":[{"type":"string","description":"When the status last changed.","format":"date-time","example":"2026-09-24T15:15:00.000Z","isRequired":true,"uniqueKey":"services.items.[INDEX].statusUpdatedAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","description":"When the status last changed.","example":"2026-09-24T15:15:00.000Z","isRequired":true,"uniqueKey":"services.items.[INDEX].statusUpdatedAt.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"services.items.[INDEX].statusUpdatedAt","typeLabel":"string\u003cdate-time> | null"},"trackingNumber":{"oneOf":[{"description":"Courier tracking number.","example":"1Z999AA10123456784","type":"string","isRequired":true,"uniqueKey":"services.items.[INDEX].trackingNumber.oneOf.0","typeLabel":"string"},{"description":"Courier tracking number.","example":"1Z999AA10123456784","type":"null","isRequired":true,"uniqueKey":"services.items.[INDEX].trackingNumber.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"services.items.[INDEX].trackingNumber","typeLabel":"string | null"}},"required":["attributes","courierServiceName","id","isDot","isFinal","lab","name","object","screenHistory","specimenId","status","statusHistory","statusUpdatedAt","trackingNumber"],"uniqueKey":"services.items.[INDEX]","typeLabel":"object"},"description":"Services on the order, in creation order.","isRequired":true,"uniqueKey":"services","typeLabel":"object[]"},"status":{"oneOf":[{"type":"string","description":"Current order status; new values may appear.","enum":["adulterated","cancelled","complete","expired","fail","fitForDuty","incomplete","integrationError","negative","lostInTransit","nonNegative","noShow","notFitForDuty","ordered","pass","pending","positive","released","scheduled","substituted","testCancelled","testNotPerformed","unobtainable"],"example":"pending","isRequired":true,"uniqueKey":"status.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Current order status; new values may appear.","example":"pending","isRequired":true,"uniqueKey":"status.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring> | string"},"statusUpdatedAt":{"format":"date-time","type":"string","description":"When the order status last changed; the creation time until the first change.","example":"2026-09-24T15:15:00.000Z","isRequired":true,"uniqueKey":"statusUpdatedAt","typeLabel":"string\u003cdate-time>"},"testReason":{"oneOf":[{"type":"string","description":"Reason for the test.","enum":["blindSample","fitnessForDuty","followUp","jobTransfer","notIndicated","other","periodic","periodicMedical","postAccident","preEmployment","preSiteAccess","probation","promotion","random","reasonableSuspicion","returnToDuty","splitSpecimen","sweep","unauthorizedTest","unknown","injury"],"example":"preEmployment","isRequired":true,"uniqueKey":"testReason.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Reason for the test.","example":"preEmployment","isRequired":true,"uniqueKey":"testReason.oneOf.1","typeLabel":"string"},{"type":"null","description":"Reason for the test.","example":"preEmployment","isRequired":true,"uniqueKey":"testReason.oneOf.2","typeLabel":"null"}],"isRequired":true,"uniqueKey":"testReason","typeLabel":"enum\u003cstring> | string | null"},"updatedAt":{"format":"date-time","type":"string","description":"When the order was last updated.","example":"2026-09-24T15:20:00.000Z","isRequired":true,"uniqueKey":"updatedAt","typeLabel":"string\u003cdate-time>"},"url":{"type":"string","description":"Canonical path of this resource, relative to the API origin.","example":"/api/v2/orders/a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11","format":"uri-reference","isRequired":true,"uniqueKey":"url","typeLabel":"string\u003curi-reference>"},"matched":{"type":"object","properties":{"originalSource":{"type":"string","description":"Where the matched order was created.","example":"app","isRequired":true,"uniqueKey":"matched.originalSource","typeLabel":"string"},"score":{"type":"number","description":"Match confidence, 0 to 100.","example":100,"isRequired":true,"uniqueKey":"matched.score","typeLabel":"number"}},"required":["originalSource","score"],"description":"Present on a create response when an equivalent existing order was returned instead.","uniqueKey":"matched","typeLabel":"object"}},"required":["id","object","code","agency","clinic","clinicSelectionUrl","company","createdAt","expiresAt","isFinal","jobCategory","location","otherTestReason","packages","participant","schedulingUrl","services","status","statusUpdatedAt","testReason","updatedAt","url"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11","object":"order","code":"CPmJ6QbYMo","agency":{"code":"FAA","id":"3","object":"agency","url":"/api/v2/agencies/3"},"clinic":{"address":{"city":"Seattle","country":"US","line1":"123 Main St","line2":"Suite 400","object":"address","postalCode":"98101","state":"WA"},"id":"42","name":"Austin Downtown Clinic","object":"clinic","phone":"+1-512-555-0100","url":"/api/v2/clinics/42"},"clinicSelectionUrl":"https://acme.originone.ai/collection-site/CPmJ6QbYMo","company":{"id":"123","name":"Acme Inc","object":"company","url":"/api/v2/companies/123"},"createdAt":"2026-09-24T09:00:00.000Z","expiresAt":"2026-09-24T15:15:00.000Z","isFinal":false,"jobCategory":{"id":"3987402f-e963-45a9-8799-b9ea6621adae","name":"Flight Crewmember","object":"jobCategory","url":"/api/v2/agencies/3/jobCategories/3987402f-e963-45a9-8799-b9ea6621adae"},"location":{"id":"456","name":"Acme Downtown","object":"location","url":"/api/v2/locations/456"},"otherTestReason":"courtOrdered","packages":[{"id":"789","name":"DOT Pre-Employment Drug Test","object":"package","url":"/api/v2/packages/789"}],"participant":{"address":{"city":"Seattle","country":"US","line1":"123 Main St","line2":"Suite 400","object":"address","postalCode":"98101","state":"WA"},"birthDate":"1980-11-11","email":"john.doe@example.com","firstName":"John","lastName":"Doe","middleName":"Q","phone":"+13033232323","identifiers":[{"issuingCountry":"US","issuingState":"WA","object":"participantIdentifier","type":"driverLicense","value":"D1234567"}]},"schedulingUrl":"https://acme.originone.ai/schedule/CPmJ6QbYMo","services":[{"attributes":{"category":"standardPanels","type":"urine"},"courierServiceName":"FedEx","id":"\u003cstring>","isDot":false,"isFinal":false,"lab":{"id":"64cba816-3c52-4a63-9d0e-0f2b5d1a7e11","name":"CRL","object":"vendor","type":"lab"},"name":"5 Panel Urine","object":"orderService","screenHistory":[{"object":"orderServiceScreenHistory","occurredAt":"2026-09-24T15:15:00.000Z","type":"specimenCollected"}],"specimenId":"SP-1","status":"pending_collectionCompleted","statusHistory":[{"groupType":"specimenCollected","object":"orderServiceStatusHistory","occurredAt":"2026-09-24T15:15:00.000Z","status":"pending_collectionCompleted"}],"statusUpdatedAt":"2026-09-24T15:15:00.000Z","trackingNumber":"1Z999AA10123456784"}],"status":"pending","statusUpdatedAt":"2026-09-24T15:15:00.000Z","testReason":"preEmployment","updatedAt":"2026-09-24T15:20:00.000Z","url":"/api/v2/orders/a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11","matched":{"originalSource":"app","score":100}}}},"exampleType":"generated"}},"exampleType":"generated"},"98ed96d4-65ea-4bfc-b2e9-e298be429563":{"description":"The request failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"HTTP status reason phrase.","example":"Bad Request","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"errors":{"type":"array","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string","description":"Machine-readable error code. New codes may be added; treat unknown codes by `statusCode`.","enum":["backgroundCheckIntegrationNotConfigured","badRequest","conflict","insufficientScope","internalError","invalidElement","invalidFormat","invalidKey","invalidScheduleStrategy","invalidState","invalidType","invalidUnion","invalidValue","linkRequiredBackground","notFound","notMultipleOf","required","scheduleClinicExcludedByFeeCap","scheduleConfiguredClinicUnavailable","tooBig","tooManyRequests","tooSmall","unauthenticated","unrecognizedKeys"],"example":"tooSmall","isRequired":true,"uniqueKey":"errors.items.[INDEX].code.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Machine-readable error code. New codes may be added; treat unknown codes by `statusCode`.","example":"tooSmall","isRequired":true,"uniqueKey":"errors.items.[INDEX].code.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"errors.items.[INDEX].code","typeLabel":"enum\u003cstring> | string"},"detail":{"type":"string","description":"Human-readable explanation.","example":"Too small: expected number to be >=1","isRequired":true,"uniqueKey":"errors.items.[INDEX].detail","typeLabel":"string"},"meta":{"description":"Additional machine-readable context.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{"oneOf":[{}],"uniqueKey":"errors.items.[INDEX].meta.additionalProperties","typeLabel":"any"},"uniqueKey":"errors.items.[INDEX].meta","typeLabel":"object"},"source":{"description":"Present only when a request field is at fault.","type":"object","properties":{"pointer":{"type":"string","description":"JSON pointer to the request field at fault.","example":"/page","isRequired":true,"uniqueKey":"errors.items.[INDEX].source.pointer","typeLabel":"string"}},"required":["pointer"],"uniqueKey":"errors.items.[INDEX].source","typeLabel":"object"}},"required":["code","detail"],"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"description":"One entry per problem found.","isRequired":true,"uniqueKey":"errors","typeLabel":"object[]"},"statusCode":{"type":"integer","description":"HTTP status code.","example":400,"isRequired":true,"uniqueKey":"statusCode","typeLabel":"integer"}},"required":["error","errors","statusCode"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"Bad Request","errors":[{"code":"tooSmall","detail":"Too small: expected number to be >=1","meta":{},"source":{"pointer":"/page"}}],"statusCode":400}}},"exampleType":"generated"}},"exampleType":"generated"},"4275f2e7-88a8-4172-abaa-6e640e44c9f3":{"description":"The bearer token is missing, invalid, or expired.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"HTTP status reason phrase.","example":"Bad Request","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"errors":{"type":"array","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string","description":"Machine-readable error code. New codes may be added; treat unknown codes by `statusCode`.","enum":["backgroundCheckIntegrationNotConfigured","badRequest","conflict","insufficientScope","internalError","invalidElement","invalidFormat","invalidKey","invalidScheduleStrategy","invalidState","invalidType","invalidUnion","invalidValue","linkRequiredBackground","notFound","notMultipleOf","required","scheduleClinicExcludedByFeeCap","scheduleConfiguredClinicUnavailable","tooBig","tooManyRequests","tooSmall","unauthenticated","unrecognizedKeys"],"example":"tooSmall","isRequired":true,"uniqueKey":"errors.items.[INDEX].code.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Machine-readable error code. New codes may be added; treat unknown codes by `statusCode`.","example":"tooSmall","isRequired":true,"uniqueKey":"errors.items.[INDEX].code.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"errors.items.[INDEX].code","typeLabel":"enum\u003cstring> | string"},"detail":{"type":"string","description":"Human-readable explanation.","example":"Too small: expected number to be >=1","isRequired":true,"uniqueKey":"errors.items.[INDEX].detail","typeLabel":"string"},"meta":{"description":"Additional machine-readable context.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{"oneOf":[{}],"uniqueKey":"errors.items.[INDEX].meta.additionalProperties","typeLabel":"any"},"uniqueKey":"errors.items.[INDEX].meta","typeLabel":"object"},"source":{"description":"Present only when a request field is at fault.","type":"object","properties":{"pointer":{"type":"string","description":"JSON pointer to the request field at fault.","example":"/page","isRequired":true,"uniqueKey":"errors.items.[INDEX].source.pointer","typeLabel":"string"}},"required":["pointer"],"uniqueKey":"errors.items.[INDEX].source","typeLabel":"object"}},"required":["code","detail"],"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"description":"One entry per problem found.","isRequired":true,"uniqueKey":"errors","typeLabel":"object[]"},"statusCode":{"type":"integer","description":"HTTP status code.","example":400,"isRequired":true,"uniqueKey":"statusCode","typeLabel":"integer"}},"required":["error","errors","statusCode"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"Bad Request","errors":[{"code":"tooSmall","detail":"Too small: expected number to be >=1","meta":{},"source":{"pointer":"/page"}}],"statusCode":400}}},"exampleType":"generated"}},"exampleType":"generated"},"82753c1d-6124-4d2f-b063-672188b0d9da":{"description":"The API token lacks the required scope.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"HTTP status reason phrase.","example":"Bad Request","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"errors":{"type":"array","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string","description":"Machine-readable error code. New codes may be added; treat unknown codes by `statusCode`.","enum":["backgroundCheckIntegrationNotConfigured","badRequest","conflict","insufficientScope","internalError","invalidElement","invalidFormat","invalidKey","invalidScheduleStrategy","invalidState","invalidType","invalidUnion","invalidValue","linkRequiredBackground","notFound","notMultipleOf","required","scheduleClinicExcludedByFeeCap","scheduleConfiguredClinicUnavailable","tooBig","tooManyRequests","tooSmall","unauthenticated","unrecognizedKeys"],"example":"tooSmall","isRequired":true,"uniqueKey":"errors.items.[INDEX].code.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Machine-readable error code. New codes may be added; treat unknown codes by `statusCode`.","example":"tooSmall","isRequired":true,"uniqueKey":"errors.items.[INDEX].code.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"errors.items.[INDEX].code","typeLabel":"enum\u003cstring> | string"},"detail":{"type":"string","description":"Human-readable explanation.","example":"Too small: expected number to be >=1","isRequired":true,"uniqueKey":"errors.items.[INDEX].detail","typeLabel":"string"},"meta":{"description":"Additional machine-readable context.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{"oneOf":[{}],"uniqueKey":"errors.items.[INDEX].meta.additionalProperties","typeLabel":"any"},"uniqueKey":"errors.items.[INDEX].meta","typeLabel":"object"},"source":{"description":"Present only when a request field is at fault.","type":"object","properties":{"pointer":{"type":"string","description":"JSON pointer to the request field at fault.","example":"/page","isRequired":true,"uniqueKey":"errors.items.[INDEX].source.pointer","typeLabel":"string"}},"required":["pointer"],"uniqueKey":"errors.items.[INDEX].source","typeLabel":"object"}},"required":["code","detail"],"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"description":"One entry per problem found.","isRequired":true,"uniqueKey":"errors","typeLabel":"object[]"},"statusCode":{"type":"integer","description":"HTTP status code.","example":400,"isRequired":true,"uniqueKey":"statusCode","typeLabel":"integer"}},"required":["error","errors","statusCode"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"Bad Request","errors":[{"code":"tooSmall","detail":"Too small: expected number to be >=1","meta":{},"source":{"pointer":"/page"}}],"statusCode":400}}},"exampleType":"generated"}},"exampleType":"generated"},"e852fc30-8811-4de8-a9ab-8b940552bde9":{"description":"The resource does not exist or is outside the API token’s access.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"HTTP status reason phrase.","example":"Bad Request","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"errors":{"type":"array","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string","description":"Machine-readable error code. New codes may be added; treat unknown codes by `statusCode`.","enum":["backgroundCheckIntegrationNotConfigured","badRequest","conflict","insufficientScope","internalError","invalidElement","invalidFormat","invalidKey","invalidScheduleStrategy","invalidState","invalidType","invalidUnion","invalidValue","linkRequiredBackground","notFound","notMultipleOf","required","scheduleClinicExcludedByFeeCap","scheduleConfiguredClinicUnavailable","tooBig","tooManyRequests","tooSmall","unauthenticated","unrecognizedKeys"],"example":"tooSmall","isRequired":true,"uniqueKey":"errors.items.[INDEX].code.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Machine-readable error code. New codes may be added; treat unknown codes by `statusCode`.","example":"tooSmall","isRequired":true,"uniqueKey":"errors.items.[INDEX].code.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"errors.items.[INDEX].code","typeLabel":"enum\u003cstring> | string"},"detail":{"type":"string","description":"Human-readable explanation.","example":"Too small: expected number to be >=1","isRequired":true,"uniqueKey":"errors.items.[INDEX].detail","typeLabel":"string"},"meta":{"description":"Additional machine-readable context.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{"oneOf":[{}],"uniqueKey":"errors.items.[INDEX].meta.additionalProperties","typeLabel":"any"},"uniqueKey":"errors.items.[INDEX].meta","typeLabel":"object"},"source":{"description":"Present only when a request field is at fault.","type":"object","properties":{"pointer":{"type":"string","description":"JSON pointer to the request field at fault.","example":"/page","isRequired":true,"uniqueKey":"errors.items.[INDEX].source.pointer","typeLabel":"string"}},"required":["pointer"],"uniqueKey":"errors.items.[INDEX].source","typeLabel":"object"}},"required":["code","detail"],"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"description":"One entry per problem found.","isRequired":true,"uniqueKey":"errors","typeLabel":"object[]"},"statusCode":{"type":"integer","description":"HTTP status code.","example":400,"isRequired":true,"uniqueKey":"statusCode","typeLabel":"integer"}},"required":["error","errors","statusCode"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"Bad Request","errors":[{"code":"tooSmall","detail":"Too small: expected number to be >=1","meta":{},"source":{"pointer":"/page"}}],"statusCode":400}}},"exampleType":"generated"}},"exampleType":"generated"},"0cc9d07b-c18c-4e1d-be76-586d35ac7345":{"description":"The request conflicts with the resource’s current state or with another request.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"HTTP status reason phrase.","example":"Bad Request","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"errors":{"type":"array","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string","description":"Machine-readable error code. New codes may be added; treat unknown codes by `statusCode`.","enum":["backgroundCheckIntegrationNotConfigured","badRequest","conflict","insufficientScope","internalError","invalidElement","invalidFormat","invalidKey","invalidScheduleStrategy","invalidState","invalidType","invalidUnion","invalidValue","linkRequiredBackground","notFound","notMultipleOf","required","scheduleClinicExcludedByFeeCap","scheduleConfiguredClinicUnavailable","tooBig","tooManyRequests","tooSmall","unauthenticated","unrecognizedKeys"],"example":"tooSmall","isRequired":true,"uniqueKey":"errors.items.[INDEX].code.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Machine-readable error code. New codes may be added; treat unknown codes by `statusCode`.","example":"tooSmall","isRequired":true,"uniqueKey":"errors.items.[INDEX].code.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"errors.items.[INDEX].code","typeLabel":"enum\u003cstring> | string"},"detail":{"type":"string","description":"Human-readable explanation.","example":"Too small: expected number to be >=1","isRequired":true,"uniqueKey":"errors.items.[INDEX].detail","typeLabel":"string"},"meta":{"description":"Additional machine-readable context.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{"oneOf":[{}],"uniqueKey":"errors.items.[INDEX].meta.additionalProperties","typeLabel":"any"},"uniqueKey":"errors.items.[INDEX].meta","typeLabel":"object"},"source":{"description":"Present only when a request field is at fault.","type":"object","properties":{"pointer":{"type":"string","description":"JSON pointer to the request field at fault.","example":"/page","isRequired":true,"uniqueKey":"errors.items.[INDEX].source.pointer","typeLabel":"string"}},"required":["pointer"],"uniqueKey":"errors.items.[INDEX].source","typeLabel":"object"}},"required":["code","detail"],"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"description":"One entry per problem found.","isRequired":true,"uniqueKey":"errors","typeLabel":"object[]"},"statusCode":{"type":"integer","description":"HTTP status code.","example":400,"isRequired":true,"uniqueKey":"statusCode","typeLabel":"integer"}},"required":["error","errors","statusCode"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"Bad Request","errors":[{"code":"tooSmall","detail":"Too small: expected number to be >=1","meta":{},"source":{"pointer":"/page"}}],"statusCode":400}}},"exampleType":"generated"}},"exampleType":"generated"},"5840ccc0-87f1-4434-99f8-89b042615032":{"description":"The operation is not allowed in the resource’s current state.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"HTTP status reason phrase.","example":"Bad Request","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"errors":{"type":"array","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string","description":"Machine-readable error code. New codes may be added; treat unknown codes by `statusCode`.","enum":["backgroundCheckIntegrationNotConfigured","badRequest","conflict","insufficientScope","internalError","invalidElement","invalidFormat","invalidKey","invalidScheduleStrategy","invalidState","invalidType","invalidUnion","invalidValue","linkRequiredBackground","notFound","notMultipleOf","required","scheduleClinicExcludedByFeeCap","scheduleConfiguredClinicUnavailable","tooBig","tooManyRequests","tooSmall","unauthenticated","unrecognizedKeys"],"example":"tooSmall","isRequired":true,"uniqueKey":"errors.items.[INDEX].code.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Machine-readable error code. New codes may be added; treat unknown codes by `statusCode`.","example":"tooSmall","isRequired":true,"uniqueKey":"errors.items.[INDEX].code.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"errors.items.[INDEX].code","typeLabel":"enum\u003cstring> | string"},"detail":{"type":"string","description":"Human-readable explanation.","example":"Too small: expected number to be >=1","isRequired":true,"uniqueKey":"errors.items.[INDEX].detail","typeLabel":"string"},"meta":{"description":"Additional machine-readable context.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{"oneOf":[{}],"uniqueKey":"errors.items.[INDEX].meta.additionalProperties","typeLabel":"any"},"uniqueKey":"errors.items.[INDEX].meta","typeLabel":"object"},"source":{"description":"Present only when a request field is at fault.","type":"object","properties":{"pointer":{"type":"string","description":"JSON pointer to the request field at fault.","example":"/page","isRequired":true,"uniqueKey":"errors.items.[INDEX].source.pointer","typeLabel":"string"}},"required":["pointer"],"uniqueKey":"errors.items.[INDEX].source","typeLabel":"object"}},"required":["code","detail"],"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"description":"One entry per problem found.","isRequired":true,"uniqueKey":"errors","typeLabel":"object[]"},"statusCode":{"type":"integer","description":"HTTP status code.","example":400,"isRequired":true,"uniqueKey":"statusCode","typeLabel":"integer"}},"required":["error","errors","statusCode"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"Bad Request","errors":[{"code":"tooSmall","detail":"Too small: expected number to be >=1","meta":{},"source":{"pointer":"/page"}}],"statusCode":400}}},"exampleType":"generated"}},"exampleType":"generated"},"e20dccc0-b1d2-4326-8fff-c084a44a7794":{"description":"Unexpected error.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"HTTP status reason phrase.","example":"Bad Request","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"errors":{"type":"array","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string","description":"Machine-readable error code. New codes may be added; treat unknown codes by `statusCode`.","enum":["backgroundCheckIntegrationNotConfigured","badRequest","conflict","insufficientScope","internalError","invalidElement","invalidFormat","invalidKey","invalidScheduleStrategy","invalidState","invalidType","invalidUnion","invalidValue","linkRequiredBackground","notFound","notMultipleOf","required","scheduleClinicExcludedByFeeCap","scheduleConfiguredClinicUnavailable","tooBig","tooManyRequests","tooSmall","unauthenticated","unrecognizedKeys"],"example":"tooSmall","isRequired":true,"uniqueKey":"errors.items.[INDEX].code.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Machine-readable error code. New codes may be added; treat unknown codes by `statusCode`.","example":"tooSmall","isRequired":true,"uniqueKey":"errors.items.[INDEX].code.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"errors.items.[INDEX].code","typeLabel":"enum\u003cstring> | string"},"detail":{"type":"string","description":"Human-readable explanation.","example":"Too small: expected number to be >=1","isRequired":true,"uniqueKey":"errors.items.[INDEX].detail","typeLabel":"string"},"meta":{"description":"Additional machine-readable context.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{"oneOf":[{}],"uniqueKey":"errors.items.[INDEX].meta.additionalProperties","typeLabel":"any"},"uniqueKey":"errors.items.[INDEX].meta","typeLabel":"object"},"source":{"description":"Present only when a request field is at fault.","type":"object","properties":{"pointer":{"type":"string","description":"JSON pointer to the request field at fault.","example":"/page","isRequired":true,"uniqueKey":"errors.items.[INDEX].source.pointer","typeLabel":"string"}},"required":["pointer"],"uniqueKey":"errors.items.[INDEX].source","typeLabel":"object"}},"required":["code","detail"],"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"description":"One entry per problem found.","isRequired":true,"uniqueKey":"errors","typeLabel":"object[]"},"statusCode":{"type":"integer","description":"HTTP status code.","example":400,"isRequired":true,"uniqueKey":"statusCode","typeLabel":"integer"}},"required":["error","errors","statusCode"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"Bad Request","errors":[{"code":"tooSmall","detail":"Too small: expected number to be >=1","meta":{},"source":{"pointer":"/page"}}],"statusCode":400}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"95f6e16e-7e4f-4f22-8724-fbd62281397d":{"bearer":{"description":"Origin One API token. Pass it in the Authorization header: `Authorization: Bearer \u003ctoken>`.","scheme":"bearer","type":"http","scopes":[],"schemeName":"bearer"}}},"servers":{"2f5acdaa-e8e6-4dd5-879d-bb7e67c8f7aa":{"url":"https://api.stage.origin.one","description":"Staging"},"1c5d71e5-631c-4aaa-8550-95b739fc7a5a":{"url":"https://api.origin.one","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"description":"Origin One API token. Pass it in the Authorization header: `Authorization: Bearer \u003ctoken>`.","scheme":"bearer","type":"http","scopes":[],"schemeName":"bearer"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Origin One API token. Pass it in the Authorization header: `Authorization: Bearer \u003ctoken>`.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearer","name":"Authorization"}],"title":"bearer"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"originone-30fd7a89","siteName":"Origin One API","title":"Update an order - Origin One API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-11T18:25:36.492Z","originalFileLocation":"api-reference/orders/update.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Changes an order placed at a location under a company linked to the API token and returns it. The body is a JSON Merge Patch (RFC 7396): a member left out keeps its value, null clears it, and an array replaces the whole list, except participant.identifiers, which is merged by type. settings says why the order changes and is required; a body with only settings changes nothing and returns the order. Every change is checked before any is saved. The participant’s identifiers are included only for tokens that also carry order.participant.read. Returns 400 at the member at fault, 422 when the order’s status or history no longer allows the change or no collection site can take it, 404 for any order the token cannot see, and 409 when If-Match names an older version. Requires the order.update scope.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Origin One API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/originone-30fd7a89/dUt0Cf0gWt-Mz_Hi/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/originone-30fd7a89/dUt0Cf0gWt-Mz_Hi/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/originone-30fd7a89/dUt0Cf0gWt-Mz_Hi/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/originone-30fd7a89/dUt0Cf0gWt-Mz_Hi/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/originone-30fd7a89/dUt0Cf0gWt-Mz_Hi/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/originone-30fd7a89/dUt0Cf0gWt-Mz_Hi/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/originone-30fd7a89/dUt0Cf0gWt-Mz_Hi/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/originone-30fd7a89/dUt0Cf0gWt-Mz_Hi/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/originone-30fd7a89/dUt0Cf0gWt-Mz_Hi/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Update an order - Origin One API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Changes an order placed at a location under a company linked to the API token and returns it. The body is a JSON Merge Patch (RFC 7396): a member left out keeps its value, null clears it, and an array replaces the whole list, except participant.identifiers, which is merged by type. settings says why the order changes and is required; a body with only settings changes nothing and returns the order. Every change is checked before any is saved. The participant’s identifiers are included only for tokens that also carry order.participant.read. Returns 400 at the member at fault, 422 when the order’s status or history no longer allows the change or no collection site can take it, 404 for any order the token cannot see, and 409 when If-Match names an older version. Requires the order.update scope.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Origin One API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://api.docs.originone.ai/api-reference/orders/update\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://originone-30fd7a89.mintlify.site/_mintlify/api/og/v2?division=Orders\u0026amp;title=Update+an+order\u0026amp;description=Changes+an+order+placed+at+a+location+under+a+company+linked+to+the+API+token+and+returns+it.+The+body+is+a+JSON+Merge+Patch+%28RFC+7396%29%3A+a+member+left+out+keeps\u0026amp;theme=8755d2fc4841691207fb9111\u0026amp;signature=1f3d9f128e6079cbb9733ddcf7ac1bfd9bf1b4eadb51b383a20b2bfcb93217df\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Update an order - Origin One API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Changes an order placed at a location under a company linked to the API token and returns it. The body is a JSON Merge Patch (RFC 7396): a member left out keeps its value, null clears it, and an array replaces the whole list, except participant.identifiers, which is merged by type. settings says why the order changes and is required; a body with only settings changes nothing and returns the order. Every change is checked before any is saved. The participant’s identifiers are included only for tokens that also carry order.participant.read. Returns 400 at the member at fault, 422 when the order’s status or history no longer allows the change or no collection site can take it, 404 for any order the token cannot see, and 409 when If-Match names an older version. Requires the order.update scope.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://originone-30fd7a89.mintlify.site/_mintlify/api/og/v2?division=Orders\u0026amp;title=Update+an+order\u0026amp;description=Changes+an+order+placed+at+a+location+under+a+company+linked+to+the+API+token+and+returns+it.+The+body+is+a+JSON+Merge+Patch+%28RFC+7396%29%3A+a+member+left+out+keeps\u0026amp;theme=8755d2fc4841691207fb9111\u0026amp;signature=1f3d9f128e6079cbb9733ddcf7ac1bfd9bf1b4eadb51b383a20b2bfcb93217df\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/originone-30fd7a89/dUt0Cf0gWt-Mz_Hi/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Origin One API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#163862\">\u003clink data-mint-head rel=\"canonical\" href=\"https://api.docs.originone.ai/api-reference/orders/update\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/orders/update.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://api.docs.originone.ai/#organization\",\"name\":\"Origin One API\",\"url\":\"https://api.docs.originone.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/originone-30fd7a89/G_6EiTV7ltEsdig3/logo/light.svg?fit=max\u0026auto=format\u0026n=G_6EiTV7ltEsdig3\u0026q=85\u0026s=c9d12df15e2e3322ba9464137f6103cc\"}},{\"@type\":\"WebSite\",\"@id\":\"https://api.docs.originone.ai#website\",\"name\":\"Origin One API\",\"url\":\"https://api.docs.originone.ai\",\"publisher\":{\"@id\":\"https://api.docs.originone.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://api.docs.originone.ai/api-reference/orders/update#webpage\",\"url\":\"https://api.docs.originone.ai/api-reference/orders/update\",\"name\":\"Update an order\",\"description\":\"Changes an order placed at a location under a company linked to the API token and returns it. The body is a JSON Merge Patch (RFC 7396): a member left out keeps its value, null clears it, and an array replaces the whole list, except participant.identifiers, which is merged by type. settings says why the order changes and is required; a body with only settings changes nothing and returns the order. Every change is checked before any is saved. The participant’s identifiers are included only for tokens that also carry order.participant.read. Returns 400 at the member at fault, 422 when the order’s status or history no longer allows the change or no collection site can take it, 404 for any order the token cannot see, and 409 when If-Match names an older version. Requires the order.update scope.\",\"dateModified\":\"2026-11-11T18:25:36.492Z\",\"isPartOf\":{\"@id\":\"https://api.docs.originone.ai#website\"},\"breadcrumb\":{\"@id\":\"https://api.docs.originone.ai/api-reference/orders/update#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://api.docs.originone.ai/api-reference/orders/update#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Orders\",\"item\":\"https://api.docs.originone.ai/api-reference/orders/create\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Update an order\",\"item\":\"https://api.docs.originone.ai/api-reference/orders/update\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://api.docs.originone.ai/api-reference/orders/update#apireference\",\"headline\":\"Update an order\",\"name\":\"Update an order\",\"description\":\"Changes an order placed at a location under a company linked to the API token and returns it. The body is a JSON Merge Patch (RFC 7396): a member left out keeps its value, null clears it, and an array replaces the whole list, except participant.identifiers, which is merged by type. settings says why the order changes and is required; a body with only settings changes nothing and returns the order. Every change is checked before any is saved. The participant’s identifiers are included only for tokens that also carry order.participant.read. Returns 400 at the member at fault, 422 when the order’s status or history no longer allows the change or no collection site can take it, 404 for any order the token cannot see, and 409 when If-Match names an older version. Requires the order.update scope.\",\"url\":\"https://api.docs.originone.ai/api-reference/orders/update\",\"mainEntityOfPage\":{\"@id\":\"https://api.docs.originone.ai/api-reference/orders/update#webpage\"},\"dateModified\":\"2026-11-11T18:25:36.492Z\",\"publisher\":{\"@id\":\"https://api.docs.originone.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://api.docs.originone.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Origin One API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Origin One API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/orders/update.md","siteName":"Origin One API","nav":{"global":null,"tabs":[{"tab":"Documentation","icon":"book-open","pages":[{"title":"Documentation","href":""}]},{"tab":"API reference","icon":"square-terminal","groups":[{"group":"Orders","pages":[{"title":"Create an order","openapi":"api-reference/openapi.json POST /api/v2/orders","href":"/api-reference/orders/create"},{"title":"Get an order","openapi":"api-reference/openapi.json GET /api/v2/orders/{id}","href":"/api-reference/orders/get"},{"title":"List orders","openapi":"api-reference/openapi.json GET /api/v2/orders","description":"Returns the orders placed at locations under the companies the API token can reach, newest first. Filterable by company, location, status, order code, specimen, and creation time. There is no implicit date window: every visible order is listed unless `createdFrom`/`createdTo` narrow it. An order with no location, or at a location that belongs to no company, is never listed. The creation-time filters find new orders, not changed ones: to follow status changes, subscribe with the `callback` when creating the order. The participant’s `identifiers` are included only for tokens that also carry `order.participant.read`. Requires the `order.list` scope.","href":"/api-reference/orders/list"},{"title":"Update an order","openapi":"api-reference/openapi.json PATCH /api/v2/orders/{id}","href":"/api-reference/orders/update"},{"title":"Cancel an order","openapi":"api-reference/openapi.json PUT /api/v2/orders/{id}/cancellation","description":"Cancels an order placed at a location under a company the API token can reach and returns it. Every service except background checks is cancelled; the order itself is kept. Cancelling an order that is already cancelled changes nothing and returns it with 200. Returns 422 for an order in another final status or with only background-check services, and 404 when the order or tenant does not exist or is out of reach. The participant’s `identifiers` are never included; get the order for them. Requires the `order.cancel` scope.","href":"/api-reference/orders/cancel"},{"title":"List an order's clinics","openapi":"api-reference/openapi.json GET /api/v2/orders/{id}/clinics","href":"/api-reference/orders/clinics"}]},{"group":"Agencies","pages":[{"title":"List agencies","openapi":"api-reference/openapi.json GET /api/v2/agencies","href":"/api-reference/agencies/list"},{"title":"Get an agency","openapi":"api-reference/openapi.json GET /api/v2/agencies/{id}","href":"/api-reference/agencies/get"}]},{"group":"Job categories","pages":[{"title":"Get a job category","openapi":"api-reference/openapi.json GET /api/v2/agencies/{agencyId}/jobCategories/{id}","href":"/api-reference/job-categories/get"}]},{"group":"Clinics","pages":[{"title":"List clinics","openapi":"api-reference/openapi.json GET /api/v2/clinics","href":"/api-reference/clinics/list"},{"title":"Get a clinic","openapi":"api-reference/openapi.json GET /api/v2/clinics/{id}","href":"/api-reference/clinics/get"},{"title":"Search clinics","openapi":"api-reference/openapi.json POST /api/v2/clinics/search","href":"/api-reference/clinics/search"}]},{"group":"Companies","pages":[{"title":"List companies","openapi":"api-reference/openapi.json GET /api/v2/companies","href":"/api-reference/companies/list"},{"title":"Get a company","openapi":"api-reference/openapi.json GET /api/v2/companies/{id}","href":"/api-reference/companies/get"}]},{"group":"Locations","pages":[{"title":"List locations","openapi":"api-reference/openapi.json GET /api/v2/locations","href":"/api-reference/locations/list"},{"title":"Get a location","openapi":"api-reference/openapi.json GET /api/v2/locations/{id}","href":"/api-reference/locations/get"}]},{"group":"Packages","pages":[{"title":"List packages","openapi":"api-reference/openapi.json GET /api/v2/packages","href":"/api-reference/packages/list"},{"title":"Get a package","openapi":"api-reference/openapi.json GET /api/v2/packages/{id}","href":"/api-reference/packages/get"}]},{"group":"Services","pages":[{"title":"List services","openapi":"api-reference/openapi.json GET /api/v2/services","href":"/api-reference/services/list"},{"title":"Get a service","openapi":"api-reference/openapi.json GET /api/v2/services/{id}","href":"/api-reference/services/get"}]},{"group":"Tenants","pages":[{"title":"List tenants","openapi":"api-reference/openapi.json GET /api/v2/tenants","href":"/api-reference/tenants/list"},{"title":"Get a tenant","openapi":"api-reference/openapi.json GET /api/v2/tenants/{id}","href":"/api-reference/tenants/get"}]},{"group":"Webhooks","pages":[{"title":"Order updated","openapi":"api-reference/openapi.json webhook orderUpdated","href":"/api-reference/webhooks/order-updated"}]}]}]},"basePath":"","title":"Update an order - Origin One API","buildId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","deploymentId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CybtLBIt.js","utils-BMLj2fvV.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-B6In562Y.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-Dr8Mfhp9.js","snippetPresets-2rmQvMVl.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-WMqJYdZj.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CJ-MlPHu.js","shallow-dY3TMRCk.js","getApiPlaygroundDisplay-v-1B2bKm.js","CodeSnippet-BDhiTB7U.js","CodeSnippets-D9hnzQcS.js","Page-C4GwDT3_.js","getPastedJson-Th2V45jI.js","icon-BQXch1W9.js","MethodPill-BCqUneP3.js","DuplicateIcon-Q_-bhurZ.js","createIcon-DUjLHRqp.js","DynamicMarkdown-B-f2cqXQ.js","SectionHeading-Da5NsV4v.js","axios-vUo_bRtp.js","Markdown-D13FWkIM.js","clsx-D3Isdib3.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-C-XZBk9h.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink--qIqmmVG.js"]}