Sending the paylink
Last updated
Was this helpful?
Last updated
Was this helpful?
To send the paylink via SMS:
Use the POST method with the /rest/v2/sms-reg/send-sms
endpoint.
Add the parameters as shown in the following sample request body.
The following table describes the request body parameters:
phone
Numeric
Required
The intended recipient's phone number in ###-###-#### or ########## format. 12 Number of characters are required.
link
String
Required
The paylink URL.
merchantName
String
Required
The merchant’s “doing business as” (DBA) name.
The following response code appears when the paylink is sent successfully:
The following table describes the fields in the response body for the sent paylink:
code
Numeric
The HTTP status code returned in the response.
status
Text
A text in response to your API authentication request, such as:
Success: The API request was authenticated successfully.
Fail: The API request failed authentication.
exchange-id
String
The GUID (Global Unique Identifier) associated with the paylink sent to the intended recipient.
The following table describes the HTTP status codes in the response body:
500
Success
System Error Other.
073
500
Fail
Required request body content is missing, malformed, or datatype usage (ex- Boolean, number) is invalid
090
500
Error
The ‘To’ number +15555555 is not a valid phone number
867