Payment V2
Record payment
Records a payment received from a customer. Optionally settle specific documents by pairing each hash_id with an amount_paying — partial settlement is supported and the document's payment status tracks what remains. Non-cash payment modes need a bank account configured on your account, otherwise the request fails with MISSING_BANK_ACCOUNT. Set send_sms or send_email to notify the customer.
post/v2/payment
Request
- Base URLhttps://app.getswipe.in/api/partner
- URLhttps://app.getswipe.in/api/partner/v2/payment
- AuthHTTP bearer
Request body
Example request
{
"amount": 27,
"payment_date": "13-06-2024",
"bank_details": {
"account_number": "1234567890",
"ifsc": "SBIN0000001",
"bank_name": "State Bank of India",
"branch": "Mumbai"
},
"payment_mode": "UPI",
"send_sms": true,
"send_email": true,
"customer": "CUST123",
"documents": [
{
"amount_paying": 27,
"hash_id": "SLascded"
}
]
}Response
Payment recorded successfully
Example response
{
"success": true,
"message": "Message",
"data": {
"serial_number": "INV-123"
}
}