UpdateCustomerRegisteredAddress
Type: schema
Description
Partial registered address update. Omitted fields retain their values on an existing primary address; serializer defaults do not apply. When no primary exists, first_name, address_line1, pincode, city and state are required. Phone and email must be supplied unless the existing selected account already has them; this validation uses contacts before any changes in the same request. New-address persistence fills omitted phone, email and country_code from the account after its update (country_code falls back to +91), country with India and shipping with false. Strings are trimmed; blank strings are accepted only for last_name, address_line2, landmark, business_name and tax_identification_number.
TypeScript Definition
UpdateCustomerRegisteredAddress: {{
first_name?: string;
last_name?: string | null;
country_code?: string;
/** @description 10 ASCII digits without country code. Leading zeros are removed after 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 Also fills the customer's business name when it is empty and this value is nonempty. */
business_name?: string | null;
tax_identification_number?: string | null;
is_default_shipping?: boolean;
};
/**
* UpiPayment
* @description UPI Payment
*/
}OpenAPI Schema
{
"description": "Partial registered address update. Omitted fields retain their values on an existing primary address; serializer defaults do not apply. When no primary exists, first_name, address_line1, pincode, city and state are required. Phone and email must be supplied unless the existing selected account already has them; this validation uses contacts before any changes in the same request. New-address persistence fills omitted phone, email and country_code from the account after its update (country_code falls back to +91), country with India and shipping with false. Strings are trimmed; blank strings are accepted only for last_name, address_line2, landmark, business_name and tax_identification_number.",
"type": "object",
"properties": {
"first_name": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"last_name": {
"type": [
"string",
"null"
],
"maxLength": 128
},
"country_code": {
"type": "string",
"maxLength": 8,
"minLength": 1,
"pattern": "^\\+?\\d{1,4}$"
},
"phone": {
"description": "10 ASCII digits without country code. Leading zeros are removed after validation.",
"type": "string",
"maxLength": 16,
"minLength": 1,
"pattern": "^[0-9]{10}$"
},
"email": {
"type": "string",
"format": "email",
"maxLength": 128,
"minLength": 1
},
"address_line1": {
"type": "string",
"maxLength": 256,
"minLength": 1
},
"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,
"minLength": 1
},
"state": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"country": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"business_name": {
"description": "Also fills the customer's business name when it is empty and this value is nonempty.",
"type": [
"string",
"null"
],
"maxLength": 128
},
"tax_identification_number": {
"type": [
"string",
"null"
],
"maxLength": 64
},
"is_default_shipping": {
"type": "boolean"
}
},
"externalDocs": {
"url": "https://llm-docs.commercengine.io/admin-pos/schemas/UpdateCustomerRegisteredAddress"
},
"title": "UpdateCustomerRegisteredAddress",
"x-tags": [
"Customers"
]
}Auto-generated from OpenAPI spec and TypeScript definitions