API - Start Order
Called to start an order at any point, optionally specify a member that this booking is on behalf of
- Payload (JSON encoded)
MemberID (int) - Existing Member ID in the system
MemberEmail (string) - Existing Member Email in the system (used in the example below)
Member (array) - key/value pairs with the details of new member
The following example includes an array of all types of order item that can be requested, however you only need to include the type/items that you require.
If specifying the Member (or Purcahser) array then the JSON would look as follows (with only adding a simple physical item)
If using an Email for a Member/Purcahser alredy existing in teh system then their details will be overridden
- Quantity__123 - 123 is the product pricing ID
- Reference - Reference of the Order started
- Errors - if empty then it was all successful, else if there are errors there will be a code and a message per error and the order will be aborted so nothing has been "reserved".
All orders created have standard website behaviour applied ot them so they will be Pending until completed via the API and will be set to Aborted in the standard way along with all others. The standard is around 20 minutes from teh last action.