BigCommerce · Schema

requestLineItems

Cart object used in add items requests.

E-CommerceRetailCatalogOrderCheckoutPaymentsSoftware-as-a-Service
View JSON Schema on GitHub

JSON Schema

bigcommerce-line-items-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/bigcommerce/main/json-schema/bigcommerce-line-items-request-schema.json",
  "title": "requestLineItems",
  "description": "Cart object used in add items requests.",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bigcommerce-cart-items-api-openapi.yml#/components/schemas/LineItemsRequest",
  "oneOf": [
    {
      "properties": {
        "lineItems": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/requestCartPostLineItem"
          }
        }
      },
      "required": [
        "lineItems"
      ]
    },
    {
      "properties": {
        "giftCertificates": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/requestLineItemGiftCertificate"
          }
        }
      },
      "required": [
        "giftCertificates"
      ]
    },
    {
      "properties": {
        "lineItems": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/requestCartPostLineItem"
          }
        },
        "giftCertificates": {
          "$ref": "#/$defs/requestLineItemGiftCertificate"
        }
      },
      "required": [
        "lineItems",
        "giftCertificates"
      ]
    }
  ],
  "type": "object",
  "x-internal": false,
  "$defs": {
    "requestCartPostLineItem": {
      "title": "Line Item Request Data",
      "anyOf": [
        {
          "properties": {
            "productId": {
              "type": "number",
              "description": "ID of the product."
            },
            "quantity": {
              "type": "number",
              "description": "Quantity of this item."
            },
            "giftWrapping": {
              "$ref": "#/$defs/requestPostOrPutGiftWrapping"
            }
          },
          "required": [
            "productId",
            "quantity"
          ],
          "title": "Simple product"
        },
        {
          "properties": {
            "productId": {
              "type": "number",
              "description": "ID of the product."
            },
            "quantity": {
              "type": "number",
              "description": "Quantity of this item."
            },
            "variantId": {
              "type": "number",
              "description": "ID of the variant."
            },
            "giftWrapping": {
              "$ref": "#/$defs/requestPostOrPutGiftWrapping"
            }
          },
          "required": [
            "productId",
            "quantity",
            "variantId"
          ],
          "title": "Product with a variant"
        }
      ],
      "x-internal": false,
      "type": "object"
    },
    "requestLineItemGiftCertificate": {
      "title": "Line Item Gift Certificate Request Data",
      "required": [
        "amount",
        "name",
        "quantity",
        "recipient",
        "sender",
        "theme"
      ],
      "type": "object",
      "properties": {
        "amount": {
          "maximum": 1000,
          "minimum": 1,
          "type": "number",
          "description": "Gift-certificate amount."
        },
        "message": {
          "type": "string",
          "description": "Message shown to recipient, as provided by sender."
        },
        "name": {
          "type": "string",
          "description": "Name assigned to this gift-certificate line item."
        },
        "quantity": {
          "minimum": 1,
          "type": "integer",
          "description": "Quantity of this item."
        },
        "recipient": {
          "$ref": "#/$defs/requestLineItemGiftCertificateRecipient"
        },
        "sender": {
          "$ref": "#/$defs/requestLineItemGiftCertificateSender"
        },
        "theme": {
          "type": "string",
          "description": "Currently supports `Birthday`, `Boy`, `Celebration`, `Christmas`, `General`, and `Girl`."
        }
      },
      "x-internal": false
    },
    "requestLineItemGiftCertificateRecipient": {
      "title": "Contact Entity",
      "type": "object",
      "properties": {
        "email": {
          "type": "string",
          "description": "Contact's email address.",
          "format": "email"
        },
        "name": {
          "type": "string",
          "description": "Contact's name."
        }
      },
      "x-internal": false
    },
    "requestLineItemGiftCertificateSender": {
      "title": "Contact Entity",
      "type": "object",
      "properties": {
        "email": {
          "type": "string",
          "description": "Contact's email address.",
          "format": "email"
        },
        "name": {
          "type": "string",
          "description": "Contact's name."
        }
      },
      "x-internal": false
    },
    "requestPostOrPutGiftWrapping": {
      "title": "Gift Wrapping Request Data",
      "required": [
        "wrapTogether",
        "wrapDetails"
      ],
      "type": [
        "object",
        "null"
      ],
      "description": "if passing null, it will remove the current gift wrapping for the item",
      "properties": {
        "wrapTogether": {
          "type": "boolean",
          "description": "Boolean value that specifies whether items whether items should be wrapped together or wrapped individually."
        },
        "wrapDetails": {
          "type": "array",
          "description": "Details for the gift wrapping option selected. This can be specified for each line item or together based on wrapTogether value.\nIf wrapTogether is false, each element in the wrapDetails array determines each item's specific wrapping. \n(e.g if this line item has 6 quantity, you can pass at maximum 6 elements for the array to spefified each one's wrapping)  \nIf wrapTogether is true, we will only use 1st element in the wrapDetails array to determine what to be wrapped",
          "items": {
            "type": "object",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "integer",
                "description": "Identifier of the gift wrapping option selected."
              },
              "message": {
                "type": "string",
                "description": "Custom gift message."
              }
            }
          }
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/bigcommerce-line-items-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.