API Documentation

Accept payments, save cards, bill subscriptions, and issue tax invoices through the Ching REST API. Integrate in minutes with a test key or go live once your payment provider is approved.

Quick Start

Create a customer with curl:

Terminal
curl -X POST https://api.ching.co.il/v1/customers \
  -H "Authorization: Bearer sk_test_..." \
  -H "Content-Type: application/json" \
  -d '{"name": "Tal Levi", "email": "tal@example.com"}'
Authentication guide →

Attach a test card and charge it:

Terminal
curl -X POST https://api.ching.co.il/v1/payment_methods/test-card \
  -H "Authorization: Bearer sk_test_..." \
  -d '{"customer": "cus_..."}'

curl -X POST https://api.ching.co.il/v1/charges \
  -H "Authorization: Bearer sk_test_..." \
  -d '{"customer": "cus_...", "payment_method": "pm_...", "amount": 9900}'

Base URL

Every request is made against:

https://api.ching.co.il