Skip to content
Build your own business

Ensure a Minute enrollment exists

PUT/api/partner/v1/companies/{company_id}/minute-enrollment

Signed, credited registrations are queued automatically. Use this call to ensure provisioning for an eligible company. Send an empty request body. Poll GET on this path until ready. A reconciling state requires resolving the provider result before another issuance.

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.

Responses

200 · An active dedicated code is already verified. A replay may return the saved request receipt.

Response headers include X-Request-Id.

application/json

Format 1
  • state awaiting_agreement | queued | issuing | verifying | reconciling | needs_action | ready | retiring | retired · required
  • detail variant · required
    Fields for detail
    Format 1

    string

    Format 2

    null

  • enrollment_id variant · required
    Fields for enrollment_id
    Format 1

    string · max length 160

    Format 2

    null

  • code variant · required
    Fields for code
    Format 1

    string

    Format 2

    null

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

active

{
  "state": "ready",
  "detail": null,
  "enrollment_id": "enrollment_demo_01",
  "code": "EXAMPLE-ONLY"
}
202 · Enrollment processing or reconciliation is pending. A replay may return the saved request receipt.

Response headers include X-Request-Id.

application/json

Format 1
  • state awaiting_agreement | queued | issuing | verifying | reconciling | needs_action | ready | retiring | retired · required
  • detail variant · required
    Fields for detail
    Format 1

    string

    Format 2

    null

  • enrollment_id variant · required
    Fields for enrollment_id
    Format 1

    string · max length 160

    Format 2

    null

  • code variant · required
    Fields for code
    Format 1

    string

    Format 2

    null

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

queued

{
  "state": "queued",
  "detail": null,
  "enrollment_id": null,
  "code": null
}
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 company is ineligible or closing.

application/json

Format 1
  • state awaiting_agreement | queued | issuing | verifying | reconciling | needs_action | ready | retiring | retired · required
  • detail variant · required
    Fields for detail
    Format 1

    string

    Format 2

    null

  • enrollment_id variant · required
    Fields for enrollment_id
    Format 1

    string · max length 160

    Format 2

    null

  • code variant · required
    Fields for code
    Format 1

    string

    Format 2

    null

Format 2
  • error string · required

awaiting

{
  "state": "awaiting_agreement",
  "detail": "A completed agreement and current partner credit are required.",
  "enrollment_id": null,
  "code": null
}

closing

{
  "error": "The company is closing."
}
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