Products
List Products
Authorization
HTTPBearer AuthorizationBearer <token>
In: header
Query Parameters
page?integer
Page number
Default
1Range
1 <= valuesize?integer
Page size
Default
50Range
1 <= value <= 100Response Body
application/json
application/json
curl -X GET "https://api.members.dev/v1/products"{
"items": [
{
"name": "Pro Plan",
"description": "Access to advanced features",
"start": {
"start_type": "auto"
},
"recurring": {
"recurring_type": "never"
},
"expiry": {
"expiry_type": "never"
},
"trial": {
"interval": "day",
"interval_count": 7
},
"price": {
"amount": 999,
"currency": "USD",
"price_type": "fixed"
},
"id": "prd_01KKSMB47VYGW97GFE67VGDK7M",
"status": "Active",
"state_transitions": {
"archived_at": {}
},
"created_at": null,
"updated_at": null,
"benefit_schedules": [
{
"recurring": {
"recurring_type": "never"
},
"expiry": {
"expiry_type": "never"
},
"benefit_grants": [
{
"benefit_id": "string",
"value_initial": 0,
"expiry": {
"expiry_type": "never"
}
}
]
}
]
}
],
"total": 0,
"page": 1,
"size": 1,
"pages": 0
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Get Product GET
Previous Page
Create Product POST
Creates a product. Required body fields: **name**, **price**. If omitted, **start** defaults to auto, **recurring** to never, **expiry** to never, and **trial** to none. **benefit_schedules** entries may omit **recurring** / **expiry** to inherit from the product; grant **expiry** omissions follow the effective schedule recurrence (see benefit schedule create docs).