The Send Transaction Receipt by SMS endpoint allows you to send a transaction receipt via SMS (text message) to the customer's mobile number on file. You can also include additional phone numbers to receive copies of the receipt.
Key Features
- Send transaction receipts via SMS to customers.
- Include additional recipients by specifying their mobile numbers.
- Provide an alternative to email receipts for customer convenience.
Usage Notes
Customer's Mobile Number: Ensure that the customer's mobile number is correctly stored and formatted.
Consent: Obtain explicit consent from customers before sending SMS messages to comply with regulations like TCPA.
Message Content: The content of the SMS receipt should be concise and comply with SMS length limitations.
Response Structure
Code | Response | Reason |
---|---|---|
200 | Success | Returns a confirmation message indicating that the SMS receipt was sent successfully. |
400 | Bad Request | Invalid phone numbers or missing customer mobile number. |
401 | Unauthorized | Authentication failed. |
404 | Not Found | Transaction ID does not exist. |
500 | Internal Server Error | An unexpected error occurred on the server. |
Important Considerations
SMS Costs: Be aware of any costs associated with sending SMS messages, which may vary based on the recipient's location.
Regulatory Compliance: Ensure compliance with all relevant laws and regulations regarding SMS communications.
Error Handling: Implement error handling for failed SMS deliveries due to issues like invalid numbers or carrier restrictions.