There are several API calls that need to be done in a particular order to get an order into and through the system entirely through the API. Before this can be successful - there are a few assumptions we need to make about the order.
Pre-requisites for adding an order
All required SKUs are already in the system - any missing SKUs and the order process will fail
SKUs are on the target channel for the order - SKUs not added to the channel may be interpreted by the API as unsellable on the channel
The order is not already in the system - orders identified as duplicates will be rejected
Order of API calls and logic to process an order
Links to other documents that go through each call in more depth
Add/find billing customer ID - the customer to put the order against
Submit the Order - details of the order, including billing address and SKUs
Get the Invoice ID for the Order - to see items and amount on the invoice
Pay the Invoice on the Order - using the amounts from the invoice
Once you have done all these steps (some can be skipped depending on Customer type), then you should see your order appear in the Dispatch Queue, which is where most customers will dispatch using CCP as normal.