Skip to main content
Tangiblee
 > 
Help Center
 > 
 > 
 > 
 > 

Multi-Cart Bundling Specification: Custom APIs

For non-SFCC and non-Shopify clients, Tangiblee can adapt to any custom API provided by client or use our own custom-developed API.

Option 1: custom API developed by client

If you are interested in this option, please provide the following:

  1. API endpoint to fetch variations by product ID.

The example of data structure API should return (it should include a list of variations with prices, colors, sizes and stock availability):

type Variation = {
    id: string;
    name: string;
    price: number;
    available: boolean;
    options: {[key: string]: string|number};
};

type API_RESPONSE = {
    options: string[];
    items: Variation[];
};

const exampleEndpoint = () => {
    return {
        options: ['color', 'size'],
        items: [
            {id: 1, name: 'Ring X', price: 1000, available: true, options: {color: 'red', size: 'M'}},
            {id: 2, name: 'Ring X', price: 1000, available: true, options: {color: 'red', size: 'L'}},
            {id: 3, name: 'Ring X', price: 1000, available: true, options: {color: 'blue', size: 'M'}},
            {id: 4, name: 'Ring X', price: 1000, available: true, options: {color: 'blue', size: 'L'}},
        ]
    };
};

  1. API to add items into the cart by variant ID.

Option 2: custom API developed by Tangiblee

Tangiblee can use a custom-developed API to fetch product variations.

For this option, please provide the following:

  1. Product Feed including price and stock availability in the below format.
SKU IDPriceStock
3102158590.00Out of stock
1881171885.00In stock

Note: Tangible parses the feed every 15 minutes to get the actual price and availability. Please make sure you update this information in the feed at this cadence.

  1. API to add items into the cart by variant ID.