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

Product Options

Create a product option

post

Create a new option on a product.

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
namestringOptional
default_amountintegerOptional

Default price amount for this option in the smallest currency unit ($10.00 USD = 1000; ¥1500 JPY = 1500).

Responses
201

Created successfully

application/json
any · nullableOptional
post/v2/products/{id}/options
POST /v2/products/{id}/options HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 34

{
  "name": "text",
  "default_amount": 1
}

No content

Update a product option

put

Update an option on a product.

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
namestringOptional
default_amountintegerOptional

Default price amount for this option in the smallest currency unit ($10.00 USD = 1000; ¥1500 JPY = 1500).

integration_mappingsany · nullableOptional
Responses
200

Successful response

application/json
any · nullableOptional
put/v2/products/{id}/options/{option_id}
PUT /v2/products/{id}/options/{option_id} HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 62

{
  "name": "text",
  "default_amount": 1,
  "integration_mappings": null
}

No content

Last updated