Chaching is a modern subscription-billing platform designed to simplify product management, customer lifecycle workflows, and recurring payments. It combines a clean dashboard for business users with a powerful API built for developers who need full automation and control.
Chaching API (1.0)
- Mock serverhttps://chaching.redocly.app/_mock/developer-guide/api/subscriptions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://chaching.redocly.app/_mock/developer-guide/api/subscriptions?page=1&take=10' \
-H 'cc-api-key: string'{ "data": [ [] ], "meta": { "page": 0, "take": 0, "itemsTotal": 0, "pagesTotal": 0 } }
The ID of the customer for whom the invoice is to be created.
Array of products to be included in the subscription.
The price ID in friendly ID format.
Array of tax IDs in friendly ID format.
The day when subscription starts. The start_date must be a valid Unix timestamp (positive number) in seconds
The day when subscription ends. The end_date must be a valid Unix timestamp (positive number) in seconds
- Mock serverhttps://chaching.redocly.app/_mock/developer-guide/api/subscriptions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://chaching.redocly.app/_mock/developer-guide/api/subscriptions \
-H 'Content-Type: application/json' \
-H 'cc-api-key: string' \
-d '{
"customer": "cus_e29d2542e2615c78af0d313d",
"items": [
{
"price": "price_4N2gcTPKLGscC1OtN5ICQiIj",
"tax": [
"txr_dUhN2gnTAuEyTjHHVBr1eAZ8"
],
"quantity": 3
}
],
"trial_days": 14,
"start_date": 1672531199,
"end_date": 1672531199,
"start_billing_date": 1672531199
}'Subscription successfully created
Unique identifier for the subscription.
String representing the object's type.
Determines the date of the first full invoice, and, for plans with month or year intervals, the day of the month for subsequent invoices.
A date in the future at which the subscription will automatically get canceled.
Whether this subscription will (if status=active) or did (if status=canceled) cancel at the end of the current billing period.
If the subscription has been canceled, the date of that cancellation.
Either charge_automatically, or send_invoice.
Time at which the object was created. Measured in seconds since the Unix epoch.
Three-letter ISO currency code, in uppercase.
ID of the customer who owns the subscription.
If the subscription has ended, the date the subscription ended.
List of subscription items, each with an attached plan.
The most recent invoice this subscription has generated.
The status of the subscription.
If the subscription has a trial, the end of that trial.
{ "id": "sub_2FdhgypnsJQn9mZlY5qGaElL", "object": "subscription", "billing_cycle_anchor": 1679609767, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": null, "collection_method": "charge_automatically", "created": 1679609767, "currency": "USD", "customer": "cus_739c07713fd4b68565a969cd", "ended_at": null, "items": { "object": "list", "data": [ … ], "total_count": 1 }, "latest_invoice": "58d0f1c9-ca00-4998-8e89-d74a290b4df6", "start_date": 1679609767, "status": "active", "trial_end": null, "trial_start": null }
- Mock serverhttps://chaching.redocly.app/_mock/developer-guide/api/subscriptions/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://chaching.redocly.app/_mock/developer-guide/api/subscriptions/sub_2FdhgypnsJQn9mZlY5qGaElL \
-H 'cc-api-key: string'Successfully retrieved the subscription
Unique identifier for the subscription.
String representing the object's type.
Determines the date of the first full invoice, and, for plans with month or year intervals, the day of the month for subsequent invoices.
A date in the future at which the subscription will automatically get canceled.
Whether this subscription will (if status=active) or did (if status=canceled) cancel at the end of the current billing period.
If the subscription has been canceled, the date of that cancellation.
Either charge_automatically, or send_invoice.
Time at which the object was created. Measured in seconds since the Unix epoch.
Three-letter ISO currency code, in uppercase.
ID of the customer who owns the subscription.
If the subscription has ended, the date the subscription ended.
List of subscription items, each with an attached plan.
The most recent invoice this subscription has generated.
The status of the subscription.
If the subscription has a trial, the end of that trial.
{ "id": "sub_2FdhgypnsJQn9mZlY5qGaElL", "object": "subscription", "billing_cycle_anchor": 1679609767, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": null, "collection_method": "charge_automatically", "created": 1679609767, "currency": "USD", "customer": "cus_739c07713fd4b68565a969cd", "ended_at": null, "items": { "object": "list", "data": [ … ], "total_count": 1 }, "latest_invoice": "58d0f1c9-ca00-4998-8e89-d74a290b4df6", "start_date": 1679609767, "status": "active", "trial_end": null, "trial_start": null }
The ID of the customer for whom the invoice is to be created.
Array of products to be included in the subscription.
The price ID in friendly ID format.
Array of tax IDs in friendly ID format.
- Mock serverhttps://chaching.redocly.app/_mock/developer-guide/api/subscriptions/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PATCH \
https://chaching.redocly.app/_mock/developer-guide/api/subscriptions/sub_2FdhgypnsJQn9mZlY5qGaElL \
-H 'Content-Type: application/json' \
-H 'cc-api-key: string' \
-d '{
"customer": "cus_e29d2542e2615c78af0d313d",
"items": [
{
"price": "price_4N2gcTPKLGscC1OtN5ICQiIj",
"tax": [
"txr_dUhN2gnTAuEyTjHHVBr1eAZ8"
],
"quantity": 3
}
],
"trial_days": 14,
"end_date": 1672531199
}'Subscription successfully updated
Unique identifier for the subscription.
String representing the object's type.
Determines the date of the first full invoice, and, for plans with month or year intervals, the day of the month for subsequent invoices.
A date in the future at which the subscription will automatically get canceled.
Whether this subscription will (if status=active) or did (if status=canceled) cancel at the end of the current billing period.
If the subscription has been canceled, the date of that cancellation.
Either charge_automatically, or send_invoice.
Time at which the object was created. Measured in seconds since the Unix epoch.
Three-letter ISO currency code, in uppercase.
ID of the customer who owns the subscription.
If the subscription has ended, the date the subscription ended.
List of subscription items, each with an attached plan.
The most recent invoice this subscription has generated.
The status of the subscription.
If the subscription has a trial, the end of that trial.
{ "id": "sub_2FdhgypnsJQn9mZlY5qGaElL", "object": "subscription", "billing_cycle_anchor": 1679609767, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": null, "collection_method": "charge_automatically", "created": 1679609767, "currency": "USD", "customer": "cus_739c07713fd4b68565a969cd", "ended_at": null, "items": { "object": "list", "data": [ … ], "total_count": 1 }, "latest_invoice": "58d0f1c9-ca00-4998-8e89-d74a290b4df6", "start_date": 1679609767, "status": "active", "trial_end": null, "trial_start": null }