Submit Cart

When you cart is ready for submission you can submit it for order processing.

The following events occur when the request is made:

  1. The payment method is authorized for the total of the order.
  2. The each bag is submitted to the source merchants e-commerce platform.
  3. Upon successful receipt from the merchants e-commerce platform the payment amount is captured and the order is moved to a processing state.
curl -X POST https://sandbox-api.violet.io/v1/checkout/cart/{cart_id}/submit \
-H "X-Violet-App-Id: your-app-id-here" \
-H "X-Violet-App-Secret: your-app-secret-here" \
-H "X-Violet-Token: your-token-here" \
-H "Content-type: application/json" \
-d '{}'

📘

At this point your order has been completed. If you subscribe to order Webhooks you will be notified as the order transitions from the processing state to the shipped and completed states.