Skip to main content

Retrieve a payment

To check the status or available actions of a payment request, you can perform a GET request providing the payment id.

Please note that all our API endpoints have rate limiting and throttling policies. For more information, please see our Rate limiting page.

note

Details on authorization and headers can be found in our Open API specification.


GET https://api.paytently.io/payments/{payment_id}

Request:​

curl --location 'https://sandbox.api.paytently.io/payments/{payment_id}'
--header 'Authorization: Bearer token_here'

Response:​

{
"id": "pay_12345",
"status": "captured",
"reference": "ord123",
"amount": 100,
"amount_details": {
"total_authorized": 100,
"total_captured": 100,
"total_refunded": 0,
"available_to_capture": 0,
"available_to_refund": 100
},
"currency": "EUR",
"customer": {
"id": "customer123",
"first_name": "Joe",
"last_name": "Bloggs",
"birth_date": "1991-06-03",
"nationality": "GBR",
"contact": {
"phone": {
"country_code": "44",
"number": "07700900123"
},
"email": "email@example.com"
}
},
"billing_address": {
"line_one": "80 Queens Road",
"postal_code": "M63X 7TH",
"city": "Manchester",
"country": "GBR"
},
"device_ip_address": "123.123.123.123",
"application": {
"id": "app_12345",
"entity_id": "ent_12345",
},
"method": {
"type": "card",
"card": {
"number": "************9982",
"scheme": "visa",
"segment": "consumer",
"type": "debit",
"issuer": {
"name": "Example Bank Plc",
"country": "GBR"
}
}
},
"urls": {
"authorize": {
"success": "https://success.com",
"failure": "https://failure.com"
},
"webhook": "https://example.com/paytently/webhooks",
"merchant_website": "https://example.com"
},
"metadata": {
"key": "value"
},
"requested_on": "2024-08-29T11:28:22Z",
"completed_on": "2024-08-29T11:29:81Z",
"route": {
"id": "rou_12345",
"channel": {
"id": "cha_12345",
"name": "Example Channel"
},
"external_transaction_id": "1ab2-c3d4e5-f6g7h8-i9j0"
},
"_links": {
"self": {
"href": "https://sandbox.api.paytently.io/payments/pay_12345",
"method": "GET"
},
"refund": {
"href": "https://sandbox.api.paytently.io/payments/pay_12345/refunds",
"method": "POST"
}
}
}