Skip to main content

Set cart

PATCH 

/v1/:id/set

Set cart

Request

Path Parameters

    id stringrequired

    Cart ID

    Example: 9597879817

Body

required
    products object[]required

    Product identifiers for the cart.

  • Array [
  • id stringrequired

    Product ID.

    variantId stringrequired

    The ID of the product variant.

    quantity floatrequired

    Possible values: >= 1

    Quantity of the product variant.

  • ]

Responses

Success

Schema
    data object
    products object[]required

    Product identifiers for the cart.

  • Array [
  • id stringrequired

    Product ID.

    variantId stringrequired

    The ID of the product variant.

    quantity floatrequired

    Possible values: >= 1

    Quantity of the product variant.

  • ]
  • id stringrequired

    Unique identifier for the cart

    errors object[]
  • Array [
  • id stringrequired

    Unique identifier for error. Can be used for tracing across services.

    status floatrequired

    HTTP status code.

    code stringrequired

    Unique code for specific error.

    title stringrequired

    Short description what the error entails.

  • ]
Loading...