Via Cart API

Use the Vrio cart API to access the Checkout Landing Page

Why use the Cart API

If you host an external shopping cart, you can use the Cart API to create and edit carts. Once the customer is ready to check out, simply redirect them to our checkout.

Below are steps to take to access Vrio's Checkout Landing Page using the Cart API.

Create the Cart

Using the POST /carts endpoint, you will need the following values to successfully create the cart:

  • connection_id = This is found on the connection page within your Vrio Instance.
  • campaign_id = The campaign is where all configuration for the checkout lives.
  • offers = This will be the array of offers/items that should be added to the cart. This value can be updated.

In the response, you will get a cart_token. This value you will want to store if you need to make any edits to the cart itself.

You will also see a checkout_url returned. This is where you will eventually redirect the customer to when the cart is completed and they are ready to check out.

Update the Cart

If needed, you can update the offers in the cart using the PUT /carts endpoint using the cart_token generated from step 1 update the offers, pass the full array of offers each time to update the cart.

Redirect to Checkout

Once you are ready, simply redirect the customer to the checkout_url so they can complete the sale. At any time you can use the GET /carts/{cart_token} endpoint to get the checkout_url or you can use it to display details of the cart on your external shopping cart.

See it in Action

Click below to see our recipe on how to use the Cart API to use Vrio's Checkout Landing Page.

🦉Accessing the Checkout Landing Page via the Cart API