Skip to content

/products

Generated from openapi.yaml. 4 operations.Download the specification.

GET/v1/products

List products

Requires your secret key as a bearer token.

Responses

StatusDescription
200List of product

POST/v1/products

Create a product

A subscription whose payment unlocks gated content. payee defaults to the merchant's payout wallet, so one must be set first.

Requires your secret key as a bearer token.

Body

FieldTypeRequiredDescription
namestringyes
payeestringnoDefaults to the merchant's payout wallet
mintstringyes
amountPerPeriodstringyes
periodSecondsintegeryes
trialSecondsintegerno
contentTitlestringno
contentBodystringno

Responses

StatusDescription
201product with id
400No payout wallet is set

GET/v1/products/{id}

Retrieve a product

Requires your secret key as a bearer token.

Responses

StatusDescription
200product
404No such product for this merchant

PATCH/v1/products/{id}

Update a product

Requires your secret key as a bearer token.

Body

FieldTypeRequiredDescription
namestringno
contentTitlestringno
contentBodystringno
activebooleanno

Responses

StatusDescription
200The updated product
404No such product for this merchant

All resources ·Supported tokens ·Sandbox