Affiliates
Affiliate management
Retrieve a paginated list of affiliates
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)
25Search across: name_first, name_last, email, slug, paypal_email
search termFilter by id (exact match).
Filter by id (greater than or equal)
Filter by id (less than or equal)
Filter by id (comma-separated list). Fetches many records in one request instead of one request per id.
101,102,103Filter by id (excluding a comma-separated list)
Filter by email (exact match).
Filter by email (contains)
Filter by name_first (exact match).
Filter by name_first (contains)
Filter by name_last (exact match).
Filter by name_last (contains)
Filter by slug (exact match).
Filter by slug (contains)
Filter by paypal_email (exact match).
Filter by paypal_email (contains)
Filter by is_ready_for_payout (exact match).
Filter by performance_digest_frequency_days (exact match). Valid values: 0, 1, 7, 30.
Filter by performance_digest_frequency_days (greater than or equal)
Filter by performance_digest_frequency_days (less than or equal)
Filter by performance_digest_frequency_days (comma-separated list). Fetches many records in one request instead of one request per id.
0,1Filter by performance_digest_frequency_days (excluding a comma-separated list)
Filter by created_at (exact match).
Filter by created_at (greater than or equal)
Filter by created_at (less than or equal)
Filter by updated_at (exact match).
Filter by updated_at (greater than or equal)
Filter by updated_at (less than or equal)
Sort 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 HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"data": [],
"pagination": {
"page": 1,
"limit": 25,
"total": 150,
"pages": 6
}
}Create one or more affiliates (batch). Optionally assign them to programs via program_ids.
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.
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 HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 126
{
"affiliates": [
{
"name_first": "text",
"name_last": "text",
"email": "text",
"paypal_email": "text",
"slug": "text"
}
],
"program_ids": [
1
]
}No content
Check whether one or more affiliate slugs are available.
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
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
Internal Server Error - An unexpected error occurred
PUT /v2/affiliates/checkslugs HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 18
{
"slugs": [
"text"
]
}No content
Create one or more affiliates (batch) and add them to the program in the path. Existing affiliates matched by email are added to the program. program_ids may list additional programs to add them to.
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 affiliate program to add the affiliates to
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
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
POST /v2/affiliates/programs/{program_id}/affiliates HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 126
{
"affiliates": [
{
"name_first": "text",
"name_last": "text",
"email": "text",
"paypal_email": "text",
"slug": "text"
}
],
"program_ids": [
1
]
}No content
Retrieve a single affiliates by ID
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.
affiliates ID
12345Comma-separated list of expansions: stats, gravatar, customer, cards
stats,gravatarSuccessful 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/{id} HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": 1,
"customer_id": 1,
"paypal_email": "text",
"slug": "text",
"performance_digest_frequency_days": 1,
"last_performance_digest_sent_at": "2026-01-01T00:00:00.000Z",
"is_ready_for_payout": true,
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"customer": {
"ANY_ADDITIONAL_PROPERTY": null
},
"stats": {
"ANY_ADDITIONAL_PROPERTY": null
},
"gravatar": "text",
"cards": [
{
"ANY_ADDITIONAL_PROPERTY": null
}
]
}Update affiliate fields such as email, name, paypal_email, slug, payout readiness, and performance digest cadence.
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.
Affiliate ID
How often this affiliate is emailed their performance digest, in days. One of 0, 1, 7, 30, where 0 means never. The affiliate can also change this themselves from their portal, so this is their current preference rather than a merchant-only setting.
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/{id} HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 156
{
"email": "text",
"paypal_email": "text",
"name_first": "text",
"name_last": "text",
"slug": "text",
"is_ready_for_payout": true,
"performance_digest_frequency_days": 1
}{
"id": 1,
"customer_id": 1,
"paypal_email": "text",
"slug": "text",
"performance_digest_frequency_days": 1,
"last_performance_digest_sent_at": "2026-01-01T00:00:00.000Z",
"is_ready_for_payout": true,
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"customer": {
"ANY_ADDITIONAL_PROPERTY": null
},
"stats": {
"ANY_ADDITIONAL_PROPERTY": null
},
"gravatar": "text",
"cards": [
{
"ANY_ADDITIONAL_PROPERTY": null
}
]
}Check whether one or more affiliate slugs are available.
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
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
Internal Server Error - An unexpected error occurred
PUT /v2/affiliates/{id}/checkslugs HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 18
{
"slugs": [
"text"
]
}No content
Last updated