Prices
Create a Price
Create a new Price with the provided details
post/prices
Request body
Example request
{
"metadata": {
"orderId": "12345",
"notes": "Urgent delivery"
},
"name": "Some price",
"type": "one_time",
"amount": 1500,
"quantity": 4,
"currency": "usd",
"product": "prod_2QGNGy637hJ9MnD5cK7thAjSvPV",
"recurringSchedule": {
"intervalUnit": "month",
"intervalCount": 1,
"trial": {
"intervalUnit": "day",
"intervalCount": 7,
"amount": 199
}
}
}Response
OK
Example response
{
"createdAt": "2024-02-18T12:00:00Z",
"updatedAt": "2024-02-21T12:15:00Z",
"metadata": {
"key1": "value1",
"key2": "value2"
},
"id": "price_2R4e2xDqbww8ewmkIYWE1A6Zcfp",
"type": "recurring",
"active": true,
"name": "My Digital Subscription",
"amount": 1500,
"quantity": 1,
"currency": "usd",
"product": {
"createdAt": "2024-02-18T12:00:00Z",
"updatedAt": "2024-02-21T12:15:00Z",
"metadata": {
"key1": "value1",
"key2": "value2"
},
"id": "prod_2QC7PqoUeOxQEWscJJt6B3PkvyL",
"active": true,
"name": "My product",
"description": "Best selling product",
"statementDescriptor": "Face Yoga subscription",
"category": "digital",
"sku": "FY-YOGA-MAT-01"
},
"billingSchedule": {
"createdAt": "2024-02-18T12:00:00Z",
"updatedAt": "2024-02-21T12:15:00Z",
"metadata": {
"key1": "value1",
"key2": "value2"
},
"id": "bsch_2QC7PqoUeOxQEWscJJt6B3PkvyL",
"currency": "usd",
"cycleDefinitions": [
{
"createdAt": "2024-02-18T12:00:00Z",
"updatedAt": "2024-02-21T12:15:00Z",
"metadata": {
"key1": "value1",
"key2": "value2"
},
"position": 1,
"amount": 1500,
"currency": "usd"
}
]
},
"recurringSchedule": {
"intervalUnit": "month",
"intervalCount": 1,
"trial": {
"intervalUnit": "day",
"intervalCount": 7,
"amount": 199
}
}
}Changes
No recorded changes to this endpoint across all 1 revision of this API.