Cancel payment instruction
Use this method to cancel a payment instruction.
You can cancel a payment instruction only if its status is `inProgress`. To retrieve the status of a payment instruction, use our [Retrieve Payment Instruction](https://docs.payroc.com/api/schema/payroc-cloud/payment-instructions/retrieve) method.
To cancel a payment instruction, you need its paymentInstructionId. Our gateway returned the paymentInstructionId in the response of the [Submit Payment Instruction](https://docs.payroc.com/api/schema/payroc-cloud/payment-instructions/submit) method.
Path parameters
paymentInstructionId
Unique identifier that we assigned to the payment instruction.
Headers
Authorization
Bearer authentication of the form Bearer <token>
, where token is your auth token.
Response
Successful request. We canceled the payment instruction.