{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/bigcommerce/main/json-schema/bigcommerce-update-consignment-request-schema.json", "title": "Update Consignment Request", "description": "One or more of these three fields are mandatory. `address` and `line_items` can be updated in one request. `shipping_option_id` has to be updated in a separate request because changing the address or line items can invalidate the previously available shipping options.", "x-generated": "2026-10-12", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/bigcommerce-checkout-consignments-api-openapi.yml#/components/schemas/UpdateConsignmentRequest", "type": "object", "properties": { "address": { "title": "Address Properties", "required": [ "country_code", "email" ], "type": "object", "properties": { "first_name": { "type": "string", "description": "" }, "last_name": { "type": "string", "description": "" }, "email": { "type": "string", "description": "" }, "company": { "type": "string", "description": "" }, "address1": { "type": "string", "description": "" }, "address2": { "type": "string", "description": "" }, "city": { "type": "string", "description": "" }, "state_or_province": { "type": "string", "description": "Represents state or province." }, "state_or_province_code": { "type": "string", "description": "" }, "country_code": { "type": "string", "description": "" }, "postal_code": { "type": "string", "description": "" }, "phone": { "pattern": "^\\+?[1-9]\\d{1,14}(x\\d{1-5})?$", "type": "string", "description": "" }, "custom_fields": { "type": "array", "description": "", "items": { "title": "Custom Field", "type": "object", "properties": { "field_id": { "type": "string", "description": "" }, "field_value": { "type": "string", "description": "This can also be an array for fields that need to support a list of values (e.g., a set of check boxes.)" } } } } } }, "line_items": { "type": "array", "description": "", "items": { "title": "Consignment Line Item", "required": [ "item_id", "quantity" ], "type": "object", "properties": { "item_id": { "type": "string", "description": "Corresponds to `line_items.physical_items[N].id` value from `GET`checkout response." }, "quantity": { "type": "integer", "description": "", "format": "int32" } } } }, "shipping_option_id": { "type": "string", "description": "" }, "pickup_option": { "type": "object", "properties": { "pickup_method_id": { "type": "integer" } } } }, "x-internal": false }