Skip to Content
API ReferenceGet Open Stocks

Get Open Stocks

Retrieve all shipments currently locked in stock (i.e. awaiting an action) for the authenticated client.

GET /stocks/open

Request

Headers

HeaderValue
AuthorizationBearer <your_api_token>

Body Parameters

None.

Response

Returns a 200 OK with a JSON object containing a stocks array.

Response Fields

FieldTypeDescription
idintegerInternal stock ID
ldvstringTracking number (LDV) of the shipment
statusintegerStock status — 0 means open/pending action
notesstringNotes associated with the stock entry
created_atstringTimestamp of when the stock entry was created

Example Response

{ "stocks": [ { "id": 123, "ldv": "281095I072409", "status": 0, "notes": "recipient absent", "created_at": "2024-06-20T10:30:00.000000Z" }, { "id": 124, "ldv": "281095I072410", "status": 0, "notes": null, "created_at": "2024-06-21T08:15:00.000000Z" } ] }

Only shipments with status = 0 (open, awaiting action) are returned. Use the Update Stock endpoint to submit an action for each entry.

Error Codes

CodeDescription
200OK — returns list of open stocks
401Unauthorized — invalid or missing API token
Last updated on