# SalesOrder v1

The /salesOrder endpoints are used to receive sales orders. A full tutorial on how to receive sales orders can be found here.

# Status

When a document is received, a hook is send to the receiver. This hook contains the documentId used to identify the received document. GET /api/v1/{partyId}/salesOrder/{documentId}/status can be used to check the status of the received document. {partyId} should be the receiver's partyId and {documentId} the documentId found in the hook.

# Download

To download the received document, call GET /api/v1/{partyId}/salesOrder/{documentId}/download. {partyId} should be the receiver's partyId and {documentId} the documentId found in the hook. The response body will contain the received document.

# Delete

By default, received documents are kept for 90 days. After the document has been downloaded by the receiver, it’s retained for 7 more days. If you want to delete the document sooner, call DELETE /api/v1/{partyId}/salesOrder/{documentId}.

© 2022 eConnect International B.V.