Skip to content
Build your own business

Request kits or a replacement

POST/api/partner/v1/companies/{company_id}/kit-orders

Requires 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_id path · required · string · max length 160

    The partner_company_id from registration, or the operating_company_id of a signed, credited company.

  • Idempotency-Key header · required · string

    One 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
  • order object · required
    Fields for order
    • id string · max length 160 · required
    • status waiting_contract | exception | asked | approved | declined | canceled · required
    • item kit | straps · required
    • checks array of object · required
      Fields for checks
      • rule order_form | recorders | idle | limit | partner_cap | replacement · required
      • met variant · required
        Fields for met
        Format 1

        boolean

        Format 2

        null

      • detail string · required
    • reasons array of string · required
Format 2
  • request_id string · required
  • state processing | complete | reconcile · required
  • http_status integer or null · required
  • result object 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_id string · required
  • state processing | complete | reconcile · required
  • http_status integer or null · required
  • result object or null · required
400 · Invalid input. Correct the request and use a new key for changed input.

application/json

  • error string · required
  • detail string
  • request_id string
401 · Missing, expired, revoked or wrong-resource access token.

application/json

  • error string · required
  • detail string
  • request_id string
403 · The signed account or role lacks access to this operation.

application/json

  • error string · required
  • detail string
  • request_id string
404 · The resource is unknown or outside this account.

application/json

  • error string · required
  • detail string
  • request_id string
409 · Resource state or idempotency conflict.

application/json

  • error string · required
  • detail string
  • request_id string
429 · Rate limit reached. Back off and retry.

application/json

  • error string · required
  • detail string
  • request_id string
503 · Service or provider unavailable. Check the operation receipt before retrying a write.

application/json

  • error string · required
  • detail string
  • request_id string

Download the full OpenAPI specification