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.
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_arrival — null 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
- 200
- 401
- 403
- 404
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Not Found
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.