Basket

Baskets are virtual containers that hold our products so that we can checkout with multiple products. Baskets can be Created, Deleted, Updated and Merged and we can also Add, Bulk Add, Remove and Update products inside a basket This page covers Basket endpoints that are created to effectively handle various basket operations.

GET/api/v2/commerce/basket/user/:userId/all

Gets user baskets

This endpoint allows you to get baskets for a user.

Developers - API Operations:

OperationEndpointResponse
Get baskets/api/v2/commerce/basket/user/:userId/allGets user baskets.

Required attributes

  • Name
    userId
    Type
    string
    Description

    User Id to identify the user

Response Properties

  • Name
    statusCode
    Type
    number
    Description

    Status code of the response

  • Name
    status
    Type
    string
    Description

    Status of the response

  • Name
    errors
    Type
    array
    Description

    List of errors in the response

  • Name
    success
    Type
    boolean
    Description

    Success status of the response

  • Name
    message
    Type
    string
    Description

    Message of the response

  • Name
    messageCode
    Type
    string
    Description

    Message code of the response

  • Name
    result
    Type
    object
    Description

    Result of the response

  • Name
    id
    Type
    number
    Description

    Id to identify the user

  • Name
    currencySymbol
    Type
    string
    Description

    Currency Symbol for Price e.g £

  • Name
    currencyCode
    Type
    string
    Description

    Currency code according to the region e.g. GBP:'Great Britain Pound'

  • Name
    userId
    Type
    string
    Description

    User Id to identify the User

  • Name
    userEmail
    Type
    string
    Description

    User email provided by the user

  • Name
    shippingMethodId
    Type
    string
    Description

    Shipping method Id to identify the shipping method

  • Name
    subTotal
    Type
    object
    Description

    Sub total of the total price

  • Name
    shippingCharge
    Type
    object
    Description

    Shipping charges of the product in basket

  • Name
    formatted
    Type
    object
    Description

    Formatted price with and without tax

  • Name
    withTax
    Type
    string
    Description

    Price of basket item with Tax

  • Name
    withoutTax
    Type
    string
    Description

    Price of basket item without Tax

  • Name
    tax
    Type
    string
    Description

    Tax amount of basket item

  • Name
    raw
    Type
    object
    Description

    Raw price without discount

  • Name
    discount
    Type
    object
    Description

    Discount amount on the basket item

  • Name
    additionalCharge
    Type
    object
    Description

    Additional charges applied on the basket item

  • Name
    grandTotal
    Type
    object
    Description

    Grand total price of basket items

  • Name
    isLocked
    Type
    boolean
    Description

    Flag to check if the basket is locked

  • Name
    createdByAdmin
    Type
    boolean
    Description

    Flag to check if the basket is created by Admin

  • Name
    poNumber
    Type
    string
    Description

    P O Number of the basket

  • Name
    isQuote
    Type
    boolean
    Description

    Flag to check if the basket is a Quote

  • Name
    quoteStatus
    Type
    number
    Description

    Quote status of the basket

  • Name
    postCode
    Type
    string
    Description

    Post code of the user

  • Name
    hasMembership
    Type
    boolean
    Description

    Flag to check if the user has a membership

  • Name
    exchangeRate
    Type
    number
    Description

    Exchange rate of the currency

  • Name
    baseCurrency
    Type
    string
    Description

    Base currency of the region

  • Name
    microSiteId
    Type
    string
    Description

    Micro site Id of the site

  • Name
    baseCurrencyTotal
    Type
    number
    Description

    Total amount of the basket in base currency

  • Name
    membershipDiscount
    Type
    string
    Description

    Discount given to the user under their membership

  • Name
    created
    Type
    string
    Description

    Date and time when the basket was created

  • Name
    lastUpdated
    Type
    string
    Description

    Date and time when the basket was last updated

  • Name
    lineItems
    Type
    array
    Description

    Array of all the products added in to basket

  • Name
    stockCode
    Type
    string
    Description

    Stock code of the product

  • Name
    name
    Type
    string
    Description

    Name of the product

  • Name
    slug
    Type
    string
    Description

    Slug of the product used to navigate to the product

  • Name
    shortDescription
    Type
    string
    Description

    A short description of the product

  • Name
    productId
    Type
    string
    Description

    Product Id used to identify the product

  • Name
    productIid
    Type
    string
    Description

    Product Iid used to identify the product

  • Name
    parentProductId
    Type
    string
    Description

    Id of the parent product product, used to map personalized products with their parent product

  • Name
    price
    Type
    string
    Description

    Price of the product

  • Name
    totalPrice
    Type
    object
    Description

    Total price of the product

  • Name
    isSubscription
    Type
    boolean
    Description

    Flag to check if the user has an active subscription

  • Name
    isMembership
    Type
    boolean
    Description

    Flag to check if the user has an active membership

Request

GET
/api/v2/commerce/basket/user/:userId/all
curl --location 'https://api20.bettercommerce.io/api/v2/commerce/basket/user/:userId/all' \
--header 'Accept: application/json' \
--header 'UserId;' \
--header 'Email: abc@abc.com'

Response

{
"statusCode": 200,
"status": "OK",
"errors": [],
"success": true,
"message": null,
"messageCode": null,
"result": [
    {
        "id": "1f17fb65-fd0b-4332-9113-7655dd2ac1dc",
        "currencySymbol": "£",
        "currencyCode": "GBP",
        "userId": "79db110c-e22d-4b26-b565-ae530043dea1",
        "userEmail": "abc@abc.com",
        "shippingMethodId": "3b9ba0d0-2669-462c-974a-bfcda4dcfebe",
        "subTotal": {
            "currencySymbol": "£",
            "formatted": {
                "withTax": "£160.00",
                "withoutTax": "£160.00",
                "tax": "£0.00"
            },
            "raw": {
                "withTax": 160,
                "withoutTax": 160,
                "tax": 0
            }
        },
        "shippingCharge": {
            "currencySymbol": "£",
            "formatted": {
                "withTax": "£9.99",
                "withoutTax": "£9.99",
                "tax": "£0.00"
            },
            "raw": {
                "withTax": 9.99,
                "withoutTax": 9.99,
                "tax": 0
            }
        },
        "discount": {
            "currencySymbol": "£",
            "formatted": {
                "withTax": "£0.00",
                "withoutTax": "£0.00",
                "tax": "£0.00"
            },
            "raw": {
                "withTax": 0,
                "withoutTax": 0,
                "tax": 0
            }
        },
        "additionalCharge": {
            "currencySymbol": "£",
            "formatted": {
                "withTax": "£0.00",
                "withoutTax": "£0.00",
                "tax": "£0.00"
            },
            "raw": {
                "withTax": 0,
                "withoutTax": 0,
                "tax": 0
            }
        },
        "grandTotal": {
            "currencySymbol": "£",
            "formatted": {
                "withTax": "£169.99",
                "withoutTax": "£143.32",
                "tax": "£26.67"
            },
            "raw": {
                "withTax": 169.99,
                "withoutTax": 143.3234,
                "tax": 26.6666
            }
        },
        "lineItems": [
            {
                "id": "1507587",
                "stockCode": "BS0010-DODGER-BLUE-M",
                "name": "Cotton Racerback Spaghetti top for Women DODGER BLUE m Colour",
                "slug": "products/my-brand-cotton-racerback-spaghetti-top-women-dodger-blue-1-bs0010-dodger-blue-s",
                "shortDescription": "<p>Care Instructions: Care Instructions: Gentle Wash | Hand Wash | Do not Iron Directly<br />\nFabric: Cotton<br />\nFitting: Modern fit / Style : Racer back<br />\nPurpose : To be worn as lounge wear, leisure wear and Active wear - for all purpose use<br />\nLabel free for all day comfort<br />\nContoured armholes and neckline with delicate finish</p>\n",
                "productId": "4CCE5615-A72F-4792-97A0-FCE18F57A50F",
                "productIid": "0",
                "parentProductId": "00000000-0000-0000-0000-000000000000",
                "price": {
                    "currencySymbol": "£",
                    "formatted": {
                        "withTax": "£80.00",
                        "withoutTax": "£66.67",
                        "tax": "£13.33"
                    },
                    "raw": {
                        "withTax": 80,
                        "withoutTax": 66.6667,
                        "tax": 13.3333
                    }
                },
                "listPrice": {
                    "currencySymbol": "£",
                    "formatted": {
                        "withTax": "£100.00",
                        "withoutTax": "£66.67",
                        "tax": "£33.33"
                    },
                    "raw": {
                        "withTax": 100,
                        "withoutTax": 66.6667,
                        "tax": 33.3333
                    }
                },
                "subTotal": {
                    "currencySymbol": "£",
                    "formatted": {
                        "withTax": "£80.00",
                        "withoutTax": "£80.00",
                        "tax": "£0.00"
                    },
                    "raw": {
                        "withTax": 80,
                        "withoutTax": 80,
                        "tax": 0
                    }
                },
                "discount": null,
                "additionalCharge": {
                    "currencySymbol": "£",
                    "formatted": {
                        "withTax": "£0.00",
                        "withoutTax": "£0.00",
                        "tax": "£0.00"
                    },
                    "raw": {
                        "withTax": 0,
                        "withoutTax": 0,
                        "tax": 0
                    }
                },
                "totalPrice": {
                    "currencySymbol": "£",
                    "formatted": {
                        "withTax": "£66.67",
                        "withoutTax": "£66.67",
                        "tax": "£0.00"
                    },
                    "raw": {
                        "withTax": 66.6667,
                        "withoutTax": 66.6667,
                        "tax": 0
                    }
                },
                "image": "https://liveocxcdn.azureedge.net/betterstore/products/blue1.jpg?fm=webp",
                "qty": 1,
                "displayOrder": 1,
                "isSubscription": false,
                "isMembership": false
            },
            
        ],
        "isLocked": false,
        "createdByAdmin": false,
        "poNumber": null,
        "isQuote": false,
        "quoteStatus": 0,
        "postCode": null,
        "hasMembership": false,
        "exchangeRate": 1,
        "baseCurrency": "GBP",
        "microSiteId": "00000000-0000-0000-0000-000000000000",
        "baseCurrencyTotal": 169.99,
        "membershipDiscount": null,
        "created": "2022-03-14T16:52:32.583",
        "lastUpdated": "2022-03-14T16:52:55.233"
    }
]
}

GET/api/v2/commerce/basket/:id

Get basket based on id

This endpoint allows you to get a basket based on Id.

Developers - API Operations:

OperationEndpointResponse
Get baskets/api/v2/commerce/basket/:idGets user baskets based on Id.

Required attributes

  • Name
    Id
    Type
    string
    Description

    Id to identify the basket

Response Properties

  • Name
    statusCode
    Type
    number
    Description

    Status code of the response

  • Name
    status
    Type
    string
    Description

    Status of the response

  • Name
    errors
    Type
    array
    Description

    List of errors in the response

  • Name
    success
    Type
    boolean
    Description

    Success status of the response

  • Name
    message
    Type
    string
    Description

    Message of the response

  • Name
    messageCode
    Type
    string
    Description

    Message code of the response

  • Name
    result
    Type
    object
    Description

    Result of the response

  • Name
    id
    Type
    number
    Description

    Id to identify the user

  • Name
    currencySymbol
    Type
    string
    Description

    Currency Symbol for Price e.g £

  • Name
    currencyCode
    Type
    string
    Description

    Currency code according to the region e.g. GBP:'Great Britain Pound'

  • Name
    userId
    Type
    string
    Description

    User Id to identify the User

  • Name
    userEmail
    Type
    string
    Description

    User email provided by the user

  • Name
    shippingMethodId
    Type
    string
    Description

    Shipping method Id to identify the shipping method

  • Name
    subTotal
    Type
    object
    Description

    Sub total of the total price

  • Name
    shippingCharge
    Type
    object
    Description

    Shipping charges of the product in basket

  • Name
    formatted
    Type
    object
    Description

    Formatted price with and without tax

  • Name
    withTax
    Type
    string
    Description

    Price of basket item with Tax

  • Name
    withoutTax
    Type
    string
    Description

    Price of basket item without Tax

  • Name
    tax
    Type
    string
    Description

    Tax amount of basket item

  • Name
    raw
    Type
    object
    Description

    Raw price without discount

  • Name
    discount
    Type
    object
    Description

    Discount amount on the basket item

  • Name
    additionalCharge
    Type
    object
    Description

    Additional charges applied on the basket item

  • Name
    grandTotal
    Type
    object
    Description

    Grand total price of basket items

  • Name
    isLocked
    Type
    boolean
    Description

    Flag to check if the basket is locked

  • Name
    createdByAdmin
    Type
    boolean
    Description

    Flag to check if the basket is created by Admin

  • Name
    poNumber
    Type
    string
    Description

    P O Number of the basket

  • Name
    isQuote
    Type
    boolean
    Description

    Flag to check if the basket is a Quote

  • Name
    quoteStatus
    Type
    number
    Description

    Quote status of the basket

  • Name
    postCode
    Type
    string
    Description

    Post code of the user

  • Name
    hasMembership
    Type
    boolean
    Description

    Flag to check if the user has a membership

  • Name
    exchangeRate
    Type
    number
    Description

    Exchange rate of the currency

  • Name
    baseCurrency
    Type
    string
    Description

    Base currency of the region

  • Name
    microSiteId
    Type
    string
    Description

    Micro site Id of the site

  • Name
    baseCurrencyTotal
    Type
    number
    Description

    Total amount of the basket in base currency

  • Name
    membershipDiscount
    Type
    string
    Description

    Discount given to the user under their membership

  • Name
    created
    Type
    string
    Description

    Date and time when the basket was created

  • Name
    lastUpdated
    Type
    string
    Description

    Date and time when the basket was last updated

  • Name
    lineItems
    Type
    array
    Description

    Array of all the products added in to basket

  • Name
    stockCode
    Type
    string
    Description

    Stock code of the product

  • Name
    name
    Type
    string
    Description

    Name of the product

  • Name
    slug
    Type
    string
    Description

    Slug of the product used to navigate to the product

  • Name
    shortDescription
    Type
    string
    Description

    A short description of the product

  • Name
    productId
    Type
    string
    Description

    Product Id used to identify the product

  • Name
    productIid
    Type
    string
    Description

    Product Iid used to identify the product

  • Name
    parentProductId
    Type
    string
    Description

    Id of the parent product product, used to map personalized products with their parent product

  • Name
    price
    Type
    string
    Description

    Price of the product

  • Name
    totalPrice
    Type
    object
    Description

    Total price of the product

  • Name
    minPrice
    Type
    number
    Description

    Minimum price for the company

  • Name
    minPriceWithoutTax
    Type
    number
    Description

    Minimum price for the company without tax

  • Name
    maxPrice
    Type
    number
    Description

    Maximum price for the company

  • Name
    maxPriceWithoutTax
    Type
    number
    Description

    Maximum price for the company wihtout tax

  • Name
    currencyDecimalSeparator
    Type
    string
    Description

    Currency decimal separator for the region

  • Name
    currencyDigitsAfterDecimal
    Type
    number
    Description

    Digits after decimal for the currency

  • Name
    id
    Type
    string
    Description

    id to identify the user

  • Name
    title
    Type
    string
    Description

    Title of the user e.g. Miss./Mrs./Mr.

  • Name
    firstName
    Type
    string
    Description

    First name of the user

  • Name
    lastName
    Type
    string
    Description

    Last name of the user

  • Name
    address1
    Type
    string
    Description

    Address Line 1 provided by the user

  • Name
    address2
    Type
    string
    Description

    Address Line 2 provided by the user

  • Name
    address3
    Type
    string
    Description

    Address Line 3 provided by the user

  • Name
    city
    Type
    string
    Description

    City name provided by the user

  • Name
    state
    Type
    string
    Description

    State name provided by the user

  • Name
    country
    Type
    string
    Description

    Country name provided by the user

  • Name
    countryCode
    Type
    string
    Description

    Country code provided by the user

  • Name
    postCode
    Type
    string
    Description

    Post code provided by the user

  • Name
    phoneNo
    Type
    string
    Description

    Phone number of the user

  • Name
    mobileNo
    Type
    string
    Description

    Mobile number of the user

  • Name
    companyName
    Type
    string
    Description

    Name of the company provided by the user

  • Name
    displayOrder
    Type
    number
    Description

    Order of the display associated with the product

  • Name
    totalWithoutShipping
    Type
    object
    Description

    Total price of the basket without shipping charges

  • Name
    taxPercent
    Type
    number
    Description

    Amount of tax applied in percentage

  • Name
    brand
    Type
    string
    Description

    Brand name of the product

  • Name
    subbrand
    Type
    string
    Description

    Sub brand name of the product

  • Name
    image
    Type
    string
    Description

    File name of the image of the product

  • Name
    qty
    Type
    number
    Description

    Quantity of product in the basket

  • Name
    displayOrder
    Type
    number
    Description

    Display order of the product in the basket

  • Name
    itemType
    Type
    number
    Description

    Type of item in the basket

  • Name
    displayInBasket
    Type
    boolean
    Description

    Flag to check if the product should be displayed in the basket

  • Name
    categoryItems
    Type
    array
    Description

    List of all the categories available

  • Name
    categoryId
    Type
    string
    Description

    Category Id to identify the cateogories

  • Name
    categoryName
    Type
    string
    Description

    Name of the category e.g. 'Shirts','Joggers', etc

  • Name
    parentCategoryId
    Type
    string
    Description

    Parent category Id to identify the parent category

  • Name
    parentCategoryName
    Type
    string
    Description

    Name of the Parent category e.g. 'Clothings'

  • Name
    attributesJson
    Type
    string
    Description

    JSON attributes of the product

  • Name
    customInfo1
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    customInfo2
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    customInfo3
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    customInfo4
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    customInfo5
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    isSubscription
    Type
    boolean
    Description

    Flag to check if the user has an active subscription

  • Name
    isMembership
    Type
    boolean
    Description

    Flag to check if the user has an active membership

  • Name
    subscriptionUserSettings
    Type
    object
    Description

    Settings for the users's subscription

  • Name
    subscriptionPlanId
    Type
    string
    Description

    Plan Id of the subscription

  • Name
    subscriptionTermId
    Type
    string
    Description

    Term Id of the subscription

  • Name
    userPricingType
    Type
    number
    Description

    Type of pricing for the user

  • Name
    subscriptionJson
    Type
    string
    Description

    JSON values for the subscription

  • Name
    authorizationAmount
    Type
    number
    Description

    Amount to be authorized for this subscription

  • Name
    shippingMethods
    Type
    array
    Description

    A List of shipping methods available for the products

  • Name
    id
    Type
    string
    Description

    Id to identify the shipping method

  • Name
    enabled
    Type
    boolean
    Description

    Flag to check if the shipping method is enabled

  • Name
    systemName
    Type
    string
    Description

    System name of the shipping methods

  • Name
    shippingCode
    Type
    string
    Description

    Shipping code used by the shipping method

  • Name
    displayName
    Type
    string
    Description

    Display name of the shipping method

  • Name
    description
    Type
    string
    Description

    Description of the shipping method

  • Name
    displayOrder
    Type
    number
    Description

    Display order of this shipping method in the list of shipping methods

  • Name
    expectedDaysToDeliver
    Type
    number
    Description

    Number of days before the expected delivery date

  • Name
    expectedDeliveryDate
    Type
    string
    Description

    Date and time of expected delivery of the product

  • Name
    deliveryOnOrBefore
    Type
    string
    Description

    The date on or before which date the product should be delivered

  • Name
    isDefault
    Type
    boolean
    Description

    Flag to check if this shipping method is the default shipping method

  • Name
    isNominated
    Type
    boolean
    Description

    Flag to check if this shipping method is the nominated shipping method

  • Name
    type
    Type
    number
    Description

    Type of this shipping mehtod

  • Name
    carrierCode
    Type
    string
    Description

    Carrier code of the delivery carrier

  • Name
    countryCode
    Type
    string
    Description

    Country code of the region of delivery

  • Name
    isPriceOnRequest
    Type
    boolean
    Description

    Flag to check if product is produced only for editorials and is never actually put into production for consumer purchase

  • Name
    showRecomendation
    Type
    boolean
    Description

    Flag to check if the recommendations for this product should be shown

  • Name
    recomendation
    Type
    string
    Description

    The recommendations for this product

  • Name
    isTaxable
    Type
    boolean
    Description

    Flag to check if this shipping method is taxable

  • Name
    shippingCostMethod
    Type
    number
    Description

    Used to select the type of shipping cost to be applied

  • Name
    cutOffTimes
    Type
    string
    Description

    It is the latest time in any Business Day that we can process a particular Transaction, request or instruction on that Business Day.

  • Name
    countryCsv
    Type
    string
    Description

    File name for the csv file having data of the countries

  • Name
    maxDimensionMm
    Type
    number
    Description

    Maximum dimensions of the package to be delivered in Millimeters

  • Name
    priceMatchReqId
    Type
    string
    Description

    Id used to match the price requests

  • Name
    companyDiscount
    Type
    object
    Description

    The discount given on the original price of the products by the company to their employees

  • Name
    validUntil
    Type
    string
    Description

    The date time of the validity of the order for delivery

  • Name
    deliveryInstruction
    Type
    string
    Description

    Instructions for the delivery agent regarding the delivery

  • Name
    deliveryPlans
    Type
    array
    Description

    A list of delivery plans for the delivery of the order

  • Name
    promotionsApplied
    Type
    array
    Description

    List of promotions applied on the products in the basket

  • Name
    voucherCode
    Type
    string
    Description

    Voucher code used to validate the offer and claim the benefits e.g. 'DISCOUNT15'

  • Name
    discountPct
    Type
    number
    Description

    Discount value applied on the product in Percentage

  • Name
    discountAmt
    Type
    object
    Description

    The amount of discount to be applied on the products in the basket

  • Name
    autoApply
    Type
    boolean
    Description

    Flag to check if the promotion has to be auto applied on the products

  • Name
    promoCode
    Type
    string
    Description

    Promotion code used to validate the offer e.g. 'DISCOUNT15'

  • Name
    name
    Type
    string
    Description

    Name of the promotion to be applied

  • Name
    itemGroupId
    Type
    number
    Description

    Id used to identify the group of items

  • Name
    couponProvider
    Type
    string
    Description

    The entity that provides the coupon to create an offer

  • Name
    isManualPrice
    Type
    boolean
    Description

    Flag to check if the Price is set Manually

  • Name
    deliveryMessage
    Type
    string
    Description

    Message for the delivery agent provided by the user

  • Name
    variantProducts
    Type
    array
    Description

    A list of all available variants of the current product

  • Name
    productName
    Type
    string
    Description

    Product name of the variant product

  • Name
    variantAttributes
    Type
    array
    Description

    List of variant attributes of the product e.g. Size, Color

  • Name
    variantProductsAttribute
    Type
    array
    Description

    A list of variant attributes of the product

  • Name
    fieldName
    Type
    string
    Description

    Name of the variant attribute

  • Name
    fieldCode
    Type
    string
    Description

    Field code of the atrribute

  • Name
    fieldValues
    Type
    array
    Description

    A list of values for the variant attribute

  • Name
    currentStock
    Type
    number
    Description

    Number of products available in stock

  • Name
    fulfilmentChannel
    Type
    number
    Description

    The method by which sellers can sell items through various sales channels and have the company handle the packaging and shipping aspects for them

  • Name
    deliveryType
    Type
    number
    Description

    The type of delivery for the order

  • Name
    deliveryCenter
    Type
    object
    Description

    The details of the delivery center which will handle the delivery for this order

  • Name
    recordId
    Type
    string
    Description

    Record Id to identify the delivery center records

  • Name
    code
    Type
    string
    Description

    A code used by the delivery center

  • Name
    name
    Type
    string
    Description

    Name of the delivery center

  • Name
    type
    Type
    number
    Description

    Type of the delivery center

  • Name
    postCode
    Type
    string
    Description

    Postal code of the delivery center

  • Name
    latitude
    Type
    string
    Description

    Latitute of the geographical location of the delivery center

  • Name
    longitude
    Type
    string
    Description

    Longitute of the geographical location of the delivery center

  • Name
    items
    Type
    array
    Description

    The list of items to be delivered

  • Name
    distanceInMiles
    Type
    string
    Description

    The distance to the the delivery location in miles

  • Name
    shippingMethodName
    Type
    string
    Description

    The name of the shipping method used for shipping the product

  • Name
    cost
    Type
    number
    Description

    The cost of shipping the product

  • Name
    shippingSpeed
    Type
    string
    Description

    The rate at which the order will be shipped for deliery

  • Name
    deliveryDateTarget
    Type
    string
    Description

    The date and time target for the delivery of the order

  • Name
    deliveryDateActual
    Type
    string
    Description

    The date and time of the actual delivery of the order

  • Name
    leadTime
    Type
    number
    Description

    The amount of time that passes from the start of a process until its conclusion

  • Name
    leadTimeUom
    Type
    number
    Description

    The unit of measurement for the lead time

  • Name
    leadTimeMin
    Type
    number
    Description

    The minimum lead time for the order to be delivered

  • Name
    leadTimeMax
    Type
    number
    Description

    The maximum lead time for the order to be delivered

  • Name
    pickupStoreId
    Type
    string
    Description

    The id of stores from which the order can be collected

  • Name
    refStoreId
    Type
    string
    Description

    Reference Id of the store

  • Name
    pickupStoreCode
    Type
    string
    Description

    The store code for a pickup store

  • Name
    shippingType
    Type
    number
    Description

    The type of shipping used for delivery of the order

  • Name
    hasSubscription
    Type
    boolean
    Description

    Flag to check if the user has a subscription

  • Name
    subscriptionTotal
    Type
    object
    Description

    The total amount that must be paid by the user for the subscription

  • Name
    isGiftWrapApplied
    Type
    boolean
    Description

    Flag to check if Gift wrap is applied to the products

  • Name
    giftWrapId
    Type
    string
    Description

    Gift wrap Id to identify the gift warpped products in the basket

  • Name
    giftWrapOption
    Type
    string
    Description

    The gift wrapping options available for the products in the basket

  • Name
    membershipPlanId
    Type
    string
    Description

    Membership plan Id to identify the membership plan of the user

  • Name
    snippets
    Type
    array
    Description

    A list of snippets that can be added to the site

  • Name
    slugType
    Type
    number
    Description

    Type of slug of the basket

Request

GET
/api/v2/commerce/basket/:id
curl --location 'https://api20.bettercommerce.io/api/v2/commerce/basket/:id' \
--header 'Accept: application/json' \
--header 'UserId;' \
--header 'Email: abc@abc.com'

Response

{
"statusCode": 200,
"status": "OK",
"errors": [],
"success": true,
"message": "",
"messageCode": "",
"result": {
    "id": "3ea3c02e-82a4-4758-bf11-3530893aaaef",
    "currencySymbol": "€",
    "currencyCode": "EUR",
    "userId": "919f08a4-0a00-46da-bfa9-4bdf317ce072",
    "userEmail": "myemail@example.com",
    "grandTotal": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€99.99000",
            "withoutTax": "€99.99000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 99.99,
            "withoutTax": 99.99,
            "tax": 0
        }
    },
    "totalWithoutShipping": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€96.00000",
            "withoutTax": "€96.00000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 96,
            "withoutTax": 96,
            "tax": 0
        }
    },
    "shippingMethodId": "STD",
    "shippingCharge": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€3.99000",
            "withoutTax": "€3.99000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 3.99,
            "withoutTax": 3.99,
            "tax": 0
        }
    },
    "subTotal": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€99.99000",
            "withoutTax": "€99.99000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 99.99,
            "withoutTax": 99.99,
            "tax": 0
        }
    },
    "discount": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€.00000",
            "withoutTax": "€.00000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 0,
            "withoutTax": 0,
            "tax": 0
        }
    },
    "taxPercent": 0,
    "additionalCharge": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€.00000",
            "withoutTax": "€.00000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 0,
            "withoutTax": 0,
            "tax": 0
        }
    },
    "lineItems": [
        {
            "id": "0",
            "stockCode": "SKU-0001",
            "name": "Polo Shirt",
            "productId": "1C5D16AB-0497-462D-A0D2-B2F8F67335A1",
            "productIid": "0",
            "parentProductId": "",
            "brand": "Tommy Hilfiger",
            "subbrand": "Tommy Hilfiger",
            "price": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€24.00000",
                    "withoutTax": "€24.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 24,
                    "withoutTax": 24,
                    "tax": 0
                }
            },
            "subTotal": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€96.00000",
                    "withoutTax": "€96.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 96,
                    "withoutTax": 96,
                    "tax": 0
                }
            },
            "totalPrice": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€96.00000",
                    "withoutTax": "€96.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 96,
                    "withoutTax": 96,
                    "tax": 0
                }
            },
            "image": "image1.jeg",
            "qty": 4,
            "displayOrder": 1,
            "slug": "/product/SKU-0001",
            "itemType": 1,
            "displayInBasket": false,
            "categoryItems": [
                {
                    "categoryId": "29312465-8f0a-4827-b1bc-79dad65ec5d1",
                    "categoryName": "Shirt",
                    "parentCategoryId": "1c2eb621-246a-4fd6-9f8e-8b7b6a93b67d",
                    "parentCategoryName": "Clothings"
                }
            ],
            "attributesJson": "",
            "customInfo1": "cust info 1",
            "customInfo2": "cust info 2",
            "customInfo3": "cust info 3",
            "customInfo4": "cust info 4",
            "customInfo5": "cust info 5",
            "discount": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€.00000",
                    "withoutTax": "€.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 0,
                    "withoutTax": 0,
                    "tax": 0
                }
            },
            "additionalCharge": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€.00000",
                    "withoutTax": "€.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 0,
                    "withoutTax": 0,
                    "tax": 0
                }
            },
            "shortDescription": "Polo Shirt Description",
            "companyDiscount": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€.00000",
                    "withoutTax": "€.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 0,
                    "withoutTax": 0,
                    "tax": 0
                }
            },
            "listPrice": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€24.00000",
                    "withoutTax": "€24.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 24,
                    "withoutTax": 24,
                    "tax": 0
                }
            },
            "isSubscription": false,
            "isMembership": false,
            "subscriptionUserSettings": {
                "subscriptionPlanId": "00000000-0000-0000-0000-000000000000",
                "subscriptionTermId": "00000000-0000-0000-0000-000000000000",
                "userPricingType": 0,
                "subscriptionJson": null,
                "authorizationAmount": 0
            },
            "promotionsApplied": [
                {
                    "voucherCode": "DISCOUNT15",
                    "discountPct": 0,
                    "discountAmt": {
                        "minPrice": 0,
                        "minPriceWithoutTax": 0,
                        "maxPrice": 0,
                        "maxPriceWithoutTax": 0,
                        "currencyDecimalSeparator": ".",
                        "currencyDigitsAfterDecimal": 2,
                        "currencySymbol": "€",
                        "formatted": {
                            "withTax": "€.00000",
                            "withoutTax": "€.00000",
                            "tax": "€.00000"
                        },
                        "raw": {
                            "withTax": 0,
                            "withoutTax": 0,
                            "tax": 0
                        }
                    },
                    "autoApply": false,
                    "promoCode": "DISCOUNT15",
                    "name": "Dummy Promo"
                }
            ],
            "isGiftWrapApplied": false,
            "giftWrapId": "00000000-0000-0000-0000-000000000000",
            "itemGroupId": 0,
            "couponProvider": "",
            "isManualPrice": false,
            "priceMatchReqId": "00000000-0000-0000-0000-000000000000",
            "deliveryMessage": " delivery message",
            "variantProducts": [
                {
                    "stockCode": null,
                    "productId": "00000000-0000-0000-0000-000000000000",
                    "price": {
                        "minPrice": 0,
                        "minPriceWithoutTax": 0,
                        "maxPrice": 0,
                        "maxPriceWithoutTax": 0,
                        "currencyDecimalSeparator": ".",
                        "currencyDigitsAfterDecimal": 2,
                        "currencySymbol": "€",
                        "formatted": {
                            "withTax": "€15.99000",
                            "withoutTax": "€15.99000",
                            "tax": "€.00000"
                        },
                        "raw": {
                            "withTax": 15.99,
                            "withoutTax": 15.99,
                            "tax": 0
                        }
                    },
                    "slug": null,
                    "image": "img.jpg",
                    "productName": "Variant SKU",
                    "variantAttributes": []
                }
            ],
            "variantProductsAttribute": [
                {
                    "fieldName": "color",
                    "fieldCode": "global.color",
                    "fieldValues": []
                }
            ],
            "currentStock": 999
        }
    ],
    "promotionsApplied": [
        {
            "voucherCode": null,
            "discountPct": 0,
            "discountAmt": null,
            "autoApply": false,
            "promoCode": null,
            "name": null
        }
    ],
    "shippingMethods": [
        {
            "id": "00000000-0000-0000-0000-000000000000",
            "enabled": false,
            "systemName": null,
            "shippingCode": null,
            "displayName": null,
            "description": null,
            "displayOrder": 0,
            "expectedDaysToDeliver": 0,
            "expectedDeliveryDate": "0001-01-01T00:00:00",
            "deliveryOnOrBefore": null,
            "price": {
                "currencySymbol": "£",
                "formatted": {
                    "withTax": "£0.00",
                    "withoutTax": "£0.00",
                    "tax": "£0.00"
                },
                "raw": {
                    "withTax": 0,
                    "withoutTax": 0,
                    "tax": 0
                }
            },
            "isDefault": false,
            "isNominated": false,
            "type": 0,
            "carrierCode": null,
            "countryCode": null,
            "isPriceOnRequest": false,
            "showRecomendation": false,
            "recomendation": null,
            "isTaxable": false,
            "shippingCostMethod": 0,
            "cutOffTimes": null,
            "countryCsv": null
        }
    ],
    "created": "0001-01-01T00:00:00",
    "lastUpdated": "0001-01-01T00:00:00",
    "isQuote": false,
    "quoteStatus": 0,
    "customInfo1": "cust info 1",
    "customInfo2": "cust info 2",
    "customInfo3": "cust info 3",
    "customInfo4": "cust info 4",
    "customInfo5": "cust info 5",
    "shippingAddress": {
        "id": 0,
        "title": "Mr.",
        "firstName": "FName",
        "lastName": "LName",
        "address1": "Address Line 1",
        "address2": "Address Line 2",
        "address3": "Address Line 3",
        "city": "London",
        "state": "London",
        "country": "United Kingdom",
        "countryCode": "UK",
        "postCode": null,
        "phoneNo": "9999999999",
        "mobileNo": null,
        "companyName": "My Company"
    },
    "billingAddress": {
        "id": 0,
        "title": "Mr.",
        "firstName": "FName",
        "lastName": "LName",
        "address1": "Address Line 1",
        "address2": "Address Line 2",
        "address3": "Address Line 3",
        "city": "London",
        "state": "London",
        "country": "United Kingdom",
        "countryCode": "UK",
        "postCode": null,
        "phoneNo": "9999999999",
        "mobileNo": null,
        "companyName": "My Company"
    },
    "postCode": "XX55YY",
    "maxDimensionMm": 0,
    "companyDiscount": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€.00000",
            "withoutTax": "€.00000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 0,
            "withoutTax": 0,
            "tax": 0
        }
    },
    "validUntil": "0001-01-01T00:00:00",
    "isLocked": false,
    "createdByAdmin": false,
    "poNumber": "PO00001",
    "deliveryInstruction": "Please read the give instructions",
    "deliveryPlans": [
        {
            "fulfilmentChannel": 0,
            "deliveryType": 0,
            "deliveryCenter": {
                "recordId": "00000000-0000-0000-0000-000000000000",
                "code": null,
                "name": null,
                "type": 0,
                "postCode": null,
                "latitude": null,
                "longitude": null
            },
            "items": [],
            "distanceInMiles": null,
            "shippingMethodId": "00000000-0000-0000-0000-000000000000",
            "shippingMethodName": null,
            "cost": 0,
            "shippingSpeed": " - ",
            "deliveryDateTarget": "2022-03-15T07:25:35.0394846Z",
            "deliveryDateActual": "0001-01-01T00:00:00",
            "leadTime": 0,
            "leadTimeUom": 0,
            "leadTimeMin": 0,
            "leadTimeMax": 0,
            "pickupStoreId": "00000000-0000-0000-0000-000000000000",
            "refStoreId": null,
            "pickupStoreCode": null,
            "shippingType": 0,
            "lineItems": null,
            "created": null,
            "recordId": "00000000-0000-0000-0000-000000000000"
        }
    ],
    "hasSubscription": false,
    "subscriptionTotal": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€.00000",
            "withoutTax": "€.00000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 0,
            "withoutTax": 0,
            "tax": 0
        }
    },
    "isGiftWrapApplied": false,
    "giftWrapId": "00000000-0000-0000-0000-000000000000",
    "giftWrapOption": null,
    "membershipPlanId": "00000000-0000-0000-0000-000000000000",
    "hasMembership": false,
    "exchangeRate": 1,
    "baseCurrency": "EUR",
    "microSiteId": "00000000-0000-0000-0000-000000000000",
    "baseCurrencyTotal": 99.99,
    "membershipDiscount": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€.00000",
            "withoutTax": "€.00000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 0,
            "withoutTax": 0,
            "tax": 0
        }
    }
},
"snippets": [],
"slugType": 1
}

PUT/api/v2/commerce/basket/:id/campaign?campaignCode=dolore cillum sit

Update campaign code for basket

This endpoint allows you to update the campaign code for the basket.

Developers - API Operations:

OperationEndpointResponse
Update baskets/api/v2/commerce/basket/:id/campaign?campaignCode=dolore cillum sitUpdate campaign code for basket.

Required attributes

  • Name
    Id
    Type
    string
    Description

    Id to identify the basket

  • Name
    campaignCode
    Type
    string
    Description

    New Campaign code that will be used to update previous campaign code

Response Properties

  • Name
    statusCode
    Type
    number
    Description

    Status code of the response

  • Name
    status
    Type
    string
    Description

    Status of the response

  • Name
    errors
    Type
    array
    Description

    List of errors in the response

  • Name
    success
    Type
    boolean
    Description

    Success status of the response

  • Name
    message
    Type
    string
    Description

    Message of the response

  • Name
    messageCode
    Type
    string
    Description

    Message code of the response

  • Name
    result
    Type
    object
    Description

    Result of the response

  • Name
    id
    Type
    string
    Description

    id to identify the user

  • Name
    title
    Type
    string
    Description

    Title of the user e.g. Miss./Mrs./Mr.

  • Name
    firstName
    Type
    string
    Description

    First name of the user

  • Name
    lastName
    Type
    string
    Description

    Last name of the user

  • Name
    address1
    Type
    string
    Description

    Address Line 1 provided by the user

  • Name
    address2
    Type
    string
    Description

    Address Line 2 provided by the user

  • Name
    address3
    Type
    string
    Description

    Address Line 3 provided by the user

  • Name
    city
    Type
    string
    Description

    City name provided by the user

  • Name
    state
    Type
    string
    Description

    State name provided by the user

  • Name
    country
    Type
    string
    Description

    Country name provided by the user

  • Name
    countryCode
    Type
    string
    Description

    Country code provided by the user

  • Name
    postCode
    Type
    string
    Description

    Post code provided by the user

  • Name
    phoneNo
    Type
    string
    Description

    Phone number of the user

  • Name
    mobileNo
    Type
    string
    Description

    Mobile number of the user

  • Name
    companyName
    Type
    string
    Description

    Name of the company provided by the user

  • Name
    isDefaultDelivery
    Type
    boolean
    Description

    Flag to check if the addresss is default delivery address

  • Name
    isDefaultForSubscription
    Type
    boolean
    Description

    Flag to check if the address is default

  • Name
    isDefaultBilling
    Type
    boolean
    Description

    Flag to check if the address is default billing address

  • Name
    customerId
    Type
    string
    Description

    Customer Id to identify the user

Request

PUT
/api/v2/commerce/basket/:id/campaign?campaignCode=dolore cillum sit
curl --location --request PUT 'https://api20.bettercommerce.io/api/v2/commerce/basket/:id/campaign?campaignCode=dolore%20cillum%20sit' \
--header 'Accept: application/json' \
--header 'UserId;' \
--header 'Email: abc@abc.com'

Response

{
"statusCode": 200,
"status": "OK",
"errors": [],
"success": true,
"message": "",
"messageCode": "",
"result": {
    "customerId": "29b600a5-e08d-4c40-99c2-2806a98a4415",
    "isDefault": false,
    "isDefaultDelivery": false,
    "isDefaultForSubscription": false,
    "isDefaultBilling": false,
    "id": 0,
    "title": "Mr.",
    "firstName": "David",
    "lastName": "Smith",
    "address1": "Address Line 1",
    "address2": "Address Line 2",
    "address3": "Address Line 3",
    "city": "London",
    "state": "London",
    "country": "United Kingdom",
    "countryCode": "UK",
    "postCode": "XX55YY",
    "phoneNo": "9999999999",
    "mobileNo": "888888888",
    "companyName": "My Company"
}
}

PUT/api/v2/commerce/basket/:id/custom-info

Update custom info fields for basket

This endpoint allows you to get a basket based on Id.

Developers - API Operations:

OperationEndpointResponse
Update baskets/api/v2/commerce/basket/:id/custom-infoUpdate custom info fields for basket.

Required attributes

  • Name
    Id
    Type
    string
    Description

    Id to identify the basket

  • Name
    info
    Type
    model
    Description

    Customer Id to identify the user

Model attributes

  • Name
    basketId
    Type
    string
    Description

    Basket Id to identify the basket

  • Name
    customInfo1
    Type
    string
    Description

    Custom information about the product given by the user

  • Name
    customInfo2
    Type
    string
    Description

    Custom information about the product given by the user

  • Name
    customInfo3
    Type
    string
    Description

    Custom information about the product given by the user

  • Name
    customInfo4
    Type
    string
    Description

    Custom information about the product given by the user

  • Name
    customInfo5
    Type
    string
    Description

    Custom information about the product given by the user

  • Name
    lineInfo
    Type
    array
    Description

    List of products in the basket

  • Name
    productId
    Type
    string
    Description

    Id used to identify the product

  • Name
    parentProductId
    Type
    string
    Description

    Custom information about the product given by the user

  • Name
    lineId
    Type
    string
    Description

    Id used to identify the line of products in basket

  • Name
    customInfo1Formatted
    Type
    string
    Description

    New Custom information about the product given by the user to be updated

  • Name
    customInfo2Formatted
    Type
    string
    Description

    New Custom information about the product given by the user to be updated

  • Name
    customInfo3Formatted
    Type
    string
    Description

    New Custom information about the product given by the user to be updated

  • Name
    customInfo4Formatted
    Type
    string
    Description

    New Custom information about the product given by the user to be updated

  • Name
    customInfo5Formatted
    Type
    string
    Description

    New Custom information about the product given by the user to be updated

  • Name
    qty
    Type
    number
    Description

    Quantity of the product in the basket

  • Name
    additionalCharge
    Type
    number
    Description

    Additional charges applied on the product

  • Name
    serviceType
    Type
    string
    Description

    Type of service provided for the product in the basket

  • Name
    lengthMm
    Type
    number
    Description

    Length of the product in Millimeters

  • Name
    additionalServiceCost
    Type
    number
    Description

    Additional service cost applied on the product for specific services

Response Properties

  • Name
    statusCode
    Type
    number
    Description

    Status code of the response

  • Name
    status
    Type
    string
    Description

    Status of the response

  • Name
    errors
    Type
    array
    Description

    List of errors in the response

  • Name
    success
    Type
    boolean
    Description

    Success status of the response

  • Name
    message
    Type
    string
    Description

    Message of the response

  • Name
    messageCode
    Type
    string
    Description

    Message code of the response

  • Name
    result
    Type
    object
    Description

    Result of the response

  • Name
    id
    Type
    number
    Description

    Id to identify the user

  • Name
    currencySymbol
    Type
    string
    Description

    Currency Symbol for Price e.g £

  • Name
    currencyCode
    Type
    string
    Description

    Currency code according to the region e.g. GBP:'Great Britain Pound'

  • Name
    userId
    Type
    string
    Description

    User Id to identify the User

  • Name
    userEmail
    Type
    string
    Description

    User email provided by the user

  • Name
    shippingMethodId
    Type
    string
    Description

    Shipping method Id to identify the shipping method

  • Name
    subTotal
    Type
    object
    Description

    Sub total of the total price

  • Name
    shippingCharge
    Type
    object
    Description

    Shipping charges of the product in basket

  • Name
    formatted
    Type
    object
    Description

    Formatted price with and without tax

  • Name
    withTax
    Type
    string
    Description

    Price of basket item with Tax

  • Name
    withoutTax
    Type
    string
    Description

    Price of basket item without Tax

  • Name
    tax
    Type
    string
    Description

    Tax amount of basket item

  • Name
    raw
    Type
    object
    Description

    Raw price without discount

  • Name
    discount
    Type
    object
    Description

    Discount amount on the basket item

  • Name
    additionalCharge
    Type
    object
    Description

    Additional charges applied on the basket item

  • Name
    grandTotal
    Type
    object
    Description

    Grand total price of basket items

  • Name
    isLocked
    Type
    boolean
    Description

    Flag to check if the basket is locked

  • Name
    createdByAdmin
    Type
    boolean
    Description

    Flag to check if the basket is created by Admin

  • Name
    poNumber
    Type
    string
    Description

    P O Number of the basket

  • Name
    isQuote
    Type
    boolean
    Description

    Flag to check if the basket is a Quote

  • Name
    quoteStatus
    Type
    number
    Description

    Quote status of the basket

  • Name
    postCode
    Type
    string
    Description

    Post code of the user

  • Name
    hasMembership
    Type
    boolean
    Description

    Flag to check if the user has a membership

  • Name
    exchangeRate
    Type
    number
    Description

    Exchange rate of the currency

  • Name
    baseCurrency
    Type
    string
    Description

    Base currency of the region

  • Name
    microSiteId
    Type
    string
    Description

    Micro site Id of the site

  • Name
    baseCurrencyTotal
    Type
    number
    Description

    Total amount of the basket in base currency

  • Name
    membershipDiscount
    Type
    string
    Description

    Discount given to the user under their membership

  • Name
    created
    Type
    string
    Description

    Date and time when the basket was created

  • Name
    lastUpdated
    Type
    string
    Description

    Date and time when the basket was last updated

  • Name
    lineItems
    Type
    array
    Description

    Array of all the products added in to basket

  • Name
    stockCode
    Type
    string
    Description

    Stock code of the product

  • Name
    name
    Type
    string
    Description

    Name of the product

  • Name
    slug
    Type
    string
    Description

    Slug of the product used to navigate to the product

  • Name
    shortDescription
    Type
    string
    Description

    A short description of the product

  • Name
    productId
    Type
    string
    Description

    Product Id used to identify the product

  • Name
    productIid
    Type
    string
    Description

    Product Iid used to identify the product

  • Name
    parentProductId
    Type
    string
    Description

    Id of the parent product product, used to map personalized products with their parent product

  • Name
    price
    Type
    string
    Description

    Price of the product

  • Name
    totalPrice
    Type
    object
    Description

    Total price of the product

  • Name
    minPrice
    Type
    number
    Description

    Minimum price for the company

  • Name
    minPriceWithoutTax
    Type
    number
    Description

    Minimum price for the company without tax

  • Name
    maxPrice
    Type
    number
    Description

    Maximum price for the company

  • Name
    maxPriceWithoutTax
    Type
    number
    Description

    Maximum price for the company wihtout tax

  • Name
    currencyDecimalSeparator
    Type
    string
    Description

    Currency decimal separator for the region

  • Name
    currencyDigitsAfterDecimal
    Type
    number
    Description

    Digits after decimal for the currency

  • Name
    id
    Type
    string
    Description

    id to identify the user

  • Name
    title
    Type
    string
    Description

    Title of the user e.g. Miss./Mrs./Mr.

  • Name
    firstName
    Type
    string
    Description

    First name of the user

  • Name
    lastName
    Type
    string
    Description

    Last name of the user

  • Name
    address1
    Type
    string
    Description

    Address Line 1 provided by the user

  • Name
    address2
    Type
    string
    Description

    Address Line 2 provided by the user

  • Name
    address3
    Type
    string
    Description

    Address Line 3 provided by the user

  • Name
    city
    Type
    string
    Description

    City name provided by the user

  • Name
    state
    Type
    string
    Description

    State name provided by the user

  • Name
    country
    Type
    string
    Description

    Country name provided by the user

  • Name
    countryCode
    Type
    string
    Description

    Country code provided by the user

  • Name
    postCode
    Type
    string
    Description

    Post code provided by the user

  • Name
    phoneNo
    Type
    string
    Description

    Phone number of the user

  • Name
    mobileNo
    Type
    string
    Description

    Mobile number of the user

  • Name
    companyName
    Type
    string
    Description

    Name of the company provided by the user

  • Name
    displayOrder
    Type
    number
    Description

    Order of the display associated with the product

  • Name
    totalWithoutShipping
    Type
    object
    Description

    Total price of the basket without shipping charges

  • Name
    taxPercent
    Type
    number
    Description

    Amount of tax applied in percentage

  • Name
    brand
    Type
    string
    Description

    Brand name of the product

  • Name
    subbrand
    Type
    string
    Description

    Sub brand name of the product

  • Name
    image
    Type
    string
    Description

    File name of the image of the product

  • Name
    qty
    Type
    number
    Description

    Quantity of product in the basket

  • Name
    displayOrder
    Type
    number
    Description

    Display order of the product in the basket

  • Name
    itemType
    Type
    number
    Description

    Type of item in the basket

  • Name
    displayInBasket
    Type
    boolean
    Description

    Flag to check if the product should be displayed in the basket

  • Name
    categoryItems
    Type
    array
    Description

    List of all the categories available

  • Name
    categoryId
    Type
    string
    Description

    Category Id to identify the cateogories

  • Name
    categoryName
    Type
    string
    Description

    Name of the category e.g. 'Shirts','Joggers', etc

  • Name
    parentCategoryId
    Type
    string
    Description

    Parent category Id to identify the parent category

  • Name
    parentCategoryName
    Type
    string
    Description

    Name of the Parent category e.g. 'Clothings'

  • Name
    attributesJson
    Type
    string
    Description

    JSON attributes of the product

  • Name
    customInfo1
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    customInfo2
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    customInfo3
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    customInfo4
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    customInfo5
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    isSubscription
    Type
    boolean
    Description

    Flag to check if the user has an active subscription

  • Name
    isMembership
    Type
    boolean
    Description

    Flag to check if the user has an active membership

  • Name
    subscriptionUserSettings
    Type
    object
    Description

    Settings for the users's subscription

  • Name
    subscriptionPlanId
    Type
    string
    Description

    Plan Id of the subscription

  • Name
    subscriptionTermId
    Type
    string
    Description

    Term Id of the subscription

  • Name
    userPricingType
    Type
    number
    Description

    Type of pricing for the user

  • Name
    subscriptionJson
    Type
    string
    Description

    JSON values for the subscription

  • Name
    authorizationAmount
    Type
    number
    Description

    Amount to be authorized for this subscription

  • Name
    shippingMethods
    Type
    array
    Description

    A List of shipping methods available for the products

  • Name
    id
    Type
    string
    Description

    Id to identify the shipping method

  • Name
    enabled
    Type
    boolean
    Description

    Flag to check if the shipping method is enabled

  • Name
    systemName
    Type
    string
    Description

    System name of the shipping methods

  • Name
    shippingCode
    Type
    string
    Description

    Shipping code used by the shipping method

  • Name
    displayName
    Type
    string
    Description

    Display name of the shipping method

  • Name
    description
    Type
    string
    Description

    Description of the shipping method

  • Name
    displayOrder
    Type
    number
    Description

    Display order of this shipping method in the list of shipping methods

  • Name
    expectedDaysToDeliver
    Type
    number
    Description

    Number of days before the expected delivery date

  • Name
    expectedDeliveryDate
    Type
    string
    Description

    Date and time of expected delivery of the product

  • Name
    deliveryOnOrBefore
    Type
    string
    Description

    The date on or before which date the product should be delivered

  • Name
    isDefault
    Type
    boolean
    Description

    Flag to check if this shipping method is the default shipping method

  • Name
    isNominated
    Type
    boolean
    Description

    Flag to check if this shipping method is the nominated shipping method

  • Name
    type
    Type
    number
    Description

    Type of this shipping mehtod

  • Name
    carrierCode
    Type
    string
    Description

    Carrier code of the delivery carrier

  • Name
    countryCode
    Type
    string
    Description

    Country code of the region of delivery

  • Name
    isPriceOnRequest
    Type
    boolean
    Description

    Flag to check if product is produced only for editorials and is never actually put into production for consumer purchase

  • Name
    showRecomendation
    Type
    boolean
    Description

    Flag to check if the recommendations for this product should be shown

  • Name
    recomendation
    Type
    string
    Description

    The recommendations for this product

  • Name
    isTaxable
    Type
    boolean
    Description

    Flag to check if this shipping method is taxable

  • Name
    shippingCostMethod
    Type
    number
    Description

    Used to select the type of shipping cost to be applied

  • Name
    cutOffTimes
    Type
    string
    Description

    It is the latest time in any Business Day that we can process a particular Transaction, request or instruction on that Business Day.

  • Name
    countryCsv
    Type
    string
    Description

    File name for the csv file having data of the countries

  • Name
    maxDimensionMm
    Type
    number
    Description

    Maximum dimensions of the package to be delivered in Millimeters

  • Name
    companyDiscount
    Type
    object
    Description

    The discount given on the original price of the products by the company to their employees

  • Name
    validUntil
    Type
    string
    Description

    The date time of the validity of the order for delivery

  • Name
    deliveryInstruction
    Type
    string
    Description

    Instructions for the delivery agent regarding the delivery

  • Name
    deliveryPlans
    Type
    array
    Description

    A list of delivery plans for the delivery of the order

  • Name
    fulfilmentChannel
    Type
    number
    Description

    The method by which sellers can sell items through various sales channels and have the company handle the packaging and shipping aspects for them

  • Name
    deliveryType
    Type
    number
    Description

    The type of delivery for the order

  • Name
    deliveryCenter
    Type
    object
    Description

    The details of the delivery center which will handle the delivery for this order

  • Name
    recordId
    Type
    string
    Description

    Record Id to identify the delivery center records

  • Name
    code
    Type
    string
    Description

    A code used by the delivery center

  • Name
    name
    Type
    string
    Description

    Name of the delivery center

  • Name
    type
    Type
    number
    Description

    Type of the delivery center

  • Name
    postCode
    Type
    string
    Description

    Postal code of the delivery center

  • Name
    latitude
    Type
    string
    Description

    Latitute of the geographical location of the delivery center

  • Name
    longitude
    Type
    string
    Description

    Longitute of the geographical location of the delivery center

  • Name
    items
    Type
    array
    Description

    The list of items to be delivered

  • Name
    distanceInMiles
    Type
    string
    Description

    The distance to the the delivery location in miles

  • Name
    shippingMethodName
    Type
    string
    Description

    The name of the shipping method used for shipping the product

  • Name
    cost
    Type
    number
    Description

    The cost of shipping the product

  • Name
    shippingSpeed
    Type
    string
    Description

    The rate at which the order will be shipped for deliery

  • Name
    deliveryDateTarget
    Type
    string
    Description

    The date and time target for the delivery of the order

  • Name
    deliveryDateActual
    Type
    string
    Description

    The date and time of the actual delivery of the order

  • Name
    leadTime
    Type
    number
    Description

    The amount of time that passes from the start of a process until its conclusion

  • Name
    leadTimeUom
    Type
    number
    Description

    The unit of measurement for the lead time

  • Name
    leadTimeMin
    Type
    number
    Description

    The minimum lead time for the order to be delivered

  • Name
    leadTimeMax
    Type
    number
    Description

    The maximum lead time for the order to be delivered

  • Name
    pickupStoreId
    Type
    string
    Description

    The id of stores from which the order can be collected

  • Name
    refStoreId
    Type
    string
    Description

    Reference Id of the store

  • Name
    pickupStoreCode
    Type
    string
    Description

    The store code for a pickup store

  • Name
    shippingType
    Type
    number
    Description

    The type of shipping used for delivery of the order

  • Name
    hasSubscription
    Type
    boolean
    Description

    Flag to check if the user has a subscription

  • Name
    subscriptionTotal
    Type
    object
    Description

    The total amount that must be paid by the user for the subscription

  • Name
    isGiftWrapApplied
    Type
    boolean
    Description

    Flag to check if Gift wrap is applied to the products

  • Name
    giftWrapId
    Type
    string
    Description

    Gift wrap Id to identify the gift warpped products in the basket

  • Name
    giftWrapOption
    Type
    string
    Description

    The gift wrapping options available for the products in the basket

  • Name
    membershipPlanId
    Type
    string
    Description

    Membership plan Id to identify the membership plan of the user

  • Name
    snippets
    Type
    array
    Description

    A list of snippets that can be added to the site

  • Name
    slugType
    Type
    number
    Description

    Type of slug of the basket

  • Name
    promotionsApplied
    Type
    array
    Description

    List of promotions applied on the products in the basket

  • Name
    voucherCode
    Type
    string
    Description

    Voucher code used to validate the offer and claim the benefits e.g. 'DISCOUNT15'

  • Name
    discountPct
    Type
    number
    Description

    Discount value applied on the product in Percentage

  • Name
    discountAmt
    Type
    object
    Description

    The amount of discount to be applied on the products in the basket

  • Name
    autoApply
    Type
    boolean
    Description

    Flag to check if the promotion has to be auto applied on the products

  • Name
    promoCode
    Type
    string
    Description

    Promotion code used to validate the offer e.g. 'DISCOUNT15'

  • Name
    name
    Type
    string
    Description

    Name of the promotion to be applied

  • Name
    itemGroupId
    Type
    number
    Description

    Id used to identify the group of items

  • Name
    couponProvider
    Type
    string
    Description

    The entity that provides the coupon to create an offer

  • Name
    isManualPrice
    Type
    boolean
    Description

    Flag to check if the Price is set Manually

  • Name
    priceMatchReqId
    Type
    string
    Description

    Id used to match the price requests

  • Name
    deliveryMessage
    Type
    string
    Description

    Message for the delivery agent provided by the user

  • Name
    variantProducts
    Type
    array
    Description

    A list of all available variants of the current product

  • Name
    productName
    Type
    string
    Description

    Product name of the variant product

  • Name
    variantAttributes
    Type
    array
    Description

    List of variant attributes of the product e.g. Size, Color

  • Name
    variantProductsAttribute
    Type
    array
    Description

    A list of variant attributes of the product

  • Name
    fieldName
    Type
    string
    Description

    Name of the variant attribute

  • Name
    fieldCode
    Type
    string
    Description

    Field code of the atrribute

  • Name
    fieldValues
    Type
    array
    Description

    A list of values for the variant attribute

  • Name
    currentStock
    Type
    number
    Description

    Number of products available in stock

Request

PUT
/api/v2/commerce/basket/:id/custom-info
curl --location --request PUT 'https://api20.bettercommerce.io/api/v2/commerce/basket/dolore cillum sit/custom-info' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Accept: application/json' \
--header 'UserId;' \
--header 'Email: abc@abc.com' \
--data '{
"basketId": "",
"customInfo1": "cust info 1",
"customInfo2": "cust info 2",
"customInfo3": "cust info 3",
"customInfo4": "cust info 4",
"customInfo5": "cust info 5",
"lineInfo": [
{
  "productId": "",
  "parentProductId": "00000000-0000-0000-0000-000000000000",
  "lineId": ,
  "customInfo1": "cust info 1",
  "customInfo2": "cust info 2",
  "customInfo3": "cust info 3",
  "customInfo4": "cust info 4",
  "customInfo5": "cust info 5",
  "customInfo1Formatted": "<b>cust info 1<b>",
  "customInfo2Formatted": "<i>cust info 2<i>",
  "customInfo3Formatted": "cust info 3",
  "customInfo4Formatted": "cust info 4",
  "customInfo5Formatted": "cust info 5",
  "qty": 1,
  "additionalCharge": 0,
  "serviceType": "",
  "lengthMm": 0,
  "additionalServiceCost": 0
}
]
}'

Response

{
"statusCode": 200,
"status": "OK",
"errors": [],
"success": true,
"message": "",
"messageCode": "",
"result": {
    "id": "eebd515a-7997-4b8e-a66a-d3fc179c8862",
    "currencySymbol": "€",
    "currencyCode": "EUR",
    "userId": "45471f86-ba0a-47ee-a583-f5e8bd4626e0",
    "userEmail": "myemail@example.com",
    "grandTotal": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€99.99000",
            "withoutTax": "€99.99000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 99.99,
            "withoutTax": 99.99,
            "tax": 0
        }
    },
    "totalWithoutShipping": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€96.00000",
            "withoutTax": "€96.00000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 96,
            "withoutTax": 96,
            "tax": 0
        }
    },
    "shippingMethodId": "STD",
    "shippingCharge": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€3.99000",
            "withoutTax": "€3.99000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 3.99,
            "withoutTax": 3.99,
            "tax": 0
        }
    },
    "subTotal": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€99.99000",
            "withoutTax": "€99.99000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 99.99,
            "withoutTax": 99.99,
            "tax": 0
        }
    },
    "discount": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€.00000",
            "withoutTax": "€.00000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 0,
            "withoutTax": 0,
            "tax": 0
        }
    },
    "taxPercent": 0,
    "additionalCharge": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€.00000",
            "withoutTax": "€.00000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 0,
            "withoutTax": 0,
            "tax": 0
        }
    },
    "lineItems": [
        {
            "id": "0",
            "stockCode": "SKU-0001",
            "name": "Polo Shirt",
            "productId": "1C5D16AB-0497-462D-A0D2-B2F8F67335A1",
            "productIid": "0",
            "parentProductId": "",
            "brand": "Tommy Hilfiger",
            "subbrand": "Tommy Hilfiger",
            "price": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€24.00000",
                    "withoutTax": "€24.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 24,
                    "withoutTax": 24,
                    "tax": 0
                }
            },
            "subTotal": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€96.00000",
                    "withoutTax": "€96.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 96,
                    "withoutTax": 96,
                    "tax": 0
                }
            },
            "totalPrice": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€96.00000",
                    "withoutTax": "€96.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 96,
                    "withoutTax": 96,
                    "tax": 0
                }
            },
            "image": "image1.jeg",
            "qty": 4,
            "displayOrder": 1,
            "slug": "/product/SKU-0001",
            "itemType": 1,
            "displayInBasket": false,
            "categoryItems": [
                {
                    "categoryId": "ff3e6ddf-2a27-4a5e-9c97-fff002530ca3",
                    "categoryName": "Shirt",
                    "parentCategoryId": "37f91ae5-a7fa-43dc-affb-cb19d72d3789",
                    "parentCategoryName": "Clothings"
                }
            ],
            "attributesJson": "",
            "customInfo1": "cust info 1",
            "customInfo2": "cust info 2",
            "customInfo3": "cust info 3",
            "customInfo4": "cust info 4",
            "customInfo5": "cust info 5",
            "discount": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€.00000",
                    "withoutTax": "€.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 0,
                    "withoutTax": 0,
                    "tax": 0
                }
            },
            "additionalCharge": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€.00000",
                    "withoutTax": "€.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 0,
                    "withoutTax": 0,
                    "tax": 0
                }
            },
            "shortDescription": "Polo Shirt Description",
            "companyDiscount": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€.00000",
                    "withoutTax": "€.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 0,
                    "withoutTax": 0,
                    "tax": 0
                }
            },
            "listPrice": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€24.00000",
                    "withoutTax": "€24.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 24,
                    "withoutTax": 24,
                    "tax": 0
                }
            },
            "isSubscription": false,
            "isMembership": false,
            "subscriptionUserSettings": {
                "subscriptionPlanId": "00000000-0000-0000-0000-000000000000",
                "subscriptionTermId": "00000000-0000-0000-0000-000000000000",
                "userPricingType": 0,
                "subscriptionJson": null,
                "authorizationAmount": 0
            },
            "promotionsApplied": [
                {
                    "voucherCode": "DISCOUNT15",
                    "discountPct": 0,
                    "discountAmt": {
                        "minPrice": 0,
                        "minPriceWithoutTax": 0,
                        "maxPrice": 0,
                        "maxPriceWithoutTax": 0,
                        "currencyDecimalSeparator": ".",
                        "currencyDigitsAfterDecimal": 2,
                        "currencySymbol": "€",
                        "formatted": {
                            "withTax": "€.00000",
                            "withoutTax": "€.00000",
                            "tax": "€.00000"
                        },
                        "raw": {
                            "withTax": 0,
                            "withoutTax": 0,
                            "tax": 0
                        }
                    },
                    "autoApply": false,
                    "promoCode": "DISCOUNT15",
                    "name": "Dummy Promo"
                }
            ],
            "isGiftWrapApplied": false,
            "giftWrapId": "00000000-0000-0000-0000-000000000000",
            "itemGroupId": 0,
            "couponProvider": "",
            "isManualPrice": false,
            "priceMatchReqId": "00000000-0000-0000-0000-000000000000",
            "deliveryMessage": " delivery message",
            "variantProducts": [
                {
                    "stockCode": null,
                    "productId": "00000000-0000-0000-0000-000000000000",
                    "price": {
                        "minPrice": 0,
                        "minPriceWithoutTax": 0,
                        "maxPrice": 0,
                        "maxPriceWithoutTax": 0,
                        "currencyDecimalSeparator": ".",
                        "currencyDigitsAfterDecimal": 2,
                        "currencySymbol": "€",
                        "formatted": {
                            "withTax": "€15.99000",
                            "withoutTax": "€15.99000",
                            "tax": "€.00000"
                        },
                        "raw": {
                            "withTax": 15.99,
                            "withoutTax": 15.99,
                            "tax": 0
                        }
                    },
                    "slug": null,
                    "image": "img.jpg",
                    "productName": "Variant SKU",
                    "variantAttributes": []
                }
            ],
            "variantProductsAttribute": [
                {
                    "fieldName": "color",
                    "fieldCode": "global.color",
                    "fieldValues": []
                }
            ],
            "currentStock": 999
        }
    ],
    "promotionsApplied": [
        {
            "voucherCode": null,
            "discountPct": 0,
            "discountAmt": null,
            "autoApply": false,
            "promoCode": null,
            "name": null
        }
    ],
    "shippingMethods": [
        {
            "id": "00000000-0000-0000-0000-000000000000",
            "enabled": false,
            "systemName": null,
            "shippingCode": null,
            "displayName": null,
            "description": null,
            "displayOrder": 0,
            "expectedDaysToDeliver": 0,
            "expectedDeliveryDate": "0001-01-01T00:00:00",
            "deliveryOnOrBefore": null,
            "price": {
                "currencySymbol": "£",
                "formatted": {
                    "withTax": "£0.00",
                    "withoutTax": "£0.00",
                    "tax": "£0.00"
                },
                "raw": {
                    "withTax": 0,
                    "withoutTax": 0,
                    "tax": 0
                }
            },
            "isDefault": false,
            "isNominated": false,
            "type": 0,
            "carrierCode": null,
            "countryCode": null,
            "isPriceOnRequest": false,
            "showRecomendation": false,
            "recomendation": null,
            "isTaxable": false,
            "shippingCostMethod": 0,
            "cutOffTimes": null,
            "countryCsv": null
        }
    ],
    "created": "0001-01-01T00:00:00",
    "lastUpdated": "0001-01-01T00:00:00",
    "isQuote": false,
    "quoteStatus": 0,
    "customInfo1": "cust info 1",
    "customInfo2": "cust info 2",
    "customInfo3": "cust info 3",
    "customInfo4": "cust info 4",
    "customInfo5": "cust info 5",
    "shippingAddress": {
        "id": 0,
        "title": "Mr.",
        "firstName": "FName",
        "lastName": "LName",
        "address1": "Address Line 1",
        "address2": "Address Line 2",
        "address3": "Address Line 3",
        "city": "London",
        "state": "London",
        "country": "United Kingdom",
        "countryCode": "UK",
        "postCode": null,
        "phoneNo": "9999999999",
        "mobileNo": null,
        "companyName": "My Company"
    },
    "billingAddress": {
        "id": 0,
        "title": "Mr.",
        "firstName": "FName",
        "lastName": "LName",
        "address1": "Address Line 1",
        "address2": "Address Line 2",
        "address3": "Address Line 3",
        "city": "London",
        "state": "London",
        "country": "United Kingdom",
        "countryCode": "UK",
        "postCode": null,
        "phoneNo": "9999999999",
        "mobileNo": null,
        "companyName": "My Company"
    },
    "postCode": "XX55YY",
    "maxDimensionMm": 0,
    "companyDiscount": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€.00000",
            "withoutTax": "€.00000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 0,
            "withoutTax": 0,
            "tax": 0
        }
    },
    "validUntil": "0001-01-01T00:00:00",
    "isLocked": false,
    "createdByAdmin": false,
    "poNumber": "PO00001",
    "deliveryInstruction": "Please read the give instructions",
    "deliveryPlans": [
        {
            "fulfilmentChannel": 0,
            "deliveryType": 0,
            "deliveryCenter": {
                "recordId": "00000000-0000-0000-0000-000000000000",
                "code": null,
                "name": null,
                "type": 0,
                "postCode": null,
                "latitude": null,
                "longitude": null
            },
            "items": [],
            "distanceInMiles": null,
            "shippingMethodId": "00000000-0000-0000-0000-000000000000",
            "shippingMethodName": null,
            "cost": 0,
            "shippingSpeed": " - ",
            "deliveryDateTarget": "2022-03-15T07:25:35.0394846Z",
            "deliveryDateActual": "0001-01-01T00:00:00",
            "leadTime": 0,
            "leadTimeUom": 0,
            "leadTimeMin": 0,
            "leadTimeMax": 0,
            "pickupStoreId": "00000000-0000-0000-0000-000000000000",
            "refStoreId": null,
            "pickupStoreCode": null,
            "shippingType": 0,
            "lineItems": null,
            "created": null,
            "recordId": "00000000-0000-0000-0000-000000000000"
        }
    ],
    "hasSubscription": false,
    "subscriptionTotal": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€.00000",
            "withoutTax": "€.00000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 0,
            "withoutTax": 0,
            "tax": 0
        }
    },
    "isGiftWrapApplied": false,
    "giftWrapId": "00000000-0000-0000-0000-000000000000",
    "giftWrapOption": null,
    "membershipPlanId": "00000000-0000-0000-0000-000000000000",
    "hasMembership": false,
    "exchangeRate": 1,
    "baseCurrency": "EUR",
    "microSiteId": "00000000-0000-0000-0000-000000000000",
    "baseCurrencyTotal": 99.99,
    "membershipDiscount": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€.00000",
            "withoutTax": "€.00000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 0,
            "withoutTax": 0,
            "tax": 0
        }
    }
}
}

PUT/api/v2/commerce/basket/:id/subscription/:productId

Update item specific subscription info

This endpoint allows you to get a basket based on Id.

Developers - API Operations:

OperationEndpointResponse
Update subscription/api/v2/commerce/basket/:id/subscription/:productIdUpdate item specific subscription info.

Required attributes

  • Name
    Id
    Type
    string
    Description

    Id to identify the basket

  • Name
    productId
    Type
    string
    Description

    Product Id to identify the product

  • Name
    userSetting
    Type
    model
    Description

    New Subscription details of the user to be updated

Model attributes

  • Name
    subscriptionPlanId
    Type
    string
    Description

    Subscription plan Id used to identify the subscription plan

  • Name
    subscriptionTermId
    Type
    string
    Description

    Subscription Term Id used to identify the subscription term

  • Name
    userPricingType
    Type
    number
    Description

    Subscription pricing type for the user

  • Name
    subscriptionJson
    Type
    string
    Description

    JSON object with subscription data

  • Name
    authorizationAmount
    Type
    number
    Description

    Amount to be authorized for the subscription

Response Properties

  • Name
    statusCode
    Type
    number
    Description

    Status code of the response

  • Name
    status
    Type
    string
    Description

    Status of the response

  • Name
    errors
    Type
    array
    Description

    List of errors in the response

  • Name
    success
    Type
    boolean
    Description

    Success status of the response

  • Name
    message
    Type
    string
    Description

    Message of the response

  • Name
    messageCode
    Type
    string
    Description

    Message code of the response

  • Name
    result
    Type
    object
    Description

    Result of the response

  • Name
    id
    Type
    number
    Description

    Id to identify the user

  • Name
    currencySymbol
    Type
    string
    Description

    Currency Symbol for Price e.g £

  • Name
    currencyCode
    Type
    string
    Description

    Currency code according to the region e.g. GBP:'Great Britain Pound'

  • Name
    userId
    Type
    string
    Description

    User Id to identify the User

  • Name
    userEmail
    Type
    string
    Description

    User email provided by the user

  • Name
    shippingMethodId
    Type
    string
    Description

    Shipping method Id to identify the shipping method

  • Name
    subTotal
    Type
    object
    Description

    Sub total of the total price

  • Name
    shippingCharge
    Type
    object
    Description

    Shipping charges of the product in basket

  • Name
    formatted
    Type
    object
    Description

    Formatted price with and without tax

  • Name
    withTax
    Type
    string
    Description

    Price of basket item with Tax

  • Name
    withoutTax
    Type
    string
    Description

    Price of basket item without Tax

  • Name
    tax
    Type
    string
    Description

    Tax amount of basket item

  • Name
    raw
    Type
    object
    Description

    Raw price without discount

  • Name
    discount
    Type
    object
    Description

    Discount amount on the basket item

  • Name
    additionalCharge
    Type
    object
    Description

    Additional charges applied on the basket item

  • Name
    grandTotal
    Type
    object
    Description

    Grand total price of basket items

  • Name
    isLocked
    Type
    boolean
    Description

    Flag to check if the basket is locked

  • Name
    createdByAdmin
    Type
    boolean
    Description

    Flag to check if the basket is created by Admin

  • Name
    poNumber
    Type
    string
    Description

    P O Number of the basket

  • Name
    isQuote
    Type
    boolean
    Description

    Flag to check if the basket is a Quote

  • Name
    quoteStatus
    Type
    number
    Description

    Quote status of the basket

  • Name
    postCode
    Type
    string
    Description

    Post code of the user

  • Name
    hasMembership
    Type
    boolean
    Description

    Flag to check if the user has a membership

  • Name
    exchangeRate
    Type
    number
    Description

    Exchange rate of the currency

  • Name
    baseCurrency
    Type
    string
    Description

    Base currency of the region

  • Name
    microSiteId
    Type
    string
    Description

    Micro site Id of the site

  • Name
    baseCurrencyTotal
    Type
    number
    Description

    Total amount of the basket in base currency

  • Name
    membershipDiscount
    Type
    string
    Description

    Discount given to the user under their membership

  • Name
    created
    Type
    string
    Description

    Date and time when the basket was created

  • Name
    lastUpdated
    Type
    string
    Description

    Date and time when the basket was last updated

  • Name
    lineItems
    Type
    array
    Description

    Array of all the products added in to basket

  • Name
    stockCode
    Type
    string
    Description

    Stock code of the product

  • Name
    name
    Type
    string
    Description

    Name of the product

  • Name
    slug
    Type
    string
    Description

    Slug of the product used to navigate to the product

  • Name
    shortDescription
    Type
    string
    Description

    A short description of the product

  • Name
    productId
    Type
    string
    Description

    Product Id used to identify the product

  • Name
    productIid
    Type
    string
    Description

    Product Iid used to identify the product

  • Name
    parentProductId
    Type
    string
    Description

    Id of the parent product product, used to map personalized products with their parent product

  • Name
    price
    Type
    string
    Description

    Price of the product

  • Name
    totalPrice
    Type
    object
    Description

    Total price of the product

  • Name
    minPrice
    Type
    number
    Description

    Minimum price for the company

  • Name
    minPriceWithoutTax
    Type
    number
    Description

    Minimum price for the company without tax

  • Name
    maxPrice
    Type
    number
    Description

    Maximum price for the company

  • Name
    maxPriceWithoutTax
    Type
    number
    Description

    Maximum price for the company wihtout tax

  • Name
    currencyDecimalSeparator
    Type
    string
    Description

    Currency decimal separator for the region

  • Name
    currencyDigitsAfterDecimal
    Type
    number
    Description

    Digits after decimal for the currency

  • Name
    id
    Type
    string
    Description

    id to identify the user

  • Name
    title
    Type
    string
    Description

    Title of the user e.g. Miss./Mrs./Mr.

  • Name
    firstName
    Type
    string
    Description

    First name of the user

  • Name
    lastName
    Type
    string
    Description

    Last name of the user

  • Name
    address1
    Type
    string
    Description

    Address Line 1 provided by the user

  • Name
    address2
    Type
    string
    Description

    Address Line 2 provided by the user

  • Name
    address3
    Type
    string
    Description

    Address Line 3 provided by the user

  • Name
    city
    Type
    string
    Description

    City name provided by the user

  • Name
    state
    Type
    string
    Description

    State name provided by the user

  • Name
    country
    Type
    string
    Description

    Country name provided by the user

  • Name
    countryCode
    Type
    string
    Description

    Country code provided by the user

  • Name
    postCode
    Type
    string
    Description

    Post code provided by the user

  • Name
    phoneNo
    Type
    string
    Description

    Phone number of the user

  • Name
    mobileNo
    Type
    string
    Description

    Mobile number of the user

  • Name
    companyName
    Type
    string
    Description

    Name of the company provided by the user

  • Name
    displayOrder
    Type
    number
    Description

    Order of the display associated with the product

  • Name
    totalWithoutShipping
    Type
    object
    Description

    Total price of the basket without shipping charges

  • Name
    taxPercent
    Type
    number
    Description

    Amount of tax applied in percentage

  • Name
    brand
    Type
    string
    Description

    Brand name of the product

  • Name
    subbrand
    Type
    string
    Description

    Sub brand name of the product

  • Name
    image
    Type
    string
    Description

    File name of the image of the product

  • Name
    qty
    Type
    number
    Description

    Quantity of product in the basket

  • Name
    displayOrder
    Type
    number
    Description

    Display order of the product in the basket

  • Name
    itemType
    Type
    number
    Description

    Type of item in the basket

  • Name
    displayInBasket
    Type
    boolean
    Description

    Flag to check if the product should be displayed in the basket

  • Name
    categoryItems
    Type
    array
    Description

    List of all the categories available

  • Name
    categoryId
    Type
    string
    Description

    Category Id to identify the cateogories

  • Name
    categoryName
    Type
    string
    Description

    Name of the category e.g. 'Shirts','Joggers', etc

  • Name
    parentCategoryId
    Type
    string
    Description

    Parent category Id to identify the parent category

  • Name
    parentCategoryName
    Type
    string
    Description

    Name of the Parent category e.g. 'Clothings'

  • Name
    attributesJson
    Type
    string
    Description

    JSON attributes of the product

  • Name
    customInfo1
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    customInfo2
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    customInfo3
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    customInfo4
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    customInfo5
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    isSubscription
    Type
    boolean
    Description

    Flag to check if the user has an active subscription

  • Name
    isMembership
    Type
    boolean
    Description

    Flag to check if the user has an active membership

  • Name
    subscriptionUserSettings
    Type
    object
    Description

    Settings for the users's subscription

  • Name
    subscriptionPlanId
    Type
    string
    Description

    Plan Id of the subscription

  • Name
    subscriptionTermId
    Type
    string
    Description

    Term Id of the subscription

  • Name
    userPricingType
    Type
    number
    Description

    Type of pricing for the user

  • Name
    subscriptionJson
    Type
    string
    Description

    JSON values for the subscription

  • Name
    authorizationAmount
    Type
    number
    Description

    Amount to be authorized for this subscription

  • Name
    shippingMethods
    Type
    array
    Description

    A List of shipping methods available for the products

  • Name
    id
    Type
    string
    Description

    Id to identify the shipping method

  • Name
    enabled
    Type
    boolean
    Description

    Flag to check if the shipping method is enabled

  • Name
    systemName
    Type
    string
    Description

    System name of the shipping methods

  • Name
    shippingCode
    Type
    string
    Description

    Shipping code used by the shipping method

  • Name
    displayName
    Type
    string
    Description

    Display name of the shipping method

  • Name
    description
    Type
    string
    Description

    Description of the shipping method

  • Name
    displayOrder
    Type
    number
    Description

    Display order of this shipping method in the list of shipping methods

  • Name
    expectedDaysToDeliver
    Type
    number
    Description

    Number of days before the expected delivery date

  • Name
    expectedDeliveryDate
    Type
    string
    Description

    Date and time of expected delivery of the product

  • Name
    deliveryOnOrBefore
    Type
    string
    Description

    The date on or before which date the product should be delivered

  • Name
    isDefault
    Type
    boolean
    Description

    Flag to check if this shipping method is the default shipping method

  • Name
    isNominated
    Type
    boolean
    Description

    Flag to check if this shipping method is the nominated shipping method

  • Name
    type
    Type
    number
    Description

    Type of this shipping mehtod

  • Name
    carrierCode
    Type
    string
    Description

    Carrier code of the delivery carrier

  • Name
    countryCode
    Type
    string
    Description

    Country code of the region of delivery

  • Name
    isPriceOnRequest
    Type
    boolean
    Description

    Flag to check if product is produced only for editorials and is never actually put into production for consumer purchase

  • Name
    showRecomendation
    Type
    boolean
    Description

    Flag to check if the recommendations for this product should be shown

  • Name
    recomendation
    Type
    string
    Description

    The recommendations for this product

  • Name
    isTaxable
    Type
    boolean
    Description

    Flag to check if this shipping method is taxable

  • Name
    shippingCostMethod
    Type
    number
    Description

    Used to select the type of shipping cost to be applied

  • Name
    cutOffTimes
    Type
    string
    Description

    It is the latest time in any Business Day that we can process a particular Transaction, request or instruction on that Business Day.

  • Name
    countryCsv
    Type
    string
    Description

    File name for the csv file having data of the countries

  • Name
    maxDimensionMm
    Type
    number
    Description

    Maximum dimensions of the package to be delivered in Millimeters

  • Name
    companyDiscount
    Type
    object
    Description

    The discount given on the original price of the products by the company to their employees

  • Name
    validUntil
    Type
    string
    Description

    The date time of the validity of the order for delivery

  • Name
    deliveryInstruction
    Type
    string
    Description

    Instructions for the delivery agent regarding the delivery

  • Name
    deliveryPlans
    Type
    array
    Description

    A list of delivery plans for the delivery of the order

  • Name
    fulfilmentChannel
    Type
    number
    Description

    The method by which sellers can sell items through various sales channels and have the company handle the packaging and shipping aspects for them

  • Name
    deliveryType
    Type
    number
    Description

    The type of delivery for the order

  • Name
    deliveryCenter
    Type
    object
    Description

    The details of the delivery center which will handle the delivery for this order

  • Name
    recordId
    Type
    string
    Description

    Record Id to identify the delivery center records

  • Name
    code
    Type
    string
    Description

    A code used by the delivery center

  • Name
    name
    Type
    string
    Description

    Name of the delivery center

  • Name
    type
    Type
    number
    Description

    Type of the delivery center

  • Name
    postCode
    Type
    string
    Description

    Postal code of the delivery center

  • Name
    latitude
    Type
    string
    Description

    Latitute of the geographical location of the delivery center

  • Name
    longitude
    Type
    string
    Description

    Longitute of the geographical location of the delivery center

  • Name
    items
    Type
    array
    Description

    The list of items to be delivered

  • Name
    distanceInMiles
    Type
    string
    Description

    The distance to the the delivery location in miles

  • Name
    shippingMethodName
    Type
    string
    Description

    The name of the shipping method used for shipping the product

  • Name
    cost
    Type
    number
    Description

    The cost of shipping the product

  • Name
    shippingSpeed
    Type
    string
    Description

    The rate at which the order will be shipped for deliery

  • Name
    deliveryDateTarget
    Type
    string
    Description

    The date and time target for the delivery of the order

  • Name
    deliveryDateActual
    Type
    string
    Description

    The date and time of the actual delivery of the order

  • Name
    leadTime
    Type
    number
    Description

    The amount of time that passes from the start of a process until its conclusion

  • Name
    leadTimeUom
    Type
    number
    Description

    The unit of measurement for the lead time

  • Name
    leadTimeMin
    Type
    number
    Description

    The minimum lead time for the order to be delivered

  • Name
    leadTimeMax
    Type
    number
    Description

    The maximum lead time for the order to be delivered

  • Name
    pickupStoreId
    Type
    string
    Description

    The id of stores from which the order can be collected

  • Name
    refStoreId
    Type
    string
    Description

    Reference Id of the store

  • Name
    pickupStoreCode
    Type
    string
    Description

    The store code for a pickup store

  • Name
    shippingType
    Type
    number
    Description

    The type of shipping used for delivery of the order

  • Name
    hasSubscription
    Type
    boolean
    Description

    Flag to check if the user has a subscription

  • Name
    subscriptionTotal
    Type
    object
    Description

    The total amount that must be paid by the user for the subscription

  • Name
    isGiftWrapApplied
    Type
    boolean
    Description

    Flag to check if Gift wrap is applied to the products

  • Name
    giftWrapId
    Type
    string
    Description

    Gift wrap Id to identify the gift warpped products in the basket

  • Name
    giftWrapOption
    Type
    string
    Description

    The gift wrapping options available for the products in the basket

  • Name
    membershipPlanId
    Type
    string
    Description

    Membership plan Id to identify the membership plan of the user

  • Name
    promotionsApplied
    Type
    array
    Description

    List of promotions applied on the products in the basket

  • Name
    voucherCode
    Type
    string
    Description

    Voucher code used to validate the offer and claim the benefits e.g. 'DISCOUNT15'

  • Name
    discountPct
    Type
    number
    Description

    Discount value applied on the product in Percentage

  • Name
    discountAmt
    Type
    object
    Description

    The amount of discount to be applied on the products in the basket

  • Name
    autoApply
    Type
    boolean
    Description

    Flag to check if the promotion has to be auto applied on the products

  • Name
    promoCode
    Type
    string
    Description

    Promotion code used to validate the offer e.g. 'DISCOUNT15'

  • Name
    name
    Type
    string
    Description

    Name of the promotion to be applied

  • Name
    itemGroupId
    Type
    number
    Description

    Id used to identify the group of items

  • Name
    couponProvider
    Type
    string
    Description

    The entity that provides the coupon to create an offer

  • Name
    isManualPrice
    Type
    boolean
    Description

    Flag to check if the Price is set Manually

  • Name
    priceMatchReqId
    Type
    string
    Description

    Id used to match the price requests

  • Name
    deliveryMessage
    Type
    string
    Description

    Message for the delivery agent provided by the user

  • Name
    variantProducts
    Type
    array
    Description

    A list of all available variants of the current product

  • Name
    productName
    Type
    string
    Description

    Product name of the variant product

  • Name
    variantAttributes
    Type
    array
    Description

    List of variant attributes of the product e.g. Size, Color

  • Name
    variantProductsAttribute
    Type
    array
    Description

    A list of variant attributes of the product

  • Name
    fieldName
    Type
    string
    Description

    Name of the variant attribute

  • Name
    fieldCode
    Type
    string
    Description

    Field code of the atrribute

  • Name
    fieldValues
    Type
    array
    Description

    A list of values for the variant attribute

  • Name
    currentStock
    Type
    number
    Description

    Number of products available in stock

Request

PUT
/api/v2/commerce/basket/:id/subscription/:productId
curl --location --request PUT 'https://api20.bettercommerce.io/api/v2/commerce/basket/:id/subscription/:productId' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Accept: application/json' \
--header 'UserId;' \
--header 'Email: abc@abc.com' \
--data-urlencode 'subscriptionPlanId=1a2e9e33-a675-4e23-8dc9-e6c24491b04d' \
--data-urlencode 'subscriptionTermId=83209399-0fa2-45ed-bb55-152d4b978897' \
--data-urlencode 'userPricingType=1' \
--data-urlencode 'subscriptionJson={}' \
--data-urlencode 'authorizationAmount=0'

Response

{
"statusCode": 200,
"status": "OK",
"errors": [],
"success": true,
"message": "",
"messageCode": "",
"result": {
    "id": "b7dbd32b-56ba-47e6-be6b-83fb82943564",
    "currencySymbol": "€",
    "currencyCode": "EUR",
    "userId": "8b55c612-0b64-406f-95c7-1afe4da96af6",
    "userEmail": "myemail@example.com",
    "grandTotal": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€99.99000",
            "withoutTax": "€99.99000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 99.99,
            "withoutTax": 99.99,
            "tax": 0
        }
    },
    "totalWithoutShipping": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€96.00000",
            "withoutTax": "€96.00000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 96,
            "withoutTax": 96,
            "tax": 0
        }
    },
    "shippingMethodId": "STD",
    "shippingCharge": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€3.99000",
            "withoutTax": "€3.99000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 3.99,
            "withoutTax": 3.99,
            "tax": 0
        }
    },
    "subTotal": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€99.99000",
            "withoutTax": "€99.99000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 99.99,
            "withoutTax": 99.99,
            "tax": 0
        }
    },
    "discount": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€.00000",
            "withoutTax": "€.00000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 0,
            "withoutTax": 0,
            "tax": 0
        }
    },
    "taxPercent": 0,
    "additionalCharge": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€.00000",
            "withoutTax": "€.00000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 0,
            "withoutTax": 0,
            "tax": 0
        }
    },
    "lineItems": [
        {
            "id": "0",
            "stockCode": "SKU-0001",
            "name": "Polo Shirt",
            "productId": "1C5D16AB-0497-462D-A0D2-B2F8F67335A1",
            "productIid": "0",
            "parentProductId": "",
            "brand": "Tommy Hilfiger",
            "subbrand": "Tommy Hilfiger",
            "price": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€24.00000",
                    "withoutTax": "€24.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 24,
                    "withoutTax": 24,
                    "tax": 0
                }
            },
            "subTotal": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€96.00000",
                    "withoutTax": "€96.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 96,
                    "withoutTax": 96,
                    "tax": 0
                }
            },
            "totalPrice": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€96.00000",
                    "withoutTax": "€96.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 96,
                    "withoutTax": 96,
                    "tax": 0
                }
            },
            "image": "image1.jeg",
            "qty": 4,
            "displayOrder": 1,
            "slug": "/product/SKU-0001",
            "itemType": 1,
            "displayInBasket": false,
            "categoryItems": [
                {
                    "categoryId": "cb50c16b-bb62-495f-bd9a-cb77d3063dc5",
                    "categoryName": "Shirt",
                    "parentCategoryId": "1d279825-4c93-4fec-a665-30a7c36a353a",
                    "parentCategoryName": "Clothings"
                }
            ],
            "attributesJson": "",
            "customInfo1": "cust info 1",
            "customInfo2": "cust info 2",
            "customInfo3": "cust info 3",
            "customInfo4": "cust info 4",
            "customInfo5": "cust info 5",
            "discount": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€.00000",
                    "withoutTax": "€.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 0,
                    "withoutTax": 0,
                    "tax": 0
                }
            },
            "additionalCharge": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€.00000",
                    "withoutTax": "€.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 0,
                    "withoutTax": 0,
                    "tax": 0
                }
            },
            "shortDescription": "Polo Shirt Description",
            "companyDiscount": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€.00000",
                    "withoutTax": "€.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 0,
                    "withoutTax": 0,
                    "tax": 0
                }
            },
            "listPrice": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€24.00000",
                    "withoutTax": "€24.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 24,
                    "withoutTax": 24,
                    "tax": 0
                }
            },
            "isSubscription": false,
            "isMembership": false,
            "subscriptionUserSettings": {
                "subscriptionPlanId": "00000000-0000-0000-0000-000000000000",
                "subscriptionTermId": "00000000-0000-0000-0000-000000000000",
                "userPricingType": 0,
                "subscriptionJson": null,
                "authorizationAmount": 0
            },
            "promotionsApplied": [
                {
                    "voucherCode": "DISCOUNT15",
                    "discountPct": 0,
                    "discountAmt": {
                        "minPrice": 0,
                        "minPriceWithoutTax": 0,
                        "maxPrice": 0,
                        "maxPriceWithoutTax": 0,
                        "currencyDecimalSeparator": ".",
                        "currencyDigitsAfterDecimal": 2,
                        "currencySymbol": "€",
                        "formatted": {
                            "withTax": "€.00000",
                            "withoutTax": "€.00000",
                            "tax": "€.00000"
                        },
                        "raw": {
                            "withTax": 0,
                            "withoutTax": 0,
                            "tax": 0
                        }
                    },
                    "autoApply": false,
                    "promoCode": "DISCOUNT15",
                    "name": "Dummy Promo"
                }
            ],
            "isGiftWrapApplied": false,
            "giftWrapId": "00000000-0000-0000-0000-000000000000",
            "itemGroupId": 0,
            "couponProvider": "",
            "isManualPrice": false,
            "priceMatchReqId": "00000000-0000-0000-0000-000000000000",
            "deliveryMessage": " delivery message",
            "variantProducts": [
                {
                    "stockCode": null,
                    "productId": "00000000-0000-0000-0000-000000000000",
                    "price": {
                        "minPrice": 0,
                        "minPriceWithoutTax": 0,
                        "maxPrice": 0,
                        "maxPriceWithoutTax": 0,
                        "currencyDecimalSeparator": ".",
                        "currencyDigitsAfterDecimal": 2,
                        "currencySymbol": "€",
                        "formatted": {
                            "withTax": "€15.99000",
                            "withoutTax": "€15.99000",
                            "tax": "€.00000"
                        },
                        "raw": {
                            "withTax": 15.99,
                            "withoutTax": 15.99,
                            "tax": 0
                        }
                    },
                    "slug": null,
                    "image": "img.jpg",
                    "productName": "Variant SKU",
                    "variantAttributes": []
                }
            ],
            "variantProductsAttribute": [
                {
                    "fieldName": "color",
                    "fieldCode": "global.color",
                    "fieldValues": []
                }
            ],
            "currentStock": 999
        }
    ],
    "promotionsApplied": [
        {
            "voucherCode": null,
            "discountPct": 0,
            "discountAmt": null,
            "autoApply": false,
            "promoCode": null,
            "name": null
        }
    ],
    "shippingMethods": [
        {
            "id": "00000000-0000-0000-0000-000000000000",
            "enabled": false,
            "systemName": null,
            "shippingCode": null,
            "displayName": null,
            "description": null,
            "displayOrder": 0,
            "expectedDaysToDeliver": 0,
            "expectedDeliveryDate": "0001-01-01T00:00:00",
            "deliveryOnOrBefore": null,
            "price": {
                "currencySymbol": "£",
                "formatted": {
                    "withTax": "£0.00",
                    "withoutTax": "£0.00",
                    "tax": "£0.00"
                },
                "raw": {
                    "withTax": 0,
                    "withoutTax": 0,
                    "tax": 0
                }
            },
            "isDefault": false,
            "isNominated": false,
            "type": 0,
            "carrierCode": null,
            "countryCode": null,
            "isPriceOnRequest": false,
            "showRecomendation": false,
            "recomendation": null,
            "isTaxable": false,
            "shippingCostMethod": 0,
            "cutOffTimes": null,
            "countryCsv": null
        }
    ],
    "created": "0001-01-01T00:00:00",
    "lastUpdated": "0001-01-01T00:00:00",
    "isQuote": false,
    "quoteStatus": 0,
    "customInfo1": "cust info 1",
    "customInfo2": "cust info 2",
    "customInfo3": "cust info 3",
    "customInfo4": "cust info 4",
    "customInfo5": "cust info 5",
    "shippingAddress": {
        "id": 0,
        "title": "Mr.",
        "firstName": "FName",
        "lastName": "LName",
        "address1": "Address Line 1",
        "address2": "Address Line 2",
        "address3": "Address Line 3",
        "city": "London",
        "state": "London",
        "country": "United Kingdom",
        "countryCode": "UK",
        "postCode": null,
        "phoneNo": "9999999999",
        "mobileNo": null,
        "companyName": "My Company"
    },
    "billingAddress": {
        "id": 0,
        "title": "Mr.",
        "firstName": "FName",
        "lastName": "LName",
        "address1": "Address Line 1",
        "address2": "Address Line 2",
        "address3": "Address Line 3",
        "city": "London",
        "state": "London",
        "country": "United Kingdom",
        "countryCode": "UK",
        "postCode": null,
        "phoneNo": "9999999999",
        "mobileNo": null,
        "companyName": "My Company"
    },
    "postCode": "XX55YY",
    "maxDimensionMm": 0,
    "companyDiscount": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€.00000",
            "withoutTax": "€.00000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 0,
            "withoutTax": 0,
            "tax": 0
        }
    },
    "validUntil": "0001-01-01T00:00:00",
    "isLocked": false,
    "createdByAdmin": false,
    "poNumber": "PO00001",
    "deliveryInstruction": "Please read the give instructions",
    "deliveryPlans": [
        {
            "fulfilmentChannel": 0,
            "deliveryType": 0,
            "deliveryCenter": {
                "recordId": "00000000-0000-0000-0000-000000000000",
                "code": null,
                "name": null,
                "type": 0,
                "postCode": null,
                "latitude": null,
                "longitude": null
            },
            "items": [],
            "distanceInMiles": null,
            "shippingMethodId": "00000000-0000-0000-0000-000000000000",
            "shippingMethodName": null,
            "cost": 0,
            "shippingSpeed": " - ",
            "deliveryDateTarget": "2022-03-15T07:25:35.0394846Z",
            "deliveryDateActual": "0001-01-01T00:00:00",
            "leadTime": 0,
            "leadTimeUom": 0,
            "leadTimeMin": 0,
            "leadTimeMax": 0,
            "pickupStoreId": "00000000-0000-0000-0000-000000000000",
            "refStoreId": null,
            "pickupStoreCode": null,
            "shippingType": 0,
            "lineItems": null,
            "created": null,
            "recordId": "00000000-0000-0000-0000-000000000000"
        }
    ],
    "hasSubscription": false,
    "subscriptionTotal": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€.00000",
            "withoutTax": "€.00000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 0,
            "withoutTax": 0,
            "tax": 0
        }
    },
    "isGiftWrapApplied": false,
    "giftWrapId": "00000000-0000-0000-0000-000000000000",
    "giftWrapOption": null,
    "membershipPlanId": "00000000-0000-0000-0000-000000000000",
    "hasMembership": false,
    "exchangeRate": 1,
    "baseCurrency": "EUR",
    "microSiteId": "00000000-0000-0000-0000-000000000000",
    "baseCurrencyTotal": 99.99,
    "membershipDiscount": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€.00000",
            "withoutTax": "€.00000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 0,
            "withoutTax": 0,
            "tax": 0
        }
    }
}
}

DELETE/api/v2/commerce/basket/:id/delete

Delete basket

This endpoint allows you to delete a basket using its Id.

Developers - API Operations:

OperationEndpointResponse
Delete basket/api/v2/commerce/basket/:id/deleteDelete basket.

Required attributes

  • Name
    basketId
    Type
    string
    Description

    Basket Id to identify the basket

  • Name
    Id
    Type
    string
    Description

    Id to identify the user

Response Properties

  • Name
    statusCode
    Type
    number
    Description

    Status code of the response

  • Name
    status
    Type
    string
    Description

    Status of the response

  • Name
    errors
    Type
    array
    Description

    List of errors in the response

  • Name
    success
    Type
    boolean
    Description

    Success status of the response

  • Name
    message
    Type
    string
    Description

    Message of the response

  • Name
    messageCode
    Type
    string
    Description

    Message code of the response

  • Name
    result
    Type
    boolean
    Description

    Result of the response

Request

DELETE
/api/v2/commerce/basket/:id/delete
curl --location --request DELETE 'https://api20.bettercommerce.io/api/v2/commerce/basket/:id/delete' \
--header 'Accept: application/json' \
--header 'UserId;' \
--header 'Email: abc@abc.com'

Response

{
"statusCode": null,
"status": "minim nisi voluptate proident",
"errors": [
    "eu occaecat",
    "qui sunt Ut"
],
"success": true,
"message": "reprehenderit Lorem",
"messageCode": "dolor qui irure culpa",
"result": true
}

GET/api/v2/commerce/basket/:id/related-products

This endpoint allows you to get a get related products based on items in the basket.

Developers - API Operations:

OperationEndpointResponse
Get Related products/api/v2/commerce/basket/:id/related-productsGet related products based on items in basket.

Required attributes

  • Name
    Id
    Type
    string
    Description

    Id to identify the product

Response Properties

  • Name
    statusCode
    Type
    number
    Description

    Status code of the response

  • Name
    status
    Type
    string
    Description

    Status of the response

  • Name
    errors
    Type
    array
    Description

    List of errors in the response

  • Name
    success
    Type
    boolean
    Description

    Success status of the response

  • Name
    message
    Type
    string
    Description

    Message of the response

  • Name
    messageCode
    Type
    string
    Description

    Message code of the response

  • Name
    result
    Type
    array
    Description

    Result of the response

  • Name
    id
    Type
    number
    Description

    Id to identify the user

  • Name
    seoName
    Type
    string
    Description

    SEO Name

  • Name
    barcode
    Type
    string
    Description

    Unique value for each product

  • Name
    isFeatured
    Type
    boolean
    Description

    Flag to check is category featured or not

  • Name
    variant
    Type
    string
    Description

    Name of the variant

  • Name
    metaTitle
    Type
    string
    Description

    MetaTitle associated with the product

  • Name
    metaDescription
    Type
    string
    Description

    MetaDescription associated with the product

  • Name
    canonicalTags
    Type
    string
    Description

    Cannonical Tags associated with the product

  • Name
    metaKeywords
    Type
    string
    Description

    MetaKeywords associated with the product

  • Name
    variantProducts
    Type
    array
    Description

    Array of objects containing variant products for each variant

  • Name
    isDiscontinued
    Type
    boolean
    Description

    Flag to check is discontinued or not

  • Name
    attributeSet
    Type
    string
    Description

    Set of attributes of the product variant

  • Name
    relatedProducts
    Type
    array
    Description

    Array of objects containing related products

  • Name
    displayOrder
    Type
    number
    Description

    Order of the display associated with the product

  • Name
    link
    Type
    string
    Description

    Link of the product

  • Name
    subscriptionEnabled
    Type
    boolean
    Description

    Flag to check is subscription enabled or not

  • Name
    minPrice
    Type
    number
    Description

    Minimum price of the product

  • Name
    maxPrice
    Type
    number
    Description

    Maximum price of the product

  • Name
    displayTemplate
    Type
    string
    Description

    Template for display of attribute

  • Name
    brandLogo
    Type
    string
    Description

    Logo of the brand

  • Name
    recordId
    Type
    string
    Description

    Id of the Brand Record

  • Name
    stockCode
    Type
    string
    Description

    Unique id of the stock

  • Name
    images
    Type
    array
    Description

    Array of Images.

  • Name
    image
    Type
    string
    Description

    URL of the product image

  • Name
    itemType
    Type
    string
    Description

    Type of the item

  • Name
    shortDescription
    Type
    string
    Description

    Short description of the product

  • Name
    subscriptionPlanType
    Type
    string
    Description

    Type of the subscription plan

  • Name
    brand
    Type
    string
    Description

    Name of the brand

  • Name
    brandSlug
    Type
    string
    Description

    Slug of the brand

  • Name
    subBrand
    Type
    string
    Description

    SubBrand of parent Brand

  • Name
    description
    Type
    string
    Description

    Description of the product

  • Name
    fulfillFromStore
    Type
    boolean
    Description

    Flag to check if product will be fulfilled from Store

  • Name
    fulfillFromSupplier
    Type
    boolean
    Description

    Flag to check if product will be fulfilled from Supplier

  • Name
    fulfilFromWarehouse
    Type
    boolean
    Description

    Flag to check if the product will be fulfilled from the warehouse

  • Name
    deliveryMessage
    Type
    string
    Description

    Message for the delivery

  • Name
    stockAvailabilityMessage
    Type
    string
    Description

    Message to check stock availability

  • Name
    trending
    Type
    boolean
    Description

    Is Product trending or not

  • Name
    bestSeller
    Type
    boolean
    Description

    Is Product bestSeller or not

  • Name
    onSale
    Type
    boolean
    Description

    Is Product onSale or not

  • Name
    newLaunch
    Type
    boolean
    Description

    Is Product newly launched or not

  • Name
    exclusive
    Type
    boolean
    Description

    Is Product exclusiv or not

  • Name
    extendedDescription
    Type
    string
    Description

    Extended description of the product

  • Name
    variantProductsMinimal
    Type
    array
    Description

    Minimal variant products array

  • Name
    isMasterStock
    Type
    boolean
    Description

    Flag to check Is master stock or not

  • Name
    hasVariant
    Type
    boolean
    Description

    Flag to check Is variant available or not

  • Name
    promotions
    Type
    array
    Description

    Array containing attributes for promotions

  • Name
    preOrder
    Type
    array
    Description

    Array containing attributes for order

  • Name
    isActive
    Type
    boolean
    Description

    Flag to check the Active status

  • Name
    isVisible
    Type
    boolean
    Description

    Flag to check is visible enabled or not

  • Name
    uom
    Type
    string
    Description

    A unit of measure (UoM)

  • Name
    uomValue
    Type
    number
    Description

    Uom value is the standard units of measurements used when accounting for stock, and expressing them in quantities.

  • Name
    flags
    Type
    string
    Description

    The flags used in the basket

  • Name
    freeProducts
    Type
    string
    Description

    The names of free products in the basket

  • Name
    componentProducts
    Type
    string
    Description

    The names of component products in the basket

  • Name
    componentsInStock
    Type
    boolean
    Description

    Flag to check if the components in the basket are available in stock

  • Name
    variantProductsAttribute
    Type
    string
    Description

    Variant product attributes of the products in the basket

  • Name
    attributes
    Type
    string
    Description

    Attributes of the products in the basket

  • Name
    name
    Type
    string
    Description

    Name of the product in the basket

  • Name
    slug
    Type
    string
    Description

    Slug of the product in the basket

  • Name
    listPrice
    Type
    string
    Description

    Price of the products in the list

  • Name
    price
    Type
    string
    Description

    Price of the product in the basket

  • Name
    groupName
    Type
    string
    Description

    Group name of the product in the basket

  • Name
    sku
    Type
    string
    Description

    Stock keeping unit of the product in the basket

  • Name
    priceFrom
    Type
    string
    Description

    The price of the product

  • Name
    classification
    Type
    string
    Description

    Classification of the product in the basket

  • Name
    currentStock
    Type
    number
    Description

    Current stock of the product in the inverntory

Request

GET
/api/v2/commerce/basket/:id/related-products
curl --location 'https://api20.bettercommerce.io/api/v2/commerce/basket/:id/related-products' \
--header 'Accept: application/json' \
--header 'UserId;' \
--header 'Email: abc@abc.com'

Response

{
"statusCode": 200,
"status": "OK",
"errors": [],
"success": true,
"message": "",
"messageCode": "",
"result": [
    {
        "id": null,
        "seoName": null,
        "barcode": null,
        "isFeatured": false,
        "uom": null,
        "uomValue": 0,
        "variant": null,
        "attributeSet": null,
        "relatedProducts": null,
        "displayOrder": 0,
        "metaTitle": null,
        "metaDescription": null,
        "metaKeywords": null,
        "canonicalTags": null,
        "flags": null,
        "isDiscontinued": false,
        "freeProducts": null,
        "link": null,
        "componentProducts": null,
        "componentsInStock": false,
        "variantProducts": null,
        "variantProductsAttribute": null,
        "subscriptionEnabled": false,
        "minPrice": null,
        "maxPrice": null,
        "displayTemplate": null,
        "brandLogo": null,
        "attributes": null,
        "recordId": null,
        "name": null,
        "slug": null,
        "stockCode": null,
        "listPrice": null,
        "price": null,
        "images": null,
        "image": null,
        "itemType": 0,
        "shortDescription": null,
        "subscriptionPlanType": 0,
        "groupName": null,
        "brand": null,
        "brandSlug": null,
        "subBrand": null,
        "sku": null,
        "priceFrom": null,
        "classification": null,
        "currentStock": 0,
        "description": null,
        "fulfilFromWarehouse": false,
        "fulfilFromStore": false,
        "fulfilFromSupplier": false,
        "deliveryMessage": null,
        "stockAvailabilityMessage": null,
        "trending": false,
        "bestSeller": false,
        "onSale": false,
        "newLaunch": false,
        "exclusive": false,
        "extendedDescription": null,
        "variantProductsMinimal": null,
        "variantProductsAttributeMinimal": null,
        "isVisible": false,
        "isActive": false,
        "isMasterStock": false,
        "hasVariant": false,
        "promotions": null,
        "preOrder": null
    }
]
}

PUT/api/v2/commerce/basket/:id/merge?sourceBasketId={{bc_source_basket_id}}

Merge 2 different baskets into one basket

This endpoint allows you to merge two different baskets into one basket.

Developers - API Operations:

OperationEndpointResponse
Merge baskets/api/v2/commerce/basket/:id/merge?sourceBasketId={{bc_source_basket_id}}Merge 2 different baskets into one basket.

Required attributes

  • Name
    Id
    Type
    string
    Description

    Target basket Id to merge the basket into

  • Name
    sourceBasketId
    Type
    string
    Description

    Source basket Id to merge the basket from

Response Properties

  • Name
    statusCode
    Type
    number
    Description

    Status code of the response

  • Name
    status
    Type
    string
    Description

    Status of the response

  • Name
    errors
    Type
    array
    Description

    List of errors in the response

  • Name
    success
    Type
    boolean
    Description

    Success status of the response

  • Name
    message
    Type
    string
    Description

    Message of the response

  • Name
    messageCode
    Type
    string
    Description

    Message code of the response

  • Name
    result
    Type
    object
    Description

    Result of the response

  • Name
    id
    Type
    number
    Description

    Id to identify the user

  • Name
    currencySymbol
    Type
    string
    Description

    Currency Symbol for Price e.g £

  • Name
    currencyCode
    Type
    string
    Description

    Currency code according to the region e.g. GBP:'Great Britain Pound'

  • Name
    userId
    Type
    string
    Description

    User Id to identify the User

  • Name
    userEmail
    Type
    string
    Description

    User email provided by the user

  • Name
    shippingMethodId
    Type
    string
    Description

    Shipping method Id to identify the shipping method

  • Name
    subTotal
    Type
    object
    Description

    Sub total of the total price

  • Name
    shippingCharge
    Type
    object
    Description

    Shipping charges of the product in basket

  • Name
    formatted
    Type
    object
    Description

    Formatted price with and without tax

  • Name
    withTax
    Type
    string
    Description

    Price of basket item with Tax

  • Name
    withoutTax
    Type
    string
    Description

    Price of basket item without Tax

  • Name
    tax
    Type
    string
    Description

    Tax amount of basket item

  • Name
    raw
    Type
    object
    Description

    Raw price without discount

  • Name
    discount
    Type
    object
    Description

    Discount amount on the basket item

  • Name
    additionalCharge
    Type
    object
    Description

    Additional charges applied on the basket item

  • Name
    grandTotal
    Type
    object
    Description

    Grand total price of basket items

  • Name
    isLocked
    Type
    boolean
    Description

    Flag to check if the basket is locked

  • Name
    createdByAdmin
    Type
    boolean
    Description

    Flag to check if the basket is created by Admin

  • Name
    poNumber
    Type
    string
    Description

    P O Number of the basket

  • Name
    isQuote
    Type
    boolean
    Description

    Flag to check if the basket is a Quote

  • Name
    quoteStatus
    Type
    number
    Description

    Quote status of the basket

  • Name
    postCode
    Type
    string
    Description

    Post code of the user

  • Name
    hasMembership
    Type
    boolean
    Description

    Flag to check if the user has a membership

  • Name
    exchangeRate
    Type
    number
    Description

    Exchange rate of the currency

  • Name
    baseCurrency
    Type
    string
    Description

    Base currency of the region

  • Name
    microSiteId
    Type
    string
    Description

    Micro site Id of the site

  • Name
    baseCurrencyTotal
    Type
    number
    Description

    Total amount of the basket in base currency

  • Name
    membershipDiscount
    Type
    string
    Description

    Discount given to the user under their membership

  • Name
    created
    Type
    string
    Description

    Date and time when the basket was created

  • Name
    lastUpdated
    Type
    string
    Description

    Date and time when the basket was last updated

  • Name
    lineItems
    Type
    array
    Description

    Array of all the products added in to basket

  • Name
    stockCode
    Type
    string
    Description

    Stock code of the product

  • Name
    name
    Type
    string
    Description

    Name of the product

  • Name
    slug
    Type
    string
    Description

    Slug of the product used to navigate to the product

  • Name
    shortDescription
    Type
    string
    Description

    A short description of the product

  • Name
    productId
    Type
    string
    Description

    Product Id used to identify the product

  • Name
    productIid
    Type
    string
    Description

    Product Iid used to identify the product

  • Name
    parentProductId
    Type
    string
    Description

    Id of the parent product product, used to map personalized products with their parent product

  • Name
    price
    Type
    string
    Description

    Price of the product

  • Name
    totalPrice
    Type
    object
    Description

    Total price of the product

  • Name
    minPrice
    Type
    number
    Description

    Minimum price for the company

  • Name
    minPriceWithoutTax
    Type
    number
    Description

    Minimum price for the company without tax

  • Name
    maxPrice
    Type
    number
    Description

    Maximum price for the company

  • Name
    maxPriceWithoutTax
    Type
    number
    Description

    Maximum price for the company wihtout tax

  • Name
    currencyDecimalSeparator
    Type
    string
    Description

    Currency decimal separator for the region

  • Name
    currencyDigitsAfterDecimal
    Type
    number
    Description

    Digits after decimal for the currency

  • Name
    id
    Type
    string
    Description

    id to identify the user

  • Name
    title
    Type
    string
    Description

    Title of the user e.g. Miss./Mrs./Mr.

  • Name
    firstName
    Type
    string
    Description

    First name of the user

  • Name
    lastName
    Type
    string
    Description

    Last name of the user

  • Name
    address1
    Type
    string
    Description

    Address Line 1 provided by the user

  • Name
    address2
    Type
    string
    Description

    Address Line 2 provided by the user

  • Name
    address3
    Type
    string
    Description

    Address Line 3 provided by the user

  • Name
    city
    Type
    string
    Description

    City name provided by the user

  • Name
    state
    Type
    string
    Description

    State name provided by the user

  • Name
    country
    Type
    string
    Description

    Country name provided by the user

  • Name
    countryCode
    Type
    string
    Description

    Country code provided by the user

  • Name
    postCode
    Type
    string
    Description

    Post code provided by the user

  • Name
    phoneNo
    Type
    string
    Description

    Phone number of the user

  • Name
    mobileNo
    Type
    string
    Description

    Mobile number of the user

  • Name
    companyName
    Type
    string
    Description

    Name of the company provided by the user

  • Name
    displayOrder
    Type
    number
    Description

    Order of the display associated with the product

  • Name
    totalWithoutShipping
    Type
    object
    Description

    Total price of the basket without shipping charges

  • Name
    taxPercent
    Type
    number
    Description

    Amount of tax applied in percentage

  • Name
    brand
    Type
    string
    Description

    Brand name of the product

  • Name
    subbrand
    Type
    string
    Description

    Sub brand name of the product

  • Name
    image
    Type
    string
    Description

    File name of the image of the product

  • Name
    qty
    Type
    number
    Description

    Quantity of product in the basket

  • Name
    displayOrder
    Type
    number
    Description

    Display order of the product in the basket

  • Name
    itemType
    Type
    number
    Description

    Type of item in the basket

  • Name
    displayInBasket
    Type
    boolean
    Description

    Flag to check if the product should be displayed in the basket

  • Name
    categoryItems
    Type
    array
    Description

    List of all the categories available

  • Name
    categoryId
    Type
    string
    Description

    Category Id to identify the cateogories

  • Name
    categoryName
    Type
    string
    Description

    Name of the category e.g. 'Shirts','Joggers', etc

  • Name
    parentCategoryId
    Type
    string
    Description

    Parent category Id to identify the parent category

  • Name
    parentCategoryName
    Type
    string
    Description

    Name of the Parent category e.g. 'Clothings'

  • Name
    attributesJson
    Type
    string
    Description

    JSON attributes of the product

  • Name
    customInfo1
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    customInfo2
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    customInfo3
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    customInfo4
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    customInfo5
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    isSubscription
    Type
    boolean
    Description

    Flag to check if the user has an active subscription

  • Name
    isMembership
    Type
    boolean
    Description

    Flag to check if the user has an active membership

  • Name
    subscriptionUserSettings
    Type
    object
    Description

    Settings for the users's subscription

  • Name
    subscriptionPlanId
    Type
    string
    Description

    Plan Id of the subscription

  • Name
    subscriptionTermId
    Type
    string
    Description

    Term Id of the subscription

  • Name
    userPricingType
    Type
    number
    Description

    Type of pricing for the user

  • Name
    subscriptionJson
    Type
    string
    Description

    JSON values for the subscription

  • Name
    authorizationAmount
    Type
    number
    Description

    Amount to be authorized for this subscription

  • Name
    shippingMethods
    Type
    array
    Description

    A List of shipping methods available for the products

  • Name
    id
    Type
    string
    Description

    Id to identify the shipping method

  • Name
    enabled
    Type
    boolean
    Description

    Flag to check if the shipping method is enabled

  • Name
    systemName
    Type
    string
    Description

    System name of the shipping methods

  • Name
    shippingCode
    Type
    string
    Description

    Shipping code used by the shipping method

  • Name
    displayName
    Type
    string
    Description

    Display name of the shipping method

  • Name
    description
    Type
    string
    Description

    Description of the shipping method

  • Name
    displayOrder
    Type
    number
    Description

    Display order of this shipping method in the list of shipping methods

  • Name
    expectedDaysToDeliver
    Type
    number
    Description

    Number of days before the expected delivery date

  • Name
    expectedDeliveryDate
    Type
    string
    Description

    Date and time of expected delivery of the product

  • Name
    deliveryOnOrBefore
    Type
    string
    Description

    The date on or before which date the product should be delivered

  • Name
    isDefault
    Type
    boolean
    Description

    Flag to check if this shipping method is the default shipping method

  • Name
    isNominated
    Type
    boolean
    Description

    Flag to check if this shipping method is the nominated shipping method

  • Name
    type
    Type
    number
    Description

    Type of this shipping mehtod

  • Name
    carrierCode
    Type
    string
    Description

    Carrier code of the delivery carrier

  • Name
    countryCode
    Type
    string
    Description

    Country code of the region of delivery

  • Name
    isPriceOnRequest
    Type
    boolean
    Description

    Flag to check if product is produced only for editorials and is never actually put into production for consumer purchase

  • Name
    showRecomendation
    Type
    boolean
    Description

    Flag to check if the recommendations for this product should be shown

  • Name
    recomendation
    Type
    string
    Description

    The recommendations for this product

  • Name
    isTaxable
    Type
    boolean
    Description

    Flag to check if this shipping method is taxable

  • Name
    shippingCostMethod
    Type
    number
    Description

    Used to select the type of shipping cost to be applied

  • Name
    cutOffTimes
    Type
    string
    Description

    It is the latest time in any Business Day that we can process a particular Transaction, request or instruction on that Business Day.

  • Name
    countryCsv
    Type
    string
    Description

    File name for the csv file having data of the countries

  • Name
    maxDimensionMm
    Type
    number
    Description

    Maximum dimensions of the package to be delivered in Millimeters

  • Name
    companyDiscount
    Type
    object
    Description

    The discount given on the original price of the products by the company to their employees

  • Name
    validUntil
    Type
    string
    Description

    The date time of the validity of the order for delivery

  • Name
    deliveryInstruction
    Type
    string
    Description

    Instructions for the delivery agent regarding the delivery

  • Name
    deliveryPlans
    Type
    array
    Description

    A list of delivery plans for the delivery of the order

  • Name
    fulfilmentChannel
    Type
    number
    Description

    The method by which sellers can sell items through various sales channels and have the company handle the packaging and shipping aspects for them

  • Name
    deliveryType
    Type
    number
    Description

    The type of delivery for the order

  • Name
    deliveryCenter
    Type
    object
    Description

    The details of the delivery center which will handle the delivery for this order

  • Name
    recordId
    Type
    string
    Description

    Record Id to identify the delivery center records

  • Name
    code
    Type
    string
    Description

    A code used by the delivery center

  • Name
    postCode
    Type
    string
    Description

    Postal code of the delivery center

  • Name
    latitude
    Type
    string
    Description

    Latitute of the geographical location of the delivery center

  • Name
    longitude
    Type
    string
    Description

    Longitute of the geographical location of the delivery center

  • Name
    items
    Type
    array
    Description

    The list of items to be delivered

  • Name
    distanceInMiles
    Type
    string
    Description

    The distance to the the delivery location in miles

  • Name
    shippingMethodName
    Type
    string
    Description

    The name of the shipping method used for shipping the product

  • Name
    cost
    Type
    number
    Description

    The cost of shipping the product

  • Name
    shippingSpeed
    Type
    string
    Description

    The rate at which the order will be shipped for deliery

  • Name
    deliveryDateTarget
    Type
    string
    Description

    The date and time target for the delivery of the order

  • Name
    deliveryDateActual
    Type
    string
    Description

    The date and time of the actual delivery of the order

  • Name
    leadTime
    Type
    number
    Description

    The amount of time that passes from the start of a process until its conclusion

  • Name
    leadTimeUom
    Type
    number
    Description

    The unit of measurement for the lead time

  • Name
    leadTimeMin
    Type
    number
    Description

    The minimum lead time for the order to be delivered

  • Name
    leadTimeMax
    Type
    number
    Description

    The maximum lead time for the order to be delivered

  • Name
    pickupStoreId
    Type
    string
    Description

    The id of stores from which the order can be collected

  • Name
    refStoreId
    Type
    string
    Description

    Reference Id of the store

  • Name
    pickupStoreCode
    Type
    string
    Description

    The store code for a pickup store

  • Name
    shippingType
    Type
    number
    Description

    The type of shipping used for delivery of the order

  • Name
    hasSubscription
    Type
    boolean
    Description

    Flag to check if the user has a subscription

  • Name
    subscriptionTotal
    Type
    object
    Description

    The total amount that must be paid by the user for the subscription

  • Name
    isGiftWrapApplied
    Type
    boolean
    Description

    Flag to check if Gift wrap is applied to the products

  • Name
    giftWrapId
    Type
    string
    Description

    Gift wrap Id to identify the gift warpped products in the basket

  • Name
    giftWrapOption
    Type
    string
    Description

    The gift wrapping options available for the products in the basket

  • Name
    membershipPlanId
    Type
    string
    Description

    Membership plan Id to identify the membership plan of the user

  • Name
    promotionsApplied
    Type
    array
    Description

    List of promotions applied on the products in the basket

  • Name
    voucherCode
    Type
    string
    Description

    Voucher code used to validate the offer and claim the benefits e.g. 'DISCOUNT15'

  • Name
    discountPct
    Type
    number
    Description

    Discount value applied on the product in Percentage

  • Name
    discountAmt
    Type
    object
    Description

    The amount of discount to be applied on the products in the basket

  • Name
    autoApply
    Type
    boolean
    Description

    Flag to check if the promotion has to be auto applied on the products

  • Name
    promoCode
    Type
    string
    Description

    Promotion code used to validate the offer e.g. 'DISCOUNT15'

  • Name
    itemGroupId
    Type
    number
    Description

    Id used to identify the group of items

  • Name
    couponProvider
    Type
    string
    Description

    The entity that provides the coupon to create an offer

  • Name
    isManualPrice
    Type
    boolean
    Description

    Flag to check if the Price is set Manually

  • Name
    priceMatchReqId
    Type
    string
    Description

    Id used to match the price requests

  • Name
    deliveryMessage
    Type
    string
    Description

    Message for the delivery agent provided by the user

  • Name
    variantProducts
    Type
    array
    Description

    A list of all available variants of the current product

  • Name
    productName
    Type
    string
    Description

    Product name of the variant product

  • Name
    variantAttributes
    Type
    array
    Description

    List of variant attributes of the product e.g. Size, Color

  • Name
    variantProductsAttribute
    Type
    array
    Description

    A list of variant attributes of the product

  • Name
    fieldName
    Type
    string
    Description

    Name of the variant attribute

  • Name
    fieldCode
    Type
    string
    Description

    Field code of the atrribute

  • Name
    fieldValues
    Type
    array
    Description

    A list of values for the variant attribute

  • Name
    currentStock
    Type
    number
    Description

    Number of products available in stock

Request

PUT
/api/v2/commerce/basket/:id/merge?sourceBasketId={{bc_source_basket_id}}
curl --location --request PUT 'https://api20.bettercommerce.io/api/v2/commerce/basket/:id/merge?sourceBasketId=' \
--header 'Accept: application/json' \
--header 'UserId;' \
--header 'Email: abc@abc.com'

Response

{
"statusCode": 200,
"status": "OK",
"errors": [],
"success": true,
"message": "",
"messageCode": "",
"result": {
    "id": "f7621cb1-cdf6-4db4-aabe-0c0c18f619d4",
    "currencySymbol": "€",
    "currencyCode": "EUR",
    "userId": "b787391e-d002-4ed7-8e07-f769b182c7ef",
    "userEmail": "myemail@example.com",
    "grandTotal": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€99.99000",
            "withoutTax": "€99.99000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 99.99,
            "withoutTax": 99.99,
            "tax": 0
        }
    },
    "totalWithoutShipping": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€96.00000",
            "withoutTax": "€96.00000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 96,
            "withoutTax": 96,
            "tax": 0
        }
    },
    "shippingMethodId": "STD",
    "shippingCharge": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€3.99000",
            "withoutTax": "€3.99000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 3.99,
            "withoutTax": 3.99,
            "tax": 0
        }
    },
    "subTotal": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€99.99000",
            "withoutTax": "€99.99000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 99.99,
            "withoutTax": 99.99,
            "tax": 0
        }
    },
    "discount": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€.00000",
            "withoutTax": "€.00000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 0,
            "withoutTax": 0,
            "tax": 0
        }
    },
    "taxPercent": 0,
    "additionalCharge": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€.00000",
            "withoutTax": "€.00000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 0,
            "withoutTax": 0,
            "tax": 0
        }
    },
    "lineItems": [
        {
            "id": "0",
            "stockCode": "SKU-0001",
            "name": "Polo Shirt",
            "productId": "1C5D16AB-0497-462D-A0D2-B2F8F67335A1",
            "productIid": "0",
            "parentProductId": "",
            "brand": "Tommy Hilfiger",
            "subbrand": "Tommy Hilfiger",
            "price": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€24.00000",
                    "withoutTax": "€24.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 24,
                    "withoutTax": 24,
                    "tax": 0
                }
            },
            "subTotal": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€96.00000",
                    "withoutTax": "€96.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 96,
                    "withoutTax": 96,
                    "tax": 0
                }
            },
            "totalPrice": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€96.00000",
                    "withoutTax": "€96.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 96,
                    "withoutTax": 96,
                    "tax": 0
                }
            },
            "image": "image1.jeg",
            "qty": 4,
            "displayOrder": 1,
            "slug": "/product/SKU-0001",
            "itemType": 1,
            "displayInBasket": false,
            "categoryItems": [
                {
                    "categoryId": "1f7538ba-94a1-43ec-a451-1d7c9d16ef59",
                    "categoryName": "Shirt",
                    "parentCategoryId": "ca6b665e-68c5-451f-9a95-159a47ecaa84",
                    "parentCategoryName": "Clothings"
                }
            ],
            "attributesJson": "",
            "customInfo1": "cust info 1",
            "customInfo2": "cust info 2",
            "customInfo3": "cust info 3",
            "customInfo4": "cust info 4",
            "customInfo5": "cust info 5",
            "discount": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€.00000",
                    "withoutTax": "€.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 0,
                    "withoutTax": 0,
                    "tax": 0
                }
            },
            "additionalCharge": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€.00000",
                    "withoutTax": "€.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 0,
                    "withoutTax": 0,
                    "tax": 0
                }
            },
            "shortDescription": "Polo Shirt Description",
            "companyDiscount": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€.00000",
                    "withoutTax": "€.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 0,
                    "withoutTax": 0,
                    "tax": 0
                }
            },
            "listPrice": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€24.00000",
                    "withoutTax": "€24.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 24,
                    "withoutTax": 24,
                    "tax": 0
                }
            },
            "isSubscription": false,
            "isMembership": false,
            "subscriptionUserSettings": {
                "subscriptionPlanId": "00000000-0000-0000-0000-000000000000",
                "subscriptionTermId": "00000000-0000-0000-0000-000000000000",
                "userPricingType": 0,
                "subscriptionJson": null,
                "authorizationAmount": 0
            },
            "promotionsApplied": [
                {
                    "voucherCode": "DISCOUNT15",
                    "discountPct": 0,
                    "discountAmt": {
                        "minPrice": 0,
                        "minPriceWithoutTax": 0,
                        "maxPrice": 0,
                        "maxPriceWithoutTax": 0,
                        "currencyDecimalSeparator": ".",
                        "currencyDigitsAfterDecimal": 2,
                        "currencySymbol": "€",
                        "formatted": {
                            "withTax": "€.00000",
                            "withoutTax": "€.00000",
                            "tax": "€.00000"
                        },
                        "raw": {
                            "withTax": 0,
                            "withoutTax": 0,
                            "tax": 0
                        }
                    },
                    "autoApply": false,
                    "promoCode": "DISCOUNT15",
                    "name": "Dummy Promo"
                }
            ],
            "isGiftWrapApplied": false,
            "giftWrapId": "00000000-0000-0000-0000-000000000000",
            "itemGroupId": 0,
            "couponProvider": "",
            "isManualPrice": false,
            "priceMatchReqId": "00000000-0000-0000-0000-000000000000",
            "deliveryMessage": " delivery message",
            "variantProducts": [
                {
                    "stockCode": null,
                    "productId": "00000000-0000-0000-0000-000000000000",
                    "price": {
                        "minPrice": 0,
                        "minPriceWithoutTax": 0,
                        "maxPrice": 0,
                        "maxPriceWithoutTax": 0,
                        "currencyDecimalSeparator": ".",
                        "currencyDigitsAfterDecimal": 2,
                        "currencySymbol": "€",
                        "formatted": {
                            "withTax": "€15.99000",
                            "withoutTax": "€15.99000",
                            "tax": "€.00000"
                        },
                        "raw": {
                            "withTax": 15.99,
                            "withoutTax": 15.99,
                            "tax": 0
                        }
                    },
                    "slug": null,
                    "image": "img.jpg",
                    "productName": "Variant SKU",
                    "variantAttributes": []
                }
            ],
            "variantProductsAttribute": [
                {
                    "fieldName": "color",
                    "fieldCode": "global.color",
                    "fieldValues": []
                }
            ],
            "currentStock": 999
        }
    ],
    "promotionsApplied": [
        {
            "voucherCode": null,
            "discountPct": 0,
            "discountAmt": null,
            "autoApply": false,
            "promoCode": null,
            "name": null
        }
    ],
    "shippingMethods": [
        {
            "id": "00000000-0000-0000-0000-000000000000",
            "enabled": false,
            "systemName": null,
            "shippingCode": null,
            "displayName": null,
            "description": null,
            "displayOrder": 0,
            "expectedDaysToDeliver": 0,
            "expectedDeliveryDate": "0001-01-01T00:00:00",
            "deliveryOnOrBefore": null,
            "price": {
                "currencySymbol": "£",
                "formatted": {
                    "withTax": "£0.00",
                    "withoutTax": "£0.00",
                    "tax": "£0.00"
                },
                "raw": {
                    "withTax": 0,
                    "withoutTax": 0,
                    "tax": 0
                }
            },
            "isDefault": false,
            "isNominated": false,
            "type": 0,
            "carrierCode": null,
            "countryCode": null,
            "isPriceOnRequest": false,
            "showRecomendation": false,
            "recomendation": null,
            "isTaxable": false,
            "shippingCostMethod": 0,
            "cutOffTimes": null,
            "countryCsv": null
        }
    ],
    "created": "0001-01-01T00:00:00",
    "lastUpdated": "0001-01-01T00:00:00",
    "isQuote": false,
    "quoteStatus": 0,
    "customInfo1": "cust info 1",
    "customInfo2": "cust info 2",
    "customInfo3": "cust info 3",
    "customInfo4": "cust info 4",
    "customInfo5": "cust info 5",
    "shippingAddress": {
        "id": 0,
        "title": "Mr.",
        "firstName": "FName",
        "lastName": "LName",
        "address1": "Address Line 1",
        "address2": "Address Line 2",
        "address3": "Address Line 3",
        "city": "London",
        "state": "London",
        "country": "United Kingdom",
        "countryCode": "UK",
        "postCode": null,
        "phoneNo": "9999999999",
        "mobileNo": null,
        "companyName": "My Company"
    },
    "billingAddress": {
        "id": 0,
        "title": "Mr.",
        "firstName": "FName",
        "lastName": "LName",
        "address1": "Address Line 1",
        "address2": "Address Line 2",
        "address3": "Address Line 3",
        "city": "London",
        "state": "London",
        "country": "United Kingdom",
        "countryCode": "UK",
        "postCode": null,
        "phoneNo": "9999999999",
        "mobileNo": null,
        "companyName": "My Company"
    },
    "postCode": "XX55YY",
    "maxDimensionMm": 0,
    "companyDiscount": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€.00000",
            "withoutTax": "€.00000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 0,
            "withoutTax": 0,
            "tax": 0
        }
    },
    "validUntil": "0001-01-01T00:00:00",
    "isLocked": false,
    "createdByAdmin": false,
    "poNumber": "PO00001",
    "deliveryInstruction": "Please read the give instructions",
    "deliveryPlans": [
        {
            "fulfilmentChannel": 0,
            "deliveryType": 0,
            "deliveryCenter": {
                "recordId": "00000000-0000-0000-0000-000000000000",
                "code": null,
                "name": null,
                "type": 0,
                "postCode": null,
                "latitude": null,
                "longitude": null
            },
            "items": [],
            "distanceInMiles": null,
            "shippingMethodId": "00000000-0000-0000-0000-000000000000",
            "shippingMethodName": null,
            "cost": 0,
            "shippingSpeed": " - ",
            "deliveryDateTarget": "2022-03-15T07:25:35.0550632Z",
            "deliveryDateActual": "0001-01-01T00:00:00",
            "leadTime": 0,
            "leadTimeUom": 0,
            "leadTimeMin": 0,
            "leadTimeMax": 0,
            "pickupStoreId": "00000000-0000-0000-0000-000000000000",
            "refStoreId": null,
            "pickupStoreCode": null,
            "shippingType": 0,
            "lineItems": null,
            "created": null,
            "recordId": "00000000-0000-0000-0000-000000000000"
        }
    ],
    "hasSubscription": false,
    "subscriptionTotal": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€.00000",
            "withoutTax": "€.00000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 0,
            "withoutTax": 0,
            "tax": 0
        }
    },
    "isGiftWrapApplied": false,
    "giftWrapId": "00000000-0000-0000-0000-000000000000",
    "giftWrapOption": null,
    "membershipPlanId": "00000000-0000-0000-0000-000000000000",
    "hasMembership": false,
    "exchangeRate": 1,
    "baseCurrency": "EUR",
    "microSiteId": "00000000-0000-0000-0000-000000000000",
    "baseCurrencyTotal": 99.99,
    "membershipDiscount": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€.00000",
            "withoutTax": "€.00000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 0,
            "withoutTax": 0,
            "tax": 0
        }
    }
}
}

PUT/api/v2/commerce/basket/:id/po?poReference={{bc_basket_po_ref}}

Update PO# in basket

This endpoint allows you to merge two different baskets into one basket.

Developers - API Operations:

OperationEndpointResponse
Update basket/api/v2/commerce/basket/:id/po?poReference={{bc_basket_po_ref}}Update PO# in basket.

Required attributes

  • Name
    Id
    Type
    string
    Description

    Id used to identify the basket

  • Name
    poReference
    Type
    string
    Description

    P O Reference to update the P O number in the basket

Response Properties

  • Name
    statusCode
    Type
    number
    Description

    Status code of the response

  • Name
    status
    Type
    string
    Description

    Status of the response

  • Name
    errors
    Type
    array
    Description

    List of errors in the response

  • Name
    success
    Type
    boolean
    Description

    Success status of the response

  • Name
    message
    Type
    string
    Description

    Message of the response

  • Name
    messageCode
    Type
    string
    Description

    Message code of the response

  • Name
    result
    Type
    object
    Description

    Result of the response

  • Name
    recordId
    Type
    string
    Description

    RecordId of the record created

  • Name
    id
    Type
    number
    Description

    Id to identify the basket

  • Name
    isValid
    Type
    boolean
    Description

    Flag to check validity of the response

Request

PUT
/api/v2/commerce/basket/:id/po?poReference={{bc_basket_po_ref}}
curl --location --request PUT 'https://api20.bettercommerce.io/api/v2/commerce/basket/:id/po?poReference=' \
--header 'Accept: application/json' \
--header 'UserId;' \
--header 'Email: abc@abc.com'

Response

{
"statusCode": 200,
"status": "OK",
"errors": [],
"success": true,
"message": "Success",
"messageCode": "1000",
"result": {
    "recordId": "00000000-0000-0000-0000-000000000000",
    "id": 0,
    "isValid": false
}
}

PUT/api/v2/commerce/basket/:id/user?userId={{bc_user_id}}

Update userId in basket

This endpoint allows you to update the userId in a basket.

Developers - API Operations:

OperationEndpointResponse
Update baskets/api/v2/commerce/basket/:id/user?userId={{bc_user_id}}Update userId in basket.

Required attributes

  • Name
    Id
    Type
    string
    Description

    Id to identify the basket

  • Name
    userId
    Type
    string
    Description

    New userId to be updated in the basket

Response Properties

  • Name
    statusCode
    Type
    number
    Description

    Status code of the response

  • Name
    status
    Type
    string
    Description

    Status of the response

  • Name
    errors
    Type
    array
    Description

    List of errors in the response

  • Name
    success
    Type
    boolean
    Description

    Success status of the response

  • Name
    message
    Type
    string
    Description

    Message of the response

  • Name
    messageCode
    Type
    string
    Description

    Message code of the response

  • Name
    result
    Type
    object
    Description

    Result of the response

  • Name
    id
    Type
    number
    Description

    Id to identify the user

  • Name
    currencySymbol
    Type
    string
    Description

    Currency Symbol for Price e.g £

  • Name
    currencyCode
    Type
    string
    Description

    Currency code according to the region e.g. GBP:'Great Britain Pound'

  • Name
    userId
    Type
    string
    Description

    User Id to identify the User

  • Name
    userEmail
    Type
    string
    Description

    User email provided by the user

  • Name
    shippingMethodId
    Type
    string
    Description

    Shipping method Id to identify the shipping method

  • Name
    subTotal
    Type
    object
    Description

    Sub total of the total price

  • Name
    shippingCharge
    Type
    object
    Description

    Shipping charges of the product in basket

  • Name
    formatted
    Type
    object
    Description

    Formatted price with and without tax

  • Name
    withTax
    Type
    string
    Description

    Price of basket item with Tax

  • Name
    withoutTax
    Type
    string
    Description

    Price of basket item without Tax

  • Name
    tax
    Type
    string
    Description

    Tax amount of basket item

  • Name
    raw
    Type
    object
    Description

    Raw price without discount

  • Name
    discount
    Type
    object
    Description

    Discount amount on the basket item

  • Name
    additionalCharge
    Type
    object
    Description

    Additional charges applied on the basket item

  • Name
    grandTotal
    Type
    object
    Description

    Grand total price of basket items

  • Name
    isLocked
    Type
    boolean
    Description

    Flag to check if the basket is locked

  • Name
    createdByAdmin
    Type
    boolean
    Description

    Flag to check if the basket is created by Admin

  • Name
    poNumber
    Type
    string
    Description

    P O Number of the basket

  • Name
    isQuote
    Type
    boolean
    Description

    Flag to check if the basket is a Quote

  • Name
    quoteStatus
    Type
    number
    Description

    Quote status of the basket

  • Name
    postCode
    Type
    string
    Description

    Post code of the user

  • Name
    hasMembership
    Type
    boolean
    Description

    Flag to check if the user has a membership

  • Name
    exchangeRate
    Type
    number
    Description

    Exchange rate of the currency

  • Name
    baseCurrency
    Type
    string
    Description

    Base currency of the region

  • Name
    microSiteId
    Type
    string
    Description

    Micro site Id of the site

  • Name
    baseCurrencyTotal
    Type
    number
    Description

    Total amount of the basket in base currency

  • Name
    membershipDiscount
    Type
    string
    Description

    Discount given to the user under their membership

  • Name
    created
    Type
    string
    Description

    Date and time when the basket was created

  • Name
    lastUpdated
    Type
    string
    Description

    Date and time when the basket was last updated

  • Name
    lineItems
    Type
    array
    Description

    Array of all the products added in to basket

  • Name
    stockCode
    Type
    string
    Description

    Stock code of the product

  • Name
    name
    Type
    string
    Description

    Name of the product

  • Name
    slug
    Type
    string
    Description

    Slug of the product used to navigate to the product

  • Name
    shortDescription
    Type
    string
    Description

    A short description of the product

  • Name
    productId
    Type
    string
    Description

    Product Id used to identify the product

  • Name
    productIid
    Type
    string
    Description

    Product Iid used to identify the product

  • Name
    parentProductId
    Type
    string
    Description

    Id of the parent product product, used to map personalized products with their parent product

  • Name
    price
    Type
    string
    Description

    Price of the product

  • Name
    totalPrice
    Type
    object
    Description

    Total price of the product

  • Name
    minPrice
    Type
    number
    Description

    Minimum price for the company

  • Name
    minPriceWithoutTax
    Type
    number
    Description

    Minimum price for the company without tax

  • Name
    maxPrice
    Type
    number
    Description

    Maximum price for the company

  • Name
    maxPriceWithoutTax
    Type
    number
    Description

    Maximum price for the company wihtout tax

  • Name
    currencyDecimalSeparator
    Type
    string
    Description

    Currency decimal separator for the region

  • Name
    currencyDigitsAfterDecimal
    Type
    number
    Description

    Digits after decimal for the currency

  • Name
    id
    Type
    string
    Description

    id to identify the user

  • Name
    title
    Type
    string
    Description

    Title of the user e.g. Miss./Mrs./Mr.

  • Name
    firstName
    Type
    string
    Description

    First name of the user

  • Name
    lastName
    Type
    string
    Description

    Last name of the user

  • Name
    address1
    Type
    string
    Description

    Address Line 1 provided by the user

  • Name
    address2
    Type
    string
    Description

    Address Line 2 provided by the user

  • Name
    address3
    Type
    string
    Description

    Address Line 3 provided by the user

  • Name
    city
    Type
    string
    Description

    City name provided by the user

  • Name
    state
    Type
    string
    Description

    State name provided by the user

  • Name
    country
    Type
    string
    Description

    Country name provided by the user

  • Name
    countryCode
    Type
    string
    Description

    Country code provided by the user

  • Name
    postCode
    Type
    string
    Description

    Post code provided by the user

  • Name
    phoneNo
    Type
    string
    Description

    Phone number of the user

  • Name
    mobileNo
    Type
    string
    Description

    Mobile number of the user

  • Name
    companyName
    Type
    string
    Description

    Name of the company provided by the user

  • Name
    displayOrder
    Type
    number
    Description

    Order of the display associated with the product

  • Name
    totalWithoutShipping
    Type
    object
    Description

    Total price of the basket without shipping charges

  • Name
    taxPercent
    Type
    number
    Description

    Amount of tax applied in percentage

  • Name
    brand
    Type
    string
    Description

    Brand name of the product

  • Name
    subbrand
    Type
    string
    Description

    Sub brand name of the product

  • Name
    image
    Type
    string
    Description

    File name of the image of the product

  • Name
    qty
    Type
    number
    Description

    Quantity of product in the basket

  • Name
    displayOrder
    Type
    number
    Description

    Display order of the product in the basket

  • Name
    itemType
    Type
    number
    Description

    Type of item in the basket

  • Name
    displayInBasket
    Type
    boolean
    Description

    Flag to check if the product should be displayed in the basket

  • Name
    categoryItems
    Type
    array
    Description

    List of all the categories available

  • Name
    categoryId
    Type
    string
    Description

    Category Id to identify the cateogories

  • Name
    categoryName
    Type
    string
    Description

    Name of the category e.g. 'Shirts','Joggers', etc

  • Name
    parentCategoryId
    Type
    string
    Description

    Parent category Id to identify the parent category

  • Name
    parentCategoryName
    Type
    string
    Description

    Name of the Parent category e.g. 'Clothings'

  • Name
    attributesJson
    Type
    string
    Description

    JSON attributes of the product

  • Name
    customInfo1
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    customInfo2
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    customInfo3
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    customInfo4
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    customInfo5
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    isSubscription
    Type
    boolean
    Description

    Flag to check if the user has an active subscription

  • Name
    isMembership
    Type
    boolean
    Description

    Flag to check if the user has an active membership

  • Name
    subscriptionUserSettings
    Type
    object
    Description

    Settings for the users's subscription

  • Name
    subscriptionPlanId
    Type
    string
    Description

    Plan Id of the subscription

  • Name
    subscriptionTermId
    Type
    string
    Description

    Term Id of the subscription

  • Name
    userPricingType
    Type
    number
    Description

    Type of pricing for the user

  • Name
    subscriptionJson
    Type
    string
    Description

    JSON values for the subscription

  • Name
    authorizationAmount
    Type
    number
    Description

    Amount to be authorized for this subscription

  • Name
    shippingMethods
    Type
    array
    Description

    A List of shipping methods available for the products

  • Name
    id
    Type
    string
    Description

    Id to identify the shipping method

  • Name
    enabled
    Type
    boolean
    Description

    Flag to check if the shipping method is enabled

  • Name
    systemName
    Type
    string
    Description

    System name of the shipping methods

  • Name
    shippingCode
    Type
    string
    Description

    Shipping code used by the shipping method

  • Name
    displayName
    Type
    string
    Description

    Display name of the shipping method

  • Name
    description
    Type
    string
    Description

    Description of the shipping method

  • Name
    displayOrder
    Type
    number
    Description

    Display order of this shipping method in the list of shipping methods

  • Name
    expectedDaysToDeliver
    Type
    number
    Description

    Number of days before the expected delivery date

  • Name
    expectedDeliveryDate
    Type
    string
    Description

    Date and time of expected delivery of the product

  • Name
    deliveryOnOrBefore
    Type
    string
    Description

    The date on or before which date the product should be delivered

  • Name
    isDefault
    Type
    boolean
    Description

    Flag to check if this shipping method is the default shipping method

  • Name
    isNominated
    Type
    boolean
    Description

    Flag to check if this shipping method is the nominated shipping method

  • Name
    type
    Type
    number
    Description

    Type of this shipping mehtod

  • Name
    carrierCode
    Type
    string
    Description

    Carrier code of the delivery carrier

  • Name
    countryCode
    Type
    string
    Description

    Country code of the region of delivery

  • Name
    isPriceOnRequest
    Type
    boolean
    Description

    Flag to check if product is produced only for editorials and is never actually put into production for consumer purchase

  • Name
    showRecomendation
    Type
    boolean
    Description

    Flag to check if the recommendations for this product should be shown

  • Name
    recomendation
    Type
    string
    Description

    The recommendations for this product

  • Name
    isTaxable
    Type
    boolean
    Description

    Flag to check if this shipping method is taxable

  • Name
    shippingCostMethod
    Type
    number
    Description

    Used to select the type of shipping cost to be applied

  • Name
    cutOffTimes
    Type
    string
    Description

    It is the latest time in any Business Day that we can process a particular Transaction, request or instruction on that Business Day.

  • Name
    countryCsv
    Type
    string
    Description

    File name for the csv file having data of the countries

  • Name
    maxDimensionMm
    Type
    number
    Description

    Maximum dimensions of the package to be delivered in Millimeters

  • Name
    companyDiscount
    Type
    object
    Description

    The discount given on the original price of the products by the company to their employees

  • Name
    validUntil
    Type
    string
    Description

    The date time of the validity of the order for delivery

  • Name
    deliveryInstruction
    Type
    string
    Description

    Instructions for the delivery agent regarding the delivery

  • Name
    deliveryPlans
    Type
    array
    Description

    A list of delivery plans for the delivery of the order

  • Name
    fulfilmentChannel
    Type
    number
    Description

    The method by which sellers can sell items through various sales channels and have the company handle the packaging and shipping aspects for them

  • Name
    deliveryType
    Type
    number
    Description

    The type of delivery for the order

  • Name
    deliveryCenter
    Type
    object
    Description

    The details of the delivery center which will handle the delivery for this order

  • Name
    recordId
    Type
    string
    Description

    Record Id to identify the delivery center records

  • Name
    code
    Type
    string
    Description

    A code used by the delivery center

  • Name
    postCode
    Type
    string
    Description

    Postal code of the delivery center

  • Name
    latitude
    Type
    string
    Description

    Latitute of the geographical location of the delivery center

  • Name
    longitude
    Type
    string
    Description

    Longitute of the geographical location of the delivery center

  • Name
    items
    Type
    array
    Description

    The list of items to be delivered

  • Name
    distanceInMiles
    Type
    string
    Description

    The distance to the the delivery location in miles

  • Name
    shippingMethodName
    Type
    string
    Description

    The name of the shipping method used for shipping the product

  • Name
    cost
    Type
    number
    Description

    The cost of shipping the product

  • Name
    shippingSpeed
    Type
    string
    Description

    The rate at which the order will be shipped for deliery

  • Name
    deliveryDateTarget
    Type
    string
    Description

    The date and time target for the delivery of the order

  • Name
    deliveryDateActual
    Type
    string
    Description

    The date and time of the actual delivery of the order

  • Name
    leadTime
    Type
    number
    Description

    The amount of time that passes from the start of a process until its conclusion

  • Name
    leadTimeUom
    Type
    number
    Description

    The unit of measurement for the lead time

  • Name
    leadTimeMin
    Type
    number
    Description

    The minimum lead time for the order to be delivered

  • Name
    leadTimeMax
    Type
    number
    Description

    The maximum lead time for the order to be delivered

  • Name
    pickupStoreId
    Type
    string
    Description

    The id of stores from which the order can be collected

  • Name
    refStoreId
    Type
    string
    Description

    Reference Id of the store

  • Name
    pickupStoreCode
    Type
    string
    Description

    The store code for a pickup store

  • Name
    shippingType
    Type
    number
    Description

    The type of shipping used for delivery of the order

  • Name
    hasSubscription
    Type
    boolean
    Description

    Flag to check if the user has a subscription

  • Name
    subscriptionTotal
    Type
    object
    Description

    The total amount that must be paid by the user for the subscription

  • Name
    isGiftWrapApplied
    Type
    boolean
    Description

    Flag to check if Gift wrap is applied to the products

  • Name
    giftWrapId
    Type
    string
    Description

    Gift wrap Id to identify the gift warpped products in the basket

  • Name
    giftWrapOption
    Type
    string
    Description

    The gift wrapping options available for the products in the basket

  • Name
    membershipPlanId
    Type
    string
    Description

    Membership plan Id to identify the membership plan of the user

  • Name
    promotionsApplied
    Type
    array
    Description

    List of promotions applied on the products in the basket

  • Name
    voucherCode
    Type
    string
    Description

    Voucher code used to validate the offer and claim the benefits e.g. 'DISCOUNT15'

  • Name
    discountPct
    Type
    number
    Description

    Discount value applied on the product in Percentage

  • Name
    discountAmt
    Type
    object
    Description

    The amount of discount to be applied on the products in the basket

  • Name
    autoApply
    Type
    boolean
    Description

    Flag to check if the promotion has to be auto applied on the products

  • Name
    promoCode
    Type
    string
    Description

    Promotion code used to validate the offer e.g. 'DISCOUNT15'

  • Name
    itemGroupId
    Type
    number
    Description

    Id used to identify the group of items

  • Name
    couponProvider
    Type
    string
    Description

    The entity that provides the coupon to create an offer

  • Name
    isManualPrice
    Type
    boolean
    Description

    Flag to check if the Price is set Manually

  • Name
    priceMatchReqId
    Type
    string
    Description

    Id used to match the price requests

  • Name
    deliveryMessage
    Type
    string
    Description

    Message for the delivery agent provided by the user

  • Name
    variantProducts
    Type
    array
    Description

    A list of all available variants of the current product

  • Name
    productName
    Type
    string
    Description

    Product name of the variant product

  • Name
    variantAttributes
    Type
    array
    Description

    List of variant attributes of the product e.g. Size, Color

  • Name
    variantProductsAttribute
    Type
    array
    Description

    A list of variant attributes of the product

  • Name
    fieldName
    Type
    string
    Description

    Name of the variant attribute

  • Name
    fieldCode
    Type
    string
    Description

    Field code of the atrribute

  • Name
    fieldValues
    Type
    array
    Description

    A list of values for the variant attribute

  • Name
    currentStock
    Type
    number
    Description

    Number of products available in stock

Request

PUT
/api/v2/commerce/basket/:id/user?userId={{bc_user_id}}
curl --location --request PUT 'https://api20.bettercommerce.io/api/v2/commerce/basket/:id/user?userId=' \
--header 'Accept: application/json' \
--header 'UserId;' \
--header 'Email: abc@abc.com'

Response

{
"statusCode": 200,
"status": "OK",
"errors": [],
"success": true,
"message": "",
"messageCode": "",
"result": {
    "id": "feaab743-d7a0-4635-b6b2-3e94001cdd37",
    "currencySymbol": "€",
    "currencyCode": "EUR",
    "userId": "1a096136-ee25-46bc-9258-81b854c7bf6a",
    "userEmail": "myemail@example.com",
    "grandTotal": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€99.99000",
            "withoutTax": "€99.99000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 99.99,
            "withoutTax": 99.99,
            "tax": 0
        }
    },
    "totalWithoutShipping": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€96.00000",
            "withoutTax": "€96.00000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 96,
            "withoutTax": 96,
            "tax": 0
        }
    },
    "shippingMethodId": "STD",
    "shippingCharge": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€3.99000",
            "withoutTax": "€3.99000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 3.99,
            "withoutTax": 3.99,
            "tax": 0
        }
    },
    "subTotal": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€99.99000",
            "withoutTax": "€99.99000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 99.99,
            "withoutTax": 99.99,
            "tax": 0
        }
    },
    "discount": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€.00000",
            "withoutTax": "€.00000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 0,
            "withoutTax": 0,
            "tax": 0
        }
    },
    "taxPercent": 0,
    "additionalCharge": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€.00000",
            "withoutTax": "€.00000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 0,
            "withoutTax": 0,
            "tax": 0
        }
    },
    "lineItems": [
        {
            "id": "0",
            "stockCode": "SKU-0001",
            "name": "Polo Shirt",
            "productId": "1C5D16AB-0497-462D-A0D2-B2F8F67335A1",
            "productIid": "0",
            "parentProductId": "",
            "brand": "Tommy Hilfiger",
            "subbrand": "Tommy Hilfiger",
            "price": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€24.00000",
                    "withoutTax": "€24.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 24,
                    "withoutTax": 24,
                    "tax": 0
                }
            },
            "subTotal": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€96.00000",
                    "withoutTax": "€96.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 96,
                    "withoutTax": 96,
                    "tax": 0
                }
            },
            "totalPrice": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€96.00000",
                    "withoutTax": "€96.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 96,
                    "withoutTax": 96,
                    "tax": 0
                }
            },
            "image": "image1.jeg",
            "qty": 4,
            "displayOrder": 1,
            "slug": "/product/SKU-0001",
            "itemType": 1,
            "displayInBasket": false,
            "categoryItems": [
                {
                    "categoryId": "7447a7e1-3cab-4394-9aac-ae1de7a0b819",
                    "categoryName": "Shirt",
                    "parentCategoryId": "953f21f4-c395-4e05-809c-f8575c803527",
                    "parentCategoryName": "Clothings"
                }
            ],
            "attributesJson": "",
            "customInfo1": "cust info 1",
            "customInfo2": "cust info 2",
            "customInfo3": "cust info 3",
            "customInfo4": "cust info 4",
            "customInfo5": "cust info 5",
            "discount": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€.00000",
                    "withoutTax": "€.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 0,
                    "withoutTax": 0,
                    "tax": 0
                }
            },
            "additionalCharge": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€.00000",
                    "withoutTax": "€.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 0,
                    "withoutTax": 0,
                    "tax": 0
                }
            },
            "shortDescription": "Polo Shirt Description",
            "companyDiscount": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€.00000",
                    "withoutTax": "€.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 0,
                    "withoutTax": 0,
                    "tax": 0
                }
            },
            "listPrice": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€24.00000",
                    "withoutTax": "€24.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 24,
                    "withoutTax": 24,
                    "tax": 0
                }
            },
            "isSubscription": false,
            "isMembership": false,
            "subscriptionUserSettings": {
                "subscriptionPlanId": "00000000-0000-0000-0000-000000000000",
                "subscriptionTermId": "00000000-0000-0000-0000-000000000000",
                "userPricingType": 0,
                "subscriptionJson": null,
                "authorizationAmount": 0
            },
            "promotionsApplied": [
                {
                    "voucherCode": "DISCOUNT15",
                    "discountPct": 0,
                    "discountAmt": {
                        "minPrice": 0,
                        "minPriceWithoutTax": 0,
                        "maxPrice": 0,
                        "maxPriceWithoutTax": 0,
                        "currencyDecimalSeparator": ".",
                        "currencyDigitsAfterDecimal": 2,
                        "currencySymbol": "€",
                        "formatted": {
                            "withTax": "€.00000",
                            "withoutTax": "€.00000",
                            "tax": "€.00000"
                        },
                        "raw": {
                            "withTax": 0,
                            "withoutTax": 0,
                            "tax": 0
                        }
                    },
                    "autoApply": false,
                    "promoCode": "DISCOUNT15",
                    "name": "Dummy Promo"
                }
            ],
            "isGiftWrapApplied": false,
            "giftWrapId": "00000000-0000-0000-0000-000000000000",
            "itemGroupId": 0,
            "couponProvider": "",
            "isManualPrice": false,
            "priceMatchReqId": "00000000-0000-0000-0000-000000000000",
            "deliveryMessage": " delivery message",
            "variantProducts": [
                {
                    "stockCode": null,
                    "productId": "00000000-0000-0000-0000-000000000000",
                    "price": {
                        "minPrice": 0,
                        "minPriceWithoutTax": 0,
                        "maxPrice": 0,
                        "maxPriceWithoutTax": 0,
                        "currencyDecimalSeparator": ".",
                        "currencyDigitsAfterDecimal": 2,
                        "currencySymbol": "€",
                        "formatted": {
                            "withTax": "€15.99000",
                            "withoutTax": "€15.99000",
                            "tax": "€.00000"
                        },
                        "raw": {
                            "withTax": 15.99,
                            "withoutTax": 15.99,
                            "tax": 0
                        }
                    },
                    "slug": null,
                    "image": "img.jpg",
                    "productName": "Variant SKU",
                    "variantAttributes": []
                }
            ],
            "variantProductsAttribute": [
                {
                    "fieldName": "color",
                    "fieldCode": "global.color",
                    "fieldValues": []
                }
            ],
            "currentStock": 999
        }
    ],
    "promotionsApplied": [
        {
            "voucherCode": null,
            "discountPct": 0,
            "discountAmt": null,
            "autoApply": false,
            "promoCode": null,
            "name": null
        }
    ],
    "shippingMethods": [
        {
            "id": "00000000-0000-0000-0000-000000000000",
            "enabled": false,
            "systemName": null,
            "shippingCode": null,
            "displayName": null,
            "description": null,
            "displayOrder": 0,
            "expectedDaysToDeliver": 0,
            "expectedDeliveryDate": "0001-01-01T00:00:00",
            "deliveryOnOrBefore": null,
            "price": {
                "currencySymbol": "£",
                "formatted": {
                    "withTax": "£0.00",
                    "withoutTax": "£0.00",
                    "tax": "£0.00"
                },
                "raw": {
                    "withTax": 0,
                    "withoutTax": 0,
                    "tax": 0
                }
            },
            "isDefault": false,
            "isNominated": false,
            "type": 0,
            "carrierCode": null,
            "countryCode": null,
            "isPriceOnRequest": false,
            "showRecomendation": false,
            "recomendation": null,
            "isTaxable": false,
            "shippingCostMethod": 0,
            "cutOffTimes": null,
            "countryCsv": null
        }
    ],
    "created": "0001-01-01T00:00:00",
    "lastUpdated": "0001-01-01T00:00:00",
    "isQuote": false,
    "quoteStatus": 0,
    "customInfo1": "cust info 1",
    "customInfo2": "cust info 2",
    "customInfo3": "cust info 3",
    "customInfo4": "cust info 4",
    "customInfo5": "cust info 5",
    "shippingAddress": {
        "id": 0,
        "title": "Mr.",
        "firstName": "FName",
        "lastName": "LName",
        "address1": "Address Line 1",
        "address2": "Address Line 2",
        "address3": "Address Line 3",
        "city": "London",
        "state": "London",
        "country": "United Kingdom",
        "countryCode": "UK",
        "postCode": null,
        "phoneNo": "9999999999",
        "mobileNo": null,
        "companyName": "My Company"
    },
    "billingAddress": {
        "id": 0,
        "title": "Mr.",
        "firstName": "FName",
        "lastName": "LName",
        "address1": "Address Line 1",
        "address2": "Address Line 2",
        "address3": "Address Line 3",
        "city": "London",
        "state": "London",
        "country": "United Kingdom",
        "countryCode": "UK",
        "postCode": null,
        "phoneNo": "9999999999",
        "mobileNo": null,
        "companyName": "My Company"
    },
    "postCode": "XX55YY",
    "maxDimensionMm": 0,
    "companyDiscount": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€.00000",
            "withoutTax": "€.00000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 0,
            "withoutTax": 0,
            "tax": 0
        }
    },
    "validUntil": "0001-01-01T00:00:00",
    "isLocked": false,
    "createdByAdmin": false,
    "poNumber": "PO00001",
    "deliveryInstruction": "Please read the give instructions",
    "deliveryPlans": [
        {
            "fulfilmentChannel": 0,
            "deliveryType": 0,
            "deliveryCenter": {
                "recordId": "00000000-0000-0000-0000-000000000000",
                "code": null,
                "name": null,
                "type": 0,
                "postCode": null,
                "latitude": null,
                "longitude": null
            },
            "items": [],
            "distanceInMiles": null,
            "shippingMethodId": "00000000-0000-0000-0000-000000000000",
            "shippingMethodName": null,
            "cost": 0,
            "shippingSpeed": " - ",
            "deliveryDateTarget": "2022-03-15T07:25:35.0550632Z",
            "deliveryDateActual": "0001-01-01T00:00:00",
            "leadTime": 0,
            "leadTimeUom": 0,
            "leadTimeMin": 0,
            "leadTimeMax": 0,
            "pickupStoreId": "00000000-0000-0000-0000-000000000000",
            "refStoreId": null,
            "pickupStoreCode": null,
            "shippingType": 0,
            "lineItems": null,
            "created": null,
            "recordId": "00000000-0000-0000-0000-000000000000"
        }
    ],
    "hasSubscription": false,
    "subscriptionTotal": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€.00000",
            "withoutTax": "€.00000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 0,
            "withoutTax": 0,
            "tax": 0
        }
    },
    "isGiftWrapApplied": false,
    "giftWrapId": "00000000-0000-0000-0000-000000000000",
    "giftWrapOption": null,
    "membershipPlanId": "00000000-0000-0000-0000-000000000000",
    "hasMembership": false,
    "exchangeRate": 1,
    "baseCurrency": "EUR",
    "microSiteId": "00000000-0000-0000-0000-000000000000",
    "baseCurrencyTotal": 99.99,
    "membershipDiscount": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€.00000",
            "withoutTax": "€.00000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 0,
            "withoutTax": 0,
            "tax": 0
        }
    }
}
}

PUT/api/v2/commerce/basket/:id/items/add

Add item to basket

This endpoint allows you to add an item into the basket.

Developers - API Operations:

OperationEndpointResponse
Add to basket/api/v2/commerce/basket/:id/items/addAdd item to basket.

Required attributes

  • Name
    Id
    Type
    string
    Description

    Id to identify the basket

  • Name
    basketLine
    Type
    model
    Description

    Item details to be added to the basket

Model Attributes

  • Name
    basketId
    Type
    string
    Description

    Basket Id to identify the basket

  • Name
    customInfo1
    Type
    string
    Description

    Custom information about the product given by the user

  • Name
    customInfo2
    Type
    string
    Description

    Custom information about the product given by the user

  • Name
    customInfo3
    Type
    string
    Description

    Custom information about the product given by the user

  • Name
    customInfo4
    Type
    string
    Description

    Custom information about the product given by the user

  • Name
    customInfo5
    Type
    string
    Description

    Custom information about the product given by the user

  • Name
    productId
    Type
    string
    Description

    Id used to identify the product

  • Name
    parentProductId
    Type
    string
    Description

    Custom information about the product given by the user

  • Name
    qty
    Type
    number
    Description

    Quantity of the product in the basket

  • Name
    additionalCharge
    Type
    number
    Description

    Additional charges applied on the product

  • Name
    subscriptionPlanId
    Type
    string
    Description

    Subscription plan Id used to identify the subscription plan

  • Name
    subscriptionTermId
    Type
    string
    Description

    Subscription Term Id used to identify the subscription term

  • Name
    userPricingType
    Type
    number
    Description

    Subscription pricing type for the user

  • Name
    subscriptionJson
    Type
    string
    Description

    JSON object with subscription data

  • Name
    authorizationAmount
    Type
    number
    Description

    Amount to be authorized for the subscription

  • Name
    displayOrder
    Type
    number
    Description

    Order of the display associated with the product

  • Name
    manualUnitPrice
    Type
    number
    Description

    Price of the Unit provided manually

  • Name
    stockCode
    Type
    string
    Description

    Stock code of the product

  • Name
    itemType
    Type
    number
    Description

    Type of item in the basket

  • Name
    postCode
    Type
    string
    Description

    Post code provided by the user

  • Name
    isSubscription
    Type
    boolean
    Description

    Flag to check if the user has an active subscription

  • Name
    userSubscriptionPricing
    Type
    number
    Description

    Pricing of the subscription package selected by the user

  • Name
    giftWrapId
    Type
    string
    Description

    Gift wrap Id to identify the gift warpped products in the basket

  • Name
    isGiftWrapApplied
    Type
    boolean
    Description

    Flag to check if Gift wrap is applied to the products

  • Name
    lineItemType
    Type
    number
    Description

    Type of line items in the basket

  • Name
    priceMatchReqId
    Type
    string
    Description

    Id used to match the price requests

  • Name
    isMembership
    Type
    boolean
    Description

    Flag to check if the user has an active membership

Response Properties

  • Name
    statusCode
    Type
    number
    Description

    Status code of the response

  • Name
    status
    Type
    string
    Description

    Status of the response

  • Name
    errors
    Type
    array
    Description

    List of errors in the response

  • Name
    success
    Type
    boolean
    Description

    Success status of the response

  • Name
    message
    Type
    string
    Description

    Message of the response

  • Name
    messageCode
    Type
    string
    Description

    Message code of the response

  • Name
    result
    Type
    object
    Description

    Result of the response

  • Name
    id
    Type
    number
    Description

    Id to identify the user

  • Name
    currencySymbol
    Type
    string
    Description

    Currency Symbol for Price e.g £

  • Name
    currencyCode
    Type
    string
    Description

    Currency code according to the region e.g. GBP:'Great Britain Pound'

  • Name
    userId
    Type
    string
    Description

    User Id to identify the User

  • Name
    userEmail
    Type
    string
    Description

    User email provided by the user

  • Name
    shippingMethodId
    Type
    string
    Description

    Shipping method Id to identify the shipping method

  • Name
    subTotal
    Type
    object
    Description

    Sub total of the total price

  • Name
    shippingCharge
    Type
    object
    Description

    Shipping charges of the product in basket

  • Name
    formatted
    Type
    object
    Description

    Formatted price with and without tax

  • Name
    withTax
    Type
    string
    Description

    Price of basket item with Tax

  • Name
    withoutTax
    Type
    string
    Description

    Price of basket item without Tax

  • Name
    tax
    Type
    string
    Description

    Tax amount of basket item

  • Name
    raw
    Type
    object
    Description

    Raw price without discount

  • Name
    discount
    Type
    object
    Description

    Discount amount on the basket item

  • Name
    additionalCharge
    Type
    object
    Description

    Additional charges applied on the basket item

  • Name
    grandTotal
    Type
    object
    Description

    Grand total price of basket items

  • Name
    isLocked
    Type
    boolean
    Description

    Flag to check if the basket is locked

  • Name
    createdByAdmin
    Type
    boolean
    Description

    Flag to check if the basket is created by Admin

  • Name
    poNumber
    Type
    string
    Description

    P O Number of the basket

  • Name
    isQuote
    Type
    boolean
    Description

    Flag to check if the basket is a Quote

  • Name
    quoteStatus
    Type
    number
    Description

    Quote status of the basket

  • Name
    postCode
    Type
    string
    Description

    Post code of the user

  • Name
    hasMembership
    Type
    boolean
    Description

    Flag to check if the user has a membership

  • Name
    exchangeRate
    Type
    number
    Description

    Exchange rate of the currency

  • Name
    baseCurrency
    Type
    string
    Description

    Base currency of the region

  • Name
    microSiteId
    Type
    string
    Description

    Micro site Id of the site

  • Name
    baseCurrencyTotal
    Type
    number
    Description

    Total amount of the basket in base currency

  • Name
    membershipDiscount
    Type
    string
    Description

    Discount given to the user under their membership

  • Name
    created
    Type
    string
    Description

    Date and time when the basket was created

  • Name
    lastUpdated
    Type
    string
    Description

    Date and time when the basket was last updated

  • Name
    lineItems
    Type
    array
    Description

    Array of all the products added in to basket

  • Name
    stockCode
    Type
    string
    Description

    Stock code of the product

  • Name
    name
    Type
    string
    Description

    Name of the product

  • Name
    slug
    Type
    string
    Description

    Slug of the product used to navigate to the product

  • Name
    shortDescription
    Type
    string
    Description

    A short description of the product

  • Name
    productId
    Type
    string
    Description

    Product Id used to identify the product

  • Name
    productIid
    Type
    string
    Description

    Product Iid used to identify the product

  • Name
    parentProductId
    Type
    string
    Description

    Id of the parent product product, used to map personalized products with their parent product

  • Name
    price
    Type
    string
    Description

    Price of the product

  • Name
    totalPrice
    Type
    object
    Description

    Total price of the product

  • Name
    minPrice
    Type
    number
    Description

    Minimum price for the company

  • Name
    minPriceWithoutTax
    Type
    number
    Description

    Minimum price for the company without tax

  • Name
    maxPrice
    Type
    number
    Description

    Maximum price for the company

  • Name
    maxPriceWithoutTax
    Type
    number
    Description

    Maximum price for the company wihtout tax

  • Name
    currencyDecimalSeparator
    Type
    string
    Description

    Currency decimal separator for the region

  • Name
    currencyDigitsAfterDecimal
    Type
    number
    Description

    Digits after decimal for the currency

  • Name
    id
    Type
    string
    Description

    id to identify the user

  • Name
    title
    Type
    string
    Description

    Title of the user e.g. Miss./Mrs./Mr.

  • Name
    firstName
    Type
    string
    Description

    First name of the user

  • Name
    lastName
    Type
    string
    Description

    Last name of the user

  • Name
    address1
    Type
    string
    Description

    Address Line 1 provided by the user

  • Name
    address2
    Type
    string
    Description

    Address Line 2 provided by the user

  • Name
    address3
    Type
    string
    Description

    Address Line 3 provided by the user

  • Name
    city
    Type
    string
    Description

    City name provided by the user

  • Name
    state
    Type
    string
    Description

    State name provided by the user

  • Name
    country
    Type
    string
    Description

    Country name provided by the user

  • Name
    countryCode
    Type
    string
    Description

    Country code provided by the user

  • Name
    postCode
    Type
    string
    Description

    Post code provided by the user

  • Name
    phoneNo
    Type
    string
    Description

    Phone number of the user

  • Name
    mobileNo
    Type
    string
    Description

    Mobile number of the user

  • Name
    companyName
    Type
    string
    Description

    Name of the company provided by the user

  • Name
    displayOrder
    Type
    number
    Description

    Order of the display associated with the product

  • Name
    totalWithoutShipping
    Type
    object
    Description

    Total price of the basket without shipping charges

  • Name
    taxPercent
    Type
    number
    Description

    Amount of tax applied in percentage

  • Name
    brand
    Type
    string
    Description

    Brand name of the product

  • Name
    subbrand
    Type
    string
    Description

    Sub brand name of the product

  • Name
    image
    Type
    string
    Description

    File name of the image of the product

  • Name
    qty
    Type
    number
    Description

    Quantity of product in the basket

  • Name
    displayOrder
    Type
    number
    Description

    Display order of the product in the basket

  • Name
    itemType
    Type
    number
    Description

    Type of item in the basket

  • Name
    displayInBasket
    Type
    boolean
    Description

    Flag to check if the product should be displayed in the basket

  • Name
    categoryItems
    Type
    array
    Description

    List of all the categories available

  • Name
    categoryId
    Type
    string
    Description

    Category Id to identify the cateogories

  • Name
    categoryName
    Type
    string
    Description

    Name of the category e.g. 'Shirts','Joggers', etc

  • Name
    parentCategoryId
    Type
    string
    Description

    Parent category Id to identify the parent category

  • Name
    parentCategoryName
    Type
    string
    Description

    Name of the Parent category e.g. 'Clothings'

  • Name
    attributesJson
    Type
    string
    Description

    JSON attributes of the product

  • Name
    customInfo1
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    customInfo2
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    customInfo3
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    customInfo4
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    customInfo5
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    isSubscription
    Type
    boolean
    Description

    Flag to check if the user has an active subscription

  • Name
    isMembership
    Type
    boolean
    Description

    Flag to check if the user has an active membership

  • Name
    subscriptionUserSettings
    Type
    object
    Description

    Settings for the users's subscription

  • Name
    subscriptionPlanId
    Type
    string
    Description

    Plan Id of the subscription

  • Name
    subscriptionTermId
    Type
    string
    Description

    Term Id of the subscription

  • Name
    userPricingType
    Type
    number
    Description

    Type of pricing for the user

  • Name
    subscriptionJson
    Type
    string
    Description

    JSON values for the subscription

  • Name
    authorizationAmount
    Type
    number
    Description

    Amount to be authorized for this subscription

  • Name
    shippingMethods
    Type
    array
    Description

    A List of shipping methods available for the products

  • Name
    id
    Type
    string
    Description

    Id to identify the shipping method

  • Name
    enabled
    Type
    boolean
    Description

    Flag to check if the shipping method is enabled

  • Name
    systemName
    Type
    string
    Description

    System name of the shipping methods

  • Name
    shippingCode
    Type
    string
    Description

    Shipping code used by the shipping method

  • Name
    displayName
    Type
    string
    Description

    Display name of the shipping method

  • Name
    description
    Type
    string
    Description

    Description of the shipping method

  • Name
    displayOrder
    Type
    number
    Description

    Display order of this shipping method in the list of shipping methods

  • Name
    expectedDaysToDeliver
    Type
    number
    Description

    Number of days before the expected delivery date

  • Name
    expectedDeliveryDate
    Type
    string
    Description

    Date and time of expected delivery of the product

  • Name
    deliveryOnOrBefore
    Type
    string
    Description

    The date on or before which date the product should be delivered

  • Name
    isDefault
    Type
    boolean
    Description

    Flag to check if this shipping method is the default shipping method

  • Name
    isNominated
    Type
    boolean
    Description

    Flag to check if this shipping method is the nominated shipping method

  • Name
    type
    Type
    number
    Description

    Type of this shipping mehtod

  • Name
    carrierCode
    Type
    string
    Description

    Carrier code of the delivery carrier

  • Name
    countryCode
    Type
    string
    Description

    Country code of the region of delivery

  • Name
    isPriceOnRequest
    Type
    boolean
    Description

    Flag to check if product is produced only for editorials and is never actually put into production for consumer purchase

  • Name
    showRecomendation
    Type
    boolean
    Description

    Flag to check if the recommendations for this product should be shown

  • Name
    recomendation
    Type
    string
    Description

    The recommendations for this product

  • Name
    isTaxable
    Type
    boolean
    Description

    Flag to check if this shipping method is taxable

  • Name
    shippingCostMethod
    Type
    number
    Description

    Used to select the type of shipping cost to be applied

  • Name
    cutOffTimes
    Type
    string
    Description

    It is the latest time in any Business Day that we can process a particular Transaction, request or instruction on that Business Day.

  • Name
    countryCsv
    Type
    string
    Description

    File name for the csv file having data of the countries

  • Name
    maxDimensionMm
    Type
    number
    Description

    Maximum dimensions of the package to be delivered in Millimeters

  • Name
    companyDiscount
    Type
    object
    Description

    The discount given on the original price of the products by the company to their employees

  • Name
    validUntil
    Type
    string
    Description

    The date time of the validity of the order for delivery

  • Name
    deliveryInstruction
    Type
    string
    Description

    Instructions for the delivery agent regarding the delivery

  • Name
    deliveryPlans
    Type
    array
    Description

    A list of delivery plans for the delivery of the order

  • Name
    fulfilmentChannel
    Type
    number
    Description

    The method by which sellers can sell items through various sales channels and have the company handle the packaging and shipping aspects for them

  • Name
    deliveryType
    Type
    number
    Description

    The type of delivery for the order

  • Name
    deliveryCenter
    Type
    object
    Description

    The details of the delivery center which will handle the delivery for this order

  • Name
    recordId
    Type
    string
    Description

    Record Id to identify the delivery center records

  • Name
    code
    Type
    string
    Description

    A code used by the delivery center

  • Name
    postCode
    Type
    string
    Description

    Postal code of the delivery center

  • Name
    latitude
    Type
    string
    Description

    Latitute of the geographical location of the delivery center

  • Name
    longitude
    Type
    string
    Description

    Longitute of the geographical location of the delivery center

  • Name
    items
    Type
    array
    Description

    The list of items to be delivered

  • Name
    distanceInMiles
    Type
    string
    Description

    The distance to the the delivery location in miles

  • Name
    shippingMethodName
    Type
    string
    Description

    The name of the shipping method used for shipping the product

  • Name
    cost
    Type
    number
    Description

    The cost of shipping the product

  • Name
    shippingSpeed
    Type
    string
    Description

    The rate at which the order will be shipped for deliery

  • Name
    deliveryDateTarget
    Type
    string
    Description

    The date and time target for the delivery of the order

  • Name
    deliveryDateActual
    Type
    string
    Description

    The date and time of the actual delivery of the order

  • Name
    leadTime
    Type
    number
    Description

    The amount of time that passes from the start of a process until its conclusion

  • Name
    leadTimeUom
    Type
    number
    Description

    The unit of measurement for the lead time

  • Name
    leadTimeMin
    Type
    number
    Description

    The minimum lead time for the order to be delivered

  • Name
    leadTimeMax
    Type
    number
    Description

    The maximum lead time for the order to be delivered

  • Name
    pickupStoreId
    Type
    string
    Description

    The id of stores from which the order can be collected

  • Name
    refStoreId
    Type
    string
    Description

    Reference Id of the store

  • Name
    pickupStoreCode
    Type
    string
    Description

    The store code for a pickup store

  • Name
    shippingType
    Type
    number
    Description

    The type of shipping used for delivery of the order

  • Name
    hasSubscription
    Type
    boolean
    Description

    Flag to check if the user has a subscription

  • Name
    subscriptionTotal
    Type
    object
    Description

    The total amount that must be paid by the user for the subscription

  • Name
    isGiftWrapApplied
    Type
    boolean
    Description

    Flag to check if Gift wrap is applied to the products

  • Name
    giftWrapId
    Type
    string
    Description

    Gift wrap Id to identify the gift warpped products in the basket

  • Name
    giftWrapOption
    Type
    string
    Description

    The gift wrapping options available for the products in the basket

  • Name
    membershipPlanId
    Type
    string
    Description

    Membership plan Id to identify the membership plan of the user

  • Name
    promotionsApplied
    Type
    array
    Description

    List of promotions applied on the products in the basket

  • Name
    voucherCode
    Type
    string
    Description

    Voucher code used to validate the offer and claim the benefits e.g. 'DISCOUNT15'

  • Name
    discountPct
    Type
    number
    Description

    Discount value applied on the product in Percentage

  • Name
    discountAmt
    Type
    object
    Description

    The amount of discount to be applied on the products in the basket

  • Name
    autoApply
    Type
    boolean
    Description

    Flag to check if the promotion has to be auto applied on the products

  • Name
    promoCode
    Type
    string
    Description

    Promotion code used to validate the offer e.g. 'DISCOUNT15'

  • Name
    itemGroupId
    Type
    number
    Description

    Id used to identify the group of items

  • Name
    couponProvider
    Type
    string
    Description

    The entity that provides the coupon to create an offer

  • Name
    isManualPrice
    Type
    boolean
    Description

    Flag to check if the Price is set Manually

  • Name
    priceMatchReqId
    Type
    string
    Description

    Id used to match the price requests

  • Name
    deliveryMessage
    Type
    string
    Description

    Message for the delivery agent provided by the user

  • Name
    variantProducts
    Type
    array
    Description

    A list of all available variants of the current product

  • Name
    productName
    Type
    string
    Description

    Product name of the variant product

  • Name
    variantAttributes
    Type
    array
    Description

    List of variant attributes of the product e.g. Size, Color

  • Name
    variantProductsAttribute
    Type
    array
    Description

    A list of variant attributes of the product

  • Name
    fieldName
    Type
    string
    Description

    Name of the variant attribute

  • Name
    fieldCode
    Type
    string
    Description

    Field code of the atrribute

  • Name
    fieldValues
    Type
    array
    Description

    A list of values for the variant attribute

  • Name
    currentStock
    Type
    number
    Description

    Number of products available in stock

Request

PUT
/api/v2/commerce/basket/:id/items/add
curl --location --request PUT 'https://api20.bettercommerce.io/api/v2/commerce/basket/:id/items/add' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Accept: application/json' \
--header 'UserId;' \
--header 'Email: abc@abc.com' \
--data '{
"basketId": "00000000-0000-0000-0000-000000000000",
"productId": "00000000-0000-0000-0000-000000000000",
"qty": 0,
"manualUnitPrice": 0,
"displayOrder": 0,
"stockCode": "string",
"itemType": 0,
"postCode": "string",
"parentProductId": "00000000-0000-0000-0000-000000000000",
"isSubscription": true,
"subscriptionPlanId": "00000000-0000-0000-0000-000000000000",
"subscriptionTermId": "00000000-0000-0000-0000-000000000000",
"userSubscriptionPricing": 0,
"giftWrapId": "string",
"isGiftWrapApplied": true,
"lineItemType": 0,
"customInfo1": "string",
"customInfo2": "string",
"customInfo3": "string",
"customInfo4": "string",
"customInfo5": "string",
"priceMatchReqId": "00000000-0000-0000-0000-000000000000",
"isMembership": true
}'

Response

{
"statusCode": 200,
"status": "OK",
"errors": [],
"success": true,
"message": "",
"messageCode": "",
"result": {
    "id": "8fb54fcf-7f31-4d8b-a5b6-e51ef56961d5",
    "currencySymbol": "€",
    "currencyCode": "EUR",
    "userId": "6c8a89de-459d-44e4-a70b-45af5b628c2d",
    "userEmail": "myemail@example.com",
    "grandTotal": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€99.99000",
            "withoutTax": "€99.99000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 99.99,
            "withoutTax": 99.99,
            "tax": 0
        }
    },
    "totalWithoutShipping": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€96.00000",
            "withoutTax": "€96.00000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 96,
            "withoutTax": 96,
            "tax": 0
        }
    },
    "shippingMethodId": "STD",
    "shippingCharge": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€3.99000",
            "withoutTax": "€3.99000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 3.99,
            "withoutTax": 3.99,
            "tax": 0
        }
    },
    "subTotal": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€99.99000",
            "withoutTax": "€99.99000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 99.99,
            "withoutTax": 99.99,
            "tax": 0
        }
    },
    "discount": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€.00000",
            "withoutTax": "€.00000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 0,
            "withoutTax": 0,
            "tax": 0
        }
    },
    "taxPercent": 0,
    "additionalCharge": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€.00000",
            "withoutTax": "€.00000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 0,
            "withoutTax": 0,
            "tax": 0
        }
    },
    "lineItems": [
        {
            "id": "0",
            "stockCode": "SKU-0001",
            "name": "Polo Shirt",
            "productId": "1C5D16AB-0497-462D-A0D2-B2F8F67335A1",
            "productIid": "0",
            "parentProductId": "",
            "brand": "Tommy Hilfiger",
            "subbrand": "Tommy Hilfiger",
            "price": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€24.00000",
                    "withoutTax": "€24.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 24,
                    "withoutTax": 24,
                    "tax": 0
                }
            },
            "subTotal": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€96.00000",
                    "withoutTax": "€96.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 96,
                    "withoutTax": 96,
                    "tax": 0
                }
            },
            "totalPrice": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€96.00000",
                    "withoutTax": "€96.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 96,
                    "withoutTax": 96,
                    "tax": 0
                }
            },
            "image": "image1.jeg",
            "qty": 4,
            "displayOrder": 1,
            "slug": "/product/SKU-0001",
            "itemType": 1,
            "displayInBasket": false,
            "categoryItems": [
                {
                    "categoryId": "5a69a70f-4b3a-41bd-96e4-224860fbd098",
                    "categoryName": "Shirt",
                    "parentCategoryId": "f4e70b9b-7d65-4dcd-a36c-e7f4775476b6",
                    "parentCategoryName": "Clothings"
                }
            ],
            "attributesJson": "",
            "customInfo1": "cust info 1",
            "customInfo2": "cust info 2",
            "customInfo3": "cust info 3",
            "customInfo4": "cust info 4",
            "customInfo5": "cust info 5",
            "discount": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€.00000",
                    "withoutTax": "€.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 0,
                    "withoutTax": 0,
                    "tax": 0
                }
            },
            "additionalCharge": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€.00000",
                    "withoutTax": "€.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 0,
                    "withoutTax": 0,
                    "tax": 0
                }
            },
            "shortDescription": "Polo Shirt Description",
            "companyDiscount": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€.00000",
                    "withoutTax": "€.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 0,
                    "withoutTax": 0,
                    "tax": 0
                }
            },
            "listPrice": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€24.00000",
                    "withoutTax": "€24.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 24,
                    "withoutTax": 24,
                    "tax": 0
                }
            },
            "isSubscription": false,
            "isMembership": false,
            "subscriptionUserSettings": {
                "subscriptionPlanId": "00000000-0000-0000-0000-000000000000",
                "subscriptionTermId": "00000000-0000-0000-0000-000000000000",
                "userPricingType": 0,
                "subscriptionJson": null,
                "authorizationAmount": 0
            },
            "promotionsApplied": [
                {
                    "voucherCode": "DISCOUNT15",
                    "discountPct": 0,
                    "discountAmt": {
                        "minPrice": 0,
                        "minPriceWithoutTax": 0,
                        "maxPrice": 0,
                        "maxPriceWithoutTax": 0,
                        "currencyDecimalSeparator": ".",
                        "currencyDigitsAfterDecimal": 2,
                        "currencySymbol": "€",
                        "formatted": {
                            "withTax": "€.00000",
                            "withoutTax": "€.00000",
                            "tax": "€.00000"
                        },
                        "raw": {
                            "withTax": 0,
                            "withoutTax": 0,
                            "tax": 0
                        }
                    },
                    "autoApply": false,
                    "promoCode": "DISCOUNT15",
                    "name": "Dummy Promo"
                }
            ],
            "isGiftWrapApplied": false,
            "giftWrapId": "00000000-0000-0000-0000-000000000000",
            "itemGroupId": 0,
            "couponProvider": "",
            "isManualPrice": false,
            "priceMatchReqId": "00000000-0000-0000-0000-000000000000",
            "deliveryMessage": " delivery message",
            "variantProducts": [
                {
                    "stockCode": null,
                    "productId": "00000000-0000-0000-0000-000000000000",
                    "price": {
                        "minPrice": 0,
                        "minPriceWithoutTax": 0,
                        "maxPrice": 0,
                        "maxPriceWithoutTax": 0,
                        "currencyDecimalSeparator": ".",
                        "currencyDigitsAfterDecimal": 2,
                        "currencySymbol": "€",
                        "formatted": {
                            "withTax": "€15.99000",
                            "withoutTax": "€15.99000",
                            "tax": "€.00000"
                        },
                        "raw": {
                            "withTax": 15.99,
                            "withoutTax": 15.99,
                            "tax": 0
                        }
                    },
                    "slug": null,
                    "image": "img.jpg",
                    "productName": "Variant SKU",
                    "variantAttributes": []
                }
            ],
            "variantProductsAttribute": [
                {
                    "fieldName": "color",
                    "fieldCode": "global.color",
                    "fieldValues": []
                }
            ],
            "currentStock": 999
        }
    ],
    "promotionsApplied": [
        {
            "voucherCode": null,
            "discountPct": 0,
            "discountAmt": null,
            "autoApply": false,
            "promoCode": null,
            "name": null
        }
    ],
    "shippingMethods": [
        {
            "id": "00000000-0000-0000-0000-000000000000",
            "enabled": false,
            "systemName": null,
            "shippingCode": null,
            "displayName": null,
            "description": null,
            "displayOrder": 0,
            "expectedDaysToDeliver": 0,
            "expectedDeliveryDate": "0001-01-01T00:00:00",
            "deliveryOnOrBefore": null,
            "price": {
                "currencySymbol": "£",
                "formatted": {
                    "withTax": "£0.00",
                    "withoutTax": "£0.00",
                    "tax": "£0.00"
                },
                "raw": {
                    "withTax": 0,
                    "withoutTax": 0,
                    "tax": 0
                }
            },
            "isDefault": false,
            "isNominated": false,
            "type": 0,
            "carrierCode": null,
            "countryCode": null,
            "isPriceOnRequest": false,
            "showRecomendation": false,
            "recomendation": null,
            "isTaxable": false,
            "shippingCostMethod": 0,
            "cutOffTimes": null,
            "countryCsv": null
        }
    ],
    "created": "0001-01-01T00:00:00",
    "lastUpdated": "0001-01-01T00:00:00",
    "isQuote": false,
    "quoteStatus": 0,
    "customInfo1": "cust info 1",
    "customInfo2": "cust info 2",
    "customInfo3": "cust info 3",
    "customInfo4": "cust info 4",
    "customInfo5": "cust info 5",
    "shippingAddress": {
        "id": 0,
        "title": "Mr.",
        "firstName": "FName",
        "lastName": "LName",
        "address1": "Address Line 1",
        "address2": "Address Line 2",
        "address3": "Address Line 3",
        "city": "London",
        "state": "London",
        "country": "United Kingdom",
        "countryCode": "UK",
        "postCode": null,
        "phoneNo": "9999999999",
        "mobileNo": null,
        "companyName": "My Company"
    },
    "billingAddress": {
        "id": 0,
        "title": "Mr.",
        "firstName": "FName",
        "lastName": "LName",
        "address1": "Address Line 1",
        "address2": "Address Line 2",
        "address3": "Address Line 3",
        "city": "London",
        "state": "London",
        "country": "United Kingdom",
        "countryCode": "UK",
        "postCode": null,
        "phoneNo": "9999999999",
        "mobileNo": null,
        "companyName": "My Company"
    },
    "postCode": "XX55YY",
    "maxDimensionMm": 0,
    "companyDiscount": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€.00000",
            "withoutTax": "€.00000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 0,
            "withoutTax": 0,
            "tax": 0
        }
    },
    "validUntil": "0001-01-01T00:00:00",
    "isLocked": false,
    "createdByAdmin": false,
    "poNumber": "PO00001",
    "deliveryInstruction": "Please read the give instructions",
    "deliveryPlans": [
        {
            "fulfilmentChannel": 0,
            "deliveryType": 0,
            "deliveryCenter": {
                "recordId": "00000000-0000-0000-0000-000000000000",
                "code": null,
                "name": null,
                "type": 0,
                "postCode": null,
                "latitude": null,
                "longitude": null
            },
            "items": [],
            "distanceInMiles": null,
            "shippingMethodId": "00000000-0000-0000-0000-000000000000",
            "shippingMethodName": null,
            "cost": 0,
            "shippingSpeed": " - ",
            "deliveryDateTarget": "2022-03-15T07:25:35.0706816Z",
            "deliveryDateActual": "0001-01-01T00:00:00",
            "leadTime": 0,
            "leadTimeUom": 0,
            "leadTimeMin": 0,
            "leadTimeMax": 0,
            "pickupStoreId": "00000000-0000-0000-0000-000000000000",
            "refStoreId": null,
            "pickupStoreCode": null,
            "shippingType": 0,
            "lineItems": null,
            "created": null,
            "recordId": "00000000-0000-0000-0000-000000000000"
        }
    ],
    "hasSubscription": false,
    "subscriptionTotal": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€.00000",
            "withoutTax": "€.00000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 0,
            "withoutTax": 0,
            "tax": 0
        }
    },
    "isGiftWrapApplied": false,
    "giftWrapId": "00000000-0000-0000-0000-000000000000",
    "giftWrapOption": null,
    "membershipPlanId": "00000000-0000-0000-0000-000000000000",
    "hasMembership": false,
    "exchangeRate": 1,
    "baseCurrency": "EUR",
    "microSiteId": "00000000-0000-0000-0000-000000000000",
    "baseCurrencyTotal": 99.99,
    "membershipDiscount": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€.00000",
            "withoutTax": "€.00000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 0,
            "withoutTax": 0,
            "tax": 0
        }
    }
}
}

PUT/api/v2/commerce/basket/:id/items/add-bulk

Bulk add items to basket.

This endpoint allows you to bulk add items to the basket, typically, used for adding personalisation / engraving item, 'buy look'

Developers - API Operations:

OperationEndpointResponse
Add to basket/api/v2/commerce/basket/:id/items/add-bulkBulk add items to basket.

Required attributes

  • Name
    Id
    Type
    string
    Description

    Id to identify the basket

  • Name
    basketLine
    Type
    model
    Description

    Item details to be added to the basket

Model Attributes

  • Name
    productId
    Type
    string
    Description

    Id used to identify the product

  • Name
    customInfo1
    Type
    string
    Description

    Custom information about the product given by the user

  • Name
    customInfo2
    Type
    string
    Description

    Custom information about the product given by the user

  • Name
    customInfo3
    Type
    string
    Description

    Custom information about the product given by the user

  • Name
    customInfo4
    Type
    string
    Description

    Custom information about the product given by the user

  • Name
    customInfo5
    Type
    string
    Description

    Custom information about the product given by the user

  • Name
    parentProductId
    Type
    string
    Description

    Id used to identify the parent product of the current product

  • Name
    qty
    Type
    number
    Description

    Quantity of the product in the basket

  • Name
    additionalCharge
    Type
    number
    Description

    Additional charges applied on the product

  • Name
    subscriptionPlanId
    Type
    string
    Description

    Subscription plan Id used to identify the subscription plan

  • Name
    subscriptionTermId
    Type
    string
    Description

    Subscription Term Id used to identify the subscription term

  • Name
    userPricingType
    Type
    number
    Description

    Subscription pricing type for the user

  • Name
    displayOrder
    Type
    number
    Description

    Order of the display associated with the product

  • Name
    stockCode
    Type
    string
    Description

    Stock code of the product

  • Name
    itemType
    Type
    number
    Description

    Type of item in the basket

  • Name
    postCode
    Type
    string
    Description

    Post code provided by the user

  • Name
    isSubscription
    Type
    boolean
    Description

    Flag to check if the user has an active subscription

  • Name
    userSubscriptionPricing
    Type
    number
    Description

    Pricing of the subscription package selected by the user

  • Name
    customInfo1Formatted
    Type
    string
    Description

    New Custom information about the product given by the user to be updated

  • Name
    customInfo2Formatted
    Type
    string
    Description

    New Custom information about the product given by the user to be updated

  • Name
    customInfo3Formatted
    Type
    string
    Description

    New Custom information about the product given by the user to be updated

  • Name
    customInfo4Formatted
    Type
    string
    Description

    New Custom information about the product given by the user to be updated

  • Name
    customInfo5Formatted
    Type
    string
    Description

    New Custom information about the product given by the user to be updated

Response Properties

  • Name
    statusCode
    Type
    number
    Description

    Status code of the response

  • Name
    status
    Type
    string
    Description

    Status of the response

  • Name
    errors
    Type
    array
    Description

    List of errors in the response

  • Name
    success
    Type
    boolean
    Description

    Success status of the response

  • Name
    message
    Type
    string
    Description

    Message of the response

  • Name
    messageCode
    Type
    string
    Description

    Message code of the response

  • Name
    result
    Type
    object
    Description

    Result of the response

  • Name
    id
    Type
    number
    Description

    Id to identify the user

  • Name
    currencySymbol
    Type
    string
    Description

    Currency Symbol for Price e.g £

  • Name
    currencyCode
    Type
    string
    Description

    Currency code according to the region e.g. GBP:'Great Britain Pound'

  • Name
    userId
    Type
    string
    Description

    User Id to identify the User

  • Name
    userEmail
    Type
    string
    Description

    User email provided by the user

  • Name
    shippingMethodId
    Type
    string
    Description

    Shipping method Id to identify the shipping method

  • Name
    subTotal
    Type
    object
    Description

    Sub total of the total price

  • Name
    shippingCharge
    Type
    object
    Description

    Shipping charges of the product in basket

  • Name
    formatted
    Type
    object
    Description

    Formatted price with and without tax

  • Name
    withTax
    Type
    string
    Description

    Price of basket item with Tax

  • Name
    withoutTax
    Type
    string
    Description

    Price of basket item without Tax

  • Name
    tax
    Type
    string
    Description

    Tax amount of basket item

  • Name
    raw
    Type
    object
    Description

    Raw price without discount

  • Name
    discount
    Type
    object
    Description

    Discount amount on the basket item

  • Name
    additionalCharge
    Type
    object
    Description

    Additional charges applied on the basket item

  • Name
    grandTotal
    Type
    object
    Description

    Grand total price of basket items

  • Name
    isLocked
    Type
    boolean
    Description

    Flag to check if the basket is locked

  • Name
    createdByAdmin
    Type
    boolean
    Description

    Flag to check if the basket is created by Admin

  • Name
    poNumber
    Type
    string
    Description

    P O Number of the basket

  • Name
    isQuote
    Type
    boolean
    Description

    Flag to check if the basket is a Quote

  • Name
    quoteStatus
    Type
    number
    Description

    Quote status of the basket

  • Name
    postCode
    Type
    string
    Description

    Post code of the user

  • Name
    hasMembership
    Type
    boolean
    Description

    Flag to check if the user has a membership

  • Name
    exchangeRate
    Type
    number
    Description

    Exchange rate of the currency

  • Name
    baseCurrency
    Type
    string
    Description

    Base currency of the region

  • Name
    microSiteId
    Type
    string
    Description

    Micro site Id of the site

  • Name
    baseCurrencyTotal
    Type
    number
    Description

    Total amount of the basket in base currency

  • Name
    membershipDiscount
    Type
    string
    Description

    Discount given to the user under their membership

  • Name
    created
    Type
    string
    Description

    Date and time when the basket was created

  • Name
    lastUpdated
    Type
    string
    Description

    Date and time when the basket was last updated

  • Name
    lineItems
    Type
    array
    Description

    Array of all the products added in to basket

  • Name
    stockCode
    Type
    string
    Description

    Stock code of the product

  • Name
    name
    Type
    string
    Description

    Name of the product

  • Name
    slug
    Type
    string
    Description

    Slug of the product used to navigate to the product

  • Name
    shortDescription
    Type
    string
    Description

    A short description of the product

  • Name
    productId
    Type
    string
    Description

    Product Id used to identify the product

  • Name
    productIid
    Type
    string
    Description

    Product Iid used to identify the product

  • Name
    parentProductId
    Type
    string
    Description

    Id of the parent product product, used to map personalized products with their parent product

  • Name
    price
    Type
    string
    Description

    Price of the product

  • Name
    totalPrice
    Type
    object
    Description

    Total price of the product

  • Name
    minPrice
    Type
    number
    Description

    Minimum price for the company

  • Name
    minPriceWithoutTax
    Type
    number
    Description

    Minimum price for the company without tax

  • Name
    maxPrice
    Type
    number
    Description

    Maximum price for the company

  • Name
    maxPriceWithoutTax
    Type
    number
    Description

    Maximum price for the company wihtout tax

  • Name
    currencyDecimalSeparator
    Type
    string
    Description

    Currency decimal separator for the region

  • Name
    currencyDigitsAfterDecimal
    Type
    number
    Description

    Digits after decimal for the currency

  • Name
    id
    Type
    string
    Description

    id to identify the user

  • Name
    title
    Type
    string
    Description

    Title of the user e.g. Miss./Mrs./Mr.

  • Name
    firstName
    Type
    string
    Description

    First name of the user

  • Name
    lastName
    Type
    string
    Description

    Last name of the user

  • Name
    address1
    Type
    string
    Description

    Address Line 1 provided by the user

  • Name
    address2
    Type
    string
    Description

    Address Line 2 provided by the user

  • Name
    address3
    Type
    string
    Description

    Address Line 3 provided by the user

  • Name
    city
    Type
    string
    Description

    City name provided by the user

  • Name
    state
    Type
    string
    Description

    State name provided by the user

  • Name
    country
    Type
    string
    Description

    Country name provided by the user

  • Name
    countryCode
    Type
    string
    Description

    Country code provided by the user

  • Name
    postCode
    Type
    string
    Description

    Post code provided by the user

  • Name
    phoneNo
    Type
    string
    Description

    Phone number of the user

  • Name
    mobileNo
    Type
    string
    Description

    Mobile number of the user

  • Name
    companyName
    Type
    string
    Description

    Name of the company provided by the user

  • Name
    displayOrder
    Type
    number
    Description

    Order of the display associated with the product

  • Name
    totalWithoutShipping
    Type
    object
    Description

    Total price of the basket without shipping charges

  • Name
    taxPercent
    Type
    number
    Description

    Amount of tax applied in percentage

  • Name
    brand
    Type
    string
    Description

    Brand name of the product

  • Name
    subbrand
    Type
    string
    Description

    Sub brand name of the product

  • Name
    image
    Type
    string
    Description

    File name of the image of the product

  • Name
    qty
    Type
    number
    Description

    Quantity of product in the basket

  • Name
    displayOrder
    Type
    number
    Description

    Display order of the product in the basket

  • Name
    itemType
    Type
    number
    Description

    Type of item in the basket

  • Name
    displayInBasket
    Type
    boolean
    Description

    Flag to check if the product should be displayed in the basket

  • Name
    categoryItems
    Type
    array
    Description

    List of all the categories available

  • Name
    categoryId
    Type
    string
    Description

    Category Id to identify the cateogories

  • Name
    categoryName
    Type
    string
    Description

    Name of the category e.g. 'Shirts','Joggers', etc

  • Name
    parentCategoryId
    Type
    string
    Description

    Parent category Id to identify the parent category

  • Name
    parentCategoryName
    Type
    string
    Description

    Name of the Parent category e.g. 'Clothings'

  • Name
    attributesJson
    Type
    string
    Description

    JSON attributes of the product

  • Name
    customInfo1
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    customInfo2
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    customInfo3
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    customInfo4
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    customInfo5
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    isSubscription
    Type
    boolean
    Description

    Flag to check if the user has an active subscription

  • Name
    isMembership
    Type
    boolean
    Description

    Flag to check if the user has an active membership

  • Name
    subscriptionUserSettings
    Type
    object
    Description

    Settings for the users's subscription

  • Name
    subscriptionPlanId
    Type
    string
    Description

    Plan Id of the subscription

  • Name
    subscriptionTermId
    Type
    string
    Description

    Term Id of the subscription

  • Name
    userPricingType
    Type
    number
    Description

    Type of pricing for the user

  • Name
    subscriptionJson
    Type
    string
    Description

    JSON values for the subscription

  • Name
    authorizationAmount
    Type
    number
    Description

    Amount to be authorized for this subscription

  • Name
    shippingMethods
    Type
    array
    Description

    A List of shipping methods available for the products

  • Name
    id
    Type
    string
    Description

    Id to identify the shipping method

  • Name
    enabled
    Type
    boolean
    Description

    Flag to check if the shipping method is enabled

  • Name
    systemName
    Type
    string
    Description

    System name of the shipping methods

  • Name
    shippingCode
    Type
    string
    Description

    Shipping code used by the shipping method

  • Name
    displayName
    Type
    string
    Description

    Display name of the shipping method

  • Name
    description
    Type
    string
    Description

    Description of the shipping method

  • Name
    displayOrder
    Type
    number
    Description

    Display order of this shipping method in the list of shipping methods

  • Name
    expectedDaysToDeliver
    Type
    number
    Description

    Number of days before the expected delivery date

  • Name
    expectedDeliveryDate
    Type
    string
    Description

    Date and time of expected delivery of the product

  • Name
    deliveryOnOrBefore
    Type
    string
    Description

    The date on or before which date the product should be delivered

  • Name
    isDefault
    Type
    boolean
    Description

    Flag to check if this shipping method is the default shipping method

  • Name
    isNominated
    Type
    boolean
    Description

    Flag to check if this shipping method is the nominated shipping method

  • Name
    type
    Type
    number
    Description

    Type of this shipping mehtod

  • Name
    carrierCode
    Type
    string
    Description

    Carrier code of the delivery carrier

  • Name
    countryCode
    Type
    string
    Description

    Country code of the region of delivery

  • Name
    isPriceOnRequest
    Type
    boolean
    Description

    Flag to check if product is produced only for editorials and is never actually put into production for consumer purchase

  • Name
    showRecomendation
    Type
    boolean
    Description

    Flag to check if the recommendations for this product should be shown

  • Name
    recomendation
    Type
    string
    Description

    The recommendations for this product

  • Name
    isTaxable
    Type
    boolean
    Description

    Flag to check if this shipping method is taxable

  • Name
    shippingCostMethod
    Type
    number
    Description

    Used to select the type of shipping cost to be applied

  • Name
    cutOffTimes
    Type
    string
    Description

    It is the latest time in any Business Day that we can process a particular Transaction, request or instruction on that Business Day.

  • Name
    countryCsv
    Type
    string
    Description

    File name for the csv file having data of the countries

  • Name
    maxDimensionMm
    Type
    number
    Description

    Maximum dimensions of the package to be delivered in Millimeters

  • Name
    companyDiscount
    Type
    object
    Description

    The discount given on the original price of the products by the company to their employees

  • Name
    validUntil
    Type
    string
    Description

    The date time of the validity of the order for delivery

  • Name
    deliveryInstruction
    Type
    string
    Description

    Instructions for the delivery agent regarding the delivery

  • Name
    deliveryPlans
    Type
    array
    Description

    A list of delivery plans for the delivery of the order

  • Name
    fulfilmentChannel
    Type
    number
    Description

    The method by which sellers can sell items through various sales channels and have the company handle the packaging and shipping aspects for them

  • Name
    deliveryType
    Type
    number
    Description

    The type of delivery for the order

  • Name
    deliveryCenter
    Type
    object
    Description

    The details of the delivery center which will handle the delivery for this order

  • Name
    recordId
    Type
    string
    Description

    Record Id to identify the delivery center records

  • Name
    code
    Type
    string
    Description

    A code used by the delivery center

  • Name
    postCode
    Type
    string
    Description

    Postal code of the delivery center

  • Name
    latitude
    Type
    string
    Description

    Latitute of the geographical location of the delivery center

  • Name
    longitude
    Type
    string
    Description

    Longitute of the geographical location of the delivery center

  • Name
    items
    Type
    array
    Description

    The list of items to be delivered

  • Name
    distanceInMiles
    Type
    string
    Description

    The distance to the the delivery location in miles

  • Name
    shippingMethodName
    Type
    string
    Description

    The name of the shipping method used for shipping the product

  • Name
    cost
    Type
    number
    Description

    The cost of shipping the product

  • Name
    shippingSpeed
    Type
    string
    Description

    The rate at which the order will be shipped for deliery

  • Name
    deliveryDateTarget
    Type
    string
    Description

    The date and time target for the delivery of the order

  • Name
    deliveryDateActual
    Type
    string
    Description

    The date and time of the actual delivery of the order

  • Name
    leadTime
    Type
    number
    Description

    The amount of time that passes from the start of a process until its conclusion

  • Name
    leadTimeUom
    Type
    number
    Description

    The unit of measurement for the lead time

  • Name
    leadTimeMin
    Type
    number
    Description

    The minimum lead time for the order to be delivered

  • Name
    leadTimeMax
    Type
    number
    Description

    The maximum lead time for the order to be delivered

  • Name
    pickupStoreId
    Type
    string
    Description

    The id of stores from which the order can be collected

  • Name
    refStoreId
    Type
    string
    Description

    Reference Id of the store

  • Name
    pickupStoreCode
    Type
    string
    Description

    The store code for a pickup store

  • Name
    shippingType
    Type
    number
    Description

    The type of shipping used for delivery of the order

  • Name
    hasSubscription
    Type
    boolean
    Description

    Flag to check if the user has a subscription

  • Name
    subscriptionTotal
    Type
    object
    Description

    The total amount that must be paid by the user for the subscription

  • Name
    isGiftWrapApplied
    Type
    boolean
    Description

    Flag to check if Gift wrap is applied to the products

  • Name
    giftWrapId
    Type
    string
    Description

    Gift wrap Id to identify the gift warpped products in the basket

  • Name
    giftWrapOption
    Type
    string
    Description

    The gift wrapping options available for the products in the basket

  • Name
    membershipPlanId
    Type
    string
    Description

    Membership plan Id to identify the membership plan of the user

  • Name
    promotionsApplied
    Type
    array
    Description

    List of promotions applied on the products in the basket

  • Name
    voucherCode
    Type
    string
    Description

    Voucher code used to validate the offer and claim the benefits e.g. 'DISCOUNT15'

  • Name
    discountPct
    Type
    number
    Description

    Discount value applied on the product in Percentage

  • Name
    discountAmt
    Type
    object
    Description

    The amount of discount to be applied on the products in the basket

  • Name
    autoApply
    Type
    boolean
    Description

    Flag to check if the promotion has to be auto applied on the products

  • Name
    promoCode
    Type
    string
    Description

    Promotion code used to validate the offer e.g. 'DISCOUNT15'

  • Name
    itemGroupId
    Type
    number
    Description

    Id used to identify the group of items

  • Name
    couponProvider
    Type
    string
    Description

    The entity that provides the coupon to create an offer

  • Name
    isManualPrice
    Type
    boolean
    Description

    Flag to check if the Price is set Manually

  • Name
    priceMatchReqId
    Type
    string
    Description

    Id used to match the price requests

  • Name
    deliveryMessage
    Type
    string
    Description

    Message for the delivery agent provided by the user

  • Name
    variantProducts
    Type
    array
    Description

    A list of all available variants of the current product

  • Name
    productName
    Type
    string
    Description

    Product name of the variant product

  • Name
    variantAttributes
    Type
    array
    Description

    List of variant attributes of the product e.g. Size, Color

  • Name
    variantProductsAttribute
    Type
    array
    Description

    A list of variant attributes of the product

  • Name
    fieldName
    Type
    string
    Description

    Name of the variant attribute

  • Name
    fieldCode
    Type
    string
    Description

    Field code of the atrribute

  • Name
    fieldValues
    Type
    array
    Description

    A list of values for the variant attribute

  • Name
    currentStock
    Type
    number
    Description

    Number of products available in stock

Request

PUT
/api/v2/commerce/basket/:id/items/add-bulk
curl --location --request PUT 'https://api20.bettercommerce.io/api/v2/commerce/basket/:id/items/add-bulk' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Accept: application/json' \
--header 'UserId;' \
--header 'Email: abc@abc.com' \
--data '[
{
"productId": "string",
"stockCode": "string",
"productName": "string",
"parentProductId": "string",
"qty": 0,
"itemType": 0,
"customInfo1": "string",
"customInfo2": "string",
"customInfo3": "string",
"customInfo4": "string",
"customInfo5": "string",
"customInfo1Formatted": "string",
"customInfo2Formatted": "string",
"customInfo3Formatted": "string",
"customInfo4Formatted": "string",
"customInfo5Formatted": "string",
"postCode": "string",
"isSubscription": true,
"subscriptionPlanId": "00000000-0000-0000-0000-000000000000",
"subscriptionTermId": "00000000-0000-0000-0000-000000000000",
"userSubscriptionPricing": 0,
"displayOrder": 0
}
]'

Response

{
"statusCode": 200,
"status": "OK",
"errors": [],
"success": true,
"message": "",
"messageCode": "",
"result": {
    "id": "3c690d12-bd39-44be-9dcb-fb6b04dd1322",
    "currencySymbol": "€",
    "currencyCode": "EUR",
    "userId": "c026915c-2c4a-4f13-aa15-33269d14c812",
    "userEmail": "myemail@example.com",
    "grandTotal": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€99.99000",
            "withoutTax": "€99.99000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 99.99,
            "withoutTax": 99.99,
            "tax": 0
        }
    },
    "totalWithoutShipping": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€96.00000",
            "withoutTax": "€96.00000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 96,
            "withoutTax": 96,
            "tax": 0
        }
    },
    "shippingMethodId": "STD",
    "shippingCharge": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€3.99000",
            "withoutTax": "€3.99000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 3.99,
            "withoutTax": 3.99,
            "tax": 0
        }
    },
    "subTotal": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€99.99000",
            "withoutTax": "€99.99000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 99.99,
            "withoutTax": 99.99,
            "tax": 0
        }
    },
    "discount": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€.00000",
            "withoutTax": "€.00000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 0,
            "withoutTax": 0,
            "tax": 0
        }
    },
    "taxPercent": 0,
    "additionalCharge": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€.00000",
            "withoutTax": "€.00000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 0,
            "withoutTax": 0,
            "tax": 0
        }
    },
    "lineItems": [
        {
            "id": "0",
            "stockCode": "SKU-0001",
            "name": "Polo Shirt",
            "productId": "1C5D16AB-0497-462D-A0D2-B2F8F67335A1",
            "productIid": "0",
            "parentProductId": "",
            "brand": "Tommy Hilfiger",
            "subbrand": "Tommy Hilfiger",
            "price": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€24.00000",
                    "withoutTax": "€24.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 24,
                    "withoutTax": 24,
                    "tax": 0
                }
            },
            "subTotal": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€96.00000",
                    "withoutTax": "€96.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 96,
                    "withoutTax": 96,
                    "tax": 0
                }
            },
            "totalPrice": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€96.00000",
                    "withoutTax": "€96.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 96,
                    "withoutTax": 96,
                    "tax": 0
                }
            },
            "image": "image1.jeg",
            "qty": 4,
            "displayOrder": 1,
            "slug": "/product/SKU-0001",
            "itemType": 1,
            "displayInBasket": false,
            "categoryItems": [
                {
                    "categoryId": "e5fa7212-8062-430d-9dae-c3b4a21baadb",
                    "categoryName": "Shirt",
                    "parentCategoryId": "44ff9ee8-7927-4bbc-9e33-be0da3234191",
                    "parentCategoryName": "Clothings"
                }
            ],
            "attributesJson": "",
            "customInfo1": "cust info 1",
            "customInfo2": "cust info 2",
            "customInfo3": "cust info 3",
            "customInfo4": "cust info 4",
            "customInfo5": "cust info 5",
            "discount": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€.00000",
                    "withoutTax": "€.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 0,
                    "withoutTax": 0,
                    "tax": 0
                }
            },
            "additionalCharge": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€.00000",
                    "withoutTax": "€.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 0,
                    "withoutTax": 0,
                    "tax": 0
                }
            },
            "shortDescription": "Polo Shirt Description",
            "companyDiscount": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€.00000",
                    "withoutTax": "€.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 0,
                    "withoutTax": 0,
                    "tax": 0
                }
            },
            "listPrice": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€24.00000",
                    "withoutTax": "€24.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 24,
                    "withoutTax": 24,
                    "tax": 0
                }
            },
            "isSubscription": false,
            "isMembership": false,
            "subscriptionUserSettings": {
                "subscriptionPlanId": "00000000-0000-0000-0000-000000000000",
                "subscriptionTermId": "00000000-0000-0000-0000-000000000000",
                "userPricingType": 0,
                "subscriptionJson": null,
                "authorizationAmount": 0
            },
            "promotionsApplied": [
                {
                    "voucherCode": "DISCOUNT15",
                    "discountPct": 0,
                    "discountAmt": {
                        "minPrice": 0,
                        "minPriceWithoutTax": 0,
                        "maxPrice": 0,
                        "maxPriceWithoutTax": 0,
                        "currencyDecimalSeparator": ".",
                        "currencyDigitsAfterDecimal": 2,
                        "currencySymbol": "€",
                        "formatted": {
                            "withTax": "€.00000",
                            "withoutTax": "€.00000",
                            "tax": "€.00000"
                        },
                        "raw": {
                            "withTax": 0,
                            "withoutTax": 0,
                            "tax": 0
                        }
                    },
                    "autoApply": false,
                    "promoCode": "DISCOUNT15",
                    "name": "Dummy Promo"
                }
            ],
            "isGiftWrapApplied": false,
            "giftWrapId": "00000000-0000-0000-0000-000000000000",
            "itemGroupId": 0,
            "couponProvider": "",
            "isManualPrice": false,
            "priceMatchReqId": "00000000-0000-0000-0000-000000000000",
            "deliveryMessage": " delivery message",
            "variantProducts": [
                {
                    "stockCode": null,
                    "productId": "00000000-0000-0000-0000-000000000000",
                    "price": {
                        "minPrice": 0,
                        "minPriceWithoutTax": 0,
                        "maxPrice": 0,
                        "maxPriceWithoutTax": 0,
                        "currencyDecimalSeparator": ".",
                        "currencyDigitsAfterDecimal": 2,
                        "currencySymbol": "€",
                        "formatted": {
                            "withTax": "€15.99000",
                            "withoutTax": "€15.99000",
                            "tax": "€.00000"
                        },
                        "raw": {
                            "withTax": 15.99,
                            "withoutTax": 15.99,
                            "tax": 0
                        }
                    },
                    "slug": null,
                    "image": "img.jpg",
                    "productName": "Variant SKU",
                    "variantAttributes": []
                }
            ],
            "variantProductsAttribute": [
                {
                    "fieldName": "color",
                    "fieldCode": "global.color",
                    "fieldValues": []
                }
            ],
            "currentStock": 999
        }
    ],
    "promotionsApplied": [
        {
            "voucherCode": null,
            "discountPct": 0,
            "discountAmt": null,
            "autoApply": false,
            "promoCode": null,
            "name": null
        }
    ],
    "shippingMethods": [
        {
            "id": "00000000-0000-0000-0000-000000000000",
            "enabled": false,
            "systemName": null,
            "shippingCode": null,
            "displayName": null,
            "description": null,
            "displayOrder": 0,
            "expectedDaysToDeliver": 0,
            "expectedDeliveryDate": "0001-01-01T00:00:00",
            "deliveryOnOrBefore": null,
            "price": {
                "currencySymbol": "£",
                "formatted": {
                    "withTax": "£0.00",
                    "withoutTax": "£0.00",
                    "tax": "£0.00"
                },
                "raw": {
                    "withTax": 0,
                    "withoutTax": 0,
                    "tax": 0
                }
            },
            "isDefault": false,
            "isNominated": false,
            "type": 0,
            "carrierCode": null,
            "countryCode": null,
            "isPriceOnRequest": false,
            "showRecomendation": false,
            "recomendation": null,
            "isTaxable": false,
            "shippingCostMethod": 0,
            "cutOffTimes": null,
            "countryCsv": null
        }
    ],
    "created": "0001-01-01T00:00:00",
    "lastUpdated": "0001-01-01T00:00:00",
    "isQuote": false,
    "quoteStatus": 0,
    "customInfo1": "cust info 1",
    "customInfo2": "cust info 2",
    "customInfo3": "cust info 3",
    "customInfo4": "cust info 4",
    "customInfo5": "cust info 5",
    "shippingAddress": {
        "id": 0,
        "title": "Mr.",
        "firstName": "FName",
        "lastName": "LName",
        "address1": "Address Line 1",
        "address2": "Address Line 2",
        "address3": "Address Line 3",
        "city": "London",
        "state": "London",
        "country": "United Kingdom",
        "countryCode": "UK",
        "postCode": null,
        "phoneNo": "9999999999",
        "mobileNo": null,
        "companyName": "My Company"
    },
    "billingAddress": {
        "id": 0,
        "title": "Mr.",
        "firstName": "FName",
        "lastName": "LName",
        "address1": "Address Line 1",
        "address2": "Address Line 2",
        "address3": "Address Line 3",
        "city": "London",
        "state": "London",
        "country": "United Kingdom",
        "countryCode": "UK",
        "postCode": null,
        "phoneNo": "9999999999",
        "mobileNo": null,
        "companyName": "My Company"
    },
    "postCode": "XX55YY",
    "maxDimensionMm": 0,
    "companyDiscount": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€.00000",
            "withoutTax": "€.00000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 0,
            "withoutTax": 0,
            "tax": 0
        }
    },
    "validUntil": "0001-01-01T00:00:00",
    "isLocked": false,
    "createdByAdmin": false,
    "poNumber": "PO00001",
    "deliveryInstruction": "Please read the give instructions",
    "deliveryPlans": [
        {
            "fulfilmentChannel": 0,
            "deliveryType": 0,
            "deliveryCenter": {
                "recordId": "00000000-0000-0000-0000-000000000000",
                "code": null,
                "name": null,
                "type": 0,
                "postCode": null,
                "latitude": null,
                "longitude": null
            },
            "items": [],
            "distanceInMiles": null,
            "shippingMethodId": "00000000-0000-0000-0000-000000000000",
            "shippingMethodName": null,
            "cost": 0,
            "shippingSpeed": " - ",
            "deliveryDateTarget": "2022-03-15T07:25:35.0706816Z",
            "deliveryDateActual": "0001-01-01T00:00:00",
            "leadTime": 0,
            "leadTimeUom": 0,
            "leadTimeMin": 0,
            "leadTimeMax": 0,
            "pickupStoreId": "00000000-0000-0000-0000-000000000000",
            "refStoreId": null,
            "pickupStoreCode": null,
            "shippingType": 0,
            "lineItems": null,
            "created": null,
            "recordId": "00000000-0000-0000-0000-000000000000"
        }
    ],
    "hasSubscription": false,
    "subscriptionTotal": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€.00000",
            "withoutTax": "€.00000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 0,
            "withoutTax": 0,
            "tax": 0
        }
    },
    "isGiftWrapApplied": false,
    "giftWrapId": "00000000-0000-0000-0000-000000000000",
    "giftWrapOption": null,
    "membershipPlanId": "00000000-0000-0000-0000-000000000000",
    "hasMembership": false,
    "exchangeRate": 1,
    "baseCurrency": "EUR",
    "microSiteId": "00000000-0000-0000-0000-000000000000",
    "baseCurrencyTotal": 99.99,
    "membershipDiscount": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€.00000",
            "withoutTax": "€.00000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 0,
            "withoutTax": 0,
            "tax": 0
        }
    }
}
}

PUT/api/v2/commerce/basket/:id/items/display-order

Update display order of items in basket.

This endpoint allows you to update the display order of items in the basket

Developers - API Operations:

OperationEndpointResponse
Update basket/api/v2/commerce/basket/:id/items/display-orderUpdate display order of items in basket.

Required attributes

  • Name
    Id
    Type
    string
    Description

    Id to identify the basket

  • Name
    basketLine
    Type
    model
    Description

    Basket Line items with desired display order

Model Attributes

  • Name
    Id
    Type
    string
    Description

    Id used to identify the basket

  • Name
    displayOrder
    Type
    number
    Description

    Order of the display associated with the product

Response Properties

  • Name
    statusCode
    Type
    number
    Description

    Status code of the response

  • Name
    status
    Type
    string
    Description

    Status of the response

  • Name
    errors
    Type
    array
    Description

    List of errors in the response

  • Name
    success
    Type
    boolean
    Description

    Success status of the response

  • Name
    message
    Type
    string
    Description

    Message of the response

  • Name
    messageCode
    Type
    string
    Description

    Message code of the response

  • Name
    result
    Type
    boolean
    Description

    Result of the response

Request

PUT
/api/v2/commerce/basket/:id/items/add-bulk
curl --location --request PUT 'https://api20.bettercommerce.io/api/v2/commerce/basket/:id/items/display-order' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Accept: application/json' \
--header 'UserId;' \
--header 'Email: abc@abc.com' \
--data '[
{
"id": "string",
"displayOrder": 0
}
]'

Response

{
"statusCode": null,
"status": "minim nisi voluptate proident",
"errors": [
    "eu occaecat",
    "qui sunt Ut"
],
"success": true,
"message": "reprehenderit Lorem",
"messageCode": "dolor qui irure culpa",
"result": true
}

DELETE/api/v2/commerce/basket/:id/items/:productId/remove

Remove item from basket.

This endpoint allows you to update the display order of items in the basket

Developers - API Operations:

OperationEndpointResponse
Remove from basket/api/v2/commerce/basket/:id/items/:productId/removeRemove item from basket.

Required attributes

  • Name
    Id
    Type
    string
    Description

    Id to identify the basket

  • Name
    productId
    Type
    string
    Description

    Product Id to identify the product to be removed

Response Properties

  • Name
    statusCode
    Type
    number
    Description

    Status code of the response

  • Name
    status
    Type
    string
    Description

    Status of the response

  • Name
    errors
    Type
    array
    Description

    List of errors in the response

  • Name
    success
    Type
    boolean
    Description

    Success status of the response

  • Name
    message
    Type
    string
    Description

    Message of the response

  • Name
    messageCode
    Type
    string
    Description

    Message code of the response

  • Name
    result
    Type
    object
    Description

    Result of the response

  • Name
    id
    Type
    number
    Description

    Id to identify the user

  • Name
    currencySymbol
    Type
    string
    Description

    Currency Symbol for Price e.g £

  • Name
    currencyCode
    Type
    string
    Description

    Currency code according to the region e.g. GBP:'Great Britain Pound'

  • Name
    userId
    Type
    string
    Description

    User Id to identify the User

  • Name
    userEmail
    Type
    string
    Description

    User email provided by the user

  • Name
    shippingMethodId
    Type
    string
    Description

    Shipping method Id to identify the shipping method

  • Name
    subTotal
    Type
    object
    Description

    Sub total of the total price

  • Name
    shippingCharge
    Type
    object
    Description

    Shipping charges of the product in basket

  • Name
    formatted
    Type
    object
    Description

    Formatted price with and without tax

  • Name
    withTax
    Type
    string
    Description

    Price of basket item with Tax

  • Name
    withoutTax
    Type
    string
    Description

    Price of basket item without Tax

  • Name
    tax
    Type
    string
    Description

    Tax amount of basket item

  • Name
    raw
    Type
    object
    Description

    Raw price without discount

  • Name
    discount
    Type
    object
    Description

    Discount amount on the basket item

  • Name
    additionalCharge
    Type
    object
    Description

    Additional charges applied on the basket item

  • Name
    grandTotal
    Type
    object
    Description

    Grand total price of basket items

  • Name
    isLocked
    Type
    boolean
    Description

    Flag to check if the basket is locked

  • Name
    createdByAdmin
    Type
    boolean
    Description

    Flag to check if the basket is created by Admin

  • Name
    poNumber
    Type
    string
    Description

    P O Number of the basket

  • Name
    isQuote
    Type
    boolean
    Description

    Flag to check if the basket is a Quote

  • Name
    quoteStatus
    Type
    number
    Description

    Quote status of the basket

  • Name
    postCode
    Type
    string
    Description

    Post code of the user

  • Name
    hasMembership
    Type
    boolean
    Description

    Flag to check if the user has a membership

  • Name
    exchangeRate
    Type
    number
    Description

    Exchange rate of the currency

  • Name
    baseCurrency
    Type
    string
    Description

    Base currency of the region

  • Name
    microSiteId
    Type
    string
    Description

    Micro site Id of the site

  • Name
    baseCurrencyTotal
    Type
    number
    Description

    Total amount of the basket in base currency

  • Name
    membershipDiscount
    Type
    string
    Description

    Discount given to the user under their membership

  • Name
    created
    Type
    string
    Description

    Date and time when the basket was created

  • Name
    lastUpdated
    Type
    string
    Description

    Date and time when the basket was last updated

  • Name
    lineItems
    Type
    array
    Description

    Array of all the products added in to basket

  • Name
    stockCode
    Type
    string
    Description

    Stock code of the product

  • Name
    name
    Type
    string
    Description

    Name of the product

  • Name
    slug
    Type
    string
    Description

    Slug of the product used to navigate to the product

  • Name
    shortDescription
    Type
    string
    Description

    A short description of the product

  • Name
    productId
    Type
    string
    Description

    Product Id used to identify the product

  • Name
    productIid
    Type
    string
    Description

    Product Iid used to identify the product

  • Name
    parentProductId
    Type
    string
    Description

    Id of the parent product product, used to map personalized products with their parent product

  • Name
    price
    Type
    string
    Description

    Price of the product

  • Name
    totalPrice
    Type
    object
    Description

    Total price of the product

  • Name
    minPrice
    Type
    number
    Description

    Minimum price for the company

  • Name
    minPriceWithoutTax
    Type
    number
    Description

    Minimum price for the company without tax

  • Name
    maxPrice
    Type
    number
    Description

    Maximum price for the company

  • Name
    maxPriceWithoutTax
    Type
    number
    Description

    Maximum price for the company wihtout tax

  • Name
    currencyDecimalSeparator
    Type
    string
    Description

    Currency decimal separator for the region

  • Name
    currencyDigitsAfterDecimal
    Type
    number
    Description

    Digits after decimal for the currency

  • Name
    id
    Type
    string
    Description

    id to identify the user

  • Name
    title
    Type
    string
    Description

    Title of the user e.g. Miss./Mrs./Mr.

  • Name
    firstName
    Type
    string
    Description

    First name of the user

  • Name
    lastName
    Type
    string
    Description

    Last name of the user

  • Name
    address1
    Type
    string
    Description

    Address Line 1 provided by the user

  • Name
    address2
    Type
    string
    Description

    Address Line 2 provided by the user

  • Name
    address3
    Type
    string
    Description

    Address Line 3 provided by the user

  • Name
    city
    Type
    string
    Description

    City name provided by the user

  • Name
    state
    Type
    string
    Description

    State name provided by the user

  • Name
    country
    Type
    string
    Description

    Country name provided by the user

  • Name
    countryCode
    Type
    string
    Description

    Country code provided by the user

  • Name
    postCode
    Type
    string
    Description

    Post code provided by the user

  • Name
    phoneNo
    Type
    string
    Description

    Phone number of the user

  • Name
    mobileNo
    Type
    string
    Description

    Mobile number of the user

  • Name
    companyName
    Type
    string
    Description

    Name of the company provided by the user

  • Name
    displayOrder
    Type
    number
    Description

    Order of the display associated with the product

  • Name
    totalWithoutShipping
    Type
    object
    Description

    Total price of the basket without shipping charges

  • Name
    taxPercent
    Type
    number
    Description

    Amount of tax applied in percentage

  • Name
    brand
    Type
    string
    Description

    Brand name of the product

  • Name
    subbrand
    Type
    string
    Description

    Sub brand name of the product

  • Name
    image
    Type
    string
    Description

    File name of the image of the product

  • Name
    qty
    Type
    number
    Description

    Quantity of product in the basket

  • Name
    displayOrder
    Type
    number
    Description

    Display order of the product in the basket

  • Name
    itemType
    Type
    number
    Description

    Type of item in the basket

  • Name
    displayInBasket
    Type
    boolean
    Description

    Flag to check if the product should be displayed in the basket

  • Name
    categoryItems
    Type
    array
    Description

    List of all the categories available

  • Name
    categoryId
    Type
    string
    Description

    Category Id to identify the cateogories

  • Name
    categoryName
    Type
    string
    Description

    Name of the category e.g. 'Shirts','Joggers', etc

  • Name
    parentCategoryId
    Type
    string
    Description

    Parent category Id to identify the parent category

  • Name
    parentCategoryName
    Type
    string
    Description

    Name of the Parent category e.g. 'Clothings'

  • Name
    attributesJson
    Type
    string
    Description

    JSON attributes of the product

  • Name
    customInfo1
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    customInfo2
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    customInfo3
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    customInfo4
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    customInfo5
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    isSubscription
    Type
    boolean
    Description

    Flag to check if the user has an active subscription

  • Name
    isMembership
    Type
    boolean
    Description

    Flag to check if the user has an active membership

  • Name
    subscriptionUserSettings
    Type
    object
    Description

    Settings for the users's subscription

  • Name
    subscriptionPlanId
    Type
    string
    Description

    Plan Id of the subscription

  • Name
    subscriptionTermId
    Type
    string
    Description

    Term Id of the subscription

  • Name
    userPricingType
    Type
    number
    Description

    Type of pricing for the user

  • Name
    subscriptionJson
    Type
    string
    Description

    JSON values for the subscription

  • Name
    authorizationAmount
    Type
    number
    Description

    Amount to be authorized for this subscription

  • Name
    shippingMethods
    Type
    array
    Description

    A List of shipping methods available for the products

  • Name
    id
    Type
    string
    Description

    Id to identify the shipping method

  • Name
    enabled
    Type
    boolean
    Description

    Flag to check if the shipping method is enabled

  • Name
    systemName
    Type
    string
    Description

    System name of the shipping methods

  • Name
    shippingCode
    Type
    string
    Description

    Shipping code used by the shipping method

  • Name
    displayName
    Type
    string
    Description

    Display name of the shipping method

  • Name
    description
    Type
    string
    Description

    Description of the shipping method

  • Name
    displayOrder
    Type
    number
    Description

    Display order of this shipping method in the list of shipping methods

  • Name
    expectedDaysToDeliver
    Type
    number
    Description

    Number of days before the expected delivery date

  • Name
    expectedDeliveryDate
    Type
    string
    Description

    Date and time of expected delivery of the product

  • Name
    deliveryOnOrBefore
    Type
    string
    Description

    The date on or before which date the product should be delivered

  • Name
    isDefault
    Type
    boolean
    Description

    Flag to check if this shipping method is the default shipping method

  • Name
    isNominated
    Type
    boolean
    Description

    Flag to check if this shipping method is the nominated shipping method

  • Name
    type
    Type
    number
    Description

    Type of this shipping mehtod

  • Name
    carrierCode
    Type
    string
    Description

    Carrier code of the delivery carrier

  • Name
    countryCode
    Type
    string
    Description

    Country code of the region of delivery

  • Name
    isPriceOnRequest
    Type
    boolean
    Description

    Flag to check if product is produced only for editorials and is never actually put into production for consumer purchase

  • Name
    showRecomendation
    Type
    boolean
    Description

    Flag to check if the recommendations for this product should be shown

  • Name
    recomendation
    Type
    string
    Description

    The recommendations for this product

  • Name
    isTaxable
    Type
    boolean
    Description

    Flag to check if this shipping method is taxable

  • Name
    shippingCostMethod
    Type
    number
    Description

    Used to select the type of shipping cost to be applied

  • Name
    cutOffTimes
    Type
    string
    Description

    It is the latest time in any Business Day that we can process a particular Transaction, request or instruction on that Business Day.

  • Name
    countryCsv
    Type
    string
    Description

    File name for the csv file having data of the countries

  • Name
    maxDimensionMm
    Type
    number
    Description

    Maximum dimensions of the package to be delivered in Millimeters

  • Name
    companyDiscount
    Type
    object
    Description

    The discount given on the original price of the products by the company to their employees

  • Name
    validUntil
    Type
    string
    Description

    The date time of the validity of the order for delivery

  • Name
    deliveryInstruction
    Type
    string
    Description

    Instructions for the delivery agent regarding the delivery

  • Name
    deliveryPlans
    Type
    array
    Description

    A list of delivery plans for the delivery of the order

  • Name
    fulfilmentChannel
    Type
    number
    Description

    The method by which sellers can sell items through various sales channels and have the company handle the packaging and shipping aspects for them

  • Name
    deliveryType
    Type
    number
    Description

    The type of delivery for the order

  • Name
    deliveryCenter
    Type
    object
    Description

    The details of the delivery center which will handle the delivery for this order

  • Name
    recordId
    Type
    string
    Description

    Record Id to identify the delivery center records

  • Name
    code
    Type
    string
    Description

    A code used by the delivery center

  • Name
    postCode
    Type
    string
    Description

    Postal code of the delivery center

  • Name
    latitude
    Type
    string
    Description

    Latitute of the geographical location of the delivery center

  • Name
    longitude
    Type
    string
    Description

    Longitute of the geographical location of the delivery center

  • Name
    items
    Type
    array
    Description

    The list of items to be delivered

  • Name
    distanceInMiles
    Type
    string
    Description

    The distance to the the delivery location in miles

  • Name
    shippingMethodName
    Type
    string
    Description

    The name of the shipping method used for shipping the product

  • Name
    cost
    Type
    number
    Description

    The cost of shipping the product

  • Name
    shippingSpeed
    Type
    string
    Description

    The rate at which the order will be shipped for deliery

  • Name
    deliveryDateTarget
    Type
    string
    Description

    The date and time target for the delivery of the order

  • Name
    deliveryDateActual
    Type
    string
    Description

    The date and time of the actual delivery of the order

  • Name
    leadTime
    Type
    number
    Description

    The amount of time that passes from the start of a process until its conclusion

  • Name
    leadTimeUom
    Type
    number
    Description

    The unit of measurement for the lead time

  • Name
    leadTimeMin
    Type
    number
    Description

    The minimum lead time for the order to be delivered

  • Name
    leadTimeMax
    Type
    number
    Description

    The maximum lead time for the order to be delivered

  • Name
    pickupStoreId
    Type
    string
    Description

    The id of stores from which the order can be collected

  • Name
    refStoreId
    Type
    string
    Description

    Reference Id of the store

  • Name
    pickupStoreCode
    Type
    string
    Description

    The store code for a pickup store

  • Name
    shippingType
    Type
    number
    Description

    The type of shipping used for delivery of the order

  • Name
    hasSubscription
    Type
    boolean
    Description

    Flag to check if the user has a subscription

  • Name
    subscriptionTotal
    Type
    object
    Description

    The total amount that must be paid by the user for the subscription

  • Name
    isGiftWrapApplied
    Type
    boolean
    Description

    Flag to check if Gift wrap is applied to the products

  • Name
    giftWrapId
    Type
    string
    Description

    Gift wrap Id to identify the gift warpped products in the basket

  • Name
    giftWrapOption
    Type
    string
    Description

    The gift wrapping options available for the products in the basket

  • Name
    membershipPlanId
    Type
    string
    Description

    Membership plan Id to identify the membership plan of the user

  • Name
    promotionsApplied
    Type
    array
    Description

    List of promotions applied on the products in the basket

  • Name
    voucherCode
    Type
    string
    Description

    Voucher code used to validate the offer and claim the benefits e.g. 'DISCOUNT15'

  • Name
    discountPct
    Type
    number
    Description

    Discount value applied on the product in Percentage

  • Name
    discountAmt
    Type
    object
    Description

    The amount of discount to be applied on the products in the basket

  • Name
    autoApply
    Type
    boolean
    Description

    Flag to check if the promotion has to be auto applied on the products

  • Name
    promoCode
    Type
    string
    Description

    Promotion code used to validate the offer e.g. 'DISCOUNT15'

  • Name
    itemGroupId
    Type
    number
    Description

    Id used to identify the group of items

  • Name
    couponProvider
    Type
    string
    Description

    The entity that provides the coupon to create an offer

  • Name
    isManualPrice
    Type
    boolean
    Description

    Flag to check if the Price is set Manually

  • Name
    priceMatchReqId
    Type
    string
    Description

    Id used to match the price requests

  • Name
    deliveryMessage
    Type
    string
    Description

    Message for the delivery agent provided by the user

  • Name
    variantProducts
    Type
    array
    Description

    A list of all available variants of the current product

  • Name
    productName
    Type
    string
    Description

    Product name of the variant product

  • Name
    variantAttributes
    Type
    array
    Description

    List of variant attributes of the product e.g. Size, Color

  • Name
    variantProductsAttribute
    Type
    array
    Description

    A list of variant attributes of the product

  • Name
    fieldName
    Type
    string
    Description

    Name of the variant attribute

  • Name
    fieldCode
    Type
    string
    Description

    Field code of the atrribute

  • Name
    fieldValues
    Type
    array
    Description

    A list of values for the variant attribute

  • Name
    currentStock
    Type
    number
    Description

    Number of products available in stock

Request

DELETE
/api/v2/commerce/basket/:id/items/:productId/remove
curl --location --request DELETE 'https://api20.bettercommerce.io/api/v2/commerce/basket/:id/items/265badde-ee82-401a-95a7-ad5e0048ca58/remove' \
--header 'Accept: application/json' \
--header 'UserId;' \
--header 'Email: abc@abc.com'

Response

{
"statusCode": 200,
"status": "OK",
"errors": [],
"success": true,
"message": "",
"messageCode": "",
"result": {
    "id": "64a2de8f-ad99-48e7-8ee3-d0926b34799e",
    "currencySymbol": "€",
    "currencyCode": "EUR",
    "userId": "fe0963d4-7cf6-4cbb-a464-4cad786603f2",
    "userEmail": "myemail@example.com",
    "grandTotal": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€99.99000",
            "withoutTax": "€99.99000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 99.99,
            "withoutTax": 99.99,
            "tax": 0
        }
    },
    "totalWithoutShipping": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€96.00000",
            "withoutTax": "€96.00000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 96,
            "withoutTax": 96,
            "tax": 0
        }
    },
    "shippingMethodId": "STD",
    "shippingCharge": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€3.99000",
            "withoutTax": "€3.99000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 3.99,
            "withoutTax": 3.99,
            "tax": 0
        }
    },
    "subTotal": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€99.99000",
            "withoutTax": "€99.99000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 99.99,
            "withoutTax": 99.99,
            "tax": 0
        }
    },
    "discount": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€.00000",
            "withoutTax": "€.00000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 0,
            "withoutTax": 0,
            "tax": 0
        }
    },
    "taxPercent": 0,
    "additionalCharge": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€.00000",
            "withoutTax": "€.00000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 0,
            "withoutTax": 0,
            "tax": 0
        }
    },
    "lineItems": [
        {
            "id": "0",
            "stockCode": "SKU-0001",
            "name": "Polo Shirt",
            "productId": "1C5D16AB-0497-462D-A0D2-B2F8F67335A1",
            "productIid": "0",
            "parentProductId": "",
            "brand": "Tommy Hilfiger",
            "subbrand": "Tommy Hilfiger",
            "price": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€24.00000",
                    "withoutTax": "€24.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 24,
                    "withoutTax": 24,
                    "tax": 0
                }
            },
            "subTotal": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€96.00000",
                    "withoutTax": "€96.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 96,
                    "withoutTax": 96,
                    "tax": 0
                }
            },
            "totalPrice": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€96.00000",
                    "withoutTax": "€96.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 96,
                    "withoutTax": 96,
                    "tax": 0
                }
            },
            "image": "image1.jeg",
            "qty": 4,
            "displayOrder": 1,
            "slug": "/product/SKU-0001",
            "itemType": 1,
            "displayInBasket": false,
            "categoryItems": [
                {
                    "categoryId": "54a809a5-c044-4165-af88-d01002118911",
                    "categoryName": "Shirt",
                    "parentCategoryId": "63219569-cd7a-44f2-828f-033d1fcfcc55",
                    "parentCategoryName": "Clothings"
                }
            ],
            "attributesJson": "",
            "customInfo1": "cust info 1",
            "customInfo2": "cust info 2",
            "customInfo3": "cust info 3",
            "customInfo4": "cust info 4",
            "customInfo5": "cust info 5",
            "discount": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€.00000",
                    "withoutTax": "€.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 0,
                    "withoutTax": 0,
                    "tax": 0
                }
            },
            "additionalCharge": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€.00000",
                    "withoutTax": "€.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 0,
                    "withoutTax": 0,
                    "tax": 0
                }
            },
            "shortDescription": "Polo Shirt Description",
            "companyDiscount": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€.00000",
                    "withoutTax": "€.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 0,
                    "withoutTax": 0,
                    "tax": 0
                }
            },
            "listPrice": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€24.00000",
                    "withoutTax": "€24.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 24,
                    "withoutTax": 24,
                    "tax": 0
                }
            },
            "isSubscription": false,
            "isMembership": false,
            "subscriptionUserSettings": {
                "subscriptionPlanId": "00000000-0000-0000-0000-000000000000",
                "subscriptionTermId": "00000000-0000-0000-0000-000000000000",
                "userPricingType": 0,
                "subscriptionJson": null,
                "authorizationAmount": 0
            },
            "promotionsApplied": [
                {
                    "voucherCode": "DISCOUNT15",
                    "discountPct": 0,
                    "discountAmt": {
                        "minPrice": 0,
                        "minPriceWithoutTax": 0,
                        "maxPrice": 0,
                        "maxPriceWithoutTax": 0,
                        "currencyDecimalSeparator": ".",
                        "currencyDigitsAfterDecimal": 2,
                        "currencySymbol": "€",
                        "formatted": {
                            "withTax": "€.00000",
                            "withoutTax": "€.00000",
                            "tax": "€.00000"
                        },
                        "raw": {
                            "withTax": 0,
                            "withoutTax": 0,
                            "tax": 0
                        }
                    },
                    "autoApply": false,
                    "promoCode": "DISCOUNT15",
                    "name": "Dummy Promo"
                }
            ],
            "isGiftWrapApplied": false,
            "giftWrapId": "00000000-0000-0000-0000-000000000000",
            "itemGroupId": 0,
            "couponProvider": "",
            "isManualPrice": false,
            "priceMatchReqId": "00000000-0000-0000-0000-000000000000",
            "deliveryMessage": " delivery message",
            "variantProducts": [
                {
                    "stockCode": null,
                    "productId": "00000000-0000-0000-0000-000000000000",
                    "price": {
                        "minPrice": 0,
                        "minPriceWithoutTax": 0,
                        "maxPrice": 0,
                        "maxPriceWithoutTax": 0,
                        "currencyDecimalSeparator": ".",
                        "currencyDigitsAfterDecimal": 2,
                        "currencySymbol": "€",
                        "formatted": {
                            "withTax": "€15.99000",
                            "withoutTax": "€15.99000",
                            "tax": "€.00000"
                        },
                        "raw": {
                            "withTax": 15.99,
                            "withoutTax": 15.99,
                            "tax": 0
                        }
                    },
                    "slug": null,
                    "image": "img.jpg",
                    "productName": "Variant SKU",
                    "variantAttributes": []
                }
            ],
            "variantProductsAttribute": [
                {
                    "fieldName": "color",
                    "fieldCode": "global.color",
                    "fieldValues": []
                }
            ],
            "currentStock": 999
        }
    ],
    "promotionsApplied": [
        {
            "voucherCode": null,
            "discountPct": 0,
            "discountAmt": null,
            "autoApply": false,
            "promoCode": null,
            "name": null
        }
    ],
    "shippingMethods": [
        {
            "id": "00000000-0000-0000-0000-000000000000",
            "enabled": false,
            "systemName": null,
            "shippingCode": null,
            "displayName": null,
            "description": null,
            "displayOrder": 0,
            "expectedDaysToDeliver": 0,
            "expectedDeliveryDate": "0001-01-01T00:00:00",
            "deliveryOnOrBefore": null,
            "price": {
                "currencySymbol": "£",
                "formatted": {
                    "withTax": "£0.00",
                    "withoutTax": "£0.00",
                    "tax": "£0.00"
                },
                "raw": {
                    "withTax": 0,
                    "withoutTax": 0,
                    "tax": 0
                }
            },
            "isDefault": false,
            "isNominated": false,
            "type": 0,
            "carrierCode": null,
            "countryCode": null,
            "isPriceOnRequest": false,
            "showRecomendation": false,
            "recomendation": null,
            "isTaxable": false,
            "shippingCostMethod": 0,
            "cutOffTimes": null,
            "countryCsv": null
        }
    ],
    "created": "0001-01-01T00:00:00",
    "lastUpdated": "0001-01-01T00:00:00",
    "isQuote": false,
    "quoteStatus": 0,
    "customInfo1": "cust info 1",
    "customInfo2": "cust info 2",
    "customInfo3": "cust info 3",
    "customInfo4": "cust info 4",
    "customInfo5": "cust info 5",
    "shippingAddress": {
        "id": 0,
        "title": "Mr.",
        "firstName": "FName",
        "lastName": "LName",
        "address1": "Address Line 1",
        "address2": "Address Line 2",
        "address3": "Address Line 3",
        "city": "London",
        "state": "London",
        "country": "United Kingdom",
        "countryCode": "UK",
        "postCode": null,
        "phoneNo": "9999999999",
        "mobileNo": null,
        "companyName": "My Company"
    },
    "billingAddress": {
        "id": 0,
        "title": "Mr.",
        "firstName": "FName",
        "lastName": "LName",
        "address1": "Address Line 1",
        "address2": "Address Line 2",
        "address3": "Address Line 3",
        "city": "London",
        "state": "London",
        "country": "United Kingdom",
        "countryCode": "UK",
        "postCode": null,
        "phoneNo": "9999999999",
        "mobileNo": null,
        "companyName": "My Company"
    },
    "postCode": "XX55YY",
    "maxDimensionMm": 0,
    "companyDiscount": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€.00000",
            "withoutTax": "€.00000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 0,
            "withoutTax": 0,
            "tax": 0
        }
    },
    "validUntil": "0001-01-01T00:00:00",
    "isLocked": false,
    "createdByAdmin": false,
    "poNumber": "PO00001",
    "deliveryInstruction": "Please read the give instructions",
    "deliveryPlans": [
        {
            "fulfilmentChannel": 0,
            "deliveryType": 0,
            "deliveryCenter": {
                "recordId": "00000000-0000-0000-0000-000000000000",
                "code": null,
                "name": null,
                "type": 0,
                "postCode": null,
                "latitude": null,
                "longitude": null
            },
            "items": [],
            "distanceInMiles": null,
            "shippingMethodId": "00000000-0000-0000-0000-000000000000",
            "shippingMethodName": null,
            "cost": 0,
            "shippingSpeed": " - ",
            "deliveryDateTarget": "2022-03-15T07:25:35.0706816Z",
            "deliveryDateActual": "0001-01-01T00:00:00",
            "leadTime": 0,
            "leadTimeUom": 0,
            "leadTimeMin": 0,
            "leadTimeMax": 0,
            "pickupStoreId": "00000000-0000-0000-0000-000000000000",
            "refStoreId": null,
            "pickupStoreCode": null,
            "shippingType": 0,
            "lineItems": null,
            "created": null,
            "recordId": "00000000-0000-0000-0000-000000000000"
        }
    ],
    "hasSubscription": false,
    "subscriptionTotal": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€.00000",
            "withoutTax": "€.00000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 0,
            "withoutTax": 0,
            "tax": 0
        }
    },
    "isGiftWrapApplied": false,
    "giftWrapId": "00000000-0000-0000-0000-000000000000",
    "giftWrapOption": null,
    "membershipPlanId": "00000000-0000-0000-0000-000000000000",
    "hasMembership": false,
    "exchangeRate": 1,
    "baseCurrency": "EUR",
    "microSiteId": "00000000-0000-0000-0000-000000000000",
    "baseCurrencyTotal": 99.99,
    "membershipDiscount": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€.00000",
            "withoutTax": "€.00000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 0,
            "withoutTax": 0,
            "tax": 0
        }
    }
}
}

PUT/api/v2/commerce/basket/:id/items/:productId/:qty

Update product qty in basket.

This endpoint allows you to update the quantity of a product in the basket

Developers - API Operations:

OperationEndpointResponse
Update basket/api/v2/commerce/basket/:id/items/:productId/:qtyUpdate product quantity in basket.

Required attributes

  • Name
    Id
    Type
    string
    Description

    Id to identify the basket

  • Name
    productId
    Type
    string
    Description

    Product Id to identify the product to be removed

  • Name
    qty
    Type
    string
    Description

    New Quantity of the product to be updated

Response Properties

  • Name
    statusCode
    Type
    number
    Description

    Status code of the response

  • Name
    status
    Type
    string
    Description

    Status of the response

  • Name
    errors
    Type
    array
    Description

    List of errors in the response

  • Name
    success
    Type
    boolean
    Description

    Success status of the response

  • Name
    message
    Type
    string
    Description

    Message of the response

  • Name
    messageCode
    Type
    string
    Description

    Message code of the response

  • Name
    result
    Type
    object
    Description

    Result of the response

  • Name
    id
    Type
    number
    Description

    Id to identify the user

  • Name
    currencySymbol
    Type
    string
    Description

    Currency Symbol for Price e.g £

  • Name
    currencyCode
    Type
    string
    Description

    Currency code according to the region e.g. GBP:'Great Britain Pound'

  • Name
    userId
    Type
    string
    Description

    User Id to identify the User

  • Name
    userEmail
    Type
    string
    Description

    User email provided by the user

  • Name
    shippingMethodId
    Type
    string
    Description

    Shipping method Id to identify the shipping method

  • Name
    subTotal
    Type
    object
    Description

    Sub total of the total price

  • Name
    shippingCharge
    Type
    object
    Description

    Shipping charges of the product in basket

  • Name
    formatted
    Type
    object
    Description

    Formatted price with and without tax

  • Name
    withTax
    Type
    string
    Description

    Price of basket item with Tax

  • Name
    withoutTax
    Type
    string
    Description

    Price of basket item without Tax

  • Name
    tax
    Type
    string
    Description

    Tax amount of basket item

  • Name
    raw
    Type
    object
    Description

    Raw price without discount

  • Name
    discount
    Type
    object
    Description

    Discount amount on the basket item

  • Name
    additionalCharge
    Type
    object
    Description

    Additional charges applied on the basket item

  • Name
    grandTotal
    Type
    object
    Description

    Grand total price of basket items

  • Name
    isLocked
    Type
    boolean
    Description

    Flag to check if the basket is locked

  • Name
    createdByAdmin
    Type
    boolean
    Description

    Flag to check if the basket is created by Admin

  • Name
    poNumber
    Type
    string
    Description

    P O Number of the basket

  • Name
    isQuote
    Type
    boolean
    Description

    Flag to check if the basket is a Quote

  • Name
    quoteStatus
    Type
    number
    Description

    Quote status of the basket

  • Name
    postCode
    Type
    string
    Description

    Post code of the user

  • Name
    hasMembership
    Type
    boolean
    Description

    Flag to check if the user has a membership

  • Name
    exchangeRate
    Type
    number
    Description

    Exchange rate of the currency

  • Name
    baseCurrency
    Type
    string
    Description

    Base currency of the region

  • Name
    microSiteId
    Type
    string
    Description

    Micro site Id of the site

  • Name
    baseCurrencyTotal
    Type
    number
    Description

    Total amount of the basket in base currency

  • Name
    membershipDiscount
    Type
    string
    Description

    Discount given to the user under their membership

  • Name
    created
    Type
    string
    Description

    Date and time when the basket was created

  • Name
    lastUpdated
    Type
    string
    Description

    Date and time when the basket was last updated

  • Name
    lineItems
    Type
    array
    Description

    Array of all the products added in to basket

  • Name
    stockCode
    Type
    string
    Description

    Stock code of the product

  • Name
    name
    Type
    string
    Description

    Name of the product

  • Name
    slug
    Type
    string
    Description

    Slug of the product used to navigate to the product

  • Name
    shortDescription
    Type
    string
    Description

    A short description of the product

  • Name
    productId
    Type
    string
    Description

    Product Id used to identify the product

  • Name
    productIid
    Type
    string
    Description

    Product Iid used to identify the product

  • Name
    parentProductId
    Type
    string
    Description

    Id of the parent product product, used to map personalized products with their parent product

  • Name
    price
    Type
    string
    Description

    Price of the product

  • Name
    totalPrice
    Type
    object
    Description

    Total price of the product

  • Name
    minPrice
    Type
    number
    Description

    Minimum price for the company

  • Name
    minPriceWithoutTax
    Type
    number
    Description

    Minimum price for the company without tax

  • Name
    maxPrice
    Type
    number
    Description

    Maximum price for the company

  • Name
    maxPriceWithoutTax
    Type
    number
    Description

    Maximum price for the company wihtout tax

  • Name
    currencyDecimalSeparator
    Type
    string
    Description

    Currency decimal separator for the region

  • Name
    currencyDigitsAfterDecimal
    Type
    number
    Description

    Digits after decimal for the currency

  • Name
    id
    Type
    string
    Description

    id to identify the user

  • Name
    title
    Type
    string
    Description

    Title of the user e.g. Miss./Mrs./Mr.

  • Name
    firstName
    Type
    string
    Description

    First name of the user

  • Name
    lastName
    Type
    string
    Description

    Last name of the user

  • Name
    address1
    Type
    string
    Description

    Address Line 1 provided by the user

  • Name
    address2
    Type
    string
    Description

    Address Line 2 provided by the user

  • Name
    address3
    Type
    string
    Description

    Address Line 3 provided by the user

  • Name
    city
    Type
    string
    Description

    City name provided by the user

  • Name
    state
    Type
    string
    Description

    State name provided by the user

  • Name
    country
    Type
    string
    Description

    Country name provided by the user

  • Name
    countryCode
    Type
    string
    Description

    Country code provided by the user

  • Name
    postCode
    Type
    string
    Description

    Post code provided by the user

  • Name
    phoneNo
    Type
    string
    Description

    Phone number of the user

  • Name
    mobileNo
    Type
    string
    Description

    Mobile number of the user

  • Name
    companyName
    Type
    string
    Description

    Name of the company provided by the user

  • Name
    displayOrder
    Type
    number
    Description

    Order of the display associated with the product

  • Name
    totalWithoutShipping
    Type
    object
    Description

    Total price of the basket without shipping charges

  • Name
    taxPercent
    Type
    number
    Description

    Amount of tax applied in percentage

  • Name
    brand
    Type
    string
    Description

    Brand name of the product

  • Name
    subbrand
    Type
    string
    Description

    Sub brand name of the product

  • Name
    image
    Type
    string
    Description

    File name of the image of the product

  • Name
    qty
    Type
    number
    Description

    Quantity of product in the basket

  • Name
    displayOrder
    Type
    number
    Description

    Display order of the product in the basket

  • Name
    itemType
    Type
    number
    Description

    Type of item in the basket

  • Name
    displayInBasket
    Type
    boolean
    Description

    Flag to check if the product should be displayed in the basket

  • Name
    categoryItems
    Type
    array
    Description

    List of all the categories available

  • Name
    categoryId
    Type
    string
    Description

    Category Id to identify the cateogories

  • Name
    categoryName
    Type
    string
    Description

    Name of the category e.g. 'Shirts','Joggers', etc

  • Name
    parentCategoryId
    Type
    string
    Description

    Parent category Id to identify the parent category

  • Name
    parentCategoryName
    Type
    string
    Description

    Name of the Parent category e.g. 'Clothings'

  • Name
    attributesJson
    Type
    string
    Description

    JSON attributes of the product

  • Name
    customInfo1
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    customInfo2
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    customInfo3
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    customInfo4
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    customInfo5
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    isSubscription
    Type
    boolean
    Description

    Flag to check if the user has an active subscription

  • Name
    isMembership
    Type
    boolean
    Description

    Flag to check if the user has an active membership

  • Name
    subscriptionUserSettings
    Type
    object
    Description

    Settings for the users's subscription

  • Name
    subscriptionPlanId
    Type
    string
    Description

    Plan Id of the subscription

  • Name
    subscriptionTermId
    Type
    string
    Description

    Term Id of the subscription

  • Name
    userPricingType
    Type
    number
    Description

    Type of pricing for the user

  • Name
    subscriptionJson
    Type
    string
    Description

    JSON values for the subscription

  • Name
    authorizationAmount
    Type
    number
    Description

    Amount to be authorized for this subscription

  • Name
    shippingMethods
    Type
    array
    Description

    A List of shipping methods available for the products

  • Name
    id
    Type
    string
    Description

    Id to identify the shipping method

  • Name
    enabled
    Type
    boolean
    Description

    Flag to check if the shipping method is enabled

  • Name
    systemName
    Type
    string
    Description

    System name of the shipping methods

  • Name
    shippingCode
    Type
    string
    Description

    Shipping code used by the shipping method

  • Name
    displayName
    Type
    string
    Description

    Display name of the shipping method

  • Name
    description
    Type
    string
    Description

    Description of the shipping method

  • Name
    displayOrder
    Type
    number
    Description

    Display order of this shipping method in the list of shipping methods

  • Name
    expectedDaysToDeliver
    Type
    number
    Description

    Number of days before the expected delivery date

  • Name
    expectedDeliveryDate
    Type
    string
    Description

    Date and time of expected delivery of the product

  • Name
    deliveryOnOrBefore
    Type
    string
    Description

    The date on or before which date the product should be delivered

  • Name
    isDefault
    Type
    boolean
    Description

    Flag to check if this shipping method is the default shipping method

  • Name
    isNominated
    Type
    boolean
    Description

    Flag to check if this shipping method is the nominated shipping method

  • Name
    type
    Type
    number
    Description

    Type of this shipping mehtod

  • Name
    carrierCode
    Type
    string
    Description

    Carrier code of the delivery carrier

  • Name
    countryCode
    Type
    string
    Description

    Country code of the region of delivery

  • Name
    isPriceOnRequest
    Type
    boolean
    Description

    Flag to check if product is produced only for editorials and is never actually put into production for consumer purchase

  • Name
    showRecomendation
    Type
    boolean
    Description

    Flag to check if the recommendations for this product should be shown

  • Name
    recomendation
    Type
    string
    Description

    The recommendations for this product

  • Name
    isTaxable
    Type
    boolean
    Description

    Flag to check if this shipping method is taxable

  • Name
    shippingCostMethod
    Type
    number
    Description

    Used to select the type of shipping cost to be applied

  • Name
    cutOffTimes
    Type
    string
    Description

    It is the latest time in any Business Day that we can process a particular Transaction, request or instruction on that Business Day.

  • Name
    countryCsv
    Type
    string
    Description

    File name for the csv file having data of the countries

  • Name
    maxDimensionMm
    Type
    number
    Description

    Maximum dimensions of the package to be delivered in Millimeters

  • Name
    companyDiscount
    Type
    object
    Description

    The discount given on the original price of the products by the company to their employees

  • Name
    validUntil
    Type
    string
    Description

    The date time of the validity of the order for delivery

  • Name
    deliveryInstruction
    Type
    string
    Description

    Instructions for the delivery agent regarding the delivery

  • Name
    deliveryPlans
    Type
    array
    Description

    A list of delivery plans for the delivery of the order

  • Name
    fulfilmentChannel
    Type
    number
    Description

    The method by which sellers can sell items through various sales channels and have the company handle the packaging and shipping aspects for them

  • Name
    deliveryType
    Type
    number
    Description

    The type of delivery for the order

  • Name
    deliveryCenter
    Type
    object
    Description

    The details of the delivery center which will handle the delivery for this order

  • Name
    recordId
    Type
    string
    Description

    Record Id to identify the delivery center records

  • Name
    code
    Type
    string
    Description

    A code used by the delivery center

  • Name
    postCode
    Type
    string
    Description

    Postal code of the delivery center

  • Name
    latitude
    Type
    string
    Description

    Latitute of the geographical location of the delivery center

  • Name
    longitude
    Type
    string
    Description

    Longitute of the geographical location of the delivery center

  • Name
    items
    Type
    array
    Description

    The list of items to be delivered

  • Name
    distanceInMiles
    Type
    string
    Description

    The distance to the the delivery location in miles

  • Name
    shippingMethodName
    Type
    string
    Description

    The name of the shipping method used for shipping the product

  • Name
    cost
    Type
    number
    Description

    The cost of shipping the product

  • Name
    shippingSpeed
    Type
    string
    Description

    The rate at which the order will be shipped for deliery

  • Name
    deliveryDateTarget
    Type
    string
    Description

    The date and time target for the delivery of the order

  • Name
    deliveryDateActual
    Type
    string
    Description

    The date and time of the actual delivery of the order

  • Name
    leadTime
    Type
    number
    Description

    The amount of time that passes from the start of a process until its conclusion

  • Name
    leadTimeUom
    Type
    number
    Description

    The unit of measurement for the lead time

  • Name
    leadTimeMin
    Type
    number
    Description

    The minimum lead time for the order to be delivered

  • Name
    leadTimeMax
    Type
    number
    Description

    The maximum lead time for the order to be delivered

  • Name
    pickupStoreId
    Type
    string
    Description

    The id of stores from which the order can be collected

  • Name
    refStoreId
    Type
    string
    Description

    Reference Id of the store

  • Name
    pickupStoreCode
    Type
    string
    Description

    The store code for a pickup store

  • Name
    shippingType
    Type
    number
    Description

    The type of shipping used for delivery of the order

  • Name
    hasSubscription
    Type
    boolean
    Description

    Flag to check if the user has a subscription

  • Name
    subscriptionTotal
    Type
    object
    Description

    The total amount that must be paid by the user for the subscription

  • Name
    isGiftWrapApplied
    Type
    boolean
    Description

    Flag to check if Gift wrap is applied to the products

  • Name
    giftWrapId
    Type
    string
    Description

    Gift wrap Id to identify the gift warpped products in the basket

  • Name
    giftWrapOption
    Type
    string
    Description

    The gift wrapping options available for the products in the basket

  • Name
    membershipPlanId
    Type
    string
    Description

    Membership plan Id to identify the membership plan of the user

  • Name
    promotionsApplied
    Type
    array
    Description

    List of promotions applied on the products in the basket

  • Name
    voucherCode
    Type
    string
    Description

    Voucher code used to validate the offer and claim the benefits e.g. 'DISCOUNT15'

  • Name
    discountPct
    Type
    number
    Description

    Discount value applied on the product in Percentage

  • Name
    discountAmt
    Type
    object
    Description

    The amount of discount to be applied on the products in the basket

  • Name
    autoApply
    Type
    boolean
    Description

    Flag to check if the promotion has to be auto applied on the products

  • Name
    promoCode
    Type
    string
    Description

    Promotion code used to validate the offer e.g. 'DISCOUNT15'

  • Name
    itemGroupId
    Type
    number
    Description

    Id used to identify the group of items

  • Name
    couponProvider
    Type
    string
    Description

    The entity that provides the coupon to create an offer

  • Name
    isManualPrice
    Type
    boolean
    Description

    Flag to check if the Price is set Manually

  • Name
    priceMatchReqId
    Type
    string
    Description

    Id used to match the price requests

  • Name
    deliveryMessage
    Type
    string
    Description

    Message for the delivery agent provided by the user

  • Name
    variantProducts
    Type
    array
    Description

    A list of all available variants of the current product

  • Name
    productName
    Type
    string
    Description

    Product name of the variant product

  • Name
    variantAttributes
    Type
    array
    Description

    List of variant attributes of the product e.g. Size, Color

  • Name
    variantProductsAttribute
    Type
    array
    Description

    A list of variant attributes of the product

  • Name
    fieldName
    Type
    string
    Description

    Name of the variant attribute

  • Name
    fieldCode
    Type
    string
    Description

    Field code of the atrribute

  • Name
    fieldValues
    Type
    array
    Description

    A list of values for the variant attribute

  • Name
    currentStock
    Type
    number
    Description

    Number of products available in stock

Request

PUT
/api/v2/commerce/basket/:id/items/:productId/:qty
curl --location --request PUT 'https://api20.bettercommerce.io/api/v2/commerce/basket/:id/items/265badde-ee82-401a-95a7-ad5e0048ca58/1' \
--header 'Accept: application/json' \
--header 'UserId;' \
--header 'Email: abc@abc.com'

Response

{
"statusCode": 200,
"status": "OK",
"errors": [],
"success": true,
"message": "",
"messageCode": "",
"result": {
    "id": "1678240f-e209-4300-9627-3fabee9574ef",
    "currencySymbol": "€",
    "currencyCode": "EUR",
    "userId": "ca9a6b1a-96a0-414b-9ef6-2c858eaa5931",
    "userEmail": "myemail@example.com",
    "grandTotal": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€99.99000",
            "withoutTax": "€99.99000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 99.99,
            "withoutTax": 99.99,
            "tax": 0
        }
    },
    "totalWithoutShipping": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€96.00000",
            "withoutTax": "€96.00000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 96,
            "withoutTax": 96,
            "tax": 0
        }
    },
    "shippingMethodId": "STD",
    "shippingCharge": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€3.99000",
            "withoutTax": "€3.99000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 3.99,
            "withoutTax": 3.99,
            "tax": 0
        }
    },
    "subTotal": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€99.99000",
            "withoutTax": "€99.99000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 99.99,
            "withoutTax": 99.99,
            "tax": 0
        }
    },
    "discount": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€.00000",
            "withoutTax": "€.00000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 0,
            "withoutTax": 0,
            "tax": 0
        }
    },
    "taxPercent": 0,
    "additionalCharge": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€.00000",
            "withoutTax": "€.00000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 0,
            "withoutTax": 0,
            "tax": 0
        }
    },
    "lineItems": [
        {
            "id": "0",
            "stockCode": "SKU-0001",
            "name": "Polo Shirt",
            "productId": "1C5D16AB-0497-462D-A0D2-B2F8F67335A1",
            "productIid": "0",
            "parentProductId": "",
            "brand": "Tommy Hilfiger",
            "subbrand": "Tommy Hilfiger",
            "price": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€24.00000",
                    "withoutTax": "€24.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 24,
                    "withoutTax": 24,
                    "tax": 0
                }
            },
            "subTotal": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€96.00000",
                    "withoutTax": "€96.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 96,
                    "withoutTax": 96,
                    "tax": 0
                }
            },
            "totalPrice": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€96.00000",
                    "withoutTax": "€96.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 96,
                    "withoutTax": 96,
                    "tax": 0
                }
            },
            "image": "image1.jeg",
            "qty": 4,
            "displayOrder": 1,
            "slug": "/product/SKU-0001",
            "itemType": 1,
            "displayInBasket": false,
            "categoryItems": [
                {
                    "categoryId": "0fb86bbc-dea6-4fea-9b01-ed03dcef1b47",
                    "categoryName": "Shirt",
                    "parentCategoryId": "2b45d0a2-306a-48e5-86fc-a48536f411a4",
                    "parentCategoryName": "Clothings"
                }
            ],
            "attributesJson": "",
            "customInfo1": "cust info 1",
            "customInfo2": "cust info 2",
            "customInfo3": "cust info 3",
            "customInfo4": "cust info 4",
            "customInfo5": "cust info 5",
            "discount": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€.00000",
                    "withoutTax": "€.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 0,
                    "withoutTax": 0,
                    "tax": 0
                }
            },
            "additionalCharge": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€.00000",
                    "withoutTax": "€.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 0,
                    "withoutTax": 0,
                    "tax": 0
                }
            },
            "shortDescription": "Polo Shirt Description",
            "companyDiscount": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€.00000",
                    "withoutTax": "€.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 0,
                    "withoutTax": 0,
                    "tax": 0
                }
            },
            "listPrice": {
                "currencySymbol": "€",
                "formatted": {
                    "withTax": "€24.00000",
                    "withoutTax": "€24.00000",
                    "tax": "€.00000"
                },
                "raw": {
                    "withTax": 24,
                    "withoutTax": 24,
                    "tax": 0
                }
            },
            "isSubscription": false,
            "isMembership": false,
            "subscriptionUserSettings": {
                "subscriptionPlanId": "00000000-0000-0000-0000-000000000000",
                "subscriptionTermId": "00000000-0000-0000-0000-000000000000",
                "userPricingType": 0,
                "subscriptionJson": null,
                "authorizationAmount": 0
            },
            "promotionsApplied": [
                {
                    "voucherCode": "DISCOUNT15",
                    "discountPct": 0,
                    "discountAmt": {
                        "minPrice": 0,
                        "minPriceWithoutTax": 0,
                        "maxPrice": 0,
                        "maxPriceWithoutTax": 0,
                        "currencyDecimalSeparator": ".",
                        "currencyDigitsAfterDecimal": 2,
                        "currencySymbol": "€",
                        "formatted": {
                            "withTax": "€.00000",
                            "withoutTax": "€.00000",
                            "tax": "€.00000"
                        },
                        "raw": {
                            "withTax": 0,
                            "withoutTax": 0,
                            "tax": 0
                        }
                    },
                    "autoApply": false,
                    "promoCode": "DISCOUNT15",
                    "name": "Dummy Promo"
                }
            ],
            "isGiftWrapApplied": false,
            "giftWrapId": "00000000-0000-0000-0000-000000000000",
            "itemGroupId": 0,
            "couponProvider": "",
            "isManualPrice": false,
            "priceMatchReqId": "00000000-0000-0000-0000-000000000000",
            "deliveryMessage": " delivery message",
            "variantProducts": [
                {
                    "stockCode": null,
                    "productId": "00000000-0000-0000-0000-000000000000",
                    "price": {
                        "minPrice": 0,
                        "minPriceWithoutTax": 0,
                        "maxPrice": 0,
                        "maxPriceWithoutTax": 0,
                        "currencyDecimalSeparator": ".",
                        "currencyDigitsAfterDecimal": 2,
                        "currencySymbol": "€",
                        "formatted": {
                            "withTax": "€15.99000",
                            "withoutTax": "€15.99000",
                            "tax": "€.00000"
                        },
                        "raw": {
                            "withTax": 15.99,
                            "withoutTax": 15.99,
                            "tax": 0
                        }
                    },
                    "slug": null,
                    "image": "img.jpg",
                    "productName": "Variant SKU",
                    "variantAttributes": []
                }
            ],
            "variantProductsAttribute": [
                {
                    "fieldName": "color",
                    "fieldCode": "global.color",
                    "fieldValues": []
                }
            ],
            "currentStock": 999
        }
    ],
    "promotionsApplied": [
        {
            "voucherCode": null,
            "discountPct": 0,
            "discountAmt": null,
            "autoApply": false,
            "promoCode": null,
            "name": null
        }
    ],
    "shippingMethods": [
        {
            "id": "00000000-0000-0000-0000-000000000000",
            "enabled": false,
            "systemName": null,
            "shippingCode": null,
            "displayName": null,
            "description": null,
            "displayOrder": 0,
            "expectedDaysToDeliver": 0,
            "expectedDeliveryDate": "0001-01-01T00:00:00",
            "deliveryOnOrBefore": null,
            "price": {
                "currencySymbol": "£",
                "formatted": {
                    "withTax": "£0.00",
                    "withoutTax": "£0.00",
                    "tax": "£0.00"
                },
                "raw": {
                    "withTax": 0,
                    "withoutTax": 0,
                    "tax": 0
                }
            },
            "isDefault": false,
            "isNominated": false,
            "type": 0,
            "carrierCode": null,
            "countryCode": null,
            "isPriceOnRequest": false,
            "showRecomendation": false,
            "recomendation": null,
            "isTaxable": false,
            "shippingCostMethod": 0,
            "cutOffTimes": null,
            "countryCsv": null
        }
    ],
    "created": "0001-01-01T00:00:00",
    "lastUpdated": "0001-01-01T00:00:00",
    "isQuote": false,
    "quoteStatus": 0,
    "customInfo1": "cust info 1",
    "customInfo2": "cust info 2",
    "customInfo3": "cust info 3",
    "customInfo4": "cust info 4",
    "customInfo5": "cust info 5",
    "shippingAddress": {
        "id": 0,
        "title": "Mr.",
        "firstName": "FName",
        "lastName": "LName",
        "address1": "Address Line 1",
        "address2": "Address Line 2",
        "address3": "Address Line 3",
        "city": "London",
        "state": "London",
        "country": "United Kingdom",
        "countryCode": "UK",
        "postCode": null,
        "phoneNo": "9999999999",
        "mobileNo": null,
        "companyName": "My Company"
    },
    "billingAddress": {
        "id": 0,
        "title": "Mr.",
        "firstName": "FName",
        "lastName": "LName",
        "address1": "Address Line 1",
        "address2": "Address Line 2",
        "address3": "Address Line 3",
        "city": "London",
        "state": "London",
        "country": "United Kingdom",
        "countryCode": "UK",
        "postCode": null,
        "phoneNo": "9999999999",
        "mobileNo": null,
        "companyName": "My Company"
    },
    "postCode": "XX55YY",
    "maxDimensionMm": 0,
    "companyDiscount": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€.00000",
            "withoutTax": "€.00000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 0,
            "withoutTax": 0,
            "tax": 0
        }
    },
    "validUntil": "0001-01-01T00:00:00",
    "isLocked": false,
    "createdByAdmin": false,
    "poNumber": "PO00001",
    "deliveryInstruction": "Please read the give instructions",
    "deliveryPlans": [
        {
            "fulfilmentChannel": 0,
            "deliveryType": 0,
            "deliveryCenter": {
                "recordId": "00000000-0000-0000-0000-000000000000",
                "code": null,
                "name": null,
                "type": 0,
                "postCode": null,
                "latitude": null,
                "longitude": null
            },
            "items": [],
            "distanceInMiles": null,
            "shippingMethodId": "00000000-0000-0000-0000-000000000000",
            "shippingMethodName": null,
            "cost": 0,
            "shippingSpeed": " - ",
            "deliveryDateTarget": "2022-03-15T07:25:35.0706816Z",
            "deliveryDateActual": "0001-01-01T00:00:00",
            "leadTime": 0,
            "leadTimeUom": 0,
            "leadTimeMin": 0,
            "leadTimeMax": 0,
            "pickupStoreId": "00000000-0000-0000-0000-000000000000",
            "refStoreId": null,
            "pickupStoreCode": null,
            "shippingType": 0,
            "lineItems": null,
            "created": null,
            "recordId": "00000000-0000-0000-0000-000000000000"
        }
    ],
    "hasSubscription": false,
    "subscriptionTotal": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€.00000",
            "withoutTax": "€.00000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 0,
            "withoutTax": 0,
            "tax": 0
        }
    },
    "isGiftWrapApplied": false,
    "giftWrapId": "00000000-0000-0000-0000-000000000000",
    "giftWrapOption": null,
    "membershipPlanId": "00000000-0000-0000-0000-000000000000",
    "hasMembership": false,
    "exchangeRate": 1,
    "baseCurrency": "EUR",
    "microSiteId": "00000000-0000-0000-0000-000000000000",
    "baseCurrencyTotal": 99.99,
    "membershipDiscount": {
        "currencySymbol": "€",
        "formatted": {
            "withTax": "€.00000",
            "withoutTax": "€.00000",
            "tax": "€.00000"
        },
        "raw": {
            "withTax": 0,
            "withoutTax": 0,
            "tax": 0
        }
    }
}
}

GET/api/v2/commerce/basket/:id/promo/:promoCode/validate

Check if promo code is valid for basket.

This endpoint allows you to check if the promo code applied is valid for the basket

Developers - API Operations:

OperationEndpointResponse
Check from basket/api/v2/commerce/basket/:id/promo/:promoCode/validateCheck if promo code is valid for basket.

Required attributes

  • Name
    Id
    Type
    string
    Description

    Id to identify the basket

  • Name
    promoCode
    Type
    string
    Description

    Promo code that must be validated for the basket

Response Properties

  • Name
    statusCode
    Type
    number
    Description

    Status code of the response

  • Name
    status
    Type
    string
    Description

    Status of the response

  • Name
    errors
    Type
    array
    Description

    List of errors in the response

  • Name
    success
    Type
    boolean
    Description

    Success status of the response

  • Name
    message
    Type
    string
    Description

    Message of the response

  • Name
    messageCode
    Type
    string
    Description

    Message code of the response

  • Name
    result
    Type
    boolean
    Description

    Result of the response

Request

GET
/api/v2/commerce/basket/:id/promo/:promoCode/validate
curl --location 'https://api20.bettercommerce.io/api/v2/commerce/basket/:id/promo/:promoCode/validate' \
--header 'Accept: application/json' \
--header 'UserId;' \
--header 'Email: abc@abc.com'

Response

{
"statusCode": null,
"status": "minim nisi voluptate proident",
"errors": [
    "eu occaecat",
    "qui sunt Ut"
],
"success": true,
"message": "reprehenderit Lorem",
"messageCode": "dolor qui irure culpa",
"result": true
}

GET/api/v2/commerce/basket/:id/promo/:promoCode/apply

Apply promocode to basket.

This endpoint allows you apply promo code to the basket

Developers - API Operations:

OperationEndpointResponse
Apply to basket/api/v2/commerce/basket/:id/promo/:promoCode/applyApply promocode to basket.

Required attributes

  • Name
    Id
    Type
    string
    Description

    Id to identify the basket

  • Name
    promoCode
    Type
    string
    Description

    Promo code that must be validated for the basket

Response Properties

  • Name
    statusCode
    Type
    number
    Description

    Status code of the response

  • Name
    status
    Type
    string
    Description

    Status of the response

  • Name
    errors
    Type
    array
    Description

    List of errors in the response

  • Name
    success
    Type
    boolean
    Description

    Success status of the response

  • Name
    message
    Type
    string
    Description

    Message of the response

  • Name
    messageCode
    Type
    string
    Description

    Message code of the response

  • Name
    result
    Type
    object
    Description

    Result of the response

  • Name
    id
    Type
    number
    Description

    Id to identify the user

  • Name
    currencySymbol
    Type
    string
    Description

    Currency Symbol for Price e.g £

  • Name
    currencyCode
    Type
    string
    Description

    Currency code according to the region e.g. GBP:'Great Britain Pound'

  • Name
    userId
    Type
    string
    Description

    User Id to identify the User

  • Name
    userEmail
    Type
    string
    Description

    User email provided by the user

  • Name
    shippingMethodId
    Type
    string
    Description

    Shipping method Id to identify the shipping method

  • Name
    subTotal
    Type
    object
    Description

    Sub total of the total price

  • Name
    shippingCharge
    Type
    object
    Description

    Shipping charges of the product in basket

  • Name
    formatted
    Type
    object
    Description

    Formatted price with and without tax

  • Name
    withTax
    Type
    string
    Description

    Price of basket item with Tax

  • Name
    withoutTax
    Type
    string
    Description

    Price of basket item without Tax

  • Name
    tax
    Type
    string
    Description

    Tax amount of basket item

  • Name
    raw
    Type
    object
    Description

    Raw price without discount

  • Name
    discount
    Type
    object
    Description

    Discount amount on the basket item

  • Name
    additionalCharge
    Type
    object
    Description

    Additional charges applied on the basket item

  • Name
    grandTotal
    Type
    object
    Description

    Grand total price of basket items

  • Name
    isLocked
    Type
    boolean
    Description

    Flag to check if the basket is locked

  • Name
    createdByAdmin
    Type
    boolean
    Description

    Flag to check if the basket is created by Admin

  • Name
    poNumber
    Type
    string
    Description

    P O Number of the basket

  • Name
    isQuote
    Type
    boolean
    Description

    Flag to check if the basket is a Quote

  • Name
    quoteStatus
    Type
    number
    Description

    Quote status of the basket

  • Name
    postCode
    Type
    string
    Description

    Post code of the user

  • Name
    hasMembership
    Type
    boolean
    Description

    Flag to check if the user has a membership

  • Name
    exchangeRate
    Type
    number
    Description

    Exchange rate of the currency

  • Name
    baseCurrency
    Type
    string
    Description

    Base currency of the region

  • Name
    microSiteId
    Type
    string
    Description

    Micro site Id of the site

  • Name
    baseCurrencyTotal
    Type
    number
    Description

    Total amount of the basket in base currency

  • Name
    membershipDiscount
    Type
    string
    Description

    Discount given to the user under their membership

  • Name
    created
    Type
    string
    Description

    Date and time when the basket was created

  • Name
    lastUpdated
    Type
    string
    Description

    Date and time when the basket was last updated

  • Name
    lineItems
    Type
    array
    Description

    Array of all the products added in to basket

  • Name
    stockCode
    Type
    string
    Description

    Stock code of the product

  • Name
    name
    Type
    string
    Description

    Name of the product

  • Name
    slug
    Type
    string
    Description

    Slug of the product used to navigate to the product

  • Name
    shortDescription
    Type
    string
    Description

    A short description of the product

  • Name
    productId
    Type
    string
    Description

    Product Id used to identify the product

  • Name
    productIid
    Type
    string
    Description

    Product Iid used to identify the product

  • Name
    parentProductId
    Type
    string
    Description

    Id of the parent product product, used to map personalized products with their parent product

  • Name
    price
    Type
    string
    Description

    Price of the product

  • Name
    totalPrice
    Type
    object
    Description

    Total price of the product

  • Name
    minPrice
    Type
    number
    Description

    Minimum price for the company

  • Name
    minPriceWithoutTax
    Type
    number
    Description

    Minimum price for the company without tax

  • Name
    maxPrice
    Type
    number
    Description

    Maximum price for the company

  • Name
    maxPriceWithoutTax
    Type
    number
    Description

    Maximum price for the company wihtout tax

  • Name
    currencyDecimalSeparator
    Type
    string
    Description

    Currency decimal separator for the region

  • Name
    currencyDigitsAfterDecimal
    Type
    number
    Description

    Digits after decimal for the currency

  • Name
    id
    Type
    string
    Description

    id to identify the user

  • Name
    title
    Type
    string
    Description

    Title of the user e.g. Miss./Mrs./Mr.

  • Name
    firstName
    Type
    string
    Description

    First name of the user

  • Name
    lastName
    Type
    string
    Description

    Last name of the user

  • Name
    address1
    Type
    string
    Description

    Address Line 1 provided by the user

  • Name
    address2
    Type
    string
    Description

    Address Line 2 provided by the user

  • Name
    address3
    Type
    string
    Description

    Address Line 3 provided by the user

  • Name
    city
    Type
    string
    Description

    City name provided by the user

  • Name
    state
    Type
    string
    Description

    State name provided by the user

  • Name
    country
    Type
    string
    Description

    Country name provided by the user

  • Name
    countryCode
    Type
    string
    Description

    Country code provided by the user

  • Name
    postCode
    Type
    string
    Description

    Post code provided by the user

  • Name
    phoneNo
    Type
    string
    Description

    Phone number of the user

  • Name
    mobileNo
    Type
    string
    Description

    Mobile number of the user

  • Name
    companyName
    Type
    string
    Description

    Name of the company provided by the user

  • Name
    displayOrder
    Type
    number
    Description

    Order of the display associated with the product

  • Name
    totalWithoutShipping
    Type
    object
    Description

    Total price of the basket without shipping charges

  • Name
    taxPercent
    Type
    number
    Description

    Amount of tax applied in percentage

  • Name
    brand
    Type
    string
    Description

    Brand name of the product

  • Name
    subbrand
    Type
    string
    Description

    Sub brand name of the product

  • Name
    image
    Type
    string
    Description

    File name of the image of the product

  • Name
    qty
    Type
    number
    Description

    Quantity of product in the basket

  • Name
    displayOrder
    Type
    number
    Description

    Display order of the product in the basket

  • Name
    itemType
    Type
    number
    Description

    Type of item in the basket

  • Name
    displayInBasket
    Type
    boolean
    Description

    Flag to check if the product should be displayed in the basket

  • Name
    categoryItems
    Type
    array
    Description

    List of all the categories available

  • Name
    categoryId
    Type
    string
    Description

    Category Id to identify the cateogories

  • Name
    categoryName
    Type
    string
    Description

    Name of the category e.g. 'Shirts','Joggers', etc

  • Name
    parentCategoryId
    Type
    string
    Description

    Parent category Id to identify the parent category

  • Name
    parentCategoryName
    Type
    string
    Description

    Name of the Parent category e.g. 'Clothings'

  • Name
    attributesJson
    Type
    string
    Description

    JSON attributes of the product

  • Name
    customInfo1
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    customInfo2
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    customInfo3
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    customInfo4
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    customInfo5
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    isSubscription
    Type
    boolean
    Description

    Flag to check if the user has an active subscription

  • Name
    isMembership
    Type
    boolean
    Description

    Flag to check if the user has an active membership

  • Name
    subscriptionUserSettings
    Type
    object
    Description

    Settings for the users's subscription

  • Name
    subscriptionPlanId
    Type
    string
    Description

    Plan Id of the subscription

  • Name
    subscriptionTermId
    Type
    string
    Description

    Term Id of the subscription

  • Name
    userPricingType
    Type
    number
    Description

    Type of pricing for the user

  • Name
    subscriptionJson
    Type
    string
    Description

    JSON values for the subscription

  • Name
    authorizationAmount
    Type
    number
    Description

    Amount to be authorized for this subscription

  • Name
    shippingMethods
    Type
    array
    Description

    A List of shipping methods available for the products

  • Name
    id
    Type
    string
    Description

    Id to identify the shipping method

  • Name
    enabled
    Type
    boolean
    Description

    Flag to check if the shipping method is enabled

  • Name
    systemName
    Type
    string
    Description

    System name of the shipping methods

  • Name
    shippingCode
    Type
    string
    Description

    Shipping code used by the shipping method

  • Name
    displayName
    Type
    string
    Description

    Display name of the shipping method

  • Name
    description
    Type
    string
    Description

    Description of the shipping method

  • Name
    displayOrder
    Type
    number
    Description

    Display order of this shipping method in the list of shipping methods

  • Name
    expectedDaysToDeliver
    Type
    number
    Description

    Number of days before the expected delivery date

  • Name
    expectedDeliveryDate
    Type
    string
    Description

    Date and time of expected delivery of the product

  • Name
    deliveryOnOrBefore
    Type
    string
    Description

    The date on or before which date the product should be delivered

  • Name
    isDefault
    Type
    boolean
    Description

    Flag to check if this shipping method is the default shipping method

  • Name
    isNominated
    Type
    boolean
    Description

    Flag to check if this shipping method is the nominated shipping method

  • Name
    type
    Type
    number
    Description

    Type of this shipping mehtod

  • Name
    carrierCode
    Type
    string
    Description

    Carrier code of the delivery carrier

  • Name
    countryCode
    Type
    string
    Description

    Country code of the region of delivery

  • Name
    isPriceOnRequest
    Type
    boolean
    Description

    Flag to check if product is produced only for editorials and is never actually put into production for consumer purchase

  • Name
    showRecomendation
    Type
    boolean
    Description

    Flag to check if the recommendations for this product should be shown

  • Name
    recomendation
    Type
    string
    Description

    The recommendations for this product

  • Name
    isTaxable
    Type
    boolean
    Description

    Flag to check if this shipping method is taxable

  • Name
    shippingCostMethod
    Type
    number
    Description

    Used to select the type of shipping cost to be applied

  • Name
    cutOffTimes
    Type
    string
    Description

    It is the latest time in any Business Day that we can process a particular Transaction, request or instruction on that Business Day.

  • Name
    countryCsv
    Type
    string
    Description

    File name for the csv file having data of the countries

  • Name
    maxDimensionMm
    Type
    number
    Description

    Maximum dimensions of the package to be delivered in Millimeters

  • Name
    companyDiscount
    Type
    object
    Description

    The discount given on the original price of the products by the company to their employees

  • Name
    validUntil
    Type
    string
    Description

    The date time of the validity of the order for delivery

  • Name
    deliveryInstruction
    Type
    string
    Description

    Instructions for the delivery agent regarding the delivery

  • Name
    deliveryPlans
    Type
    array
    Description

    A list of delivery plans for the delivery of the order

  • Name
    fulfilmentChannel
    Type
    number
    Description

    The method by which sellers can sell items through various sales channels and have the company handle the packaging and shipping aspects for them

  • Name
    deliveryType
    Type
    number
    Description

    The type of delivery for the order

  • Name
    deliveryCenter
    Type
    object
    Description

    The details of the delivery center which will handle the delivery for this order

  • Name
    recordId
    Type
    string
    Description

    Record Id to identify the delivery center records

  • Name
    code
    Type
    string
    Description

    A code used by the delivery center

  • Name
    postCode
    Type
    string
    Description

    Postal code of the delivery center

  • Name
    latitude
    Type
    string
    Description

    Latitute of the geographical location of the delivery center

  • Name
    longitude
    Type
    string
    Description

    Longitute of the geographical location of the delivery center

  • Name
    items
    Type
    array
    Description

    The list of items to be delivered

  • Name
    distanceInMiles
    Type
    string
    Description

    The distance to the the delivery location in miles

  • Name
    shippingMethodName
    Type
    string
    Description

    The name of the shipping method used for shipping the product

  • Name
    cost
    Type
    number
    Description

    The cost of shipping the product

  • Name
    shippingSpeed
    Type
    string
    Description

    The rate at which the order will be shipped for deliery

  • Name
    deliveryDateTarget
    Type
    string
    Description

    The date and time target for the delivery of the order

  • Name
    deliveryDateActual
    Type
    string
    Description

    The date and time of the actual delivery of the order

  • Name
    leadTime
    Type
    number
    Description

    The amount of time that passes from the start of a process until its conclusion

  • Name
    leadTimeUom
    Type
    number
    Description

    The unit of measurement for the lead time

  • Name
    leadTimeMin
    Type
    number
    Description

    The minimum lead time for the order to be delivered

  • Name
    leadTimeMax
    Type
    number
    Description

    The maximum lead time for the order to be delivered

  • Name
    pickupStoreId
    Type
    string
    Description

    The id of stores from which the order can be collected

  • Name
    refStoreId
    Type
    string
    Description

    Reference Id of the store

  • Name
    pickupStoreCode
    Type
    string
    Description

    The store code for a pickup store

  • Name
    shippingType
    Type
    number
    Description

    The type of shipping used for delivery of the order

  • Name
    hasSubscription
    Type
    boolean
    Description

    Flag to check if the user has a subscription

  • Name
    subscriptionTotal
    Type
    object
    Description

    The total amount that must be paid by the user for the subscription

  • Name
    isGiftWrapApplied
    Type
    boolean
    Description

    Flag to check if Gift wrap is applied to the products

  • Name
    giftWrapId
    Type
    string
    Description

    Gift wrap Id to identify the gift warpped products in the basket

  • Name
    giftWrapOption
    Type
    string
    Description

    The gift wrapping options available for the products in the basket

  • Name
    membershipPlanId
    Type
    string
    Description

    Membership plan Id to identify the membership plan of the user

  • Name
    promotionsApplied
    Type
    array
    Description

    List of promotions applied on the products in the basket

  • Name
    voucherCode
    Type
    string
    Description

    Voucher code used to validate the offer and claim the benefits e.g. 'DISCOUNT15'

  • Name
    discountPct
    Type
    number
    Description

    Discount value applied on the product in Percentage

  • Name
    discountAmt
    Type
    object
    Description

    The amount of discount to be applied on the products in the basket

  • Name
    autoApply
    Type
    boolean
    Description

    Flag to check if the promotion has to be auto applied on the products

  • Name
    promoCode
    Type
    string
    Description

    Promotion code used to validate the offer e.g. 'DISCOUNT15'

  • Name
    itemGroupId
    Type
    number
    Description

    Id used to identify the group of items

  • Name
    couponProvider
    Type
    string
    Description

    The entity that provides the coupon to create an offer

  • Name
    isManualPrice
    Type
    boolean
    Description

    Flag to check if the Price is set Manually

  • Name
    priceMatchReqId
    Type
    string
    Description

    Id used to match the price requests

  • Name
    deliveryMessage
    Type
    string
    Description

    Message for the delivery agent provided by the user

  • Name
    variantProducts
    Type
    array
    Description

    A list of all available variants of the current product

  • Name
    productName
    Type
    string
    Description

    Product name of the variant product

  • Name
    variantAttributes
    Type
    array
    Description

    List of variant attributes of the product e.g. Size, Color

  • Name
    variantProductsAttribute
    Type
    array
    Description

    A list of variant attributes of the product

  • Name
    fieldName
    Type
    string
    Description

    Name of the variant attribute

  • Name
    fieldCode
    Type
    string
    Description

    Field code of the atrribute

  • Name
    fieldValues
    Type
    array
    Description

    A list of values for the variant attribute

  • Name
    currentStock
    Type
    number
    Description

    Number of products available in stock

Request

GET
/api/v2/commerce/basket/:id/promo/:promoCode/apply
curl --location --request POST 'https://api20.bettercommerce.io/api/v2/commerce/basket/:id/promo/:promoCode/apply' \
--header 'Accept: application/json' \
--header 'UserId;' \
--header 'Email: abc@abc.com'

Response

{
"statusCode": null,
"status": "non exercitation elit",
"errors": [
    "Duis eu dolor",
    "Ut"
],
"success": true,
"message": "dolore cupidatat nisi pariatur",
"messageCode": "sint ad",
"result": {
    "isVaild": false,
    "message": "Excepteur esse Lorem occaecat",
    "basket": {
        "id": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "currencySymbol": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "currencyCode": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "userId": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "userEmail": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "grandTotal": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "totalWithoutShipping": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "shippingMethodId": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "shippingCharge": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "subTotal": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "discount": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "taxPercent": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "additionalCharge": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "lineItems": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "promotionsApplied": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "shippingMethods": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "created": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "lastUpdated": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "isQuote": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "quoteStatus": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "customInfo1": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "customInfo2": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "customInfo3": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "customInfo4": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "customInfo5": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "shippingAddress": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "billingAddress": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "postCode": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "maxDimensionMm": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "companyDiscount": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "validUntil": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "isLocked": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "createdByAdmin": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "poNumber": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "deliveryInstruction": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "deliveryPlans": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "hasSubscription": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "subscriptionTotal": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "isGiftWrapApplied": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "giftWrapId": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "giftWrapOption": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "membershipPlanId": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "hasMembership": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "exchangeRate": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "baseCurrency": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "microSiteId": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "baseCurrencyTotal": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "membershipDiscount": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        }
    }
}
}

DELETE/api/v2/commerce/basket/:id/promo/:promoCode/remove

Remove promo from basket.

This endpoint allows you to check if the promo code applied is valid for the basket

Developers - API Operations:

OperationEndpointResponse
Remove from basket/api/v2/commerce/basket/:id/promo/:promoCode/removeRemove promo from basket.

Required attributes

  • Name
    Id
    Type
    string
    Description

    Id to identify the basket

  • Name
    promoCode
    Type
    string
    Description

    Promo code that must be validated for the basket

Response Properties

  • Name
    statusCode
    Type
    number
    Description

    Status code of the response

  • Name
    status
    Type
    string
    Description

    Status of the response

  • Name
    errors
    Type
    array
    Description

    List of errors in the response

  • Name
    success
    Type
    boolean
    Description

    Success status of the response

  • Name
    message
    Type
    string
    Description

    Message of the response

  • Name
    messageCode
    Type
    string
    Description

    Message code of the response

  • Name
    result
    Type
    object
    Description

    Result of the response

  • Name
    id
    Type
    number
    Description

    Id to identify the user

  • Name
    currencySymbol
    Type
    string
    Description

    Currency Symbol for Price e.g £

  • Name
    currencyCode
    Type
    string
    Description

    Currency code according to the region e.g. GBP:'Great Britain Pound'

  • Name
    userId
    Type
    string
    Description

    User Id to identify the User

  • Name
    userEmail
    Type
    string
    Description

    User email provided by the user

  • Name
    shippingMethodId
    Type
    string
    Description

    Shipping method Id to identify the shipping method

  • Name
    subTotal
    Type
    object
    Description

    Sub total of the total price

  • Name
    shippingCharge
    Type
    object
    Description

    Shipping charges of the product in basket

  • Name
    formatted
    Type
    object
    Description

    Formatted price with and without tax

  • Name
    withTax
    Type
    string
    Description

    Price of basket item with Tax

  • Name
    withoutTax
    Type
    string
    Description

    Price of basket item without Tax

  • Name
    tax
    Type
    string
    Description

    Tax amount of basket item

  • Name
    raw
    Type
    object
    Description

    Raw price without discount

  • Name
    discount
    Type
    object
    Description

    Discount amount on the basket item

  • Name
    additionalCharge
    Type
    object
    Description

    Additional charges applied on the basket item

  • Name
    grandTotal
    Type
    object
    Description

    Grand total price of basket items

  • Name
    isLocked
    Type
    boolean
    Description

    Flag to check if the basket is locked

  • Name
    createdByAdmin
    Type
    boolean
    Description

    Flag to check if the basket is created by Admin

  • Name
    poNumber
    Type
    string
    Description

    P O Number of the basket

  • Name
    isQuote
    Type
    boolean
    Description

    Flag to check if the basket is a Quote

  • Name
    quoteStatus
    Type
    number
    Description

    Quote status of the basket

  • Name
    postCode
    Type
    string
    Description

    Post code of the user

  • Name
    hasMembership
    Type
    boolean
    Description

    Flag to check if the user has a membership

  • Name
    exchangeRate
    Type
    number
    Description

    Exchange rate of the currency

  • Name
    baseCurrency
    Type
    string
    Description

    Base currency of the region

  • Name
    microSiteId
    Type
    string
    Description

    Micro site Id of the site

  • Name
    baseCurrencyTotal
    Type
    number
    Description

    Total amount of the basket in base currency

  • Name
    membershipDiscount
    Type
    string
    Description

    Discount given to the user under their membership

  • Name
    created
    Type
    string
    Description

    Date and time when the basket was created

  • Name
    lastUpdated
    Type
    string
    Description

    Date and time when the basket was last updated

  • Name
    lineItems
    Type
    array
    Description

    Array of all the products added in to basket

  • Name
    stockCode
    Type
    string
    Description

    Stock code of the product

  • Name
    name
    Type
    string
    Description

    Name of the product

  • Name
    slug
    Type
    string
    Description

    Slug of the product used to navigate to the product

  • Name
    shortDescription
    Type
    string
    Description

    A short description of the product

  • Name
    productId
    Type
    string
    Description

    Product Id used to identify the product

  • Name
    productIid
    Type
    string
    Description

    Product Iid used to identify the product

  • Name
    parentProductId
    Type
    string
    Description

    Id of the parent product product, used to map personalized products with their parent product

  • Name
    price
    Type
    string
    Description

    Price of the product

  • Name
    totalPrice
    Type
    object
    Description

    Total price of the product

  • Name
    minPrice
    Type
    number
    Description

    Minimum price for the company

  • Name
    minPriceWithoutTax
    Type
    number
    Description

    Minimum price for the company without tax

  • Name
    maxPrice
    Type
    number
    Description

    Maximum price for the company

  • Name
    maxPriceWithoutTax
    Type
    number
    Description

    Maximum price for the company wihtout tax

  • Name
    currencyDecimalSeparator
    Type
    string
    Description

    Currency decimal separator for the region

  • Name
    currencyDigitsAfterDecimal
    Type
    number
    Description

    Digits after decimal for the currency

  • Name
    id
    Type
    string
    Description

    id to identify the user

  • Name
    title
    Type
    string
    Description

    Title of the user e.g. Miss./Mrs./Mr.

  • Name
    firstName
    Type
    string
    Description

    First name of the user

  • Name
    lastName
    Type
    string
    Description

    Last name of the user

  • Name
    address1
    Type
    string
    Description

    Address Line 1 provided by the user

  • Name
    address2
    Type
    string
    Description

    Address Line 2 provided by the user

  • Name
    address3
    Type
    string
    Description

    Address Line 3 provided by the user

  • Name
    city
    Type
    string
    Description

    City name provided by the user

  • Name
    state
    Type
    string
    Description

    State name provided by the user

  • Name
    country
    Type
    string
    Description

    Country name provided by the user

  • Name
    countryCode
    Type
    string
    Description

    Country code provided by the user

  • Name
    postCode
    Type
    string
    Description

    Post code provided by the user

  • Name
    phoneNo
    Type
    string
    Description

    Phone number of the user

  • Name
    mobileNo
    Type
    string
    Description

    Mobile number of the user

  • Name
    companyName
    Type
    string
    Description

    Name of the company provided by the user

  • Name
    displayOrder
    Type
    number
    Description

    Order of the display associated with the product

  • Name
    totalWithoutShipping
    Type
    object
    Description

    Total price of the basket without shipping charges

  • Name
    taxPercent
    Type
    number
    Description

    Amount of tax applied in percentage

  • Name
    brand
    Type
    string
    Description

    Brand name of the product

  • Name
    subbrand
    Type
    string
    Description

    Sub brand name of the product

  • Name
    image
    Type
    string
    Description

    File name of the image of the product

  • Name
    qty
    Type
    number
    Description

    Quantity of product in the basket

  • Name
    displayOrder
    Type
    number
    Description

    Display order of the product in the basket

  • Name
    itemType
    Type
    number
    Description

    Type of item in the basket

  • Name
    displayInBasket
    Type
    boolean
    Description

    Flag to check if the product should be displayed in the basket

  • Name
    categoryItems
    Type
    array
    Description

    List of all the categories available

  • Name
    categoryId
    Type
    string
    Description

    Category Id to identify the cateogories

  • Name
    categoryName
    Type
    string
    Description

    Name of the category e.g. 'Shirts','Joggers', etc

  • Name
    parentCategoryId
    Type
    string
    Description

    Parent category Id to identify the parent category

  • Name
    parentCategoryName
    Type
    string
    Description

    Name of the Parent category e.g. 'Clothings'

  • Name
    attributesJson
    Type
    string
    Description

    JSON attributes of the product

  • Name
    customInfo1
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    customInfo2
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    customInfo3
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    customInfo4
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    customInfo5
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    isSubscription
    Type
    boolean
    Description

    Flag to check if the user has an active subscription

  • Name
    isMembership
    Type
    boolean
    Description

    Flag to check if the user has an active membership

  • Name
    subscriptionUserSettings
    Type
    object
    Description

    Settings for the users's subscription

  • Name
    subscriptionPlanId
    Type
    string
    Description

    Plan Id of the subscription

  • Name
    subscriptionTermId
    Type
    string
    Description

    Term Id of the subscription

  • Name
    userPricingType
    Type
    number
    Description

    Type of pricing for the user

  • Name
    subscriptionJson
    Type
    string
    Description

    JSON values for the subscription

  • Name
    authorizationAmount
    Type
    number
    Description

    Amount to be authorized for this subscription

  • Name
    shippingMethods
    Type
    array
    Description

    A List of shipping methods available for the products

  • Name
    id
    Type
    string
    Description

    Id to identify the shipping method

  • Name
    enabled
    Type
    boolean
    Description

    Flag to check if the shipping method is enabled

  • Name
    systemName
    Type
    string
    Description

    System name of the shipping methods

  • Name
    shippingCode
    Type
    string
    Description

    Shipping code used by the shipping method

  • Name
    displayName
    Type
    string
    Description

    Display name of the shipping method

  • Name
    description
    Type
    string
    Description

    Description of the shipping method

  • Name
    displayOrder
    Type
    number
    Description

    Display order of this shipping method in the list of shipping methods

  • Name
    expectedDaysToDeliver
    Type
    number
    Description

    Number of days before the expected delivery date

  • Name
    expectedDeliveryDate
    Type
    string
    Description

    Date and time of expected delivery of the product

  • Name
    deliveryOnOrBefore
    Type
    string
    Description

    The date on or before which date the product should be delivered

  • Name
    isDefault
    Type
    boolean
    Description

    Flag to check if this shipping method is the default shipping method

  • Name
    isNominated
    Type
    boolean
    Description

    Flag to check if this shipping method is the nominated shipping method

  • Name
    type
    Type
    number
    Description

    Type of this shipping mehtod

  • Name
    carrierCode
    Type
    string
    Description

    Carrier code of the delivery carrier

  • Name
    countryCode
    Type
    string
    Description

    Country code of the region of delivery

  • Name
    isPriceOnRequest
    Type
    boolean
    Description

    Flag to check if product is produced only for editorials and is never actually put into production for consumer purchase

  • Name
    showRecomendation
    Type
    boolean
    Description

    Flag to check if the recommendations for this product should be shown

  • Name
    recomendation
    Type
    string
    Description

    The recommendations for this product

  • Name
    isTaxable
    Type
    boolean
    Description

    Flag to check if this shipping method is taxable

  • Name
    shippingCostMethod
    Type
    number
    Description

    Used to select the type of shipping cost to be applied

  • Name
    cutOffTimes
    Type
    string
    Description

    It is the latest time in any Business Day that we can process a particular Transaction, request or instruction on that Business Day.

  • Name
    countryCsv
    Type
    string
    Description

    File name for the csv file having data of the countries

  • Name
    maxDimensionMm
    Type
    number
    Description

    Maximum dimensions of the package to be delivered in Millimeters

  • Name
    companyDiscount
    Type
    object
    Description

    The discount given on the original price of the products by the company to their employees

  • Name
    validUntil
    Type
    string
    Description

    The date time of the validity of the order for delivery

  • Name
    deliveryInstruction
    Type
    string
    Description

    Instructions for the delivery agent regarding the delivery

  • Name
    deliveryPlans
    Type
    array
    Description

    A list of delivery plans for the delivery of the order

  • Name
    fulfilmentChannel
    Type
    number
    Description

    The method by which sellers can sell items through various sales channels and have the company handle the packaging and shipping aspects for them

  • Name
    deliveryType
    Type
    number
    Description

    The type of delivery for the order

  • Name
    deliveryCenter
    Type
    object
    Description

    The details of the delivery center which will handle the delivery for this order

  • Name
    recordId
    Type
    string
    Description

    Record Id to identify the delivery center records

  • Name
    code
    Type
    string
    Description

    A code used by the delivery center

  • Name
    postCode
    Type
    string
    Description

    Postal code of the delivery center

  • Name
    latitude
    Type
    string
    Description

    Latitute of the geographical location of the delivery center

  • Name
    longitude
    Type
    string
    Description

    Longitute of the geographical location of the delivery center

  • Name
    items
    Type
    array
    Description

    The list of items to be delivered

  • Name
    distanceInMiles
    Type
    string
    Description

    The distance to the the delivery location in miles

  • Name
    shippingMethodName
    Type
    string
    Description

    The name of the shipping method used for shipping the product

  • Name
    cost
    Type
    number
    Description

    The cost of shipping the product

  • Name
    shippingSpeed
    Type
    string
    Description

    The rate at which the order will be shipped for deliery

  • Name
    deliveryDateTarget
    Type
    string
    Description

    The date and time target for the delivery of the order

  • Name
    deliveryDateActual
    Type
    string
    Description

    The date and time of the actual delivery of the order

  • Name
    leadTime
    Type
    number
    Description

    The amount of time that passes from the start of a process until its conclusion

  • Name
    leadTimeUom
    Type
    number
    Description

    The unit of measurement for the lead time

  • Name
    leadTimeMin
    Type
    number
    Description

    The minimum lead time for the order to be delivered

  • Name
    leadTimeMax
    Type
    number
    Description

    The maximum lead time for the order to be delivered

  • Name
    pickupStoreId
    Type
    string
    Description

    The id of stores from which the order can be collected

  • Name
    refStoreId
    Type
    string
    Description

    Reference Id of the store

  • Name
    pickupStoreCode
    Type
    string
    Description

    The store code for a pickup store

  • Name
    shippingType
    Type
    number
    Description

    The type of shipping used for delivery of the order

  • Name
    hasSubscription
    Type
    boolean
    Description

    Flag to check if the user has a subscription

  • Name
    subscriptionTotal
    Type
    object
    Description

    The total amount that must be paid by the user for the subscription

  • Name
    isGiftWrapApplied
    Type
    boolean
    Description

    Flag to check if Gift wrap is applied to the products

  • Name
    giftWrapId
    Type
    string
    Description

    Gift wrap Id to identify the gift warpped products in the basket

  • Name
    giftWrapOption
    Type
    string
    Description

    The gift wrapping options available for the products in the basket

  • Name
    membershipPlanId
    Type
    string
    Description

    Membership plan Id to identify the membership plan of the user

  • Name
    promotionsApplied
    Type
    array
    Description

    List of promotions applied on the products in the basket

  • Name
    voucherCode
    Type
    string
    Description

    Voucher code used to validate the offer and claim the benefits e.g. 'DISCOUNT15'

  • Name
    discountPct
    Type
    number
    Description

    Discount value applied on the product in Percentage

  • Name
    discountAmt
    Type
    object
    Description

    The amount of discount to be applied on the products in the basket

  • Name
    autoApply
    Type
    boolean
    Description

    Flag to check if the promotion has to be auto applied on the products

  • Name
    promoCode
    Type
    string
    Description

    Promotion code used to validate the offer e.g. 'DISCOUNT15'

  • Name
    itemGroupId
    Type
    number
    Description

    Id used to identify the group of items

  • Name
    couponProvider
    Type
    string
    Description

    The entity that provides the coupon to create an offer

  • Name
    isManualPrice
    Type
    boolean
    Description

    Flag to check if the Price is set Manually

  • Name
    priceMatchReqId
    Type
    string
    Description

    Id used to match the price requests

  • Name
    deliveryMessage
    Type
    string
    Description

    Message for the delivery agent provided by the user

  • Name
    variantProducts
    Type
    array
    Description

    A list of all available variants of the current product

  • Name
    productName
    Type
    string
    Description

    Product name of the variant product

  • Name
    variantAttributes
    Type
    array
    Description

    List of variant attributes of the product e.g. Size, Color

  • Name
    variantProductsAttribute
    Type
    array
    Description

    A list of variant attributes of the product

  • Name
    fieldName
    Type
    string
    Description

    Name of the variant attribute

  • Name
    fieldCode
    Type
    string
    Description

    Field code of the atrribute

  • Name
    fieldValues
    Type
    array
    Description

    A list of values for the variant attribute

  • Name
    currentStock
    Type
    number
    Description

    Number of products available in stock

Request

DELETE
/api/v2/commerce/basket/:id/promo/:promoCode/remove
curl --location --request DELETE 'https://api20.bettercommerce.io/api/v2/commerce/basket/:id/promo/:promoCode/remove' \
--header 'Accept: application/json' \
--header 'UserId;' \
--header 'Email: abc@abc.com' \
--header 'Cookie: ARRAffinity=b13bb339e1ac28f5b31d8289818f929ee76838eb63e5c727c2b61a385a402597; ARRAffinitySameSite=b13bb339e1ac28f5b31d8289818f929ee76838eb63e5c727c2b61a385a402597'

Response

{
"statusCode": null,
"status": "aliqua Duis eiusmod Ut incididunt",
"errors": [
    "reprehenderit et an",
    "enim est"
],
"success": true,
"message": "adipisicing do",
"messageCode": "sed mollit laboris",
"result": {
    "isVaild": false,
    "message": "dolor laborum Duis",
    "basket": {
        "id": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "currencySymbol": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "currencyCode": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "userId": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "userEmail": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "grandTotal": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "totalWithoutShipping": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "shippingMethodId": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "shippingCharge": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "subTotal": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "discount": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "taxPercent": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "additionalCharge": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "lineItems": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "promotionsApplied": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "shippingMethods": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "created": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "lastUpdated": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "isQuote": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "quoteStatus": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "customInfo1": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "customInfo2": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "customInfo3": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "customInfo4": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "customInfo5": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "shippingAddress": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "billingAddress": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "postCode": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "maxDimensionMm": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "companyDiscount": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "validUntil": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "isLocked": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "createdByAdmin": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "poNumber": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "deliveryInstruction": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "deliveryPlans": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "hasSubscription": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "subscriptionTotal": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "isGiftWrapApplied": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "giftWrapId": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "giftWrapOption": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "membershipPlanId": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "hasMembership": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "exchangeRate": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "baseCurrency": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "microSiteId": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "baseCurrencyTotal": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "membershipDiscount": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        }
    }
}
}

PUT/api/v2/commerce/basket/:id/delivery/shipping-method?shippingMethodId={{bc_shipping_method_id}}&countryCode={{bc_country_code}}

Update selected shipping method for basket

This endpoint allows you to update selected shipping method for a basket.

Developers - API Operations:

OperationEndpointResponse
Update baskets/api/v2/commerce/basket/:id/delivery/shipping-method?shippingMethodId={{bc_shipping_method_id}}&countryCode={{bc_country_code}}Update selected shipping method for basket.

Required attributes

  • Name
    Id
    Type
    string
    Description

    Id to identify the basket

  • Name
    shippingMethodId
    Type
    string
    Description

    selected shipping method id

  • Name
    countryCode
    Type
    string
    Description

    Country code of the region of shipping

  • Name
    nominatedDelivery
    Type
    model
    Description

    Details for nominated delivery

Model attributes

  • Name
    dayText
    Type
    string
    Description

    Day text of the date of shipping

  • Name
    dayNo
    Type
    number
    Description

    Day number of the date of shipping

  • Name
    cutOffTime
    Type
    number
    Description

    The time at which an order must leave the warehouse and be transferred to the carrier so that it can still be delivered by the predefined time

  • Name
    price
    Type
    object
    Description

    Price for shipping the order

  • Name
    currencySymbol
    Type
    string
    Description

    Currency Symbol for Price e.g £

  • Name
    formatted
    Type
    object
    Description

    Formatted price with and without tax

  • Name
    withTax
    Type
    string
    Description

    Price of shipping item with Tax

  • Name
    withoutTax
    Type
    string
    Description

    Price of shipping item without Tax

  • Name
    tax
    Type
    string
    Description

    Tax amount of shipping the item

  • Name
    raw
    Type
    object
    Description

    Raw price without discount

  • Name
    carrierCode
    Type
    string
    Description

    Carrier code of the delivery carrier

  • Name
    deliveryDate
    Type
    string
    Description

    Date and time of the expected delivery date

Response Properties

  • Name
    statusCode
    Type
    number
    Description

    Status code of the response

  • Name
    status
    Type
    string
    Description

    Status of the response

  • Name
    errors
    Type
    array
    Description

    List of errors in the response

  • Name
    success
    Type
    boolean
    Description

    Success status of the response

  • Name
    message
    Type
    string
    Description

    Message of the response

  • Name
    messageCode
    Type
    string
    Description

    Message code of the response

  • Name
    result
    Type
    object
    Description

    Result of the response

  • Name
    id
    Type
    number
    Description

    Id to identify the user

  • Name
    currencySymbol
    Type
    string
    Description

    Currency Symbol for Price e.g £

  • Name
    currencyCode
    Type
    string
    Description

    Currency code according to the region e.g. GBP:'Great Britain Pound'

  • Name
    userId
    Type
    string
    Description

    User Id to identify the User

  • Name
    userEmail
    Type
    string
    Description

    User email provided by the user

  • Name
    shippingMethodId
    Type
    string
    Description

    Shipping method Id to identify the shipping method

  • Name
    subTotal
    Type
    object
    Description

    Sub total of the total price

  • Name
    shippingCharge
    Type
    object
    Description

    Shipping charges of the product in basket

  • Name
    formatted
    Type
    object
    Description

    Formatted price with and without tax

  • Name
    withTax
    Type
    string
    Description

    Price of basket item with Tax

  • Name
    withoutTax
    Type
    string
    Description

    Price of basket item without Tax

  • Name
    tax
    Type
    string
    Description

    Tax amount of basket item

  • Name
    raw
    Type
    object
    Description

    Raw price without discount

  • Name
    discount
    Type
    object
    Description

    Discount amount on the basket item

  • Name
    additionalCharge
    Type
    object
    Description

    Additional charges applied on the basket item

  • Name
    grandTotal
    Type
    object
    Description

    Grand total price of basket items

  • Name
    isLocked
    Type
    boolean
    Description

    Flag to check if the basket is locked

  • Name
    createdByAdmin
    Type
    boolean
    Description

    Flag to check if the basket is created by Admin

  • Name
    poNumber
    Type
    string
    Description

    P O Number of the basket

  • Name
    isQuote
    Type
    boolean
    Description

    Flag to check if the basket is a Quote

  • Name
    quoteStatus
    Type
    number
    Description

    Quote status of the basket

  • Name
    postCode
    Type
    string
    Description

    Post code of the user

  • Name
    hasMembership
    Type
    boolean
    Description

    Flag to check if the user has a membership

  • Name
    exchangeRate
    Type
    number
    Description

    Exchange rate of the currency

  • Name
    baseCurrency
    Type
    string
    Description

    Base currency of the region

  • Name
    microSiteId
    Type
    string
    Description

    Micro site Id of the site

  • Name
    baseCurrencyTotal
    Type
    number
    Description

    Total amount of the basket in base currency

  • Name
    membershipDiscount
    Type
    string
    Description

    Discount given to the user under their membership

  • Name
    created
    Type
    string
    Description

    Date and time when the basket was created

  • Name
    lastUpdated
    Type
    string
    Description

    Date and time when the basket was last updated

  • Name
    lineItems
    Type
    array
    Description

    Array of all the products added in to basket

  • Name
    stockCode
    Type
    string
    Description

    Stock code of the product

  • Name
    name
    Type
    string
    Description

    Name of the product

  • Name
    slug
    Type
    string
    Description

    Slug of the product used to navigate to the product

  • Name
    shortDescription
    Type
    string
    Description

    A short description of the product

  • Name
    productId
    Type
    string
    Description

    Product Id used to identify the product

  • Name
    productIid
    Type
    string
    Description

    Product Iid used to identify the product

  • Name
    parentProductId
    Type
    string
    Description

    Id of the parent product product, used to map personalized products with their parent product

  • Name
    price
    Type
    string
    Description

    Price of the product

  • Name
    totalPrice
    Type
    object
    Description

    Total price of the product

  • Name
    minPrice
    Type
    number
    Description

    Minimum price for the company

  • Name
    minPriceWithoutTax
    Type
    number
    Description

    Minimum price for the company without tax

  • Name
    maxPrice
    Type
    number
    Description

    Maximum price for the company

  • Name
    maxPriceWithoutTax
    Type
    number
    Description

    Maximum price for the company wihtout tax

  • Name
    currencyDecimalSeparator
    Type
    string
    Description

    Currency decimal separator for the region

  • Name
    currencyDigitsAfterDecimal
    Type
    number
    Description

    Digits after decimal for the currency

  • Name
    id
    Type
    string
    Description

    id to identify the user

  • Name
    title
    Type
    string
    Description

    Title of the user e.g. Miss./Mrs./Mr.

  • Name
    firstName
    Type
    string
    Description

    First name of the user

  • Name
    lastName
    Type
    string
    Description

    Last name of the user

  • Name
    address1
    Type
    string
    Description

    Address Line 1 provided by the user

  • Name
    address2
    Type
    string
    Description

    Address Line 2 provided by the user

  • Name
    address3
    Type
    string
    Description

    Address Line 3 provided by the user

  • Name
    city
    Type
    string
    Description

    City name provided by the user

  • Name
    state
    Type
    string
    Description

    State name provided by the user

  • Name
    country
    Type
    string
    Description

    Country name provided by the user

  • Name
    countryCode
    Type
    string
    Description

    Country code provided by the user

  • Name
    postCode
    Type
    string
    Description

    Post code provided by the user

  • Name
    phoneNo
    Type
    string
    Description

    Phone number of the user

  • Name
    mobileNo
    Type
    string
    Description

    Mobile number of the user

  • Name
    companyName
    Type
    string
    Description

    Name of the company provided by the user

  • Name
    displayOrder
    Type
    number
    Description

    Order of the display associated with the product

  • Name
    totalWithoutShipping
    Type
    object
    Description

    Total price of the basket without shipping charges

  • Name
    taxPercent
    Type
    number
    Description

    Amount of tax applied in percentage

  • Name
    brand
    Type
    string
    Description

    Brand name of the product

  • Name
    subbrand
    Type
    string
    Description

    Sub brand name of the product

  • Name
    image
    Type
    string
    Description

    File name of the image of the product

  • Name
    qty
    Type
    number
    Description

    Quantity of product in the basket

  • Name
    displayOrder
    Type
    number
    Description

    Display order of the product in the basket

  • Name
    itemType
    Type
    number
    Description

    Type of item in the basket

  • Name
    displayInBasket
    Type
    boolean
    Description

    Flag to check if the product should be displayed in the basket

  • Name
    categoryItems
    Type
    array
    Description

    List of all the categories available

  • Name
    categoryId
    Type
    string
    Description

    Category Id to identify the cateogories

  • Name
    categoryName
    Type
    string
    Description

    Name of the category e.g. 'Shirts','Joggers', etc

  • Name
    parentCategoryId
    Type
    string
    Description

    Parent category Id to identify the parent category

  • Name
    parentCategoryName
    Type
    string
    Description

    Name of the Parent category e.g. 'Clothings'

  • Name
    attributesJson
    Type
    string
    Description

    JSON attributes of the product

  • Name
    customInfo1
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    customInfo2
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    customInfo3
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    customInfo4
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    customInfo5
    Type
    string
    Description

    Custom Information of the product in the basket

  • Name
    isSubscription
    Type
    boolean
    Description

    Flag to check if the user has an active subscription

  • Name
    isMembership
    Type
    boolean
    Description

    Flag to check if the user has an active membership

  • Name
    subscriptionUserSettings
    Type
    object
    Description

    Settings for the users's subscription

  • Name
    subscriptionPlanId
    Type
    string
    Description

    Plan Id of the subscription

  • Name
    subscriptionTermId
    Type
    string
    Description

    Term Id of the subscription

  • Name
    userPricingType
    Type
    number
    Description

    Type of pricing for the user

  • Name
    subscriptionJson
    Type
    string
    Description

    JSON values for the subscription

  • Name
    authorizationAmount
    Type
    number
    Description

    Amount to be authorized for this subscription

  • Name
    shippingMethods
    Type
    array
    Description

    A List of shipping methods available for the products

  • Name
    id
    Type
    string
    Description

    Id to identify the shipping method

  • Name
    enabled
    Type
    boolean
    Description

    Flag to check if the shipping method is enabled

  • Name
    systemName
    Type
    string
    Description

    System name of the shipping methods

  • Name
    shippingCode
    Type
    string
    Description

    Shipping code used by the shipping method

  • Name
    displayName
    Type
    string
    Description

    Display name of the shipping method

  • Name
    description
    Type
    string
    Description

    Description of the shipping method

  • Name
    displayOrder
    Type
    number
    Description

    Display order of this shipping method in the list of shipping methods

  • Name
    expectedDaysToDeliver
    Type
    number
    Description

    Number of days before the expected delivery date

  • Name
    expectedDeliveryDate
    Type
    string
    Description

    Date and time of expected delivery of the product

  • Name
    deliveryOnOrBefore
    Type
    string
    Description

    The date on or before which date the product should be delivered

  • Name
    isDefault
    Type
    boolean
    Description

    Flag to check if this shipping method is the default shipping method

  • Name
    isNominated
    Type
    boolean
    Description

    Flag to check if this shipping method is the nominated shipping method

  • Name
    type
    Type
    number
    Description

    Type of this shipping mehtod

  • Name
    carrierCode
    Type
    string
    Description

    Carrier code of the delivery carrier

  • Name
    countryCode
    Type
    string
    Description

    Country code of the region of delivery

  • Name
    isPriceOnRequest
    Type
    boolean
    Description

    Flag to check if product is produced only for editorials and is never actually put into production for consumer purchase

  • Name
    showRecomendation
    Type
    boolean
    Description

    Flag to check if the recommendations for this product should be shown

  • Name
    recomendation
    Type
    string
    Description

    The recommendations for this product

  • Name
    isTaxable
    Type
    boolean
    Description

    Flag to check if this shipping method is taxable

  • Name
    shippingCostMethod
    Type
    number
    Description

    Used to select the type of shipping cost to be applied

  • Name
    cutOffTimes
    Type
    string
    Description

    It is the latest time in any Business Day that we can process a particular Transaction, request or instruction on that Business Day.

  • Name
    countryCsv
    Type
    string
    Description

    File name for the csv file having data of the countries

  • Name
    maxDimensionMm
    Type
    number
    Description

    Maximum dimensions of the package to be delivered in Millimeters

  • Name
    companyDiscount
    Type
    object
    Description

    The discount given on the original price of the products by the company to their employees

  • Name
    validUntil
    Type
    string
    Description

    The date time of the validity of the order for delivery

  • Name
    deliveryInstruction
    Type
    string
    Description

    Instructions for the delivery agent regarding the delivery

  • Name
    deliveryPlans
    Type
    array
    Description

    A list of delivery plans for the delivery of the order

  • Name
    fulfilmentChannel
    Type
    number
    Description

    The method by which sellers can sell items through various sales channels and have the company handle the packaging and shipping aspects for them

  • Name
    deliveryType
    Type
    number
    Description

    The type of delivery for the order

  • Name
    deliveryCenter
    Type
    object
    Description

    The details of the delivery center which will handle the delivery for this order

  • Name
    recordId
    Type
    string
    Description

    Record Id to identify the delivery center records

  • Name
    code
    Type
    string
    Description

    A code used by the delivery center

  • Name
    postCode
    Type
    string
    Description

    Postal code of the delivery center

  • Name
    latitude
    Type
    string
    Description

    Latitute of the geographical location of the delivery center

  • Name
    longitude
    Type
    string
    Description

    Longitute of the geographical location of the delivery center

  • Name
    items
    Type
    array
    Description

    The list of items to be delivered

  • Name
    distanceInMiles
    Type
    string
    Description

    The distance to the the delivery location in miles

  • Name
    shippingMethodName
    Type
    string
    Description

    The name of the shipping method used for shipping the product

  • Name
    cost
    Type
    number
    Description

    The cost of shipping the product

  • Name
    shippingSpeed
    Type
    string
    Description

    The rate at which the order will be shipped for deliery

  • Name
    deliveryDateTarget
    Type
    string
    Description

    The date and time target for the delivery of the order

  • Name
    deliveryDateActual
    Type
    string
    Description

    The date and time of the actual delivery of the order

  • Name
    leadTime
    Type
    number
    Description

    The amount of time that passes from the start of a process until its conclusion

  • Name
    leadTimeUom
    Type
    number
    Description

    The unit of measurement for the lead time

  • Name
    leadTimeMin
    Type
    number
    Description

    The minimum lead time for the order to be delivered

  • Name
    leadTimeMax
    Type
    number
    Description

    The maximum lead time for the order to be delivered

  • Name
    pickupStoreId
    Type
    string
    Description

    The id of stores from which the order can be collected

  • Name
    refStoreId
    Type
    string
    Description

    Reference Id of the store

  • Name
    pickupStoreCode
    Type
    string
    Description

    The store code for a pickup store

  • Name
    shippingType
    Type
    number
    Description

    The type of shipping used for delivery of the order

  • Name
    hasSubscription
    Type
    boolean
    Description

    Flag to check if the user has a subscription

  • Name
    subscriptionTotal
    Type
    object
    Description

    The total amount that must be paid by the user for the subscription

  • Name
    isGiftWrapApplied
    Type
    boolean
    Description

    Flag to check if Gift wrap is applied to the products

  • Name
    giftWrapId
    Type
    string
    Description

    Gift wrap Id to identify the gift warpped products in the basket

  • Name
    giftWrapOption
    Type
    string
    Description

    The gift wrapping options available for the products in the basket

  • Name
    membershipPlanId
    Type
    string
    Description

    Membership plan Id to identify the membership plan of the user

  • Name
    promotionsApplied
    Type
    array
    Description

    List of promotions applied on the products in the basket

  • Name
    voucherCode
    Type
    string
    Description

    Voucher code used to validate the offer and claim the benefits e.g. 'DISCOUNT15'

  • Name
    discountPct
    Type
    number
    Description

    Discount value applied on the product in Percentage

  • Name
    discountAmt
    Type
    object
    Description

    The amount of discount to be applied on the products in the basket

  • Name
    autoApply
    Type
    boolean
    Description

    Flag to check if the promotion has to be auto applied on the products

  • Name
    promoCode
    Type
    string
    Description

    Promotion code used to validate the offer e.g. 'DISCOUNT15'

  • Name
    itemGroupId
    Type
    number
    Description

    Id used to identify the group of items

  • Name
    couponProvider
    Type
    string
    Description

    The entity that provides the coupon to create an offer

  • Name
    isManualPrice
    Type
    boolean
    Description

    Flag to check if the Price is set Manually

  • Name
    priceMatchReqId
    Type
    string
    Description

    Id used to match the price requests

  • Name
    deliveryMessage
    Type
    string
    Description

    Message for the delivery agent provided by the user

  • Name
    variantProducts
    Type
    array
    Description

    A list of all available variants of the current product

  • Name
    productName
    Type
    string
    Description

    Product name of the variant product

  • Name
    variantAttributes
    Type
    array
    Description

    List of variant attributes of the product e.g. Size, Color

  • Name
    variantProductsAttribute
    Type
    array
    Description

    A list of variant attributes of the product

  • Name
    fieldName
    Type
    string
    Description

    Name of the variant attribute

  • Name
    fieldCode
    Type
    string
    Description

    Field code of the atrribute

  • Name
    fieldValues
    Type
    array
    Description

    A list of values for the variant attribute

  • Name
    currentStock
    Type
    number
    Description

    Number of products available in stock

Request

PUT
/api/v2/commerce/basket/:id/delivery/shipping-method?shippingMethodId={{bc_shipping_method_id}}&countryCode={{bc_country_code}}
curl --location --request PUT 'https://api20.bettercommerce.io/api/v2/commerce/basket/:id/delivery/shipping-method?shippingMethodId=&countryCode=GB' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Accept: application/json' \
--header 'UserId;' \
--header 'Email: abc@abc.com' \
--header 'Cookie: ARRAffinity=b13bb339e1ac28f5b31d8289818f929ee76838eb63e5c727c2b61a385a402597; ARRAffinitySameSite=b13bb339e1ac28f5b31d8289818f929ee76838eb63e5c727c2b61a385a402597' \
--data '{
"dayText": "string",
"dayNo": 0,
"cutOffTime": 0,
"price": {
"currencySymbol": "string",
"formatted": {
  "withTax": "string",
  "withoutTax": "string",
  "tax": "string"
},
"raw": {
  "withTax": 0,
  "withoutTax": 0,
  "tax": 0
}
},
"carrierCode": "string",
"deliveryDate": "2022-03-25T05:40:45.510Z"
}'

Response

{
"statusCode": null,
"status": "in Excepteur non minim",
"errors": [
    "reprehenderit voluptate officia",
    "ullamco elit dolore anim qui"
],
"success": false,
"message": "reprehenderit proident non fugiat",
"messageCode": "aute tempor cupidatat Excepteur",
"result": {
    "id": "commodo",
    "currencySymbol": "ea veniam",
    "currencyCode": "in qui tempor",
    "userId": "00000000-0000-0000-0000-000000000000",
    "userEmail": "cupidatat ex velit",
    "grandTotal": {
        "currencySymbol": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "formatted": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "raw": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        }
    },
    "totalWithoutShipping": {
        "currencySymbol": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "formatted": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "raw": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        }
    },
    "shippingMethodId": "in nostrud",
    "shippingCharge": {
        "currencySymbol": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "formatted": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "raw": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        }
    },
    "subTotal": {
        "currencySymbol": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "formatted": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "raw": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        }
    },
    "discount": {
        "currencySymbol": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "formatted": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "raw": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        }
    },
    "taxPercent": 38651018.80622849,
    "additionalCharge": {
        "currencySymbol": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "formatted": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "raw": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        }
    },
    "lineItems": [
        {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        }
    ],
    "promotionsApplied": [
        {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        }
    ],
    "shippingMethods": [
        {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        }
    ],
    "created": "2007-04-01T16:52:45.115Z",
    "lastUpdated": "1975-04-17T19:37:55.092Z",
    "isQuote": true,
    "quoteStatus": 0,
    "customInfo1": "reprehenderit et ",
    "customInfo2": "",
    "customInfo3": "eu Ut",
    "customInfo4": "in officia cupidatat",
    "customInfo5": "occaecat veniam",
    "shippingAddress": {
        "id": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "title": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "firstName": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "lastName": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "address1": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "address2": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "address3": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "city": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "state": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "country": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "countryCode": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "postCode": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "phoneNo": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "mobileNo": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "companyName": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        }
    },
    "billingAddress": {
        "id": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "title": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "firstName": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "lastName": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "address1": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "address2": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "address3": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "city": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "state": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "country": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "countryCode": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "postCode": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "phoneNo": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "mobileNo": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "companyName": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        }
    },
    "postCode": "veniam",
    "maxDimensionMm": 85154145.86075708,
    "companyDiscount": {
        "currencySymbol": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "formatted": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "raw": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        }
    },
    "validUntil": "1975-05-20T03:45:28.919Z",
    "isLocked": false,
    "createdByAdmin": true,
    "poNumber": "fugiat qui",
    "deliveryInstruction": "sunt ea",
    "deliveryPlans": [
        {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        }
    ],
    "hasSubscription": false,
    "subscriptionTotal": {
        "currencySymbol": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "formatted": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "raw": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        }
    },
    "isGiftWrapApplied": true,
    "giftWrapId": "00000000-0000-0000-0000-000000000000",
    "giftWrapOption": [
        {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        }
    ],
    "membershipPlanId": "00000000-0000-0000-0000-000000000000",
    "hasMembership": false,
    "exchangeRate": -89671063.56354791,
    "baseCurrency": "dolore",
    "microSiteId": "00000000-0000-0000-0000-000000000000",
    "baseCurrencyTotal": -88635689.35803534,
    "membershipDiscount": {
        "currencySymbol": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "formatted": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        },
        "raw": {
            "value": "<Error: Too many levels of nesting to fake this schema>"
        }
    }
}
}

PUT/api/v2/commerce/basket/:id/delivery/plan

Basket Update Delivery Plan

This endpoint allows you to update delivery plan for a basket. Typically this delivery plan is provided by OMS

Developers - API Operations:

OperationEndpointResponse
Update baskets/api/v2/commerce/basket/:id/delivery/planBasket Update Delivery Plan.

Required attributes

  • Name
    Id
    Type
    string
    Description

    Id to identify the basket

  • Name
    deliveryPlans
    Type
    model
    Description

    Object containing values for delivery plan

Model attributes

  • Name
    recordId
    Type
    string
    Description

    Record Id to identify the delivery plan records

  • Name
    deliveryType
    Type
    number
    Description

    The type of delivery for the order

  • Name
    fulfilmentChannel
    Type
    number
    Description

    The method by which sellers can sell items through various sales channels and have the company handle the packaging and shipping aspects for them

  • Name
    shippingType
    Type
    number
    Description

    The type of shipping used for delivery of the order

  • Name
    shippingMethodId
    Type
    string
    Description

    Shipping method Id to identify the shipping method

  • Name
    shippingCharge
    Type
    number
    Description

    Shipping charges of the product in basket

  • Name
    pickupStoreId
    Type
    string
    Description

    The id of stores from which the order can be collected

  • Name
    refStoreId
    Type
    string
    Description

    Reference Id of the store

  • Name
    pickupStoreCode
    Type
    string
    Description

    The store code for a pickup store

  • Name
    deliveryCenter
    Type
    object
    Description

    The details of the delivery center which will handle the delivery for this order

  • Name
    recordId
    Type
    string
    Description

    Record Id to identify the delivery center records

  • Name
    code
    Type
    string
    Description

    A code used by the delivery center

  • Name
    name
    Type
    string
    Description

    Name of the delivery center

  • Name
    leadTime
    Type
    number
    Description

    The amount of time that passes from the start of a process until its conclusion

  • Name
    leadTimeUom
    Type
    number
    Description

    The unit of measurement for the lead time

  • Name
    poolCode
    Type
    string
    Description

    Pool code used to identify the collection of products pooled together

  • Name
    items
    Type
    array
    Description

    The list of items to be delivered

  • Name
    recordId
    Type
    string
    Description

    Record Id to identify the items records

  • Name
    basketLineId
    Type
    number
    Description

    Basket line Id used to identify the basket line

  • Name
    parentProductId
    Type
    string
    Description

    Id of the parent product product, used to map personalized products with their parent product

  • Name
    orderLineRecordId
    Type
    string
    Description

    Order line record Id used to identify the records in order line

  • Name
    stockCode
    Type
    string
    Description

    Stock code of the product

  • Name
    productId
    Type
    string
    Description

    Product Id used to identify the product

  • Name
    qty
    Type
    number
    Description

    Quantity of product in the basket

  • Name
    fulfilmentChannel
    Type
    number
    Description

    The method by which sellers can sell items through various sales channels and have the company handle the packaging and shipping aspects for them

  • Name
    created
    Type
    string
    Description

    Date and time when the basket was created

  • Name
    deliveryType
    Type
    number
    Description

    The type of delivery for the order

  • Name
    inventoryType
    Type
    number
    Description

    Type of inventory for the items in basket

  • Name
    lineDeliveryCenterCode
    Type
    string
    Description

    Center code for delivery center of the line

  • Name
    lineDeliveryCenterId
    Type
    string
    Description

    Center Id used to identify the Delivery center for the line

Response Properties

  • Name
    statusCode
    Type
    number
    Description

    Status code of the response

  • Name
    status
    Type
    string
    Description

    Status of the response

  • Name
    errors
    Type
    array
    Description

    List of errors in the response

  • Name
    success
    Type
    boolean
    Description

    Success status of the response

  • Name
    message
    Type
    string
    Description

    Message of the response

  • Name
    messageCode
    Type
    string
    Description

    Message code of the response

  • Name
    result
    Type
    object
    Description

    Result of the response

  • Name
    recordId
    Type
    string
    Description

    RecordId of the record created

  • Name
    id
    Type
    number
    Description

    Id to identify the delivery plan

  • Name
    isValid
    Type
    boolean
    Description

    Flag to check validity of the response

Request

PUT
/api/v2/commerce/basket/:id/delivery/plan
curl --location --request PUT 'https://api20.bettercommerce.io/api/v2/commerce/basket/:id/delivery/plan' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Accept: application/json' \
--header 'UserId;' \
--header 'Email: abc@abc.com' \
--header 'Cookie: ARRAffinity=b13bb339e1ac28f5b31d8289818f929ee76838eb63e5c727c2b61a385a402597; ARRAffinitySameSite=b13bb339e1ac28f5b31d8289818f929ee76838eb63e5c727c2b61a385a402597' \
--data '[
{
"recordId": "00000000-0000-0000-0000-000000000000",
"deliveryType": 0,
"fulfilmentChannel": 0,
"shippingType": 0,
"shippingMethodId": "00000000-0000-0000-0000-000000000000",
"shippingCharge": 0,
"pickupStoreId": "00000000-0000-0000-0000-000000000000",
"refStoreId": "string",
"pickupStoreCode": "string",
"deliveryCenter": {
  "recordId": "00000000-0000-0000-0000-000000000000",
  "code": "string",
  "name": "string"
},
"leadTime": 0,
"leadTimeUom": 0,
"poolCode": "string",
"items": [
  {
    "recordId": "00000000-0000-0000-0000-000000000000",
    "basketLineId": 0,
    "parentProductId": "00000000-0000-0000-0000-000000000000",
    "orderLineRecordId": "00000000-0000-0000-0000-000000000000",
    "stockCode": "string",
    "productId": "00000000-0000-0000-0000-000000000000",
    "qty": 0,
    "fulfilmentChannel": 0,
    "created": "2022-03-25T05:40:45.514Z",
    "leadTime": 0,
    "leadTimeUom": 0,
    "deliveryType": 0,
    "inventoryType": 0,
    "poolCode": "string",
    "lineDeliveryCenterCode": "string",
    "lineDeliveryCenterId": "00000000-0000-0000-0000-000000000000"
  }
]
}
]'

Response

{
"statusCode": null,
"status": "non exercitation nulla laborum",
"errors": [
    "fugiat velit tempor",
    "elit deserunt"
],
"success": true,
"message": "exercitation sit dolor",
"messageCode": "reprehenderit dolor",
"result": {
    "recordId": "00000000-0000-0000-0000-000000000000",
    "id": -98503520,
    "isValid": false
}
}

PUT/api/v2/commerce/basket/:id/delivery/line-plan

Basket Update Line Delivery Plan

This endpoint allows you to update the line delivery plan for a basket.

Developers - API Operations:

OperationEndpointResponse
Update baskets/api/v2/commerce/basket/:id/delivery/line-planBasket Update Line Delivery Plan.

Required attributes

  • Name
    Id
    Type
    string
    Description

    Id to identify the basket

  • Name
    deliveryPlan
    Type
    model
    Description

    selected shipping method id

Model attributes

  • Name
    recordId
    Type
    string
    Description

    Record Id to identify the delivery plan records

  • Name
    deliveryType
    Type
    number
    Description

    The type of delivery for the order

  • Name
    fulfilmentChannel
    Type
    number
    Description

    The method by which sellers can sell items through various sales channels and have the company handle the packaging and shipping aspects for them

  • Name
    shippingType
    Type
    number
    Description

    The type of shipping used for delivery of the order

  • Name
    shippingMethodId
    Type
    string
    Description

    Shipping method Id to identify the shipping method

  • Name
    shippingCharge
    Type
    number
    Description

    Shipping charges of the product in basket

  • Name
    pickupStoreId
    Type
    string
    Description

    The id of stores from which the order can be collected

  • Name
    refStoreId
    Type
    string
    Description

    Reference Id of the store

  • Name
    pickupStoreCode
    Type
    string
    Description

    The store code for a pickup store

  • Name
    deliveryCenter
    Type
    object
    Description

    The details of the delivery center which will handle the delivery for this order

  • Name
    recordId
    Type
    string
    Description

    Record Id to identify the delivery center records

  • Name
    code
    Type
    string
    Description

    A code used by the delivery center

  • Name
    name
    Type
    string
    Description

    Name of the delivery center

  • Name
    leadTime
    Type
    number
    Description

    The amount of time that passes from the start of a process until its conclusion

  • Name
    leadTimeUom
    Type
    number
    Description

    The unit of measurement for the lead time

  • Name
    poolCode
    Type
    string
    Description

    Pool code used to identify the collection of products pooled together

  • Name
    items
    Type
    array
    Description

    The list of items to be delivered

  • Name
    recordId
    Type
    string
    Description

    Record Id to identify the items records

  • Name
    basketLineId
    Type
    number
    Description

    Basket line Id used to identify the basket line

  • Name
    parentProductId
    Type
    string
    Description

    Id of the parent product product, used to map personalized products with their parent product

  • Name
    orderLineRecordId
    Type
    string
    Description

    Order line record Id used to identify the records in order line

  • Name
    stockCode
    Type
    string
    Description

    Stock code of the product

  • Name
    productId
    Type
    string
    Description

    Product Id used to identify the product

  • Name
    qty
    Type
    number
    Description

    Quantity of product in the basket

  • Name
    fulfilmentChannel
    Type
    number
    Description

    The method by which sellers can sell items through various sales channels and have the company handle the packaging and shipping aspects for them

  • Name
    created
    Type
    string
    Description

    Date and time when the basket was created

  • Name
    deliveryType
    Type
    number
    Description

    The type of delivery for the order

  • Name
    inventoryType
    Type
    number
    Description

    Type of inventory for the items in basket

  • Name
    lineDeliveryCenterCode
    Type
    string
    Description

    Center code for delivery center of the line

  • Name
    lineDeliveryCenterId
    Type
    string
    Description

    Center Id used to identify the Delivery center for the line

Response Properties

  • Name
    statusCode
    Type
    number
    Description

    Status code of the response

  • Name
    status
    Type
    string
    Description

    Status of the response

  • Name
    errors
    Type
    array
    Description

    List of errors in the response

  • Name
    success
    Type
    boolean
    Description

    Success status of the response

  • Name
    message
    Type
    string
    Description

    Message of the response

  • Name
    messageCode
    Type
    string
    Description

    Message code of the response

  • Name
    result
    Type
    object
    Description

    Result of the response

  • Name
    recordId
    Type
    string
    Description

    RecordId of the record created

  • Name
    id
    Type
    number
    Description

    Id to identify the delivery plan

  • Name
    isValid
    Type
    boolean
    Description

    Flag to check validity of the response

Request

PUT
/api/v2/commerce/basket/:id/delivery/line-plan
curl --location --request PUT 'https://api20.bettercommerce.io/api/v2/commerce/basket/:id/delivery/line-plan' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Accept: application/json' \
--header 'UserId;' \
--header 'Email: abc@abc.com' \
--header 'Cookie: ARRAffinity=b13bb339e1ac28f5b31d8289818f929ee76838eb63e5c727c2b61a385a402597; ARRAffinitySameSite=b13bb339e1ac28f5b31d8289818f929ee76838eb63e5c727c2b61a385a402597' \
--data '{
"recordId": "00000000-0000-0000-0000-000000000000",
"deliveryType": 0,
"fulfilmentChannel": 0,
"shippingType": 0,
"shippingMethodId": "00000000-0000-0000-0000-000000000000",
"shippingCharge": 0,
"pickupStoreId": "00000000-0000-0000-0000-000000000000",
"refStoreId": "string",
"pickupStoreCode": "string",
"deliveryCenter": {
"recordId": "00000000-0000-0000-0000-000000000000",
"code": "string",
"name": "string"
},
"leadTime": 0,
"leadTimeUom": 0,
"poolCode": "string",
"items": [
{
  "recordId": "00000000-0000-0000-0000-000000000000",
  "basketLineId": 0,
  "parentProductId": "00000000-0000-0000-0000-000000000000",
  "orderLineRecordId": "00000000-0000-0000-0000-000000000000",
  "stockCode": "string",
  "productId": "00000000-0000-0000-0000-000000000000",
  "qty": 0,
  "fulfilmentChannel": 0,
  "created": "2022-03-25T05:40:45.517Z",
  "leadTime": 0,
  "leadTimeUom": 0,
  "deliveryType": 0,
  "inventoryType": 0,
  "poolCode": "string",
  "lineDeliveryCenterCode": "string",
  "lineDeliveryCenterId": "00000000-0000-0000-0000-000000000000"
}
]
}'

Response

{
"statusCode": null,
"status": "non exercitation nulla laborum",
"errors": [
    "fugiat velit tempor",
    "elit deserunt"
],
"success": true,
"message": "exercitation sit dolor",
"messageCode": "reprehenderit dolor",
"result": {
    "recordId": "00000000-0000-0000-0000-000000000000",
    "id": -98503520,
    "isValid": false
}
}

PUT/api/v2/commerce/basket/:id/delivery/instructions

Update Delivery instruction in basket at time of checkout

This endpoint allows you to update delivery instruction in basket at time of checkout.

Developers - API Operations:

OperationEndpointResponse
Update baskets/api/v2/commerce/basket/:id/delivery/instructionsUpdate Delivery instruction in basket at time of checkout.

Required attributes

  • Name
    Id
    Type
    string
    Description

    Id to identify the basket

  • Name
    deliveryInstruction
    Type
    model
    Description

    Delivery instructions to be updated at the time of checkout

Model attributes

  • Name
    fieldValue
    Type
    string
    Description

    Field value containing the delivery instructions to be updated

Response Properties

  • Name
    statusCode
    Type
    number
    Description

    Status code of the response

  • Name
    status
    Type
    string
    Description

    Status of the response

  • Name
    errors
    Type
    array
    Description

    List of errors in the response

  • Name
    success
    Type
    boolean
    Description

    Success status of the response

  • Name
    message
    Type
    string
    Description

    Message of the response

  • Name
    messageCode
    Type
    string
    Description

    Message code of the response

  • Name
    result
    Type
    object
    Description

    Result of the response

  • Name
    recordId
    Type
    string
    Description

    RecordId of the record created

  • Name
    id
    Type
    number
    Description

    Id to identify the delivery plan

  • Name
    isValid
    Type
    boolean
    Description

    Flag to check validity of the response

Request

PUT
/api/v2/commerce/basket/:id/delivery/instructions
curl --location --request PUT 'https://api20.bettercommerce.io/api/v2/commerce/basket/:id/delivery/instructions' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Accept: application/json' \
--header 'UserId;' \
--header 'Email: abc@abc.com' \
--header 'Cookie: ARRAffinity=b13bb339e1ac28f5b31d8289818f929ee76838eb63e5c727c2b61a385a402597; ARRAffinitySameSite=b13bb339e1ac28f5b31d8289818f929ee76838eb63e5c727c2b61a385a402597' \
--data-urlencode 'fieldValue=aliqua adipi'

Response

{
"statusCode": null,
"status": "non exercitation nulla laborum",
"errors": [
    "fugiat velit tempor",
    "elit deserunt"
],
"success": true,
"message": "exercitation sit dolor",
"messageCode": "reprehenderit dolor",
"result": {
    "recordId": "00000000-0000-0000-0000-000000000000",
    "id": -98503520,
    "isValid": false
}
}

PUT/api/v2/commerce/basket/:id/delivery/click-collect-store

Update selected store info for click and collect

This endpoint allows you to update selected store info for click and collect for a basket.

Developers - API Operations:

OperationEndpointResponse
Update baskets/api/v2/commerce/basket/:id/delivery/click-collect-storeUpdate selected store info for click and collect.

Required attributes

  • Name
    Id
    Type
    string
    Description

    Id to identify the basket

  • Name
    address
    Type
    model
    Description

    Updated address for the selected store for click and collect

Model attributes

  • Name
    id
    Type
    string
    Description

    Id to identify the store

  • Name
    name
    Type
    string
    Description

    Name of the store

  • Name
    address1
    Type
    string
    Description

    Address line 1 of the store

  • Name
    address2
    Type
    string
    Description

    Address line 2 of the store

  • Name
    city
    Type
    string
    Description

    City name where the store is located

  • Name
    state
    Type
    string
    Description

    State name where the store is located

  • Name
    postCode
    Type
    string
    Description

    Postal code of the region where the store is located

  • Name
    yourId
    Type
    string
    Description

    Id of the customer who has opted for this store

  • Name
    distanceFromPostCode
    Type
    number
    Description

    Distance of the store from the Postal code

  • Name
    distanceUnit
    Type
    string
    Description

    Unit of the distance provided

  • Name
    shippingPlanId
    Type
    string
    Description

    Shipping plan Id used to identify the shipping plan

  • Name
    type
    Type
    string
    Description

    Type of shipping for the order

  • Name
    leadTimeUnit
    Type
    string
    Description

    Unit of measurement for Lead time

  • Name
    leadTimeMin
    Type
    number
    Description

    The minimum lead time for the order to be delivered

  • Name
    leadTimeMax
    Type
    number
    Description

    The maximum lead time for the order to be delivered

  • Name
    deliveryOption
    Type
    string
    Description

    Delivery option selected bu the user

  • Name
    shippingAddressId
    Type
    string
    Description

    Shipping address Id used to identify the shipping address

  • Name
    openingHours
    Type
    string
    Description

    Opening hours of the store

  • Name
    slots
    Type
    array
    Description

    List of slots available at the store

  • Name
    slot
    Type
    string
    Description

    Available slot of the store

  • Name
    slotMessage
    Type
    string
    Description

    Message for the available slot of the store

  • Name
    whyDelayMsg1
    Type
    string
    Description

    Message stating the reason for delay

  • Name
    whyDelayMsg2
    Type
    string
    Description

    Message stating the reason for delay

  • Name
    whyDelayMsg3
    Type
    string
    Description

    Message stating the reason for delay

  • Name
    selectedSlot
    Type
    string
    Description

    Slot selected by the user

  • Name
    phoneNo
    Type
    string
    Description

    Phone number of the store

  • Name
    timeslotActual
    Type
    string
    Description

    Actual time slot of the store

  • Name
    latitude
    Type
    string
    Description

    Latitude of the geographical location of the store

  • Name
    longitude
    Type
    string
    Description

    Longitude of the geographical location of the store

  • Name
    image
    Type
    string
    Description

    File name/URL of the image of the store

  • Name
    country
    Type
    string
    Description

    Country name where the store is located

  • Name
    hdnCode
    Type
    string
    Description

    HDN code of the store

  • Name
    enableClickCollect
    Type
    boolean
    Description

    Flag to check if the Click collect option is enabled

Response Properties

  • Name
    statusCode
    Type
    number
    Description

    Status code of the response

  • Name
    status
    Type
    string
    Description

    Status of the response

  • Name
    errors
    Type
    array
    Description

    List of errors in the response

  • Name
    success
    Type
    boolean
    Description

    Success status of the response

  • Name
    message
    Type
    string
    Description

    Message of the response

  • Name
    messageCode
    Type
    string
    Description

    Message code of the response

  • Name
    result
    Type
    object
    Description

    Result of the response

  • Name
    recordId
    Type
    string
    Description

    RecordId of the record created

  • Name
    id
    Type
    number
    Description

    Id to identify the store

  • Name
    isValid
    Type
    boolean
    Description

    Flag to check validity of the response

Request

PUT
/api/v2/commerce/basket/:id/delivery/click-collect-store
curl --location --request PUT 'https://api20.bettercommerce.io/api/v2/commerce/basket/:id/delivery/click-collect-store' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Accept: application/json' \
--header 'UserId;' \
--header 'Email: abc@abc.com' \
--header 'Cookie: ARRAffinity=b13bb339e1ac28f5b31d8289818f929ee76838eb63e5c727c2b61a385a402597; ARRAffinitySameSite=b13bb339e1ac28f5b31d8289818f929ee76838eb63e5c727c2b61a385a402597' \
--data '{
"id": "string",
"name": "string",
"address1": "string",
"address2": "string",
"city": "string",
"state": "string",
"postCode": "string",
"yourId": "string",
"distanceFromPostCode": 0,
"distanceUnit": "string",
"shippingPlanId": "string",
"type": "string",
"leadTimeUnit": "string",
"leadTimeMin": 0,
"leadTimeMax": 0,
"deliveryOption": "string",
"shippingAddressId": "string",
"openingHours": "string",
"slots": [
{
  "slot": "string",
  "slotMessage": "string"
}
],
"whyDelayMsg1": "string",
"whyDelayMsg2": "string",
"whyDelayMsg3": "string",
"selectedSlot": "string",
"phoneNo": "string",
"timeslotActual": "string",
"latitude": "string",
"longitude": "string",
"image": "string",
"country": "string",
"hdnCode": "string",
"enableClickCollect": true
}'

Response

{
"statusCode": null,
"status": "non exercitation nulla laborum",
"errors": [
    "fugiat velit tempor",
    "elit deserunt"
],
"success": true,
"message": "exercitation sit dolor",
"messageCode": "reprehenderit dolor",
"result": {
    "recordId": "00000000-0000-0000-0000-000000000000",
    "id": -98503520,
    "isValid": false
}
}