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.
Developer Guide
//
Get customer payment meth...
Chaching API (1.0)
Bodyapplication/jsonrequired
An arbitrary string attached to the object. Often useful for displaying to users.
Example: "My First Test Customer"
- Mock serverhttps://chaching.redocly.app/_mock/developer-guide/api/customers
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://chaching.redocly.app/_mock/developer-guide/api/customers \
-H 'Content-Type: application/json' \
-H 'cc-api-key: string' \
-d '{
"name": "John Doe",
"email": "john.doe@example.com",
"description": "My First Test Customer",
"phone": null,
"currency": "USD",
"address": [
{
"city": "San Francisco",
"country": "US",
"line1": "123 Market St",
"line2": "Apt 4B",
"postal_code": "94103",
"state": "CA"
}
],
"shipping": {
"name": "John Doe",
"phone": "+1 (555) 123-4567",
"address": {
"city": "San Francisco",
"country": "US",
"line1": "123 Market St",
"line2": "Apt 4B",
"postal_code": "94103",
"state": "CA"
}
}
}'Response
application/json
{ "id": "cus_NffrFeUfNV2Hib", "object": "customer", "name": "John Doe", "email": "john.doe@example.com", "description": "My First Test Customer", "phone": null, "created": 1680893993, "currency": "USD", "address": [ { … } ], "shipping": { "name": "John Doe", "phone": "+1 (555) 123-4567", "address": { … } } }
- Mock serverhttps://chaching.redocly.app/_mock/developer-guide/api/customers
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://chaching.redocly.app/_mock/developer-guide/api/customers?page=1&take=10&order=ASC&sortingField=createdAt' \
-H 'cc-api-key: string'Response
application/json
[ { "id": "cus_NffrFeUfNV2Hib", "object": "customer", "name": "John Doe", "email": "john.doe@example.com", "description": "My First Test Customer", "phone": null, "created": 1680893993, "currency": "USD", "address": [ … ], "shipping": { … } } ]
- Mock serverhttps://chaching.redocly.app/_mock/developer-guide/api/customers/search
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://chaching.redocly.app/_mock/developer-guide/api/customers/search?search=string' \
-H 'cc-api-key: string'Response
application/json
[ { "id": "string", "name": "string", "email": "string" } ]
- Mock serverhttps://chaching.redocly.app/_mock/developer-guide/api/customers/{externalKey}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://chaching.redocly.app/_mock/developer-guide/api/customers/cus_c93f7e842b89b9f7cad17918 \
-H 'cc-api-key: string'Response
application/json
{ "id": "cus_NffrFeUfNV2Hib", "object": "customer", "name": "John Doe", "email": "john.doe@example.com", "description": "My First Test Customer", "phone": null, "created": 1680893993, "currency": "USD", "address": [ { … } ], "shipping": { "name": "John Doe", "phone": "+1 (555) 123-4567", "address": { … } } }
- Mock serverhttps://chaching.redocly.app/_mock/developer-guide/api/customers/{externalKey}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PATCH \
https://chaching.redocly.app/_mock/developer-guide/api/customers/cus_c93f7e842b89b9f7cad17918 \
-H 'Content-Type: application/json' \
-H 'cc-api-key: string' \
-d '{
"email": "user@example.com",
"name": "string",
"billingAddress": {
"email": "user@example.com",
"address1": "string",
"address2": "string",
"postalCode": "string",
"city": "string",
"country": "string",
"state": "string",
"phone": "string"
},
"shippingAddress": {
"shippingAddress1": "string",
"shippingAddress2": "string",
"shippingPostalCode": "string",
"shippingCity": "string",
"shippingCountry": "string",
"shippingState": "string",
"shippingPhone": "string"
}
}'- Mock serverhttps://chaching.redocly.app/_mock/developer-guide/api/customers/{externalKey}/payment-methods
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://chaching.redocly.app/_mock/developer-guide/api/customers/cus_c93f7e842b89b9f7cad17918/payment-methods?page=1&take=10' \
-H 'cc-api-key: string'Response
application/json
{ "data": [ [] ], "meta": { "page": 0, "take": 0, "itemsTotal": 0, "pagesTotal": 0 } }
- Mock serverhttps://chaching.redocly.app/_mock/developer-guide/api/customers/{externalKey}/payment-methods/{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/customers/cus_c93f7e842b89b9f7cad17918/payment-methods/pm_1234567890abcdef \
-H 'cc-api-key: string'Customer payment method details
Controls whether the payment method can be redisplayed.
Example: "unspecified"
Billing details associated with the payment method.
Billing address associated with the payment method.
Street line 1 of the billing address.
Example: null
Street line 2 of the billing address.
Example: null
Response
application/json
{ "id": "pm_1Q0PsIJvEtkwdCNYMSaVuRz6", "object": "payment_method", "allow_redisplay": "unspecified", "billing_details": { "address": { … }, "email": null, "name": "John Doe", "phone": null }, "created": 1726673582, "customer": null, "livemode": false, "metadata": {}, "type": "us_bank_account", "us_bank_account": { "account_holder_type": "individual", "account_type": "checking", "bank_name": "STRIPE TEST BANK", "financial_connections_account": null, "fingerprint": "LstWJFsCK7P349Bg", "last4": "6789", "networks": { … }, "routing_number": "110000000", "status_details": {} } }