Skip to content

Address ​

Type: schema

TypeScript Definition ​

typescript
Address: {{
            id: $Read<string>;
            first_name: string;
            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;
            email: string;
            address_line1: string;
            address_line2: string | null;
            landmark: string | null;
            pincode: string;
            city: string;
            state: string;
            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>;
            /** Format: date-time */
            created_at: $Read<string>;
            /** Format: date-time */
            modified_at: $Read<string>;
            is_default_billing: boolean;
            is_default_shipping: boolean;
            is_primary: $Read<boolean>;
        };
        /**
         * AppliedPromotion
         * @description Details about an active coupon applied to a cart/order
         */
}

OpenAPI Schema ​

json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "readOnly": true
    },
    "first_name": {
      "type": "string"
    },
    "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"
    },
    "email": {
      "type": "string"
    },
    "address_line1": {
      "type": "string"
    },
    "address_line2": {
      "type": [
        "string",
        "null"
      ]
    },
    "landmark": {
      "type": [
        "string",
        "null"
      ]
    },
    "pincode": {
      "type": "string"
    },
    "city": {
      "type": "string"
    },
    "state": {
      "type": "string"
    },
    "country": {
      "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
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "modified_at": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "is_default_billing": {
      "type": "boolean"
    },
    "is_default_shipping": {
      "type": "boolean"
    },
    "is_primary": {
      "type": "boolean",
      "readOnly": true
    }
  },
  "examples": [],
  "externalDocs": {
    "url": "https://llm-docs.commercengine.io/admin-pos/schemas/Address"
  },
  "required": [
    "first_name",
    "phone",
    "email",
    "address_line1",
    "pincode",
    "city",
    "state",
    "country",
    "id",
    "last_name",
    "country_code",
    "address_line2",
    "landmark",
    "gstin",
    "business_name",
    "is_phone_verified",
    "is_email_verified",
    "created_at",
    "modified_at",
    "is_default_billing",
    "is_default_shipping",
    "is_primary"
  ],
  "title": "Address",
  "x-tags": [
    "Customers"
  ]
}

Auto-generated from OpenAPI spec and TypeScript definitions

Last updated: