Try 'Iterative Checkout'
If this is your first time trying Violet's Checkout API, we highly recommend trying this guide out using our Postman Collection.
While our docs allow you try endpoints by entering your own values and submitting the request, our Postman Collection is pre-populated with many values and contains request automation allowing you to complete your first checkout quickly and easily. It also serves as an excellent reference guide to properly formatted requests that can help compare and contrast when building your own integration with Violet.
You can find the requests referenced in this guide in Postman under recipes -> "Buy an Offer from a Merchant", remember to start with logging in .
So far you have been able to view all the Merchants available for your application, view their catalog of products and select one specific product. Here you will learn how to go through the entire flow of purchasing a product through Violet. To get started with the Checkout process, we will create a cart and add products to it. For this section, we have taken the SKU that we retrieved details for in Interact with Catalogs.
Currently Violet passes all failures in checkout relating to surpassing rate limits downstream. When integrating with Violet you must consider and prepare for such scenarios in all API calls to Violet. Handling rate limits with Violet
A cart response can come back with status code 200 and still have errors in the errors field. This is because there might only be errors on some of the SKUs or Bags while the rest of the order is in a good state.
Make sure your system is coded to always check for the presence of the errors field on responses, no matter the status code.
Note that not all order errors are blocking. INTERNAL_ADD_ITEM for example just indicates that an item could not be added to the cart, this does not block checkout of other items.
Last updated
Was this helpful?