Choose what you need
For NGOsHeartswill for NGOs APISend donations from your website, Razorpay or CRM and get numbered receipts back. Read donations, receipts, projects, deliveries and impact.
For brands and storesHeartswill Partner APITurn orders into pledges for a cause, track each one to delivery and show proof with a public tracking link.
For any websiteWidgets and badgesOne script tag shows your verified impact card and a badge that only turns green on your own domain.
PublicReceipt verificationCheck that a donation receipt is genuine from the code in its QR. No key and no personal data.
Machine readableOpenAPI 3.1 specImport the NGO API into Postman, Insomnia or a code generator.
GuidesHeartswill LearnPlain-language guides on the rules behind the API: Forms 113 and 114, FCRA, CSR and proof of impact.
Quickstart in three steps
- Create a keyIn the app, open API keys, name the key and tick only the permissions it needs. Copy it once; only a fingerprint is stored.
- Send a test donationUse your own order or payment ID as
external_ref, so a retry can never create a second receipt. - Show the receiptThe response has the receipt number and a verify link you can email or show on your thank-you page.
curl
curl https://app.ngo.heartswill.com/api/v1/donations \
-H "Authorization: Bearer $HEARTSWILL_NGO_KEY" \
-H "Content-Type: application/json" \
-d '{"external_ref":"pay_TyXaZl5tn28x5r","amount_inr":1500,"mode":"upi",
"donor":{"name":"Riya Kapoor","email":"riya@example.org","pan":"ABCDE1234F"}}'How we build our APIs
- Safe retries. Every write takes your own reference. Sending it twice returns the first result with
duplicate: true. - Least privilege. Keys carry scopes, belong to one organisation and can be revoked instantly.
- Privacy by default. Donor IDs are encrypted at rest and only ever returned masked. The public ledger holds counts, dates and photo fingerprints, never personal data.
- Same rules as the app. Receipt numbering, deduction eligibility and audit logging work exactly as they do on screen.
What's next
- Webhooks when a receipt is issued or a delivery is sealed.
- Official Node and Python libraries.
- Write access for projects and deliveries, for organisations that run their own field tools.
Questions or a use case we don't cover yet? Write to the Heartswill team from the app.