> ## Documentation Index
> Fetch the complete documentation index at: https://developers.redo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# smsTemplateSendTest

> Send a test SMS of a saved template to a phone number, as the template builder's Send test text does. Sends the saved template, not unsaved edits. Counts toward the store's daily test SMS limit, shared with the Redo app. `orderNumber` fills the SMS with that order's data, or with its return or Try-first contract for those templates; when it is omitted or matches nothing, the SMS carries sample data (see `sampleData`). Returns null if no template with that id is owned by the caller.

**Required scopes:** [`marketing_templates_send`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-marketing_templates_send)

**Store must have one of:** `EMAIL_SMS`, `HSA`, `ORDER_TRACKING`, `RETURNS`, `TNPL`, `REVIEWS`

## Arguments

**id** `ID!` *required*

The template's `id`, or its `legacyId` from an earlier version of the Redo API.

**orderNumber** `String`

An order number of this store, such as `#1001`, whose data fills the SMS instead of sample data.

**phoneNumber** `String!` *required*

The recipient phone number in E.164 format, such as `+15551234567`.

## Returns

**smsTemplateSendTest** `[SmsTemplateSendTestResult](/docs/api-reference/v3/reference/marketing/sms-template-send-test-result)`

What a test SMS send did.

**fields**

**sampleData** `Boolean!` *required*

Whether the SMS was filled with Redo's sample data instead of a real order or return. True when `orderNumber` was omitted, matched no order of this store, or (for a return template) matched an order with no return.

## Example

```graphql theme={null}
mutation {
  smsTemplateSendTest(id: "...", orderNumber: "...", phoneNumber: "...") {
    sampleData
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.