POST
/
v1
/
products
curl --request POST \
  --url https://api.creem.io/v1/products \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <x-api-key>' \
  --data '{
  "name": "<string>",
  "description": "<string>",
  "image_url": "https://picsum.photos/200/300",
  "price": 400,
  "currency": "EUR",
  "billing_type": "recurring",
  "billing_period": "every-month",
  "tax_mode": "inclusive",
  "tax_category": "saas",
  "default_success_url": "https://example.com/?status=successful",
  "custom_field": [
    {
      "type": "text",
      "key": "<string>",
      "label": "<string>",
      "optional": true,
      "text": {
        "max_length": 123,
        "min_length": 123
      }
    }
  ]
}'
{
  "id": "<string>",
  "mode": "test",
  "object": "<string>",
  "name": "<string>",
  "description": "This is a sample product description.",
  "image_url": "https://example.com/image.jpg",
  "features": [
    {
      "id": "<string>",
      "type": "<string>",
      "description": "Get access to discord server."
    }
  ],
  "price": 400,
  "currency": "EUR",
  "billing_type": "recurring",
  "billing_period": "every-month",
  "status": "<string>",
  "tax_mode": "inclusive",
  "tax_category": "saas",
  "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"
}

Headers

x-api-key
string
required

Body

application/json

Response

200 - application/json
Successfully created a product

The response is of type object.