Get all refunds for a payment
Changed onReturn refunds for a payment. 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/payments/{paymentId}/refunds
- AuthAPI key in header Authorization
Path parameters
Response
OK
Example response
{
"payment_id": "hu20sqlact5260q2nanm0q8u93",
"_links": {
"self": {
"href": "https://an.example.link/from/payment/platform",
"method": "GET"
},
"payment": {
"href": "https://an.example.link/from/payment/platform",
"method": "GET"
}
},
"_embedded": {
"refunds": [
{
"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"
}
}
]
}
}Changes
- 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 - 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
- info
the endpoint scheme security
BearerAuthwas added to the API - info
the endpoint scheme security
Authorizationwas removed from the API - info
added the media type
application/jsonfor the response with the status - info
added the media type
application/jsonfor the response with the status - info
added the media type
application/jsonfor the response with the status - info
added the media type
application/jsonfor the response with the status
- info