Skip to content

UpdateBusinessAddress ​

Type: schema

TypeScript Definition ​

typescript
UpdateBusinessAddress: {{
            first_name: string;
            last_name: string | null;
            /**
             * @description Country calling code, optionally prefixed with +. Defaults to +91.
             * @default +91
             */
            country_code: string;
            /** @description Phone number. After removing formatting, an Indian +91 prefix and leading zeros, it must have exactly 10 digits. */
            phone: string;
            /** Format: email */
            email: string;
            address_line1: string;
            address_line2: string | null;
            landmark: string | null;
            pincode: string;
            city: string;
            state: string;
            /** @default India */
            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.
             * @default false
             */
            is_default_billing: boolean;
            /**
             * @description Indicates if the address is the default shipping address for the customer.
             * @default false
             */
            is_default_shipping: boolean;
            /**
             * @description Nickname for the address.
             * @default null
             */
            nickname: string | null;
        };
        /**
         * UpdateCartItem
         * @description Identify a line by SKU or by product and optional variant. A non-null variant requires product_id and cannot be combined with SKU. Use quantity 0 to remove it.
         */
}

OpenAPI Schema ​

json
{
  "title": "UpdateBusinessAddress",
  "type": "object",
  "externalDocs": {
    "url": "https://llm-docs.commercengine.io/storefront/schemas/UpdateBusinessAddress",
    "description": "API reference for the UpdateBusinessAddress schema"
  },
  "required": [
    "first_name",
    "last_name",
    "phone",
    "email",
    "address_line1",
    "address_line2",
    "landmark",
    "pincode",
    "city",
    "state",
    "tax_identification_number",
    "business_name"
  ],
  "properties": {
    "first_name": {
      "type": "string",
      "maxLength": 128,
      "minLength": 1
    },
    "last_name": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 128,
      "minLength": 1
    },
    "country_code": {
      "description": "Country calling code, optionally prefixed with +. Defaults to +91.",
      "type": "string",
      "default": "+91",
      "maxLength": 8,
      "minLength": 1,
      "pattern": "^\\+?\\d{1,4}$"
    },
    "phone": {
      "description": "Phone number. After removing formatting, an Indian +91 prefix and leading zeros, it must have exactly 10 digits.",
      "type": "string",
      "maxLength": 16,
      "minLength": 1
    },
    "email": {
      "type": "string",
      "format": "email",
      "maxLength": 128,
      "minLength": 1
    },
    "address_line1": {
      "type": "string",
      "maxLength": 256,
      "minLength": 1
    },
    "address_line2": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 256,
      "minLength": 1
    },
    "landmark": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 128,
      "minLength": 1
    },
    "pincode": {
      "type": "string",
      "maxLength": 6,
      "minLength": 6
    },
    "city": {
      "type": "string",
      "maxLength": 128,
      "minLength": 1
    },
    "state": {
      "type": "string",
      "maxLength": 128,
      "minLength": 1
    },
    "country": {
      "type": "string",
      "default": "India",
      "maxLength": 128,
      "minLength": 1
    },
    "tax_identification_number": {
      "description": "Tax Identification Number specific to the country of operation.",
      "type": [
        "string",
        "null"
      ],
      "examples": [],
      "maxLength": 64,
      "minLength": 1
    },
    "business_name": {
      "description": "Use in billing & shipping details only.",
      "type": [
        "string",
        "null"
      ],
      "maxLength": 128,
      "minLength": 1
    },
    "is_default_billing": {
      "description": "Indicates if the address is the default billing address for the customer.",
      "type": "boolean",
      "default": false
    },
    "is_default_shipping": {
      "description": "Indicates if the address is the default shipping address for the customer.",
      "type": "boolean",
      "default": false
    },
    "nickname": {
      "description": "Nickname for the address.",
      "type": [
        "string",
        "null"
      ],
      "default": null,
      "maxLength": 128,
      "minLength": 1
    }
  },
  "examples": []
}

Auto-generated from OpenAPI spec and TypeScript definitions

Last updated: