Skip to main content
PUT
/
api
/
v2
/
products
/
{id}
Update product
curl --request PUT \
  --url https://rcur.app/api/v2/products/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Premium Plan",
  "amount": 29.99,
  "vat": 21,
  "interval": "month",
  "interval_value": 1,
  "times": 12,
  "woocommerce_product_id": 1234
}
'
{
  "id": "prod_abc123",
  "name": "Premium Plan",
  "type": "subscription",
  "amount": "29.99",
  "currency": "EUR",
  "interval": "month",
  "times": 12,
  "wc_product_id": 1234
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Product data to update

name
string

Product name

Example:

"Premium Plan"

amount
number

Product amount

Example:

29.99

vat
number

VAT percentage

Example:

21

interval
enum<string>

Interval (required for subscription type)

Available options:
day,
week,
month,
year
Example:

"month"

interval_value
integer

Interval value (required for subscription type)

Example:

1

times
integer

Number of payments (null = infinite)

Example:

12

woocommerce_product_id
integer

WooCommerce product ID

Example:

1234

Response

Product details

id
string
required
Example:

"prod_abc123"

name
string
required
Example:

"Premium Plan"

type
enum<string>
required
Available options:
once,subscription,shipping_costs
Example:

"subscription"

amount
string
required
Example:

"29.99"

currency
string
required
Example:

"EUR"

interval
string | null
Example:

"month"

times
integer | null
Example:

12

wc_product_id
integer | null
Example:

1234