Skip to main content
Payments record money received from a customer. A payment belongs to a customer, and can settle one or more of that customer’s documents — fully or partially.

Record a payment

POST /v2/payment needs four things: the customer, an amount, a date, and a payment mode. Add a documents array to settle specific invoices by hash_id:
  • payment_mode — one of Cash, Cheque, UPI, Card, Net Banking, paylater, cardless_emi, EMI, TDS, Credits
  • documents — optional; each entry pairs a document hash_id with the amount_paying toward it. Partial amounts are fine — the document’s payment status tracks what’s outstanding.
  • send_sms / send_email — notify the customer about the recorded payment
  • Non-cash modes need a bank account configured on your Swipe account — otherwise the request fails with MISSING_BANK_ACCOUNT
Payments and balances also flow into each customer’s payment ledger.
Record payment screen in the Swipe dashboard

The same payment, recorded in the Swipe dashboard

Endpoints

Record payment

Record a payment and settle documents.

List of payments

List recorded payments over a date range.