Skip to main content
A subscription puts a customer on a membership from a given date. Creating one generates the payment schedule; PayChoice charges the customer’s default payment method as each item falls due.

Create

uuid
required
The customer’s GUID (customer.id), not the numeric customer_id.
uuid
The membership’s GUID. If omitted, an adhoc membership is assumed.
date
required
When the subscription starts.
uuid
The subscription ID.
uuid
The customer.
uuid
The membership.
string
YYYY-MM-DD HH:MM:SS.
boolean
true while active, false once cancelled. The Archive response itself returns 0.
The remaining fields (setup_fee, billing_cycle, trial_period, fixed_term, charge_remain, cancellation_fee) are copied from the membership at the time the subscription was created.

Archive

DELETE /subscription/{subscription} cancels it. Returns the subscription with status: 0, or 422 with "Subscription not found or not active." if it doesn’t exist or is already cancelled.