Skip to content

pollBatchStatus

pollBatchStatus(getStatus, batchRequestId, opts?): Promise<BatchRequestResult>

Defined in: sdks/trendyol/src/resources/inventory.ts:64

Poll a Trendyol batch request until it settles (see isBatchSettled: COMPLETED / FAILED, or every item final) or the timeout elapses.

Standalone so callers can poll an id obtained elsewhere (e.g. a persisted batchRequestId from a previous process) without going through InventoryResource.updateAndWait.

When the timeout elapses on a batch whose status already reads COMPLETED / FAILED, that last result is returned (some items may be missing) rather than thrown.

BatchStatusPoller

string

BatchPollOptions = {}

Promise<BatchRequestResult>

when the batch does not settle within timeoutMs; error.data carries { batchRequestId, lastStatus, lastResult }.

Unofficial. Lonca is an independent, community-maintained project — not affiliated with, endorsed by, or supported by Trendyol, Hepsiburada, or any other marketplace. All marketplace names and trademarks belong to their respective owners.