Returns session by its id
cURL
curl --request GET \ --url https://api.toffeepay.com/v1/sessions/{id} \ --header 'Authorization: Bearer <token>'
{ "id": "<string>", "status": "pending", "user_id": "<string>", "game_id": "<string>", "item": { "title": "<string>", "price": 123, "currency": "USD", "image": "<string>", "country": "<string>" }, "created_at": "2023-11-07T05:31:56Z", "payment_id": "<string>", "paid_at": "2023-11-07T05:31:56Z", "failed_at": "2023-11-07T05:31:56Z", "cancelled_at": "2023-11-07T05:31:56Z", "expired_at": "2023-11-07T05:31:56Z", "tax": { "amount": 1 } }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Success
pending
paid
failed
cancelled
expired
Show child attributes
sales tax for the session