Search refunds
You can use this endpoint to search refunds you’ve previously created. The refunds are sorted by date, with the most recently created refunds appearing first.
Request
- Base URLhttps://publicapi.payments.service.gov.uk
- URLhttps://publicapi.payments.service.gov.uk/v1/refunds
- AuthHTTP bearer
Query parameters
Returns refunds created on or after the from_date. Date and time must use Coordinated Universal Time (UTC) and ISO 8601 format to second-level accuracy - YYYY-MM-DDThh:mm:ssZ.
Returns refunds created before the to_date. Date and time must use Coordinated Universal Time (UTC) and ISO 8601 format to second-level accuracy - YYYY-MM-DDThh:mm:ssZ.
Returns refunds settled on or after the from_settled_date value. You can only use from_settled_date if your payment service provider is Stripe. Date must use ISO 8601 format to date-level accuracy - YYYY-MM-DD. Refunds are settled when Stripe takes the refund from your account balance.
Returns refunds settled before the to_settled_date value. You can only use to_settled_date if your payment service provider is Stripe. Date must use ISO 8601 format to date-level accuracy - YYYY-MM-DD. Refunds are settled when Stripe takes the refund from your account balance.
Returns a specific page of results. Defaults to 1.
The number of refunds returned per results page. Defaults to 500. Maximum value is 500.
Response
OK - your request was successful.
Example response
{
"_links": {
"first_page": {
"href": "https://an.example.link/from/payment/platform",
"method": "GET"
},
"last_page": {
"href": "https://an.example.link/from/payment/platform",
"method": "GET"
},
"next_page": {
"href": "https://an.example.link/from/payment/platform",
"method": "GET"
},
"prev_page": {
"href": "https://an.example.link/from/payment/platform",
"method": "GET"
},
"self": {
"href": "https://an.example.link/from/payment/platform",
"method": "GET"
}
},
"count": 20,
"page": 1,
"results": [
{
"_links": {
"payment": {
"href": "https://an.example.link/from/payment/platform",
"method": "GET"
},
"self": {
"href": "https://an.example.link/from/payment/platform",
"method": "GET"
}
},
"amount": 120,
"created_date": "2017-01-10T16:52:07.855Z",
"payment_id": "hu20sqlact5260q2nanm0q8u93",
"refund_id": "act4c33g40j3edfmi8jknab84x",
"settlement_summary": {
"settled_date": "2016-01-21"
},
"status": "success"
}
],
"total": 100
}Changes
No recorded changes to this operation across all 1 revision of this API.