Product Live Update

Introduction

To keep the product data in synch Tipser can check the availability, stock quantity and price on a product level. This will keep the product data as fresh as possible.

Triggers

When a user checks out a product the following calls will be made from the Tipser System to the target system.

Trigger: User enter product page

When the Tipser Product API is called, the system will try to update the product data in the background if the product data age is passed a configured variable.

Call: Get one product

Tipser action: Update product price and stock count in Tipser.

Trigger: User checks out

When the Tipser Checkout API is called, the system will try to update the product data in the background if the product data age is passed a configured variable.

Call: Get one product

Tipser action: Update product stock count, if less than 1: abort checkout.

Your API

The endpoint that Tipser will check at your end will ideally respond to a query parameter, where they query parameter is the ProductId (e.g. /products/<ProductId>)

and the body payload similar to

{
    id: "55395520784155158c30c57b",
    priceIncVat: {
        value: 195,
        currency: "SEK",
        formatted: "195 kr"
    },
    vat: {
        value: 25,
        formatted: "25%"
    },
    deliveryCost: {
        value: 0,
        currency: "SEK",
        formatted: "0 kr"
    },
    isInStock: true,
    variants: [{
            id: "55395520784155158c30c57b",
            stockCount: 20,
            stockCountUnlimited: false,
            priceIncVat: {
                value: 195,
                currency: "SEK",
                formatted: "195 kr"
            },
            vat: {
                value: 25,
                formatted: "25%"
            },
            sku: "TSWODCFM",
            isInStock: true
        },
        {..}
    ],
    lastUpdateDate: "2018-06-21T07:07:53.278Z",

}