Create product

POST https://rcur.app/api/v2/products

Request Body

Name
Type
Description

name*

String

The name of the product

type*

Enum

Possible values: once subscription shipping_costs

amount*

Double

The amount of the product. Example: 14.99

vat*

Integer | String

The VAT in percentage. If using an invoice integration, use the ID of the Get VAT response.

interval

Enum

Required if type is subscription Possible values: months weeks days years

interval_value

Integer

Required if type is subscription The quantity of the interval. For example, when interval is set to months and interval_value to 1 it will be a monthly product.

times

Integer

Only applicable when type is subscription . When not provided, the product subscription will be continuously.

woocommerce_product_id

Integer

Only applicable when WooCommerce integration enabled. The product ID or variation ID of the WooCommerce product.

{
    "status": 422,
    "error": "Could not create product. Some fields contain invalid data",
    "fields": {
        "type": [
            "The type field is required."
        ],
        "amount": [
            "The amount field is required."
        ]
    }
}

Last updated

Was this helpful?