Creates a new product.
Create a new product for one-time payments, including free products with a 0 price, or subscriptions. Configure pricing, billing cycles, and features.
Headers
Optional key that makes retries return the originally created product instead of creating a duplicate.
Request body
Example request
{
"image_url": "https://picsum.photos/200/300",
"image_urls": [
"https://picsum.photos/200/300",
"https://picsum.photos/200/301"
],
"price": 400,
"recurring_interval_count": 1,
"suggested_price": 1500,
"default_success_url": "https://example.com/?status=successful",
"custom_fields": [
{
"key": "companyName",
"label": "Company Name",
"text": {
"max_length": 200,
"min_length": 1
},
"checkbox": {
"label": "I agree to the [terms and conditions](https://example.com/terms)"
}
}
],
"custom_field": [
{
"key": "companyName",
"label": "Company Name",
"text": {
"max_length": 200,
"min_length": 1
},
"checkbox": {
"label": "I agree to the [terms and conditions](https://example.com/terms)"
}
}
]
}Response
Successfully created a product
Example response
{
"description": "This is a sample product description.",
"image_url": "https://example.com/image.jpg",
"image_urls": [
"https://example.com/image.jpg"
],
"features": [
{
"id": "feat_abc123",
"description": "Access to premium course materials."
}
],
"price": 400,
"currency": "USD",
"product_url": "https://creem.io/product/prod_123123123123",
"default_success_url": "https://example.com/?status=successful",
"created_at": "2023-01-01T00:00:00Z",
"updated_at": "2023-01-01T00:00:00Z"
}Changes
Changed in 2 of the 4 revisions of this API.18
- ●
added the new
customenum value to thebilling_periodresponse property for the response status200response-property-enum-value-added
- ○
added the new optional request property
recurring_intervalnew-optional-request-property
- ○
added the new optional request property
recurring_interval_countnew-optional-request-property
- ○
added the new
customenum value to the request propertybilling_periodrequest-property-enum-value-added
- ○
added the optional property
recurring_intervalto the response with the200statusresponse-optional-property-added
- ○
added the optional property
recurring_interval_countto the response with the200statusresponse-optional-property-added
- ●
- ○
added the new optional
headerrequest parameterIdempotency-Keynew-optional-request-parameter
- ○
added the new optional request property
image_urlsnew-optional-request-property
- ○
added the optional property
image_urlsto the response with the200statusresponse-optional-property-added
- ○