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

Product Option Prices

Create a price (optionless)

post

Create a price on the uncategorized option (for subscriptions or products without options).

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
idstringRequired

Product ID

Body
amountintegerRequired

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.

frequencystring · enumOptional

Billing unit for a recurring price. Omit entirely for a one-time price. For "every 2 weeks" pass frequency: "week" with frequency_count: 2.

Possible values:
frequency_countinteger · min: 1Optional

Number of frequency units per billing cycle (e.g. frequency: "month", frequency_count: 3 = quarterly). Defaults to 1.

namestringOptional
Responses
201

Created successfully

application/json
any · nullableOptional
post/v2/products/{id}/prices
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 price on an option

post

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.

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
idstringRequired

Product ID

option_idstringRequired

Option ID

Body
amountintegerRequired

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.

frequencystring · enumOptional

Billing unit for a recurring price. Omit entirely for a one-time price. For "every 2 weeks" pass frequency: "week" with frequency_count: 2.

Possible values:
frequency_countinteger · min: 1Optional

Number of frequency units per billing cycle (e.g. frequency: "month", frequency_count: 3 = quarterly). Defaults to 1.

namestringOptional
Responses
201

Created successfully

application/json
any · nullableOptional
post/v2/products/{id}/options/{option_id}/prices
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

Update a price

put

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.

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
idstringRequired

Product ID

option_idstringRequired

Option ID

price_idstringRequired

Price ID

Body
namestringOptional
integration_mappingsany · nullableOptional
Responses
200

Successful response

application/json
any · nullableOptional
put/v2/products/{id}/options/{option_id}/prices/{price_id}
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