v1

latestOpenAPI 3.0.12026-07-264182324.3 KB
Notifications

Create and send an SMS message to the consumer

post/send_sms

Request body

site_identifierstring required

Identifies your client site.

timestampstring required

The Unix Epoch time of the call

versionstring required

The version of the API. This version must match the version associated with your API key pair.

signaturestring required

The HMAC signature that is calculated by running your API Secret Key and the alphabetized, concatenated parameters of the request payload through the SHA256 message digest algorithm.

recipientsstring required

The mobile phone number where you are sending the text. Use commas to separate numbers when sending the message to multiple recipients. <b>NOTE:</b> Upon request, PayNearMe can configure the <code>/send_sms</code> endpoint to return an error response for numbers blocked due to <code>STOP</code> opt-outs. Contact your Technical Account Manager for configuration details.

body_textstring required

The text of the SMS message. This parameter does not support HTML or special characters like emojis.

body_spanishstring

The text of the SMS message in Spanish. This parameter does not support HTML

language'en' | 'sp'

Indicates which version of the SMS message should be sent to the specified recipient. Options include <ul><li><code>en</code> - English</li><li><code>sp</code>- Spanish</li></ul><br/>If sending the message in Spanish, the <code>body_spanish</code> parameter must be included.

Response

SMS Sent

statusstring

Provides the status of the request.

Example response

{
  "status": "ok"
}