Pobierz postęp uruchomienia wsadowego
const url = 'https://twoja-instancja-ajs-api.enterprise.sellrocket.pl/api/v3/runs/batchProgress/1';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://twoja-instancja-ajs-api.enterprise.sellrocket.pl/api/v3/runs/batchProgress/1 \ --header 'Authorization: Bearer <token>'Zwraca postęp uruchomienia rozpoczętego przez /api/automaticScripts/start_batch.
Autoryzacja
Dział zatytułowany „Autoryzacja”Parametry
Dział zatytułowany „Parametry”Parametry ścieżki
Dział zatytułowany „Parametry ścieżki”The id of the run correlated with batch.
Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success
Response that describes batch progress.
object
Id of the run correlated to whole batch.
Id of the batch.
Date and time when batch was created.
Ids of AJSes ran in this batch.
Fraction of finished runs in this batch, in percents.
Descriptions of runs executed for each order in batch.
Description of runs executed for certain order in batch.
object
Id of the order.
Fraction of finished runs for this order, in percents.
Description of runs executed for certain order in batch.
object
Id of the run.
Id of the AJS.
State of the run.
Status of the run.
Response that describes batch progress.
object
Id of the run correlated to whole batch.
Id of the batch.
Date and time when batch was created.
Ids of AJSes ran in this batch.
Fraction of finished runs in this batch, in percents.
Descriptions of runs executed for each order in batch.
Description of runs executed for certain order in batch.
object
Id of the order.
Fraction of finished runs for this order, in percents.
Description of runs executed for certain order in batch.
object
Id of the run.
Id of the AJS.
State of the run.
Status of the run.
Examplegenerated
{ "runId": 1, "batchId": 1, "createdAt": "2026-04-15T12:00:00Z", "ajsIds": [ 1 ], "progress": 1, "orders": [ { "id": 1, "progress": 1, "runs": [ { "id": 1, "ajsId": 1, "state": "example", "status": "example", "errors": [ "example" ] } ] } ]}Response that describes batch progress.
object
Id of the run correlated to whole batch.
Id of the batch.
Date and time when batch was created.
Ids of AJSes ran in this batch.
Fraction of finished runs in this batch, in percents.
Descriptions of runs executed for each order in batch.
Description of runs executed for certain order in batch.
object
Id of the order.
Fraction of finished runs for this order, in percents.
Description of runs executed for certain order in batch.
object
Id of the run.
Id of the AJS.
State of the run.
Status of the run.
Examplegenerated
{ "runId": 1, "batchId": 1, "createdAt": "2026-04-15T12:00:00Z", "ajsIds": [ 1 ], "progress": 1, "orders": [ { "id": 1, "progress": 1, "runs": [ { "id": 1, "ajsId": 1, "state": "example", "status": "example", "errors": [ "example" ] } ] } ]}
