square-poll-horizontalSingle 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

messageId

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

  • 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

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