action payments_cancel_a_payment { label: "Cancel payment" description: "Cancel 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." provider: payments method: POST path: "/v1/payments/{paymentId}/cancel" encoding: json input: { type: "object" properties: { paymentId: { type: "string" } } required: ["paymentId"] additionalProperties: false } output: { type: "object" additionalProperties: true } }