RCUR API docs
Back to RCURSupport
  • Getting Started
    • Authentication
    • Rate limits
  • Customers API
    • List customers
    • Get customer
    • Create customer
    • Update customer
    • Delete customer
  • Customer Mandates API
    • List mandates
    • Get mandate
    • Create mandate
    • Revoke mandate
  • Subscriptions API
    • List subscriptions
    • Get subscription
    • Create subscription
    • Cancel subscription
  • Links API
    • List links
    • Get link
    • Delete link
  • Follow-ups API
    • List follow-ups
    • Get follow-up
    • Update follow-up
  • Orders API
    • List orders
    • Get order
  • Products API
    • List products
    • Get product
    • Create product
    • Update product
    • Delete product
  • Payments API
    • List payments
    • Get payment
  • Organizations API
    • Me
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
  1. Products API

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."
        ]
    }
}
{
    // See Get product
}

Last updated 1 year ago

Was this helpful?