Skip to main content

Getting Started

The Slerp API enables you to:

  • Build a custom ecommerce experience that is fully integrated into your site.
  • Build integrations with other tools (CRM, EPOS etc.) to take advantage of Slerp's core features alongside other tools.

Using GraphQL you can unlock all of Slerp’s capabilities and back office operations.

You’ll need the following to begin developing using Slerp’s API:

  • A demo SlerpSpace - Where you can test your integration and familiarise yourself with the back office. Your integration partner can help you with set up on our testing environment.
  • API Keys - These are tied to your integration and can only be used in our testing environment.

Contact us at [email protected] to get started.

Slerp's Structure

Our API is structured around some core concepts explained in the tables below:

Partners:

ConceptDescription
MerchantThe Merchant is the brand, eg: Crosstown Doughnuts. In some scenarios eg: Marketplaces more than one merchant will be used.
StoreA merchant can have many stores but a store always belongs to one merchant.
CategoriesThese are groups of products eg: Sides, Mains, Desserts. A category can exist in many stores. A product must be in only 1 category
ProductsProducts are the core product for sale, eg: A Cheeseburger, A Doughnut. Products can have several variants (eg: flavours like Jam, Custard) and modifiers eg: add bacon, extra cheese.
Store VariantA store variant joins a product to a store and allows stores to independently manage their stock and availability. When showing products for ordering you should always use the store variant.
VariantA product variant is a subset of a product eg: a Jam doughnut vs just doughnut. This allows for easy grouping of similar products for easy user jouneys and inventory / stock management.
ModifierA modifier is an addition to the product eg: extra cheese on a burger or adding a coke or chocolate bar. Modifiers must be presented in modifier groups and can be set with min and max selections eg: you must choose 1 modifier or you can choose a min of X to max of Y modifiers
CartThe Slerp Cart is the used to store items before checkout. It can be created at any point in the user journey after store, order type and time / date are known
Order TypesSlerp offers several order types which are outlined below.
OrderAn order is created once payment has been successfully made (or checkout button clicked if order is 0 value). Orders must be linked to a cart.
Opening HoursThe hours in a day / week the store is open to take orders
CourierSlerp integrates with a number of courier services to provide delivery options to clients. Courier services can be booked automatically on checkout for certain order types and provide dynamic pricing via the API for delivery fees.
Discount codesA code that can be applied on checkout (manually or automatically) to give a discount on cart value or delivery or specific products as a £ ammount or %.
Fees and chargesStores can add custom fees on checkout like admin or service fees
slugProducts, stores and brands have a unique slug which can be used to identify them in our API
idProducts, stores, Merchants, logged in customers and most aspects of Slerp's data model have a unique ID which can be used to identify them in our API

Order Types:

Order TypeDescription
ASAPOrdering for RIGHT NOW, As Soon As Possible.
Scheduled Same DayScheduling an order for later today
Pre-OrdersScheduling an order for a future day
DeliveryOrdering for delivery to an address, normally within a few miles. This can be for ASAP, later today or a future day.
Courier DeliveryWhere a delivery is fulfilled by a Slerp Courier Partner who collects from the store and delivers to the delivery address.
Self DeliveryWhere the delivery is NOT fulfilled by a Slerp Courier Partner but is handled by a store driver or similar
National DeliveryWhere the delivery is being delivered Nationally, often next day
PickupWhere the order is being collected from the store by the buyer (click-and-collect)

Consumers:

ConceptDescription
Customer AccountConsumers can set up an account save details like addresses, recent orders etc. to make ordering easier.
GuestA user who has not logged in or created an account is referred to as a guest
marketing_opt_inIf false the user has not opted in to receive marketing from the merchant they have registered with.

Slerp's Ordering flow:

Slerp’s API requires certain API calls to be made in certain orders to ensure a successful user flow. In simple terms:

  • Choose how to order (eg: delivery or pickup)
  • Select a date and store to order form (eg: today from the London store)
  • Select a time to collect (eg: ASAP or 6.30pm)
  • Select products and any modifiers (eg: a burger with cheese and chips)
  • Enter details and check out / pay.

A more detailed example below:

Controls and partner applications

If you're building a solution using our API for the front end you can take advantage of Controls and Slerp's partner app to manage orders and back-office functions.

Controls is accessible via the URL: https://controls.slerp.com and on demo: https://controls.partner.api.slerp.com.integrations.slerp.io a login has been created. Dora, our activation manager can provide a one hour training session by online meet to train you on how to use controls.

Slerp’s partner application is accessible via Google Play and Apple on live. A demo example can be provided on request.

Extensive user guides on both can be found in our help centre: https://support.slerp.com/