1. Products
  2. Update Product
POST

/v1/products

X-Api-Key*
curl --location -g --request POST 'https://client.corrily.com/v1/products/monthly' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "Monthly Product",
    "base_px": 10,
    "interval": "month",
    "interval_count": 1,
    "country_prices": [
        {
            "country": "ES",
            "amount": 50,
            "currency": "EUR"
        }
    ],
    "integrations": [
        {
            "type": "stripe",
            "stripe_product_id": "my_stripe_pid"
        }
    ]
}'

Path Params

{product_api_id}Required
string

The name of the product. Must be unique.

Body Params

name
string

The name of the product. Must be unique.

base_px
float

The base price of the product in USD.

interval
string

A string value denoting how often to bill for a subscription. Possible values: day, week, month, year, one_time.

interval_count
integer

An integer denoting how many intervals to bill for the. A monthly product would have month as interval and 1 as interval counts, etc. One time products should have an interval count of 1.

country_prices
[object]

A list of one ore more of the below country price object. Country prices provided during an update call with overwrite any existing ones.

integrations
[object]

A list of one or more of the below integration price objects. Integration objects provided during an update call with overwrite any existing ones.