Get Instance Tasks
Get all non-finished tasks created to be executed based on the Strategy flow.
Information | Data | Description |
---|---|---|
URL | - | Provided by boltPay squad |
Endpoint | /execution-instance/{instanceSid}/get-tasks | instanceSid: Generated sid sent in the create instance response. |
Method | GET | - |
Request
GET {url}/execution-instance/1b791c08-6c95-4dba-8b26-2efafb1fa366
Headers: { Content-Type: application/json, Strategy-Secret: asdxcv123asdzxcv, Authorization: Bearer asd123asdfd123.asdasd123.asda13213 }
Response
[
{
"sid": "282b15a3-a817-42d3-a83d-72c7a6d1c4ec",
"instanceSid": "1b791c08-6c95-4dba-8b26-2efafb1fa366",
"strategySid": "e95134ab-7cb8-4f0f-9862-038730c9f12f",
"status": "PENDING",
"main": false,
"afterCancellation": false,
"task": "on-creation",
"date": "2024-05-29T23:00:00.000Z",
"attempt": 1,
"createdAt": "2024-05-29T16:07:01.403Z"
},
{
"sid": "3a2419f4-9ccc-4322-8c09-8d7e431689c7",
"instanceSid": "1b791c08-6c95-4dba-8b26-2efafb1fa366",
"strategySid": "e95134ab-7cb8-4f0f-9862-038730c9f12f",
"status": "PENDING",
"main": false,
"afterCancellation": false,
"task": "c2p-reminder",
"date": "2024-05-30T12:00:00.000Z",
"attempt": 1,
"createdAt": "2024-05-29T16:07:01.403Z"
},
{
"sid": "98b6bd07-b9a7-4836-8b89-db6c13153c47",
"instanceSid": "1b791c08-6c95-4dba-8b26-2efafb1fa366",
"strategySid": "e95134ab-7cb8-4f0f-9862-038730c9f12f",
"status": "PENDING",
"main": false,
"afterCancellation": false,
"task": "c2p-expiration",
"date": "2024-05-30T12:00:00.000Z",
"attempt": 1,
"createdAt": "2024-05-29T16:07:01.403Z"
},
{
"sid": "4fa15a0a-4208-454f-b0c4-e764a21f4ea6",
"instanceSid": "1b791c08-6c95-4dba-8b26-2efafb1fa366",
"strategySid": "e95134ab-7cb8-4f0f-9862-038730c9f12f",
"status": "ONHOLD",
"main": false,
"afterCancellation": false,
"task": "c2p-test-failed",
"date": "2024-05-30T12:00:00.000Z",
"attempt": 1,
"createdAt": "2024-05-29T16:07:01.403Z"
},
{
"sid": "18a24bae-63c1-41b7-903a-aeaf85e57663",
"instanceSid": "1b791c08-6c95-4dba-8b26-2efafb1fa366",
"strategySid": "e95134ab-7cb8-4f0f-9862-038730c9f12f",
"status": "PENDING",
"main": true,
"afterCancellation": false,
"task": "execute-installment",
"date": "2024-06-29T12:00:00.000Z",
"attempt": 1,
"createdAt": "2024-05-29T16:07:01.403Z"
}
]