Skip to content
Build your own business

Request payout setup for an eligible payee

POST/api/partner/v1/payees/{id}/setup-requests

For a company, send an email to its verified owner inviting them to complete secure setup in the portal. The response tracks submission. Omit recipient details. For the authenticated partner’s own payee ID, the response instead contains its hosted setup URL. The literal me path also opens the partner’s own setup. Available to the authorized partner owner.

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

Parameters

  • id path · required · string

    Supply the company payee_id from payment-status or the authenticated partner’s own payee ID.

  • Idempotency-Key header · required · string · max length 128

    Choose a unique key for this intended action. Retry the same method, path, query and body with the original key. Replays return an operation receipt.

Request body

application/json

  • channel email

Example

{
  "channel": "email"
}

Responses

200 · Hosted setup for the partner’s own payee, an existing company notice, or a completed receipt. An identical replay receives a receipt. Check its http_status and result, then retrieve the resource. A processing or reconcile receipt returns 202.

Response headers include X-Request-Id.

application/json

Format 1
Format 1
  • payee_id string · required
  • url string · uri · required
Format 2
  • id string · required
  • company_id string · required
  • feedback_id string or null · required
  • kind coaching | payee_setup · required
  • status sending | sent | reconcile | failed · required
  • created_at string · date-time · required
  • updated_at string · date-time · required
Format 2
  • request_id string · required
  • state complete | processing | reconcile · required
  • http_status integer or null · required
  • result object or null · required

Example

{
  "payee_id": "partner_demo",
  "url": "https://example.invalid/payee-setup"
}
201 · Company owner setup notice submitted.

Response headers include X-Request-Id.

application/json

  • id string · required
  • company_id string · required
  • feedback_id string or null · required
  • kind coaching | payee_setup · required
  • status sending | sent | reconcile | failed · required
  • created_at string · date-time · required
  • updated_at string · date-time · required

Example

{
  "id": "delivery_payee_demo",
  "company_id": "org_demo",
  "feedback_id": null,
  "kind": "payee_setup",
  "status": "sent",
  "created_at": "2031-04-09T18:07:00Z",
  "updated_at": "2031-04-09T18:07:01Z"
}
202 · Company setup notice is awaiting reconciliation. An identical replay receives a receipt. Check its http_status and result, then retrieve the resource. A processing or reconcile receipt returns 202.

Response headers include X-Request-Id.

application/json

Format 1
  • id string · required
  • company_id string · required
  • feedback_id string or null · required
  • kind coaching | payee_setup · required
  • status sending | sent | reconcile | failed · required
  • created_at string · date-time · required
  • updated_at string · date-time · required
Format 2
  • request_id string · required
  • state complete | processing | reconcile · required
  • http_status integer or null · required
  • result object or null · required

Example

{
  "id": "delivery_payee_demo",
  "company_id": "org_demo",
  "feedback_id": null,
  "kind": "payee_setup",
  "status": "reconcile",
  "created_at": "2031-04-09T18:07:00Z",
  "updated_at": "2031-04-09T18:07:01Z"
}
400 · Invalid input. On writes, check the JSON object and Idempotency-Key.

application/json

  • error string · required
  • detail string
  • message string
  • request_id string
  • id string

Example

{
  "error": "invalid_input"
}
401 · Use a valid access token for this resource and the partner.lifecycle scope.

application/json

  • error string · required
  • detail string
  • message string
  • request_id string
  • id string

Example

{
  "error": "unauthorized"
}
403 · The partner owner needs an active grant.

application/json

  • error string · required
  • detail string
  • message string
  • request_id string
  • id string

Example

{
  "error": "no_access"
}
404 · The requested resource, company or month could not be found within the caller’s scope.

application/json

  • error string · required
  • detail string
  • message string
  • request_id string
  • id string

Example

{
  "error": "not_found"
}
409 · The company is ready or uses manual payments, a recipient is unavailable, a delivery is recent or unresolved, or the request key conflicts.

application/json

  • error string · required
  • detail string
  • message string
  • request_id string
  • id string

Example

{
  "error": "already_set_up"
}
413 · The request body exceeds the permitted size.

application/json

  • error string · required
  • detail string
  • message string
  • request_id string
  • id string

Example

{
  "error": "request_too_large"
}
422 · The requested message cannot be sent.

application/json

  • error string · required
  • detail string
  • message string
  • request_id string
  • id string

Example

{
  "error": "message_not_allowed"
}
429 · The grant has reached its request limit.

application/json

  • error string · required
  • detail string
  • message string
  • request_id string
  • id string

Example

{
  "error": "too_many_requests"
}
503 · Email is temporarily unavailable or the operation requires reconciliation.

application/json

  • error string · required
  • detail string
  • message string
  • request_id string
  • id string

Example

{
  "error": "mail_unavailable"
}

Download the full OpenAPI specification