action payments_capture_a_payment { label: "Capture payment" description: "Capture 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 captured if it's in 'submitted' state" provider: payments method: POST path: "/v1/payments/{paymentId}/capture" encoding: json input: { type: "object" properties: { paymentId: { type: "string" } } required: ["paymentId"] additionalProperties: false } output: { type: "object" additionalProperties: true } }