Bearer Authorization🔗
The access token needs to be provided in the Bearer
Authorization header while requesting Razorpay APIs.
Copycurl -XGET https://api.razorpay.com/v1/payments
-H "Authorization: Bearer <YOUR_ACCESS_TOKEN>"
Copycurl -XGET https://api.razorpay.com/v1/payments
-H "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjlUNVV.ZeVJzQTlNY3c5In0eyJhdW"
Copy{
"count":2,
"entity":"collection",
"items":[
{
"id":"pay_7IZD7aJ2kkmOjk",
"entity":"payment",
"amount":29900,
"currency":"INR",
"status":"captured",
"order_id":null,
"invoice_id":null,
"international":false,
"method":"wallet",
"amount_refunded":0,
"refund_status":null,
"captured":true,
"description":"Purchase Description",
"card_id":null,
"bank":null,
"wallet":"freecharge",
"vpa":null,
"email":"gaurav.kumar@example.com",
"contact":"9123456780",
"notes":{
"merchant_order_id":"order id"
},
"fee":12,
"tax":2,
"error_code":null,
"error_description":null,
"created_at":1487348129
},
{
"id":"pay_19btGlBig6xZ2f",
"entity":"payment",
"amount":500,
"currency":"INR",
"status":"captured",
"order_id":null,
"invoice_id":null,
"international":false,
"method":"card",
"amount_refunded":0,
"refund_status":null,
"captured":true,
"description":"Purchase Description",
"card_id":"card_12abClEig3hi2k",
"bank":null,
"wallet":null,
"vpa":null,
"email":"saurav.kumar@example.com",
"contact":"9988776655",
"notes":{
"merchant_order_id":"order id"
},
"fee":12,
"tax":2,
"error_code":null,
"error_description":null,
"created_at":1400826750
}
]
}