For the complete documentation index, see llms.txt. This page is also available as Markdown.

Affiliate Payouts

Affiliate payout management

List affiliate-payouts

get

Retrieve a paginated list of affiliate-payouts

Authorizations
AuthorizationstringRequired

Account API key authentication. Pass an API key as a Bearer token in the Authorization header. An account may have multiple named keys; any of them grants full access to all endpoints — equivalent to all OAuth scopes.

Query parameters
pageintegerOptional

Page number

Example: 1
per_pageinteger · max: 100Optional

Items per page (max 100)

Example: 25
sortstringOptional

Sort field (prefix with - for descending)

Example: -created_at
Responses
200

Successful response with paginated list

application/json
get/v2/affiliates/payouts
GET /v2/affiliates/payouts HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": [],
  "pagination": {
    "page": 1,
    "limit": 25,
    "total": 150,
    "pages": 6
  }
}

Create a payout

post

Create a new affiliate payout from unpaid commissions matching the provided filters.

Authorizations
AuthorizationstringRequired

Account API key authentication. Pass an API key as a Bearer token in the Authorization header. An account may have multiple named keys; any of them grants full access to all endpoints — equivalent to all OAuth scopes.

Body
filtersany · nullableOptional

Report filters for selecting commissions

searchstringOptional
Responses
201

Created successfully

application/json
any · nullableOptional
post/v2/affiliates/payouts
POST /v2/affiliates/payouts HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 32

{
  "filters": null,
  "search": "text"
}

No content

Get the current unpaid payout

get

Get an unpaid affiliate payout for the account: one that has been created but not yet marked paid. Takes no payout ID. If several unpaid payouts exist, one of them is returned. The response has the same shape as get_affiliate_payout (commissions grouped by affiliate). Returns not found when the account has no unpaid payout.

Authorizations
AuthorizationstringRequired

Account API key authentication. Pass an API key as a Bearer token in the Authorization header. An account may have multiple named keys; any of them grants full access to all endpoints — equivalent to all OAuth scopes.

Responses
200

Successful response

application/json
any · nullableOptional
get/v2/affiliates/payouts/current
GET /v2/affiliates/payouts/current HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Get a payout

get

Get one affiliate payout by its ID. The response lists the payout's commissions grouped by affiliate: each affiliate's name, email, PayPal email, total amount and currency, plus the IDs of the commission payments and adjustments included. Use list_affiliate_payouts to find payout IDs, or get_current_affiliate_payout for an unpaid payout.

Authorizations
AuthorizationstringRequired

Account API key authentication. Pass an API key as a Bearer token in the Authorization header. An account may have multiple named keys; any of them grants full access to all endpoints — equivalent to all OAuth scopes.

Path parameters
payout_idstringRequired

ID of the payout to fetch

Responses
200

Successful response

application/json
any · nullableOptional
get/v2/affiliates/payouts/{payout_id}
GET /v2/affiliates/payouts/{payout_id} HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Complete a payout

put

Mark a payout as paid. Provide which commissions are being paid.

Authorizations
AuthorizationstringRequired

Account API key authentication. Pass an API key as a Bearer token in the Authorization header. An account may have multiple named keys; any of them grants full access to all endpoints — equivalent to all OAuth scopes.

Path parameters
payout_idstringRequired

Payout ID

Body
Responses
200

Successful response

application/json
any · nullableOptional
put/v2/affiliates/payouts/{payout_id}
PUT /v2/affiliates/payouts/{payout_id} HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 51

{
  "commissions": [
    {
      "affiliate_id": 1,
      "is_paid": true
    }
  ]
}

No content

Delete a payout

delete

Delete an unpaid payout. Paid payouts cannot be deleted.

Authorizations
AuthorizationstringRequired

Account API key authentication. Pass an API key as a Bearer token in the Authorization header. An account may have multiple named keys; any of them grants full access to all endpoints — equivalent to all OAuth scopes.

Path parameters
payout_idstringRequired

Payout ID

Responses
204

Deleted successfully

No content

delete/v2/affiliates/payouts/{payout_id}
DELETE /v2/affiliates/payouts/{payout_id} HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Download payout CSV

get

Download the payout commissions as a CSV file.

Authorizations
AuthorizationstringRequired

Account API key authentication. Pass an API key as a Bearer token in the Authorization header. An account may have multiple named keys; any of them grants full access to all endpoints — equivalent to all OAuth scopes.

Path parameters
payout_idstringRequired

Payout ID

Responses
200

Successful response

application/json
any · nullableOptional
get/v2/affiliates/payouts/{payout_id}/download
GET /v2/affiliates/payouts/{payout_id}/download HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Last updated