Orders

Endpoint supporting Orders based on Carts. Validates a Cart before creating an Order, and inserts the Order into a queue for formatting and sending to Southware.

Fields

None

End Points

Create

POST /api/orders/

{
    cart_id:{:cart_id},
    create_customer:{boolean}
}

Dispatch a cart to ERP after payment has gone through.

Retrieve

GET /api/orders/:order_id/

Look up an order by doing a request back to the ERP

Order History

GET /api/orders/order_history/

fetch a list of past orders from the ERP

Recent Purchases

GET /api/orders/recent_purchases/

fetch a list of recently purchased stockitems

Anonymous Order Status

GET /api/orders/status/:token/

fetch order detail data using an encrypted token sent in order confirmation email.