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

Authorization
string
header
required

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.