Raw schema
{
"type": "object",
"properties": {
"seller_handle": {
"type": "string",
"minLength": 3,
"maxLength": 40,
"pattern": "^[a-z0-9-]+$",
"description": "Seller handle from search_products. REQUIRED for network tokens; omit for seller-scoped tokens (their own seller is implicit)."
},
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"variant_id": {
"type": "string",
"minLength": 1,
"description": "Product variant ID from search_products results"
},
"quantity": {
"type": "integer",
"minimum": 1,
"description": "Quantity to add"
},
"measure_amount": {
"type": "number",
"exclusiveMinimum": 0,
"description": "Sold-by-measure amount (e.g. 0.4 oz) for variants priced by measure; omit for fixed-price variants"
}
},
"required": [
"variant_id",
"quantity"
],
"additionalProperties": false
},
"minItems": 1,
"maxItems": 50,
"description": "Line items to add — all must belong to the same seller"
},
"shipping_address": {
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 150,
"description": "Buyer's full name"
},
"line1": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Street address line 1"
},
"line2": {
"anyOf": [
{
"type": "string",
"maxLength": 200
},
{
"type": "null"
}
],
"description": "Street address line 2 (apt, suite)"
},
"city": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"region": {
"type": "string",
"minLength": 1,
"maxLength": 50,
"description": "US state code (e.g. 'CA', 'NE') — matched against seller's delivery_coverage.states"
},
"postal_code": {
"type": "string",
"minLength": 3,
"maxLength": 20,
"description": "Postal/ZIP code"
},
"country": {
"type": "string",
"minLength": 2,
"maxLength": 2,
"default": "US",
"description": "ISO 3166-1 alpha-2 country code"
},
"phone": {
"anyOf": [
{
"type": "string",
"maxLength": 30
},
{
"type": "null"
}
],
"description": "Optional contact phone for delivery"
}
},
"required": [
"name",
"line1",
"city",
"region",
"postal_code"
],
"additionalProperties": false,
"description": "Structured shipping address collected conversationally from the buyer"
},
"external_customer_ref": {
"type": "string",
"minLength": 1,
"maxLength": 255,
"description": "Embedded-commerce pass-through: the seller's own opaque customer id for a cart from their embed widget. Omit unless you are the embed flow."
}
},
"required": [
"items",
"shipping_address"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}