Cancel payment
Changed onCancel a payment based on the provided payment ID and the Authorisation token. The Authorisation token needs to be specified in the 'authorization' header as 'authorization: Bearer YOUR_API_KEY_HERE'. A payment can only be cancelled if it's in a state that isn't finished.
Request
- Base URLhttps://publicapi.payments.service.gov.uk
- URLhttps://publicapi.payments.service.gov.uk/v1/payments/{paymentId}/cancel
- AuthAPI key in header Authorization
Path parameters
Payment identifier
Response
No Content
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 - 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
added the media type
application/jsonfor the response with the status
- info