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.
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.
The Order Response contains a status code indicating what you are doing with the order:
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.
A typical Advanced Ordering scenario looks like this:
POST /{partyId}/purchaseOrder/sendOrderReceived webhookGET /{partyId}/salesOrder/{documentId}/downloadOrderResponseReceived webhookWith 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.
OrderResponseSentOrderResponseReceivedThe 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.
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.
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.
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