Affiliate Programs
Affiliate program management (programs, checkouts, prices, options, links)
List and search affiliate programs in a Spiffy account.
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/programs 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 program with commission settings.
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.
Flat commission amount in the smallest currency unit ($10.00 USD = 1000; ¥1500 JPY = 1500).
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/programs HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 338
{
"name": "text",
"description": "text",
"resources_url": "text",
"btn_text": "text",
"onetime_commission_percent": 1,
"subscription_commission_percent": 1,
"subscription_duration_in_payments": 1,
"commission_flat_amount": 1,
"is_default_registration": true,
"is_lead_tracking_enabled": true,
"is_lead_sharing_enabled": true,
"is_purchase_sharing_enabled": true
}{
"id": 1,
"account_id": 1,
"name": "text",
"onetime_commission_percent": 1,
"subscription_commission_percent": 1,
"subscription_duration_in_payments": 1,
"is_default_registration": true,
"status": "active",
"description": "text",
"resources_url": "text",
"btn_text": "text",
"commission_flat_amount": 1,
"is_lead_tracking_enabled": true,
"is_lead_sharing_enabled": true,
"is_purchase_sharing_enabled": true,
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"stats": {
"ANY_ADDITIONAL_PROPERTY": null
}
}Retrieve a single affiliate-programs 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.
affiliate-programs ID
12345Comma-separated list of expansions: stats
statsSuccessful 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/programs/{program_id} HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": 1,
"account_id": 1,
"name": "text",
"onetime_commission_percent": 1,
"subscription_commission_percent": 1,
"subscription_duration_in_payments": 1,
"is_default_registration": true,
"status": "active",
"description": "text",
"resources_url": "text",
"btn_text": "text",
"commission_flat_amount": 1,
"is_lead_tracking_enabled": true,
"is_lead_sharing_enabled": true,
"is_purchase_sharing_enabled": true,
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"stats": {
"ANY_ADDITIONAL_PROPERTY": null
}
}Update an existing affiliate program.
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.
Program ID
Flat commission amount in the smallest currency unit ($10.00 USD = 1000; ¥1500 JPY = 1500).
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/programs/{program_id} HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 354
{
"status": "text",
"name": "text",
"description": "text",
"resources_url": "text",
"btn_text": "text",
"onetime_commission_percent": 1,
"subscription_commission_percent": 1,
"subscription_duration_in_payments": 1,
"commission_flat_amount": 1,
"is_default_registration": true,
"is_lead_tracking_enabled": true,
"is_lead_sharing_enabled": true,
"is_purchase_sharing_enabled": true
}{
"id": 1,
"account_id": 1,
"name": "text",
"onetime_commission_percent": 1,
"subscription_commission_percent": 1,
"subscription_duration_in_payments": 1,
"is_default_registration": true,
"status": "active",
"description": "text",
"resources_url": "text",
"btn_text": "text",
"commission_flat_amount": 1,
"is_lead_tracking_enabled": true,
"is_lead_sharing_enabled": true,
"is_purchase_sharing_enabled": true,
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"stats": {
"ANY_ADDITIONAL_PROPERTY": null
}
}Soft delete an affiliate program (sets status to 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.
Program 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/programs/{program_id} HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
List affiliates enrolled in a specific affiliate program. Requires program_id in the path.
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/programs/{program_id}/affiliates HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"data": [],
"pagination": {
"page": 1,
"limit": 25,
"total": 150,
"pages": 6
}
}Deactivate an affiliate within a program.
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.
Program ID
Affiliate 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
DELETE /v2/affiliates/programs/{program_id}/affiliates/{affiliate_id} HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Create a commission adjustment for an affiliate within a program.
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.
Program ID
Affiliate ID
Adjustment amount in the smallest currency unit ($10.00 USD = 1000; ¥1500 JPY = 1500).
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/{affiliate_id}/adjustments HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 33
{
"description": "text",
"amount": 1
}No content
Add one or more checkouts to an affiliate program.
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.
Program ID
Array of checkout IDs
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}/checkouts HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 17
{
"checkouts": [
1
]
}No content
Update commission settings for checkout items and block items within a program checkout.
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.
Program ID
Checkout ID
Flat commission amount in the smallest currency unit ($10.00 USD = 1000; ¥1500 JPY = 1500).
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/programs/{program_id}/checkouts/{checkout_id} HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 259
{
"commission_percent": 1,
"commission_flat_amount": 1,
"checkout_items": [
{
"checkout_item_id": 1,
"is_active": true,
"commission_percent": 1,
"duration_in_payments": 1
}
],
"block_items": [
{
"block_item_id": 1,
"is_active": true,
"commission_percent": 1,
"duration_in_payments": 1
}
]
}No content
Soft delete a checkout from an affiliate program.
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.
Program ID
Checkout 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
DELETE /v2/affiliates/programs/{program_id}/checkouts/{checkout_id} HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Get checkout items with program-specific commission overrides.
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.
Program ID
Checkout 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/programs/{program_id}/checkouts/{checkout_id}/items HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
List the product prices attached to one affiliate program, with any per-price commission override (commission_percent, duration_in_payments). Each row links the program to a product price via product_option_price_id; is_active is false for prices that were removed from the program. Requires program_id in the path.
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/programs/{program_id}/prices HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"data": [],
"pagination": {
"page": 1,
"limit": 25,
"total": 150,
"pages": 6
}
}Add one or more product option prices to an affiliate program.
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.
Program ID
Array of product_option_price IDs
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}/prices HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 14
{
"prices": [
1
]
}No content
Update commission settings for a price within an affiliate program.
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.
Program ID
The product_option_price_id (from list_affiliate_program_prices), not the link row 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/programs/{program_id}/prices/{price_id} HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 49
{
"commission_percent": 1,
"duration_in_payments": 1
}No content
Soft delete a price from an affiliate program.
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.
Program ID
The product_option_price_id (from list_affiliate_program_prices), not the link row 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
DELETE /v2/affiliates/programs/{program_id}/prices/{price_id} HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
List the product options attached to one affiliate program, with any per-option commission override (commission_percent). Each row links the program to a product option via product_option_id; is_active is false for options that were removed from the program. Requires program_id in the path.
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/programs/{program_id}/options HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"data": [],
"pagination": {
"page": 1,
"limit": 25,
"total": 150,
"pages": 6
}
}Add one or more product options to an affiliate program.
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.
Program ID
Array of product_option IDs
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}/options HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 15
{
"options": [
1
]
}No content
Update commission settings for an option within an affiliate program.
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.
Program ID
The product_option_id (from list_affiliate_program_options), not the link row 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/programs/{program_id}/options/{option_id} HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 24
{
"commission_percent": 1
}No content
Soft delete an option from an affiliate program.
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.
Program ID
The product_option_id (from list_affiliate_program_options), not the link row 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
DELETE /v2/affiliates/programs/{program_id}/options/{option_id} HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
List tracking links within a specific affiliate program. Requires program_id in the path.
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)
25Filter by sort_order (exact match).
Filter by created_at (exact match).
Filter by name (exact match).
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/programs/{program_id}/links 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 tracking link for an affiliate program.
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.
Program ID
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}/links HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 74
{
"name": "text",
"to_url": "text",
"slug": "text",
"is_included_in_portal": true
}No content
Check whether one or more link slugs are available within a program.
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.
Program 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
Internal Server Error - An unexpected error occurred
PUT /v2/affiliates/programs/{program_id}/links/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
Reorder an affiliate program's tracking links. The submitted links are rearranged among the display positions they already occupy, so a request can permute the ids it contains but cannot move a link past a link it omits — send the full list to reorder a whole program. Returns 204.
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.
Program 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
Internal Server Error - An unexpected error occurred
PUT /v2/affiliates/programs/{program_id}/links/order HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 16
{
"link_ids": [
1
]
}No content
Update a tracking link for an affiliate program.
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.
Program ID
Link 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/programs/{program_id}/links/{link_id} HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 74
{
"name": "text",
"to_url": "text",
"slug": "text",
"is_included_in_portal": true
}No content
Soft delete a tracking link from an affiliate program.
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.
Program ID
Link 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
DELETE /v2/affiliates/programs/{program_id}/links/{link_id} HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Check whether one or more link slugs are available within a program.
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.
Program 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
Internal Server Error - An unexpected error occurred
PUT /v2/affiliates/programs/{program_id}/links/{link_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