Search refunds
Changed onSearch refunds by 'from' and 'to' date. The Authorisation token needs to be specified in the 'authorization' header as 'authorization: Bearer YOUR_API_KEY_HERE'
Request
- Base URLhttps://publicapi.payments.service.gov.uk
- URLhttps://publicapi.payments.service.gov.uk/v1/refunds
- AuthAPI key in header Authorization
Query parameters
From date of refunds to be searched (this date is inclusive). Example=2015-08-13T12:35:00Z
To date of refunds to be searched (this date is exclusive). Example=2015-08-14T12:35:00Z
From settled date of refund to be searched (this date is inclusive). Example=2015-08-13
To settled date of refund to be searched (this date is inclusive). Example=2015-08-13
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)
Response
OK
Example response
{
"total": 100,
"count": 20,
"page": 1,
"results": [
{
"refund_id": "act4c33g40j3edfmi8jknab84x",
"created_date": "2017-01-10T16:52:07.855Z",
"amount": 120,
"_links": {
"self": {
"href": "https://an.example.link/from/payment/platform",
"method": "GET"
},
"payment": {
"href": "https://an.example.link/from/payment/platform",
"method": "GET"
}
},
"status": "success",
"settlement_summary": {
"settled_date": "2016-01-21"
}
}
],
"_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"
}
}
}Changes
- info
added the new optional
queryrequest parameterfrom_settled_date - info
added the new optional
queryrequest parameterto_settled_date
- info
- breaking
removed the media type
application/jsonfor the response with the status - breaking
removed the media type
application/jsonfor the response with the status - breaking
removed the media type
application/jsonfor the response with the status - info
the endpoint scheme security
Authorizationwas added to the API - info
the endpoint scheme security
BearerAuthwas removed from the API
- breaking