Skip to content
Build your own business

Request a company agreement

POST/api/partner/v1/companies/{company_id}/agreements

Call this endpoint only when GET /me returns permissions.request_agreements as true. It requires an owner whose workspace enables company agreement requests. The company must be registered and have an available deal with a site contact. Supply the address and kit count. A signer name and email must be present in this request or saved at registration. If a referral match needs attention, the response identifies attribution_review. Poll the agreement history for signing progress.

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

Company agreement request.

application/json

  • kits integer · min 1, max 50 · required
  • address string · max length 300 · required
  • signer object
    Fields for signer
    • name string · max length 200
    • email string · email, max length 254
    • title string · max length 120
  • signer_name string · max length 200

    Overrides signer.name and the name saved during registration.

  • signer_email string · email, max length 254

    Overrides signer.email and the address saved during registration.

  • signer_title string · max length 120
  • hours_month variant
    Fields for hours_month
    Format 1

    integer · min 1, max 100000

    Format 2

    null

  • notes string · max length 2000
  • rate variant
    Fields for rate
    Format 1

    number · Optional company-specific request, subject to the account's agreement.

    Format 2

    null

  • phones colby | own

    Request kit phones or straps for supported company-owned phones.

request

{
  "kits": 3,
  "address": "100 Example Way, Example City, AZ 85001",
  "phones": "colby",
  "signer": {
    "name": "Example Signer",
    "email": "signer@example.invalid",
    "title": "Owner"
  }
}

Responses

200 · 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
202 · Agreement request accepted or attribution review required. A replay may return the saved request receipt.

Response headers include X-Request-Id.

application/json

Format 1
Format 1
  • id variant · required
    Fields for id
    Format 1

    string · max length 160

    Format 2

    null

  • status string · required
  • route variant · required
    Fields for route
    Format 1

    string

    Format 2

    null

Format 2
  • status attribution_review · required
  • required_action string · required
Format 2
  • request_id string · required
  • state processing | complete | reconcile · required
  • http_status integer or null · required
  • result object or null · required

requested

{
  "id": "agreement_demo_01",
  "status": "sent",
  "route": null
}

review

{
  "status": "attribution_review",
  "required_action": "Resolve the referral match before sending an agreement."
}
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 caller is a team member or agreement requests are disabled for this workspace.

application/json

  • error string · required

teamMember

{
  "error": "owner_only"
}

workspaceDisabled

{
  "error": "contracts_disabled"
}
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