Skip to Content
API ReferenceAffiliates

Mark affiliate payouts paid

Record up to 20 due payouts as paid after you have paid the affiliates.

Pay your affiliates first, outside SellApp. Then record those payouts as paid in one request. No money moves; each affiliate whose payout is marked paid receives an email saying it was paid.

  1. List the due payouts with List affiliate payouts and status=due.
  2. Send their IDs and expected_total_usd_cents, the sum of their amount_usd_cents. If any payout is not due or the total differs, nothing changes and you get 422.
  3. Check each outcome in the response: paid, skipped, or failed.

Sending the same batch again is refused because those payouts are no longer due, so nobody is emailed twice. After a lost response, list the due payouts again and send only those still due. The emails cannot be recalled; to reopen a payout recorded by mistake, use Update affiliate payout status.

POST
/v2/affiliate-payouts/mark-paid

Authorization

headerAuthorizationBearer <API Key>

Provide your SellApp API key as a bearer token.

Header Parameters

X-STORE?string

Store slug. Required for OAuth access tokens. API keys may omit it to use their current store, or the first accessible store when no current store is selected.

Request Body

application/json
  1. body
payout_ids*array<>

The due payouts to record as paid, at most 20, each once. They are marked in this order.

Items1 <= items <= 20
expected_total_usd_cents*integer

The sum of the payouts' amount_usd_cents, in integer USD cents, as you read them. If they add up to anything else, nothing is marked.

Range1 <= value

Response Body

Successful response.

application/json
  1. response
data*array<>
Example Request
curl -X POST 'https://sell.app/api/v2/affiliate-payouts/mark-paid' \  -H 'X-STORE: launch-lab' \  -H 'Content-Type: application/json' \  -d '{  "payout_ids": [    91,    92  ],  "expected_total_usd_cents": 4250}'
{  "data": [    {      "payout_id": 91,      "outcome": "paid",      "message": "Marked as paid; the affiliate is emailed.",      "payout": {        "id": 91,        "affiliate_id": 88,        "affiliate_email": "alex.morgan@example.com",        "amount_usd_cents": 1200,        "status": "paid",        "payout_method": "PAYPAL",        "payout_account": "a***@example.com",        "referrals_count": 1,        "created_at": "2026-07-01T10:00:00.000000Z",        "updated_at": "2026-07-03T09:12:00.000000Z"      }    },    {      "payout_id": 92,      "outcome": "paid",      "message": "Marked as paid; the affiliate is emailed.",      "payout": {        "id": 92,        "affiliate_id": 89,        "affiliate_email": "isabel.torres@example.com",        "amount_usd_cents": 3050,        "status": "paid",        "payout_method": "WISE",        "payout_account": "i***@example.com",        "referrals_count": 2,        "created_at": "2026-07-01T10:05:00.000000Z",        "updated_at": "2026-07-03T09:12:00.000000Z"      }    }  ]}