Add Number to SMS Stop List

This request is used to add a number to the SMS stop list

Important information regarding delivery reports

Reports are usually received a few seconds after sending the SMS; however, this delay can extend up to 48 hours depending on the operator and the load on our platform.

URL

POST https://api.smspartner.fr/v1/stop-sms/add

Required Parameters

Name
Value

phoneNumber

Phone number It can be:

  • in national format (06xxxxxxxx) or international format (+336xxxxxxxx), for French numbers.

  • in international format (+496xxxxxxxx), for non-French numbers.

Optional Parameter

Name
Value

_format

json or xml

Requests

<?php
        // Prepare data for POST request
        $fields = array(
            'apiKey'=> 'YOUR API KEY',
            'phoneNumber'=> '+336xxxxxxxx'
        );
 
 
        $curl = curl_init();
        curl_setopt($curl, CURLOPT_URL,'https://api.smspartner.fr/v1/stop-sms/add');
        curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($curl, CURLOPT_TIMEOUT, 10);
        curl_setopt($curl, CURLOPT_POST, 1);
        curl_setopt($curl, CURLOPT_POSTFIELDS,json_encode($fields));
 
        $result = curl_exec($curl);
        curl_close($curl);
 
        // Process your response here
        echo $result;
?>

Response

{
    "success": true,
    "code":200
    "stopId": 300
}

Error Codes

Response Code
Message

1

API key is required

2

Phone number is required

3

Number is already in stop list

9

Invalid phone number

10

Invalid API key

200

Success

Last updated