Sizebay Tracker via API (Easy Setup)

Starter Guide

1. Adding products to the cart

An important step in the process is when the user adds a product to the shopping cart. This a very important moment and indicates that the user has actually engaged with the product (or with the offer).

Cart

POST https://vfr-v3-production.sizebay.technology/plugin/new/cart?sid=*

Endpoint for adding the product in the cart.

Headers Parameters

Name
Type
Description

x-szb-country

string

Country running plugin (ex: BR, US, MX, DE)

x-szb-device*

string

User device

Possible values: DESKTOP, MOBILE, TABLET, APP

x-szb-tenant-id*

string

Store ID

x-szb-referer*

string

The referer must be the (domain) of the store, for example: “store.sizebay.com”, without https://.

Query Parameters

Name
Type
Description

sid

string

User identification

Request Body

Name
Type
Description

payload

object

Payload with all products added to cart

Payload Example:

{
  "products": [
    {
      "permalink": "https://www.sizebay.com.br/product/product-example"
    }
  ],
  "tenantId": 000
}

Field

Type

Description

tenantId

string

Sizebay Store ID

products

array

Array containing the product permalink

permalink

string

Product URL

2. Finalizing the order

The checkout page is the most important page in the process, as it represents the sale itself. It is through the sales indicators that the exchanges/returns rate of the products sold are analyzed.

Ordered

POST https://vfr-v3-production.sizebay.technology/plugin/new/ordered?sid=*

Endpoint to register a new order.

Headers Parameters

Name
Type
Description

x-szb-country

string

Country running plugin (ex: BR, US, MX, DE)

x-szb-device*

string

User device

Possible values: DESKTOP, MOBILE, TABLET, APP

x-szb-tenant-id*

string

Store ID

x-szb-referer*

string

The referer must be the (domain) of the store, for example: “store.sizebay.com”, without https://.

Query Parameters

Name
Type
Description

sid

string

User identification

Request Body

Name
Type
Description

payload

object

Payload with the order information

{
  "orderId": "000000",
  "items": [
    {
      "permalink": "https://www.sizebay.com.br/product/product-example",
      "price": 75,
      "quantity": 1,
      "size": "M",
      "feedProductId": "00000",
      "sku": "A1P"
    }
  ],
  "tenantId": 000,
  "currency": "EUR"
}

Field

Type

Description

tenantId

string

Sizebay Store ID

orderId

string

Must be filled in with the order code generated as soon as the purchase is made. It is with this information that we will be able to track this shopping experience in case of a future exchanged/returned product

items

array

Array with the various items that were sold in this purchased order. There are no product limits to be included. Each product has the attributes described below:

permalink

string

Product URL. It must be the same used in the shopping cart

price

float

The price of the product sold

quantity

int

Number of itens

size

string

Clothing size ordered

feedProductId

string

global product id (id for all variations)

sku

string

Id of product variation

currency

string

Currency applied to the ordered item

Last updated

Was this helpful?