Get purchase order fulfillment
Returns the supplier's confirmations and shipments for an order.
GET/v1/workspaces/{regionId}/purchase-orders/{poId}/fulfillment
Parameters
poIdstringRequiredThe purchase order identifier.
buyerstringSupplier callers: the buyer's Workspace ID, when two buyers issued the same id.
Returns
200 OK with the object shown in the response.
More details
What the supplier said about an order: its latest confirmation (outcome accepted, backordered, changed, partial or rejected, line by line, with the buyer's decision on changes), the earlier ones, and its shipments (planned, shipped or canceled, with carrier and tracking). Each shipment lists the approved goods receipts entered against it. shippedByLine adds up the shipped quantities; expectedDeliveryDate is the latest delivery date the supplier gave. A supplier whose buyers share a PO id adds ?buyer=<buyer Workspace ID>.
Response fields
confirmationOrderConfirmationThe latest confirmation, absent until the supplier answers. Its outcome is the order's.
shippedByLineArrayPer line, the quantity in shipped shipments. Planned and canceled ones aren't counted.
Errors
- 404 Not Found - No purchase order with this id is yours.
- 401 Unauthorized - No credential was presented, or the Bearer token / X-Api-Key value is missing, invalid, expired, or revoked.
- 403 Forbidden - The caller's Bearer token or API key doesn't grant access to this workspace (regionId), or lacks the required role.
curl "$PLEAXY_API_BASE_URL/v1/workspaces/{regionId}/purchase-orders/{poId}/fulfillment" \
-H "X-Api-Key: $PLEAXY_API_KEY"{
"confirmation": OrderConfirmation,
"confirmations": [
{
"id": "string",
"poId": "string",
"outcome": "accepted" | "backordered" | "changed" | "partial" | "rejected",
"confirmId": "string",
"deliveryDate": "YYYY-MM-DD",
"note": "string",
"lines": [ { "lineNo": number, "status": "accept" | "backordered" | "change" | "reject", "qty": number, "unitPrice": number, "substitute": { "supplierPartId": "string", "name": "string", "catalogItemId": "string" }, "shipmentDate": "YYYY-MM-DD", "deliveryDate": "YYYY-MM-DD", "reason": "string" } ],
"decision": { "decision": "applied" | "declined", "at": "string", "version": number, "reason": "string" },
"source": "portal" | "api" | "cxml",
"createdAt": "string"
}
],
"shipNotices": [
{
"shipmentId": "string",
"status": "planned" | "shipped" | "canceled",
"shipmentDate": "YYYY-MM-DD",
"deliveryDate": "YYYY-MM-DD",
"carrier": "string",
"trackingNumber": "string",
"trackingUrl": "string",
"lines": [ { "lineNo": number, "qty": number } ],
"source": "portal" | "api" | "cxml",
"createdAt": "string",
"updatedAt": "string",
"receipts": [ { "id": "string", "receivedAt": "YYYY-MM-DD" } ]
}
],
"shippedByLine": [ { "lineNo": number, "qty": number } ],
"expectedDeliveryDate": "YYYY-MM-DD"
}