Search payments
Search payments by reference, state, 'from' and 'to' date. The Authorisation token needs to be specified in the 'authorization' header as 'authorization: Bearer YOUR_API_KEY_HERE'
Query parameters
Your payment reference to search (exact match, case insensitive)
The user email used in the payment to be searched
State of payments to be searched. Example=success
Card brand used for payment. Example=master-card
From date of payments to be searched (this date is inclusive). Example=2015-08-13T12:35:00Z
To date of payments to be searched (this date is exclusive). Example=2015-08-14T12:35:00Z
Page number requested for the search, should be a positive integer (optional, defaults to 1)
Number of results to be shown per page, should be a positive integer (optional, defaults to 500, max 500)
Name on card used to make payment
First six digits of the card used to make payment
Last four digits of the card used to make payment
From settled date of payment to be searched (this date is inclusive). Example=2015-08-13
To settled date of payment to be searched (this date is inclusive). Example=2015-08-14
Response
OK
Example response
{
"total": 100,
"count": 20,
"page": 1,
"_links": {
"self": {
"href": "https://an.example.link/from/payment/platform",
"method": "GET"
},
"first_page": {
"href": "https://an.example.link/from/payment/platform",
"method": "GET"
},
"last_page": {
"href": "https://an.example.link/from/payment/platform",
"method": "GET"
},
"prev_page": {
"href": "https://an.example.link/from/payment/platform",
"method": "GET"
},
"next_page": {
"href": "https://an.example.link/from/payment/platform",
"method": "GET"
}
},
"results": [
{
"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"
},
"cancel": {
"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"
},
"capture": {
"type": "application/x-www-form-urlencoded",
"href": "https://an.example.link/from/payment/platform",
"method": "POST"
}
},
"card_brand": "Visa"
}
]
}Changes
Changed in 7 of the 50 revisions of this API.4216
- ○
added the new optional
queryrequest parameterfrom_settled_datenew-optional-request-parameter
- ○
added the new optional
queryrequest parameterto_settled_datenew-optional-request-parameter
- ○
- ▲
removed the media type
application/jsonfor the response with the status200response-media-type-removed
- ▲
removed the media type
application/jsonfor the response with the status422response-media-type-removed
- ▲
removed the media type
application/jsonfor the response with the status429response-media-type-removed
- ▲
removed the media type
application/jsonfor the response with the status500response-media-type-removed
- ○
the endpoint scheme security
Authorizationwas added to the APIapi-security-added
- ○
the endpoint scheme security
BearerAuthwas removed from the APIapi-security-removed
This revision also has 46 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
the endpoint scheme security
BearerAuthwas added to the APIapi-security-added
- ○
the endpoint scheme security
Authorizationwas removed from the APIapi-security-removed
- ○
added the media type
application/jsonfor the response with the status200response-media-type-added
- ○
added the media type
application/jsonfor the response with the status422response-media-type-added
- ○
added the media type
application/jsonfor the response with the status429response-media-type-added
- ○
added the media type
application/jsonfor the response with the status500response-media-type-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
api tag
Card paymentsaddedapi-tag-added
- ○
api tag
Card Paymentsremovedapi-tag-removed
- ○
- ○
api operation id
searchPaymentsremoved and replaced withSearch paymentsapi-operation-id-removed
- ○
- ○
api tag
Card Paymentsaddedapi-tag-added
- ○
- ●
deleted the
queryrequest parameterfrom_settled_daterequest-parameter-removed
- ●
deleted the
queryrequest parameterto_settled_daterequest-parameter-removed
- ○
api operation id
Search paymentsremoved and replaced withsearchPaymentsapi-operation-id-removed
- ○
api tag
Card paymentsremovedapi-tag-removed
- ●