API access overview (BETA)

We are beginning to trial direct integration of the UB API. This is currently in beta, and is only available on a per-invite basis. Integration involves building your basket and checkout UI components yourself with the endpoints documented here.

Introduction

The UB API can be used to enable you to build your own native basket and checkout functionalities into your app or website so that you can allow users to purchase directly with a completely seamless user experience.

Interested in joining the UB API beta?

If you'd like to become one of our UB API beta partners, contact Mark at [email protected].

Overview

Prerequisites##

You must have an API Token to perform crawling and to issue user access tokens. All other API requests are authenticated with the access token.

API flow##

Allowing users to add products to basket and to place orders requires a number of steps. The order is not totally strict and is fairly self-explanatory. The standard (recommended) order of events is laid out below.

  1. Issue temporary access token (if you don’t have one)
  2. Crawl product and wait for response from API
  3. Add product to basket
  4. Removing products from basket
  5. Retrieve basket
  6. Set product options (colour, size etc)
  7. Set delivery (shipping) option
  8. Submit & verify mobile number for verification
  9. Enter contact information (email, mobile number)
  10. Update contact information (email, mobile, number)
  11. Retrieve user
  12. Get user addresses
  13. Get user payment cards
  14. Add delivery address
  15. Select delivery address
  16. Add payment card
  17. Select payment card
  18. Place orders with CVV

Other calls which can be used at various points in the flow:

  • Update address
  • Delete address
  • Delete payment card
  • Check basket recrawl status

The following page details the API endpoints required to integrate the API into your UI.