API SMS

Intégrez Primotexto à vos applications grâce à notre puissante API SMS.

  >  
++  >  




Chaque requête à l'API se terminant avec succés retournera un code HTTP 200 (OK).
Une erreur sur l'authentification aménera à un code HTTP 401 (UNAUTHORIZED).
En cas d'erreur sur la requête, le code HTTP sera 400 (BAD REQUEST) et s'accompagnera d'un code propre à Primotexto, dont le tableau ci dessous donne la signification.


Code
Description
Number
10
NO PHONE NUMBER PROVIDED
11
INVALID PHONE NUMBER SYNTAX
12
NUMBER BLACKLISTED UNSUBSCRIBED
13
NUMBER BLACKLISTED USER BOUNCE
14
NUMBER BLACKLISTED GLOBAL BOUNCE
15
NUMBER ALREADY EXISTS
16
NO MESSAGE FOR THIS QUERY
17
TOO MANY FIELDS SELECTED
18
FILE TOO LARGE
19
PHONE NUMBER IS FIXED LINE
Sender
20
INVALID CHARACTERS IN SENDER
21
SENDER TOO SHORT
22
SENDER TOO LONG
23
FULL NUMERIC SENDER NOT ALLOWED
Message
30
NO MESSAGE CONTENT PROVIDED
31
INVALID CHARACTERS IN MESSAGE
32
MESSAGE CONTENT TOO LONG

Campaign

40
INVALID CAMPAIGN NAME
41
INVALID CAMPAIGN PROGRAMMING TIME
42
CAMPAIGN CANNOT BE DELETED
43
CAMPAIGN CANNOT BE CANCELLED
44
FREE MODE CAMPAIGN LIMIT REACHED
45
INVALID CAMPAIGN TAG
46
TAG ALREADY EXISTS
47
CAMPAIGN NOT FOUND
48
INVALID CAMPAIGN SEND LIST
List
60
LIST NOT FOUND
61
INVALID DATE FORMAT
62
INVALID SCHEDULED DATE
Account
70
API ACCESS DISABLED
71
INSUFFICIENT CREDITS
72
AUTHENTICATION FAILED
73
INVALID JSON
74
CONTACTS POST LIMIT REACHED
75
IDENTIFIERS COLUMN NOT FOUND
76
QUOTA EXCEDEED
Misc
90
COUNTRY NOT SUPPORTED
91
INTERNATIONAL MODE NEEDED
92
BLOCKED ACCOUNT
93
USER NOT FOUND
94
USER INFO NOT RETRIEVABLE
95
UNABLE TO CREATE ACCOUNT
120
AUTO INVALID CAMPAIGN
121
AUTO INVALID CONTACT