Skip to content
Build your own business

Register a company

POST/api/partner/v1/companies

Supply a stable external ID unique within your partner account, a legal name, a state, and a site contact with an email or phone. Save the returned partner_company_id for onboarding. An operating_company_id appears once a completed agreement and current credit are verified. Registering a company does not send an agreement.

Authentication Send your OAuth access token as a Bearer token with the partner.lifecycle scope.

Parameters

  • 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

Partner registration and contact details.

application/json

Format 1
Format 1

variant

Format 2

variant

Format 2
Format 1

variant

Format 2

variant

company

{
  "external_id": "service-company-001",
  "legal_name": "Example Field Services",
  "state": "AZ",
  "trade": "Building services",
  "region": "Southwest",
  "site_lead": {
    "name": "Example Site Lead",
    "email": "site-lead@example.invalid"
  },
  "signer": {
    "name": "Example Signer",
    "email": "signer@example.invalid",
    "title": "Owner"
  }
}

Responses

200 · The matching company was previously registered under this external ID. A replay may return the saved request receipt.

Response headers include X-Request-Id.

application/json

Format 1
  • id string · max length 160 · required
  • partner_company_id string · max length 160 · required
  • operating_company_id variant · required
    Fields for operating_company_id
    Format 1

    string · max length 160

    Format 2

    null

  • external_id string · max length 160 · required
  • name string · max length 200 · required
  • trade variant · required
    Fields for trade
    Format 1

    string

    Format 2

    null

  • region variant · required
    Fields for region
    Format 1

    string

    Format 2

    null

  • 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

existing

{
  "id": "company_demo_01",
  "partner_company_id": "company_demo_01",
  "operating_company_id": null,
  "external_id": "service-company-001",
  "name": "Example Field Services",
  "trade": "Building services",
  "region": "Southwest",
  "created_at": "2027-03-02T16:30:00Z"
}
201 · Company registered.

Response headers include X-Request-Id.

application/json

  • id string · max length 160 · required
  • partner_company_id string · max length 160 · required
  • operating_company_id variant · required
    Fields for operating_company_id
    Format 1

    string · max length 160

    Format 2

    null

  • external_id string · max length 160 · required
  • name string · max length 200 · required
  • trade variant · required
    Fields for trade
    Format 1

    string

    Format 2

    null

  • region variant · required
    Fields for region
    Format 1

    string

    Format 2

    null

  • created_at string · date-time · required

registered

{
  "id": "company_demo_01",
  "partner_company_id": "company_demo_01",
  "operating_company_id": null,
  "external_id": "service-company-001",
  "name": "Example Field Services",
  "trade": "Building services",
  "region": "Southwest",
  "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 · 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 · The external ID conflicts or the registration is being reconciled. Query by external_id to check its status.

application/json

  • error string · required

refused

{
  "error": "This external ID belongs to a different registered company."
}
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