Skip to main content

Cancel Instance

Canceling an instance means that the user’s contract execution flow won’t need to run anymore.

InformationDataDescription
URL-Provided by boltPay squad
Endpoint/execution-instance/{instanceSid}/cancelinstanceSid: Generated sid sent in the create instance response.
MethodPOST-

Request

POST {url}/execution-instance/9ae5f1ff-8739-4fc6-a8d2-7643270b4a23

Headers: { Content-Type: application/json, Strategy-Secret: asdxcv123asdzxcv, Authorization: Bearer asd123asdfd123.asdasd123.asda13213 }

Respomse

{
"executionInstance": {
"cancelReason": "HTTP_REQUEST",
"executionDay": 10,
"status": "CANCELED",
"description": "Test doc Instance",
"sid": "9ae5f1ff-8739-4fc6-a8d2-7643270b4a23",
"updatedAt": "2024-05-29T14:55:56.592Z",
"createdAt": "2024-05-29T14:27:23.513Z"
},
"createdEvents": {
"onCancelEvents": []
},
"numCanceledEvents": 1
}