v1
latestOpenAPI 3.0.12026-07-14164671.7 KBCard payments
Get information about a single payment
You can use this endpoint to get details about a single payment you’ve previously created.
get/v1/payments/{paymentId}
Path parameters
paymentIdstring required
Returns the payment with the matching payment_id.
Response
OK - your request was successful.
Example response
{
"_links": {
"auth_url_post": {
"href": "https://an.example.link/from/payment/platform",
"method": "POST",
"params": {
"description": "This is a value for a parameter called description"
},
"type": "application/x-www-form-urlencoded"
},
"cancel": {
"href": "https://an.example.link/from/payment/platform",
"method": "POST",
"params": {
"description": "This is a value for a parameter called description"
},
"type": "application/x-www-form-urlencoded"
},
"capture": {
"href": "https://an.example.link/from/payment/platform",
"method": "POST",
"params": {
"description": "This is a value for a parameter called description"
},
"type": "application/x-www-form-urlencoded"
},
"events": {
"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": {
"href": "https://an.example.link/from/payment/platform",
"method": "POST",
"params": {
"description": "This is a value for a parameter called description"
},
"type": "application/x-www-form-urlencoded"
},
"refunds": {
"href": "https://an.example.link/from/payment/platform",
"method": "GET"
},
"self": {
"href": "https://an.example.link/from/payment/platform",
"method": "GET"
}
},
"amount": 1200,
"card_brand": "Visa",
"card_details": {
"billing_address": {
"city": "address city",
"country": "GB",
"line1": "address line 1",
"line2": "address line 2",
"postcode": "AB1 2CD"
},
"card_brand": "Visa",
"card_type": "debit",
"cardholder_name": "Mr. Card holder",
"expiry_date": "04/24",
"first_digits_card_number": "123456",
"last_digits_card_number": "1234",
"wallet_type": "Apple Pay"
},
"corporate_card_surcharge": 250,
"created_date": "2016-01-21T17:15:00.000Z",
"description": "Your Service Description",
"email": "The paying user’s email address.",
"exemption": {
"outcome": {
"result": "honoured"
},
"requested": true,
"type": "corporate"
},
"fee": 5,
"language": "en",
"net_amount": 1195,
"payment_id": "hu20sqlact5260q2nanm0q8u93",
"payment_provider": "worldpay",
"provider_id": "reference-from-payment-gateway",
"reference": "your-reference",
"refund_summary": {
"amount_available": 100,
"status": "available"
},
"return_url": "http://your.service.domain/your-reference",
"settlement_summary": {
"capture_submit_time": "2016-01-21T17:15:00.000Z",
"captured_date": "2016-01-21",
"settled_date": "2016-01-21"
},
"state": {
"code": "P010",
"message": "User cancelled the payment",
"status": "created"
},
"total_amount": 1450
}