Skip to content
Build your own business

Open the partner owner’s hosted payout setup

POST/api/partner/v1/payees/me/setup-requests

Use the hosted URL to complete or update the authenticated partner owner’s own payout details. Keep the URL private. Retain it from the original response because a replay returns a receipt. Available to the authorized partner owner.

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

Parameters

  • 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

    Example

    {}

    Responses

    200 · Hosted payout setup for this payee. 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
    • payee_id string · required
    • url string · uri · 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"
    }
    202 · Replay of a processing or uncertain operation. Poll its request receipt.

    Response headers include X-Request-Id.

    application/json

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

    Example

    {
      "request_id": "req_demo",
      "state": "processing",
      "http_status": null,
      "result": null
    }
    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 · This Idempotency-Key belongs to a different request.

    application/json

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

    Example

    {
      "error": "idempotency_key_conflict"
    }
    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"
    }
    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 · Service temporarily unavailable. For writes, retain the original key and inspect the receipt before retrying.

    application/json

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

    Example

    {
      "error": "temporarily_unavailable"
    }

    Download the full OpenAPI specification