# Send Paylink by SMS or email

To send the paylink by SMS or email:

{% stepper %}
{% step %}
Use the POST method with the `/rest/v2/sms-reg/send-sms` endpoint.
{% endstep %}

{% step %}
Add the parameters as shown in the following sample request body.

```json
{
    "phone": "678-999-8212",
    "link": "https://gateway-sb.clearent.net/paylink/919922950769/10011120?amount=41.33",
    "merchantName": "Los Pollos Hermanos"
}
```

The following table describes the request body parameters:

<table data-full-width="true"><thead><tr><th width="100.3333740234375">Name</th><th width="119.66668701171875">Data type</th><th width="119.66668701171875">Required?</th><th>Description</th></tr></thead><tbody><tr><td><code>phone</code></td><td>Numeric</td><td>Required</td><td>The recipient’s phone number in either ###-###-#### or ########## format. The field requires exactly 12 characters.</td></tr><tr><td><code>link</code></td><td>String</td><td>Required</td><td>The paylink URL.</td></tr><tr><td><code>merchantName</code></td><td>String</td><td>Required</td><td>The merchant’s “doing business as” (DBA) name.</td></tr></tbody></table>
{% endstep %}
{% endstepper %}

The following response code appears when the paylink is sent successfully:

```json
{
    "code": "201",
    "status": "SUCCESS",
    "exchange-id": "ID-clearent-sms-registration-1-123456789-1011-1213-1415-e4f438233dd5"
}
```

The following table describes the fields in the response body for the sent paylink:

<table><thead><tr><th width="121.00006103515625" valign="top">Name</th><th width="115" valign="top">Data type</th><th valign="top">Description</th></tr></thead><tbody><tr><td valign="top"><code>code</code></td><td valign="top">Numeric</td><td valign="top">The HTTP status code returned in the response.</td></tr><tr><td valign="top"><code>status</code></td><td valign="top">Text</td><td valign="top"><p>A text in response to your API authentication request, such as:</p><ul><li><strong>Success</strong>: The API request was authenticated successfully.</li><li><strong>Fail</strong>: The API request failed authentication.</li></ul></td></tr><tr><td valign="top"><code>exchange-id</code></td><td valign="top">String</td><td valign="top">The GUID (Global Unique Identifier) associated with the paylink sent to the intended recipient.</td></tr></tbody></table>
