5.3.1 Order Creation
This document describes the process required to successfully create orders in Pylon. This type of sync is one-way.
5.3.1.1 Terminology
Please refer to the following documents for the various customers and order types used in this document:
5.3.1.2 Workflows
Based on the Order Types and Customer Types defined in the previous sections, there two distinct cases we need to take care of.
5.3.1.2.1 Orders that the customers request a receipt
In this case, we can use a generic Pylon customer (e.g., "Retail Customer"). This applies to guest and retail customers. The customer ID is stored in a configuration field. We need to verify the existence of this customer or provide an endpoint that retrieves the ID.
5.3.1.2.2 Orders that the customers request an invoice
In this case, we need to create a unique Pylon customer for each guest. The VAT ID is mandatory only if an invoice is required.
5.3.1.3 Order Creation specifications
The following fields need to be provided in order to create an order in Pylon in the following endpoint:
5.3.1.3.1 Request:
Endpoint:
@todo (from ERP company);
Request parameters:
@todo (from ERP company);
5.3.1.3.2 Response:
Response data:
@todo (from ERP company);