Skip to main content

Get Expected Arrival For Purchase Order

GET 

/api/veracore/purchase-orders/:purchaseOrder/expected-arrival

Whether a purchase order's destination warehouse belongs to a Veracore connection, and what became of the arrival announced for it.

Not yet available to API tokens

This endpoint currently requires session authentication; Personal Access Token scope support is in progress.

is_eligible is false when no Veracore connection maps the purchase order's destination warehouse. That is a normal answer for most purchase orders, and it is the only field returned in that case.

When is_eligible is true the response names the connection (integration_instance_id, integration_instance_name) and the Veracore facility its destination warehouse maps to (veracore_warehouse_id, veracore_warehouse_name), reports whether that connection announces approved purchase orders without being asked (auto_push_enabled), and returns the current announcement in expected_arrivalnull when the purchase order has never been announced.

Announce it by passing the returned integration_instance_id to POST /api/veracore/integration-instances/{integration_instance}/expected-arrivals/push with purchase_order_id. Re-announcing updates the existing arrival rather than creating a second one — Veracore matches on foreign_system_key.

An expected_arrival with is_locked: true has already been received by the warehouse and can no longer be changed or cancelled.

Authentication: Requires Bearer token.

Request

Responses

OK

Response Headers
    Content-Type