Skip to main content

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.

Required scope: integrations:write

Grant 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 message
  • sent - Number of acknowledgments sent
  • failed - Number that could not be sent
  • errors - 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​

OK

Response Headers
    Content-Type