POST
/
v1
/
products

curl --location -g --request POST 'https://client.corrily.com/v1/products' \
--header 'Content-Type: application/json' \
--data-raw '{
"api_id": "monthly",
"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"
}
]
}'

{
  "message": "Successfully created product.",
  "success": true,
  "api_id": "monthly",
  "name": "Monthly Product",
  "base_px": 10.0,
  "baseline_id": null,
  "country_prices": [
    {
      "country": "ES",
      "local_price": 50.0,
      "currency": "EUR"
    }
  ],
  "integrations": [
    {
      "type": "stripe",
      "stripe_product_id": "my_stripe_pid"
    }
  ]
}

Body Params

api_id
string
required

The product identifier you will be calling this product with using Corrily’s price endpoint.

name
string
required

The name of the product. Must be unique.

base_px
float
required

The base price of the product in USD.

interval
string
required

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

interval_count
integer
required

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.

integrations
[object]

A list of one or more of the below integration price objects. Not required in the case of a custom integration using the Subscription and Charge endpoints where Corrily product IDs are passed to alert us of payment gateway revenue activity.