Get Started
Document V2
Payment V2
Customer V2
Vendor V2
Product V2
Subscriptions V2
Utility V2
Payment V2
Record payment
POST
/
v2
/
payment
curl --request POST \
--url https://app.getswipe.in/api/partner/v2/payment \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"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",
"notes": "",
"send_sms": true,
"send_email": true,
"exclusive_notes": "",
"customer": "CUST123",
"documents": [
{
"amount_paying": 27,
"hash_id": "SLascded"
}
]
}'
{
"success": true,
"message": "Message",
"error_code": "",
"errors": {},
"data": {
"serial_number": "INV-123"
}
}
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Response
200
application/json
Payment recorded successfully
The response is of type object
.
curl --request POST \
--url https://app.getswipe.in/api/partner/v2/payment \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"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",
"notes": "",
"send_sms": true,
"send_email": true,
"exclusive_notes": "",
"customer": "CUST123",
"documents": [
{
"amount_paying": 27,
"hash_id": "SLascded"
}
]
}'
{
"success": true,
"message": "Message",
"error_code": "",
"errors": {},
"data": {
"serial_number": "INV-123"
}
}
Assistant
Responses are generated using AI and may contain mistakes.