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/invoices
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://chaching.redocly.app/_mock/developer-guide/api/invoices?page=1&take=10' \
-H 'cc-api-key: string'{ "data": [ [] ], "meta": { "page": 0, "take": 0, "itemsTotal": 0, "pagesTotal": 0 } }
The collection method for this invoice.
The ID of the customer for whom the invoice is to be created.
The date on which payment for this invoice is due. Valid only for invoices where collection_method=send_invoice.
The default payment method to be used for this invoice. Valid only for invoices where collection_method=charge_automatically.
Array of products to be included in the invoice.
The price ID in friendly ID format.
Array of tax IDs in friendly ID format.
- Mock serverhttps://chaching.redocly.app/_mock/developer-guide/api/invoices
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://chaching.redocly.app/_mock/developer-guide/api/invoices \
-H 'Content-Type: application/json' \
-H 'cc-api-key: string' \
-d '{
"collection_method": "charge_automatically",
"customer": "cus_383fda0065594749023e8c8d",
"due_date": 1672531199,
"default_payment_method": "pm_1SfME4DZYOQH9uHkDutknty1",
"items": [
{
"price": "price_4N2gcTPKLGscC1OtN5ICQiIj",
"tax": [
"txr_dUhN2gnTAuEyTjHHVBr1eAZ8"
],
"quantity": 3
}
]
}'Invoice successfully created
Unique identifier for the object.
String representing the object’s type.
Country of the account associated with the invoice (only US is supported).
Final amount due at this time for this invoice (in cents for USD).
The difference between amount_due and amount_paid, in cents.
Describes why this invoice was created.
Collection method of this 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 associated with this invoice.
Email of the customer associated with the invoice.
A unique, identifying string that appears on emails sent to the customer for this invoice.
End of the usage period during which invoice items were added to this invoice.
Start of the usage period during which invoice items were added to this invoice.
The status of the invoice, one of draft, open, paid, or void.
The ID of the subscription that this invoice was prepared for, if any.
Total of all subscriptions, invoice items, and prorations on the invoice before any invoice level discount or exclusive tax is applied
The integer amount in cents representing the subtotal of the invoice before any invoice level discount or tax is applied
The integer amount in cents representing the total amount of the invoice including all discounts but excluding all tax.
{ "id": "a80baa67-1341-4184-b712-b6f9b85b5a2b", "object": "invoice", "account_country": "US", "account_name": "Acme Corp", "amount_due": 1500, "amount_paid": 500, "amount_remaining": 1000, "attempt_count": 1, "attempted": true, "billing_reason": "subscription", "collection_method": "charge_automatically", "created": 1680645568, "currency": "USD", "customer": "cus_383fda0065594749023e8c8d", "customer_address": { "city": "San Francisco", "country": "US", "line1": "123 Market St", "line2": "Apt 4B", "postal_code": "94103", "state": "CA" }, "customer_email": "john.doe@example.com", "customer_name": "John Doe", "customer_phone": "+1234567890", "lines": [], "number": "INV-1001", "paid": true, "period_end": 1680645568, "period_start": 1680645568, "status": "paid", "status_transitions": { "finalized_at": 1680645568, "paid_at": 1680645568, "voided_at": 1680645568 }, "subscription": "sub_Wm45f5PGQvv67azFeH1z7PO3", "subtotal": 1500, "subtotal_excluding_tax": 1500, "tax": 150, "total": 1650, "total_excluding_tax": 1500, "total_taxes": { "amount": 150, "tax_behavior": "exclusive", "tax_rate": "txr_1S2tlWDZYOQH9uHkltYEi1ap", "taxable_amount": 1500 } }
- Mock serverhttps://chaching.redocly.app/_mock/developer-guide/api/invoices/{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/invoices/84c413b1-cda9-4637-a75d-352e36274bf2 \
-H 'cc-api-key: string'Successfully retrieved the invoice
Unique identifier for the object.
String representing the object’s type.
Country of the account associated with the invoice (only US is supported).
Final amount due at this time for this invoice (in cents for USD).
The difference between amount_due and amount_paid, in cents.
Describes why this invoice was created.
Collection method of this 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 associated with this invoice.
Email of the customer associated with the invoice.
A unique, identifying string that appears on emails sent to the customer for this invoice.
End of the usage period during which invoice items were added to this invoice.
Start of the usage period during which invoice items were added to this invoice.
The status of the invoice, one of draft, open, paid, or void.
The ID of the subscription that this invoice was prepared for, if any.
Total of all subscriptions, invoice items, and prorations on the invoice before any invoice level discount or exclusive tax is applied
The integer amount in cents representing the subtotal of the invoice before any invoice level discount or tax is applied
The integer amount in cents representing the total amount of the invoice including all discounts but excluding all tax.
{ "id": "a80baa67-1341-4184-b712-b6f9b85b5a2b", "object": "invoice", "account_country": "US", "account_name": "Acme Corp", "amount_due": 1500, "amount_paid": 500, "amount_remaining": 1000, "attempt_count": 1, "attempted": true, "billing_reason": "subscription", "collection_method": "charge_automatically", "created": 1680645568, "currency": "USD", "customer": "cus_383fda0065594749023e8c8d", "customer_address": { "city": "San Francisco", "country": "US", "line1": "123 Market St", "line2": "Apt 4B", "postal_code": "94103", "state": "CA" }, "customer_email": "john.doe@example.com", "customer_name": "John Doe", "customer_phone": "+1234567890", "lines": [], "number": "INV-1001", "paid": true, "period_end": 1680645568, "period_start": 1680645568, "status": "paid", "status_transitions": { "finalized_at": 1680645568, "paid_at": 1680645568, "voided_at": 1680645568 }, "subscription": "sub_Wm45f5PGQvv67azFeH1z7PO3", "subtotal": 1500, "subtotal_excluding_tax": 1500, "tax": 150, "total": 1650, "total_excluding_tax": 1500, "total_taxes": { "amount": 150, "tax_behavior": "exclusive", "tax_rate": "txr_1S2tlWDZYOQH9uHkltYEi1ap", "taxable_amount": 1500 } }
- Mock serverhttps://chaching.redocly.app/_mock/developer-guide/api/invoices/{id}/transactions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://chaching.redocly.app/_mock/developer-guide/api/invoices/{id}/transactions?page=1&take=10' \
-H 'cc-api-key: string'{ "data": [ [] ], "meta": { "page": 0, "take": 0, "itemsTotal": 0, "pagesTotal": 0 } }
- Mock serverhttps://chaching.redocly.app/_mock/developer-guide/api/invoices/{id}/transactions/{transactionId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://chaching.redocly.app/_mock/developer-guide/api/invoices/84c413b1-cda9-4637-a75d-352e36274bf2/transactions/1ac67144-c4eb-4977-a185-674278685a5f \
-H 'cc-api-key: string'Successfully retrieved transaction details
ID of the payment method used in this transaction.
The date that the transaction’s net funds become available in the Stripe balance.
Detailed breakdown of fees (in cents) paid for this transaction.
{ "id": "txn_1MiN3gLkdIwHu7ixxapQrznl", "object": "balance_transaction", "amount": -400, "payment_method": "pm_1MiN3gLkdIwHu7ixxYzWqR2b", "balance_type": "default", "available_on": 1678043844, "created": 1678043844, "currency": "usd", "description": "Transfer to acct_1MiN3gLkdIwHu7ix", "exchange_rate": null, "fee": 0, "fee_details": [], "net": -400, "status": "available", "type": "transfer" }