Skip to content

GenerateOtpWithPhone ​

Type: schema

TypeScript Definition ​

typescript
GenerateOtpWithPhone: {{
            /** @enum {unknown} */
            channel: "sms" | "whatsapp";
            country_code?: components["schemas"]["CountryCode"];
            /** @description 10 digit phone number without country code. */
            phone: string;
            /** @default verify-phone */
            otp_action: components["schemas"]["GenerateOtpAction"];
        };
        /**
         * GoodsTaxLine
         * @description Goods value and tax at one applicable rate, including qualifying mixed supplies.
         */
}

Component References ​

ReferenceResolves To
components["schemas"]["CountryCode"]CountryCode
components["schemas"]["GenerateOtpAction"]GenerateOtpAction

OpenAPI Schema ​

json
{
  "title": "GenerateOtpWithPhone",
  "type": "object",
  "externalDocs": {
    "url": "https://llm-docs.commercengine.io/storefront/schemas/GenerateOtpWithPhone",
    "description": "API reference for the GenerateOtpWithPhone schema"
  },
  "required": [
    "channel",
    "phone"
  ],
  "properties": {
    "channel": {
      "enum": [
        "sms",
        "whatsapp"
      ]
    },
    "country_code": {
      "$ref": "#/components/schemas/CountryCode"
    },
    "phone": {
      "description": "10 digit phone number without country code.",
      "type": "string",
      "pattern": "^\\d{10}$"
    },
    "otp_action": {
      "default": "verify-phone",
      "$ref": "#/components/schemas/GenerateOtpAction"
    }
  }
}

Auto-generated from OpenAPI spec and TypeScript definitions

Last updated: