v1
latestSwagger 2.02026-07-13103251.8 KBCard payments
Find payment by ID
Return information about the payment The Authorisation token needs to be specified in the 'authorization' header as 'authorization: Bearer YOUR_API_KEY_HERE'
get/v1/payments/{paymentId}
Path parameters
paymentIdstring required
Payment identifier
Response
OK
Example response
{
"amount": 1200,
"description": "Your Service Description",
"reference": "your-reference",
"language": "en",
"email": "your email",
"state": {
"status": "created",
"message": "User cancelled the payment",
"code": "P010"
},
"payment_id": "hu20sqlact5260q2nanm0q8u93",
"payment_provider": "worldpay",
"created_date": "2016-01-21T17:15:000Z",
"refund_summary": {
"status": "available",
"amount_available": 100
},
"settlement_summary": {
"capture_submit_time": "2016-01-21T17:15:000Z",
"captured_date": "2016-01-21",
"settled_date": "2016-01-21"
},
"card_details": {
"last_digits_card_number": "1234",
"first_digits_card_number": "123456",
"cardholder_name": "Mr. Card holder",
"expiry_date": "04/24",
"billing_address": {
"line1": "address line 1",
"line2": "address line 2",
"postcode": "AB1 2CD",
"city": "address city",
"country": "GB"
},
"card_brand": "Visa",
"card_type": "debit"
},
"corporate_card_surcharge": 250,
"total_amount": 1450,
"fee": 5,
"net_amount": 1195,
"provider_id": "reference-from-payment-gateway",
"return_url": "http://your.service.domain/your-reference",
"_links": {
"self": {
"href": "https://an.example.link/from/payment/platform",
"method": "GET"
},
"next_url": {
"href": "https://an.example.link/from/payment/platform",
"method": "GET"
},
"next_url_post": {
"type": "application/x-www-form-urlencoded",
"href": "https://an.example.link/from/payment/platform",
"method": "POST"
},
"events": {
"href": "https://an.example.link/from/payment/platform",
"method": "GET"
},
"refunds": {
"href": "https://an.example.link/from/payment/platform",
"method": "GET"
},
"cancel": {
"type": "application/x-www-form-urlencoded",
"href": "https://an.example.link/from/payment/platform",
"method": "POST"
},
"capture": {
"type": "application/x-www-form-urlencoded",
"href": "https://an.example.link/from/payment/platform",
"method": "POST"
}
},
"card_brand": "Visa"
}