Send Acknowledgment (855)
POST/api/spscommerce/:integrationInstance/purchase-orders/acknowledge
Send the EDI 855 purchase order acknowledgment to SPS Commerce for purchase orders that became sales orders and have not been acknowledged yet. Pass purchase_order_ids to acknowledge only those orders; leave it out to acknowledge every pending order on the connection.
integrations:writeGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Authentication: Requires Bearer token and the integrations.update permission.
Request Body:
purchase_order_ids(optional) - Array of purchase order IDs
A purchase order from a retailer on the warehouse_receive_only flow is skipped, unless part of the order sits at a warehouse on another flow. An order whose acknowledgment was already sent, or was kept unsent (status not_sent) because SPS Commerce acknowledges the connection's orders, is not pending and is never sent.
Returns 422 and sends nothing when the connection's send_acknowledgments setting is off, because SPS Commerce sends that connection's acknowledgments itself.
Response:
message- Summary messagesent- Number of acknowledgments sentfailed- Number that could not be senterrors- One message per failed purchase order
scope: send "all" (instead of purchase_order_ids) to acknowledge every pending purchase order the list's filters match; pass the filters on the query string. Filters that match nothing acknowledge nothing. Up to 1,000 purchase orders per request.
Request
Responses
- 200
- 401
- 403
- 404
- 422
- 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 — no record with the given identifier (or the route does not exist). Verify the ID before retrying.
Unprocessable Content
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.