Skip to content
Build your own business

Request company closure

POST/api/partner/v1/companies/{company_id}/closure-requests

Owner access is required. A closure request stops new provisioning, invitations, assignments and kit orders. Closure processing checks equipment returns, code retirement, buyer review and settlement. Poll the closure request or onboarding summary for the final state.

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

Reason for closing.

application/json

  • reason string · max length 1000 · required

request

{
  "reason": "The company finished the recording program."
}

Responses

200 · Matching request or completed closure. A replay may return the saved request receipt.

Response headers include X-Request-Id.

application/json

Format 1
  • id string · max length 160 · required
  • state requested | closed · required
  • created_at string · date-time · required
Format 2
  • request_id string · required
  • state processing | complete | reconcile · required
  • http_status integer or null · required
  • result object or null · required

closed

{
  "id": "closure_demo_01",
  "state": "closed",
  "created_at": "2027-03-02T16:30:00Z"
}
201 · Closure requested.

Response headers include X-Request-Id.

application/json

  • id string · max length 160 · required
  • state requested | closed · required
  • created_at string · date-time · required

requested

{
  "id": "closure_demo_01",
  "state": "requested",
  "created_at": "2027-03-02T16:30:00Z"
}
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 · Only the partner account owner can request closure.

application/json

  • error string · required

refused

{
  "error": "The account owner requests closure."
}
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