For this example we didn't price our cart at any point. It will be done automatically before completing the checkout.
When building your own integration with Violet, there are instances where carts are not priced automatically after applying shipping methods.
You will know this is needed when the response from the apply shipping methods call has a 0 value for tax_total. If that happens, make a call to price cart before calling submit.
Submit Cart
post
Path parameters
cart_idinteger · int64Required
Header parameters
X-Violet-TokenstringRequired
X-Violet-App-SecretstringRequired
X-Violet-App-Idinteger · int32Required
Body
Properties for cart submission.
referral_idstring | nullableOptional
Associate the order with a user or affiliate in your system
app_order_idstring | nullableOptional
Map the order in Violet to an order record within your system.
app_transaction_idstring | nullableOptional
Transaction ID representing a transaction in the channels system.. This property only applies to channels approved for external payment processing.
app_transaction_gatewaystring | nullableOptional
Gateway used to submit the order. This property only applies to channels approved for external payment processing.