Cancel the sending of a delayed SMS

This request is used to cancel the sending of a delayed SMS.

URL

GET https://api.smspartner.fr/v1/message-cancel

Parameters

Each API request supports the following parameters:

apiKey API key of your account. You get it in your SMS Partner account.
messageId Message ID.
It is in the answer when sending an SMS
Optional parameters
_format Response format. You can choose between JSON or XML. By default, the response format is JSON.

Watch out!! It is not possible to cancel the sending of an SMS less than 5 minutes before it is sent.

Request

Request example:

Answers

Errors

Example of an error message:

Control code

Answer
1 The API Key is required
3 The message ID is required
4 Message not found
5 The sending of the SMS has already been cancelled
6 You cannot cancel the sending of an SMS less than 5 minutes before it is sent
7 You cannot cancel an SMS already sent
10 Invalid API key
200 Everything went well!