Affiliate Payouts
Affiliate payout management
Retrieve a paginated list of affiliate-payouts
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.
Page number
1Items per page (max 100)
25Sort field (prefix with - for descending)
-created_atSuccessful response with paginated list
Unauthorized - Authentication is required or has failed
Forbidden - You do not have permission to access this resource
Internal Server Error - An unexpected error occurred
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 new affiliate payout from unpaid commissions matching the provided filters.
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.
Report filters for selecting commissions
Created successfully
Bad Request - The request was invalid or malformed
Unauthorized - Authentication is required or has failed
Forbidden - You do not have permission to access this resource
Conflict - The request conflicts with the current state of the resource
Internal Server Error - An unexpected error occurred
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 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.
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.
Successful response
Unauthorized - Authentication is required or has failed
Forbidden - You do not have permission to access this resource
Not Found - The requested resource does not exist
Internal Server Error - An unexpected error occurred
GET /v2/affiliates/payouts/current HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
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.
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.
ID of the payout to fetch
Successful response
Unauthorized - Authentication is required or has failed
Forbidden - You do not have permission to access this resource
Not Found - The requested resource does not exist
Internal Server Error - An unexpected error occurred
GET /v2/affiliates/payouts/{payout_id} HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Mark a payout as paid. Provide which commissions are being paid.
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.
Payout ID
Successful response
Bad Request - The request was invalid or malformed
Unauthorized - Authentication is required or has failed
Forbidden - You do not have permission to access this resource
Not Found - The requested resource does not exist
Conflict - The request conflicts with the current state of the resource
Internal Server Error - An unexpected error occurred
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 an unpaid payout. Paid payouts cannot be deleted.
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.
Payout ID
Deleted successfully
No content
Unauthorized - Authentication is required or has failed
Forbidden - You do not have permission to access this resource
Not Found - The requested resource does not exist
Internal Server Error - An unexpected error occurred
DELETE /v2/affiliates/payouts/{payout_id} HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Download the payout commissions as a CSV file.
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.
Payout ID
Successful response
Unauthorized - Authentication is required or has failed
Forbidden - You do not have permission to access this resource
Not Found - The requested resource does not exist
Internal Server Error - An unexpected error occurred
GET /v2/affiliates/payouts/{payout_id}/download HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Last updated