Skip to content

CustomerAddress ​

Type: schema

TypeScript Definition ​

typescript
CustomerAddress: {{
            id?: $Read<string>;
            first_name: string | null;
            last_name?: string | null;
            /** @description Two-letter code begin with a plus sign prefix that identifies different countries. By default it will be +91 if not provided. */
            country_code?: string;
            /** @description 10 digit phone number without country code. */
            phone: string | null;
            email: string | null;
            address_line1: string | null;
            address_line2?: string | null;
            landmark?: string | null;
            pincode: string | null;
            city: string | null;
            state: string | null;
            /** @description Country name. `null` when the address was saved without one. */
            country: string | null;
            /** @description Use in shipping details only for third party. */
            gstin?: string | null;
            /** @description Use in shipping details only for third party. */
            business_name?: string | null;
            is_phone_verified?: $Read<boolean>;
            is_email_verified?: $Read<boolean>;
            is_default_shipping?: boolean;
            is_default_billing?: boolean;
            /** Format: date-time */
            created_at?: $Read<string>;
            /** Format: date-time */
            modified_at?: $Read<string>;
            is_primary?: $Read<boolean>;
        };
        /**
         * CustomerAttributeKind
         * @description Who sets the attribute's values. `custom`: the store's own attribute, set by admins and, unless it is `is_readonly`, by shoppers in the storefront. `linked`: set from the customer's KYC document of the same type: the document number once it is approved, otherwise `not_submitted`, `submitted` or `rejected`. `system`: set by Commerce Engine, such as the campaign source of a shopper's first and latest visits (`initial-utm-source`, `utm-source`).
         * @enum {string}
         */
}

OpenAPI Schema ​

json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "readOnly": true
    },
    "first_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "last_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "country_code": {
      "description": "Two-letter code begin with a plus sign prefix that identifies different countries. By default it will be +91 if not provided.\r\n",
      "type": "string"
    },
    "phone": {
      "description": "10 digit phone number without country code.",
      "type": [
        "string",
        "null"
      ]
    },
    "email": {
      "type": [
        "string",
        "null"
      ]
    },
    "address_line1": {
      "type": [
        "string",
        "null"
      ]
    },
    "address_line2": {
      "type": [
        "string",
        "null"
      ]
    },
    "landmark": {
      "type": [
        "string",
        "null"
      ]
    },
    "pincode": {
      "type": [
        "string",
        "null"
      ]
    },
    "city": {
      "type": [
        "string",
        "null"
      ]
    },
    "state": {
      "type": [
        "string",
        "null"
      ]
    },
    "country": {
      "description": "Country name. `null` when the address was saved without one.",
      "type": [
        "string",
        "null"
      ]
    },
    "gstin": {
      "description": "Use in shipping details only for third party.",
      "type": [
        "string",
        "null"
      ]
    },
    "business_name": {
      "description": "Use in shipping details only for third party.",
      "type": [
        "string",
        "null"
      ]
    },
    "is_phone_verified": {
      "type": "boolean",
      "readOnly": true
    },
    "is_email_verified": {
      "type": "boolean",
      "readOnly": true
    },
    "is_default_shipping": {
      "type": "boolean"
    },
    "is_default_billing": {
      "type": "boolean"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "modified_at": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "is_primary": {
      "type": "boolean",
      "readOnly": true
    }
  },
  "examples": [],
  "externalDocs": {
    "url": "https://llm-docs.commercengine.io/admin-pos/schemas/CustomerAddress"
  },
  "required": [
    "first_name",
    "phone",
    "email",
    "address_line1",
    "pincode",
    "city",
    "state",
    "country"
  ],
  "title": "CustomerAddress",
  "x-tags": [
    "Customers"
  ]
}

Auto-generated from OpenAPI spec and TypeScript definitions

Last updated: