curl --request GET \
--url https://api.yorlet.com/v1/payment_sessions \
--header 'Authorization: <api-key>'{
"count": 1,
"has_more": false,
"object": "list",
"data": [
{
"id": "<string>",
"created": 123,
"object": "payment_session",
"amount": 123,
"currency": "<string>",
"customer": "<string>",
"description": "<string>",
"mode": "payment",
"payment_method_types": [
"<string>"
],
"reporting_type": "<string>",
"return_url": "<string>",
"status": "paid",
"transaction": "<string>",
"url": "<string>",
"account": "<string>",
"deleted": false,
"merchant": {
"business_name": "<string>",
"color": "<string>",
"country": "<string>",
"display_name": "<string>",
"icon": "<string>",
"id": "<string>",
"support_email": "<string>",
"support_phone": "<string>",
"support_website": "<string>"
},
"metadata": {}
}
]
}Returns a list of payment sessions. The payment sessions are returned sorted by creation date, with the most recent payment sessions appearing first.
curl --request GET \
--url https://api.yorlet.com/v1/payment_sessions \
--header 'Authorization: <api-key>'{
"count": 1,
"has_more": false,
"object": "list",
"data": [
{
"id": "<string>",
"created": 123,
"object": "payment_session",
"amount": 123,
"currency": "<string>",
"customer": "<string>",
"description": "<string>",
"mode": "payment",
"payment_method_types": [
"<string>"
],
"reporting_type": "<string>",
"return_url": "<string>",
"status": "paid",
"transaction": "<string>",
"url": "<string>",
"account": "<string>",
"deleted": false,
"merchant": {
"business_name": "<string>",
"color": "<string>",
"country": "<string>",
"display_name": "<string>",
"icon": "<string>",
"id": "<string>",
"support_email": "<string>",
"support_phone": "<string>",
"support_website": "<string>"
},
"metadata": {}
}
]
}API Key authentication. Use "Bearer YOUR_API_KEY".
A object with a data property that contains an array of payment sessions.
Was this page helpful?