{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "#/components/schemas/BaseOptions", "title": "Base Rate Request", "description": "The minimum required payload that is sent to retrieve rates.", "type": "object", "x-internal": false, "properties": { "origin": { "type": "object", "title": "Shipping Address", "description": "Object representing a destination or origin address for items.", "required": [ "zip", "country_iso2" ], "properties": { "street_1": { "type": "string", "maxLength": 255 }, "street_2": { "type": "string", "maxLength": 255 }, "zip": { "type": "string", "maxLength": 20, "example": "94105" }, "city": { "type": "string", "maxLength": 50, "example": "San Francisco" }, "state_iso2": { "type": "string", "description": "State in ISO_3166 2 format.", "maxLength": 2 }, "country_iso2": { "type": "string", "description": "Country in ISO_3166 2 format.", "maxLength": 2, "example": "US" }, "address_type": { "description": "Optional. Defaults to `RESIDENTIAL`.", "type": "string", "enum": [ "RESIDENTIAL", "COMMERCIAL" ] } } }, "destination": { "type": "object", "title": "Shipping Address", "description": "Object representing a destination or origin address for items.", "required": [ "zip", "country_iso2" ], "properties": { "street_1": { "type": "string", "maxLength": 255 }, "street_2": { "type": "string", "maxLength": 255 }, "zip": { "type": "string", "maxLength": 20, "example": "94105" }, "city": { "type": "string", "maxLength": 50, "example": "San Francisco" }, "state_iso2": { "type": "string", "description": "State in ISO_3166 2 format", "maxLength": 2 }, "country_iso2": { "type": "string", "description": "Country in ISO_3166 2 format", "maxLength": 2, "example": "US" }, "address_type": { "description": "Defaults to residential. Optional.", "type": "string", "enum": [ "RESIDENTIAL", "COMMERCIAL" ] }, "form_fields": { "type": "object", "example": { "1": "selected_value", "3": "checkbox_selection_1" }, "description": "Describes one or more [custom form fields](/docs/rest-storefront/forms). Property key is the global ID of a shipping address form field. When no custom fields exist, the object is empty.", "properties": { "