BigCommerce · Example Payload

Bigcommerce Addcartlineitem Example

E-CommerceRetailCatalogOrdersCheckoutPaymentsSaaS

Bigcommerce Addcartlineitem Example is an example object payload from BigCommerce, with 6 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

operationIdmethodpathsummaryrequestExamplesresponseExamples

Example Payload

Raw ↑
{
  "operationId": "addCartLineItem",
  "method": "POST",
  "path": "/carts/{cartId}/items",
  "summary": "BigCommerce Add Cart Line Items",
  "requestExamples": [
    {
      "contentType": "application/json",
      "name": "With Option Selections",
      "example": {
        "lineItems": [
          {
            "quantity": 2,
            "productId": 230,
            "variantId": 124,
            "optionSelections": [
              {
                "optionId": 10,
                "optionValue": 117
              },
              {
                "optionId": 11,
                "optionValue": 125
              }
            ]
          }
        ]
      }
    },
    {
      "contentType": "application/json",
      "name": "With Gift Wrapping",
      "example": {
        "lineItems": [
          {
            "quantity": 2,
            "productId": 230,
            "variantId": 124,
            "giftWrapping": {
              "wrapTogether": true,
              "wrapDetails": [
                {
                  "id": 1,
                  "message": "Happy Birthday"
                }
              ]
            }
          }
        ]
      }
    }
  ],
  "responseExamples": []
}