API ReferenceapiaffiliatesPOST /v1/admin/payouts/draft

POST /v1/admin/payouts/draft

Service: affiliates · operationId: (none)

Draft the weekly payout batch for finance review

Required scopes

(no scope declared — review service config)

Responses

200 Draft created

{
  "type": "object",
  "properties": {
    "drafted": {
      "type": "integer"
    },
    "total_cents": {
      "type": "string"
    }
  },
  "required": [
    "drafted",
    "total_cents"
  ]
}

500 Internal error

{
  "type": "object",
  "properties": {
    "error": {
      "type": "string"
    },
    "message": {
      "type": "string"
    }
  },
  "required": [
    "error",
    "message"
  ]
}

Example

curl -X POST https://affiliates.platform.loop.health/v1/admin/payouts/draft \
  -H "Authorization: Bearer $ACCESS_TOKEN"