Messaging

The Messaging method is used to send one or more SMS messages through the platform. This method allows you to specify the sender, recipient, and message body for each SMS to be sent. To use this method, send a POST request to the following endpoint:

Environment Host Endpoint
Test
https://test.xpl.ph/Api/
API/Waybill/Messaging
Live
https://api.riderx.team/v2/
API/Waybill/Messaging

Request Body Parameters

Parameters Type Character Limit Required Description

Request

curl --location --request POST 'https://test.xpl.ph/Api/API/Waybill/Messaging' --header 'Authorization: Bearer < AUTHENTICATION_TOKEN >' --header 'Content-Type: application/json' --data-raw '{ "messages": [ { "sender": "RiderX", "recipient": "639178225677", "message": "Your parcel is out for delivery." }, { "sender": "RiderX", "recipient": "639178225678", "message": "Your parcel has been delivered." } ] } '

Response Body Parameters

Parameters Type Description

Response

[ { “ErrorCode”: “”, “ErrorMessage”: “” }, { “ErrorCode”: “BR030”, “ErrorMessage”: “Invalid recipient number” } ]