put
https://test.bill.pro/api/v1/orders//cancel_order
Cancel an order or mark it as complete
Use this endpoint to terminate an order using the order number.
If the order has a preliminary status, which is before the customer makes an approved payment or card registration, the API will set the order status to Cancelled. This includes orders with the Draft, Pending, and Rejected status.
If the order has a live status, which is after an approved payment or card registration, the API will set the order status to Complete. This includes orders with the Active, Failed, Suspended, Paused, and Review status.
You cannot cancel or complete an order that is already Cancelled or Completed.