Single Status
This request allows you to retrieve the status of a single SMS.
URL
GET
https://api.smspartner.fr/v1/message-status
Required Parameters
Name
Value
apiKey
messageId
Message ID. Found in the response of the send request.
phoneNumber
Recipient's mobile phone number
Optional Parameters
Name
Value
_format
json
or xml
Requests
<?php
// Prepare data for GET request
$data = 'apiKey=YOUR_API_KEY&messageId=300&phoneNumber=06xxxxxxxx';
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL,'https://api.smspartner.fr/v1/message-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,
"number": "0600000000",
"messageId": "1111",
"stopSms": false,
"date": "2015-02-07 22:39:46",
"statut": "Delivered",
"cost": 0.045,
"countryCode": "FR",
"currency": "EUR"
}
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
2
Phone number is required
3
Message ID is required
4
Message not found
10
Invalid API key
200
Everything is OK!
Last updated