Send an Order Response

Send an Order Response via the API: status codes AB, AP, CA and RE for received orders.

When you as a supplier receive an order, modification or cancellation, you send an Order Response back to let the buyer know what you are doing with the order. The Order Response is a core component of the Peppol Advanced Ordering profile.

Endpoint
POST /api/v1/{partyId}/salesOrder/{documentId}/response

The {partyId} is the Peppol identifier of the supplier. The {documentId} is the ID of the received order you are responding to.

Status codes

The Order Response contains a status code indicating what you are doing with the order:

CodeNameWhen to useABAcknowledgedYou have received the order and it is readable. Use this as an interim confirmation while you are still evaluating the order.APAcceptedYou fully accept the order and will fulfil it.CAConditionally AcceptedYou accept the order, but with modifications (e.g. adjusted delivery date or quantities). Include the modified order lines in the response.RERejectedYou reject the order. The buyer must submit a new order if the purchase should still proceed.

Tip: You can send multiple responses for the same order. For example, start with AB (confirmation of receipt) and send AP (accepted) later once the order has been internally approved.

Example flow

A typical Advanced Ordering scenario looks like this:

  1. Buyer sends an order via POST /{partyId}/purchaseOrder/send
  2. Supplier receives the order via the OrderReceived webhook
  3. Supplier downloads the order via GET /{partyId}/salesOrder/{documentId}/download
  4. Supplier sends an AB response (receipt confirmation)
  5. Supplier evaluates the order internally
  6. Supplier sends an AP response (order accepted)
  7. Buyer receives the response via the OrderResponseReceived webhook
Conditionally accepting (CA)

With a CA response (Conditionally Accepted), you indicate that you accept the order but with modifications. The response then contains a modified version of the order lines. The buyer can decide based on this whether the modified order is acceptable.

Possible reasons for a CA response include an adjusted delivery date, a modified quantity (limited stock), or substitute items.

Webhook topics
TopicDirectionWhenOrderResponseSentSupplierResponse has been successfully sent to the buyerOrderResponseReceivedBuyerResponse from the supplier has been received
Request body

The response is sent as a UBL OrderResponse XML document in the body of the request, with content-type application/xml. The document must contain the correct reference to the original order.

Refer to the Swagger documentation at psb.econnect.eu for the exact XML structure and required fields.

Frequently asked questions
When do I use AB, AP, CA or RE in an Order Response?

AB means the order has been received and is readable, often as an intermediate step. AP is full acceptance and execution. CA is acceptance with modifications; you include the adjusted order lines. RE rejects the order; the buyer must then submit a new order if the purchase needs to proceed.

Can I send multiple Order Responses for the same order?

Yes. For example, you can first send AB once you have ingested the order and later AP when internal approval is complete. This fits a typical Advanced Ordering chain with the OrderResponseReceived webhook on the buyer's side.

How do I technically call the Order Response endpoint?

Use POST /api/v1/{partyId}/salesOrder/{documentId}/response with {partyId} as the Peppol identifier of the supplier and {documentId} as the ID of the received order. The body is a UBL OrderResponse XML with Content-Type: application/xml and the correct reference to the original order.


View the full API specification at psb.econnect.eu for example payloads and error messages.

Open the API reference