Endpoint
Authentication
string
required
Bearer token with your API key. Requires
read_write permission.Path Parameters
string
required
The project’s slug. The checkout link carries it as
cuprice_project_slug.Body Parameters
string
required
One of:
"subscription.created": first successful purchase"subscription.updated": plan change or renewal"subscription.canceled": the customer canceled"payment.failed": a payment failed (the subscriber is markedpast_due)
string
required
Name of your payment provider, for example
"stripe", "paddle" or "payriff".string
required
The subscription or order ID in your provider. Later events with the same ID update the same record.
number
required
Cuprice’s numeric plan ID (
cuprice_plan_id from the checkout link). The plan has to belong to this project. Custom plans have no Cuprice plan (cuprice_plan_id=0), so they cannot be reported.string
required
The customer’s email. Cuprice matches an existing subscriber by this email or by
externalId.string
The customer’s name.
string
The customer ID in your provider.
number
Amount charged per interval.
string
Must be the project currency (USD, EUR, GBP or JPY, whichever the project uses). Any other code is rejected. Leave it out to use the project currency.
string
"month" or "year". Defaults to "month".string
Your provider’s status, for example
"active" or "trialing". Defaults to "active" for created and updated events.