CartAddressRequest
Type: schema
TypeScript Definition
typescript
CartAddressRequest: {{
first_name: string;
last_name?: string | null;
country_code?: string | null;
/** @description Accepts a ten-digit phone number, with optional country prefix and separators such as `+91 98765 43210`; the prefix and separators are removed before validation. */
phone: string;
/** Format: email */
email: string;
address_line1: string;
address_line2?: string | null;
landmark?: string | null;
pincode: string;
city: string;
state: string;
country: string;
/** @description Tax Identification Number specific to the country of operation. */
tax_identification_number?: string | null;
/** @description Use in billing & shipping details only. */
business_name?: string | null;
gstin?: string | null;
};
/** CartBasedFulfillmentCheck */
}OpenAPI Schema
json
{
"title": "CartAddressRequest",
"type": "object",
"externalDocs": {
"url": "https://llm-docs.commercengine.io/storefront/schemas/CartAddressRequest",
"description": "API reference for the CartAddressRequest schema"
},
"required": [
"first_name",
"address_line1",
"city",
"state",
"country",
"pincode",
"phone",
"email"
],
"properties": {
"first_name": {
"type": "string",
"maxLength": 128,
"minLength": 1,
"pattern": "\\S"
},
"last_name": {
"type": [
"string",
"null"
],
"maxLength": 128
},
"country_code": {
"type": [
"string",
"null"
],
"maxLength": 8
},
"phone": {
"description": "Accepts a ten-digit phone number, with optional country prefix and separators such as `+91 98765 43210`; the prefix and separators are removed before validation.",
"type": "string",
"maxLength": 32
},
"email": {
"type": "string",
"format": "email",
"maxLength": 128
},
"address_line1": {
"type": "string",
"maxLength": 256,
"minLength": 1,
"pattern": "\\S"
},
"address_line2": {
"type": [
"string",
"null"
],
"maxLength": 256
},
"landmark": {
"type": [
"string",
"null"
],
"maxLength": 128
},
"pincode": {
"type": "string",
"maxLength": 6,
"minLength": 1,
"pattern": "\\S"
},
"city": {
"type": "string",
"maxLength": 128,
"minLength": 1,
"pattern": "\\S"
},
"state": {
"type": "string",
"maxLength": 128,
"minLength": 1,
"pattern": "\\S"
},
"country": {
"type": "string",
"maxLength": 128,
"minLength": 1,
"pattern": "\\S"
},
"tax_identification_number": {
"description": "Tax Identification Number specific to the country of operation.",
"type": [
"string",
"null"
],
"examples": [],
"maxLength": 64
},
"business_name": {
"description": "Use in billing & shipping details only.",
"type": [
"string",
"null"
],
"maxLength": 128
},
"gstin": {
"type": [
"string",
"null"
],
"maxLength": 16,
"pattern": "^(?:\\s*|[0-9]{2}[A-Z]{5}[0-9]{4}[A-Z][1-9A-Z]Z[0-9A-Z])$"
}
},
"examples": []
}Auto-generated from OpenAPI spec and TypeScript definitions