Issue tax invoices
Guide
Ching integrates with Glance to issue tax invoice receipts automatically after every successful charge. You wire it up once per business identity; after that, every charge, subscription renewal, and upgrade produces a compliant document.
Connect your business identity
Two options:
- New to Glance. Call
POST /v1/business_identities/:id/enable-invoicingto spin up a Glance account linked to this business identity. - Existing Glance customer. Generate an editor+ API key in Glance, preview the link with
POST /v1/business_identities/:id/connect-glance/preview, then commit it withPOST /v1/business_identities/:id/connect-glance.
Once connected, your project's hasInvoicing flag turns to true and live charges can move money.
Retrieve documents
Every charge that succeeds has a document id on it. Fetch the document to get its PDF URL:
curl https://api.ching.co.il/v1/documents/doc_... \ -H "Authorization: Bearer sk_live_..."
Document types
| Type | Issued When |
|---|---|
tax_invoice_receipt | Default for successful paid charges |
receipt | Issued for specific refund and settlement cases |
Tip: The billing portal already exposes past invoices to customers - you don't need to build that list yourself.