/products
Generated from openapi.yaml. 4 operations.Download the specification.
GET/v1/products
List products
Requires your secret key as a bearer token.
Responses
| Status | Description |
|---|---|
200 | List 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
| Field | Type | Required | Description |
|---|---|---|---|
name | string | yes | |
payee | string | no | Defaults to the merchant's payout wallet |
mint | string | yes | |
amountPerPeriod | string | yes | |
periodSeconds | integer | yes | |
trialSeconds | integer | no | |
contentTitle | string | no | |
contentBody | string | no |
Responses
| Status | Description |
|---|---|
201 | product with id |
400 | No payout wallet is set |
GET/v1/products/{id}
Retrieve a product
Requires your secret key as a bearer token.
Responses
| Status | Description |
|---|---|
200 | product |
404 | No such product for this merchant |
PATCH/v1/products/{id}
Update a product
Requires your secret key as a bearer token.
Body
| Field | Type | Required | Description |
|---|---|---|---|
name | string | no | |
contentTitle | string | no | |
contentBody | string | no | |
active | boolean | no |
Responses
| Status | Description |
|---|---|
200 | The updated product |
404 | No such product for this merchant |