> For the complete documentation index, see [llms.txt](https://docs.tnid.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tnid.com/company/b2c-features/generate-sms-opt-in-qr-code.md).

# Generate SMS Opt-In QR Code

```
mutation (
      $telephoneNumberId: ID!
      $subscriptionTopicIds: [ID!]!
      $type: SmsOptInQrCodeType!
  ) {
    generateSmsOptInQrCode (
      telephoneNumberId: $telephoneNumberId
      subscriptionTopicIds: $subscriptionTopicIds
      type: $type
    ) {
      message
      qrCode
      telephoneNumber {
        id
      }
    }
  }
```
