Skip to content

pollBatchStatus

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

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

Poll a Trendyol batch request until it reaches a terminal state (COMPLETED / FAILED) 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.

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.