Update product
PATCH https://rcur.app/api/v2/products/{id}
Path Parameters
{id}*
String
The ID of the product
Request Body
name
String
The name of the product
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
String
Only applicable if type is subscription Possible values: months weeks days years
interval_value
Integer
Only applicable 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 set to null or 0, 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.
{
// See Get product respons
}{
"status": 422,
"error": "Could not update product. Some fields contain invalid data",
"fields": {
"amount": [
"The amount must be a number."
]
}
}Last updated
Was this helpful?