UpdateCustomerAddress
Type: schema
TypeScript Definition
typescript
UpdateCustomerAddress: {{
first_name?: string;
last_name?: string | null;
country_code?: string;
/** @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;
/** @description Indicates if the address is the default billing address for the customer. */
is_default_billing?: boolean;
/** @description Indicates if the address is the default shipping address for the customer. */
is_default_shipping?: boolean;
/** @description Normalized to a lowercase slug. */
nickname?: string | null;
};
/** UpdateDocument */
}OpenAPI Schema
json
{
"title": "UpdateCustomerAddress",
"type": "object",
"externalDocs": {
"url": "https://llm-docs.commercengine.io/storefront/schemas/UpdateCustomerAddress",
"description": "API reference for the UpdateCustomerAddress schema"
},
"properties": {
"first_name": {
"type": "string",
"maxLength": 128
},
"last_name": {
"type": [
"string",
"null"
],
"maxLength": 128
},
"country_code": {
"type": "string",
"pattern": "^\\+?\\d{1,4}$"
},
"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"
},
"email": {
"type": "string",
"format": "email",
"maxLength": 128
},
"address_line1": {
"type": "string",
"maxLength": 256
},
"address_line2": {
"type": [
"string",
"null"
],
"maxLength": 256
},
"landmark": {
"type": [
"string",
"null"
],
"maxLength": 128
},
"pincode": {
"type": "string",
"maxLength": 6,
"minLength": 6
},
"city": {
"type": "string",
"maxLength": 128
},
"state": {
"type": "string",
"maxLength": 128
},
"country": {
"type": "string",
"maxLength": 128
},
"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
},
"is_default_billing": {
"description": "Indicates if the address is the default billing address for the customer.",
"type": "boolean"
},
"is_default_shipping": {
"description": "Indicates if the address is the default shipping address for the customer.",
"type": "boolean"
},
"nickname": {
"description": "Normalized to a lowercase slug.",
"type": [
"string",
"null"
],
"maxLength": 32
}
},
"examples": []
}Auto-generated from OpenAPI spec and TypeScript definitions