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.
- Production
- Sandbox
GET https://api.paytently.io/payments/{payment_id}
GET https://sandbox.api.paytently.io/payments/{payment_id}
Request:
curl --location 'https://sandbox.api.paytently.io/payments/{payment_id}'
--header 'Authorization: Bearer token_here'
Response:
- 200
- 400
- 403
- 404
- 500
- Card
- Open banking
{
"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"
}
}
}
{
"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": 0
},
"currency": "EUR",
"customer": {
"id": "customer123",
"first_name": "Joe",
"last_name": "Bloggs",
"nationality": "GBR",
"birth_date": "1991-06-03",
"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",
"aft": {
"number": "ab1cd234-56e7-7891-2345-6f789g1hi23j",
},
"application": {
"id": "app_12345",
"entity_id": "ent_12345",
},
"method": {
"type": "open_banking",
"open_banking": {
"country": "SWE",
"number": "5000 0000 0583 9825 7466",
"type": "bban",
}
},
"urls": {
"authorize": {
"success": "https://success.com",
"failure": "https://failure.com"
},
"webhook": "https://example.com/paytently/webhooks"
},
"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"
}
}
}
{
"trace_id": "12345",
"errors": [
{
"code": "malformed_id",
"reason": "",
"docs": ""
}
]
}
No body returned for response
No body returned for response
{
"title": "Server error",
"status": 500,
"trace_id": "12345"
}