Product Option Prices
Create a price on the uncategorized option (for subscriptions or products without options).
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.
Product ID
Price amount in the smallest currency unit ($10.00 USD = 1000; ¥1500 JPY = 1500). Must be a non-negative integer; 0 is allowed for free products.
Billing unit for a recurring price. Omit entirely for a one-time price. For "every 2 weeks" pass frequency: "week" with frequency_count: 2.
Number of frequency units per billing cycle (e.g. frequency: "month", frequency_count: 3 = quarterly). Defaults to 1.
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/products/{id}/prices HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 64
{
"amount": 1,
"frequency": "day",
"frequency_count": 1,
"name": "text"
}No content
Create a new price on a product option. Omit frequency for a one-time (non-recurring) price; pass a frequency string (e.g. "month", "year") for a recurring price.
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.
Product ID
Option ID
Price amount in the smallest currency unit ($10.00 USD = 1000; ¥1500 JPY = 1500). Must be a non-negative integer; 0 is allowed for free products.
Billing unit for a recurring price. Omit entirely for a one-time price. For "every 2 weeks" pass frequency: "week" with frequency_count: 2.
Number of frequency units per billing cycle (e.g. frequency: "month", frequency_count: 3 = quarterly). Defaults to 1.
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/products/{id}/options/{option_id}/prices HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 64
{
"amount": 1,
"frequency": "day",
"frequency_count": 1,
"name": "text"
}No content
Rename a price on a product option. Price amount and frequency are immutable — to change either, create a new price (POST /v2/products/:id/options/:option_id/prices) and optionally delete the old one. Mutable fields: name only.
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.
Product ID
Option ID
Price 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/products/{id}/options/{option_id}/prices/{price_id} HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 43
{
"name": "text",
"integration_mappings": null
}No content
Last updated