Status by Message
This request allows you to retrieve the statuses of multiple SMS using a message ID.
URL
GET
https://api.smspartner.fr/v1/bulk-status
Required Parameters
Name
Value
apiKey
messageId
The message ID received in the send response
Requests
<?php
// Prepare data for GET request
$data = 'apiKey=YOUR_API_KEY&messageId=300';
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL,'https://api.smspartner.fr/v1/bulk-status?'.$data);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_TIMEOUT, 10);
$result = curl_exec($curl);
curl_close($curl);
// Process your response here
echo $result;
?>
Response
{
"success": true,
"code": 200,
"message_id": "111",
"StatutResponse_List": [
{
"phoneNumber": "+336XXXXXXX1",
"status": "Delivered",
"stopSMS": false,
"date": "1517989111"
},
{
"phoneNumber": "+336XXXXXXX2",
"status": "Delivered",
"stopSMS": false,
"date": "1517989101"
}
...
]
}
Delivered: The message was successfully delivered to the recipient’s device or platform.
Not delivered: The message could not be delivered. Possible reasons include an invalid phone number or operator issues.
Waiting: The message is still in the process of being delivered and has not yet been confirmed as delivered or failed.
Errors
{
"success": false,
"code": 10,
"message": "Invalid API key"
}
Error Codes
Response Code
Description
1
API key is required
3
Message ID is required
4
Message not found
10
Invalid API key
200
Everything is OK!
arduinoCopierModifier
Last updated