Request kits or a replacement
/api/partner/v1/companies/{company_id}/kit-ordersRequires kit ordering to be enabled for the account. New orders need a shipping address on file or ship_to in the request. A supplied address is saved for the company. For a replacement, report the affected kit first and pass the report_id. item identifies phone kits or straps according to the company's program. An order decision and a shipment are separate stages.
Authentication Send your OAuth access token as a Bearer token with the partner.lifecycle scope.
Parameters
company_idpath · required · string · max length 160The partner_company_id from registration, or the operating_company_id of a signed, credited company.
Idempotency-Keyheader · required · stringOne key per intended change within this OAuth connection. Reuse only with the original method, path, query and JSON body.
Request body
Order quantity, purpose and destination.
application/json
Format 1
variant
newOrder
{
"kits": 2,
"kind": "new",
"ship_to": {
"line1": "100 Example Way",
"city": "Example City",
"state": "AZ",
"postal_code": "85001"
}
}replacement
{
"kits": 1,
"kind": "replacement",
"report_id": "report_demo_01"
}Responses
200 · Order and eligibility checks. A replay may return the saved request receipt.
Response headers include X-Request-Id.
application/json
Format 1
orderobject · requiredFields for order
idstring · max length 160 · requiredstatuswaiting_contract | exception | asked | approved | declined | canceled · requireditemkit | straps · requiredchecksarray of object · requiredFields for checks
ruleorder_form | recorders | idle | limit | partner_cap | replacement · requiredmetvariant · requiredFields for met
Format 1
boolean
Format 2
null
detailstring · required
reasonsarray of string · required
Format 2
request_idstring · requiredstateprocessing | complete | reconcile · requiredhttp_statusinteger or null · requiredresultobject or null · required
approved
{
"order": {
"id": "order_demo_01",
"status": "approved",
"item": "kit",
"checks": [
{
"rule": "order_form",
"met": true,
"detail": "Order form signed."
}
],
"reasons": []
}
}202 · Operation receipt on retry. Inspect http_status and fetch the current resource.
Response headers include X-Request-Id.
application/json
request_idstring · requiredstateprocessing | complete | reconcile · requiredhttp_statusinteger or null · requiredresultobject or null · required
400 · Invalid input. Correct the request and use a new key for changed input.
application/json
errorstring · requireddetailstringrequest_idstring
401 · Missing, expired, revoked or wrong-resource access token.
application/json
errorstring · requireddetailstringrequest_idstring
403 · The signed account or role lacks access to this operation.
application/json
errorstring · requireddetailstringrequest_idstring
404 · The resource is unknown or outside this account.
application/json
errorstring · requireddetailstringrequest_idstring
409 · Resource state or idempotency conflict.
application/json
errorstring · requireddetailstringrequest_idstring
429 · Rate limit reached. Back off and retry.
application/json
errorstring · requireddetailstringrequest_idstring
503 · Service or provider unavailable. Check the operation receipt before retrying a write.
application/json
errorstring · requireddetailstringrequest_idstring
