Adding credit

From your account, you can add credits to your sub accounts. The funds will be debited from your main account.

URLs

POST https://api.smspartner.fr/v1/subaccount/credit/add

Settings

Each API request supports the following parameters :

apiKey ApiKey from your account. You get it in your SMS Partner account
credit Number of Credit in Euro add subaccount.
tokenSubaccount Under Account Name.
Optional settings
_format  Response format. You can choose between JSON ou XML. By default, the response format is JSON.

Request

Sample query :

Replies

Errors

Error message Example :

Control code

Reply
1 The API Key is required
2 Credit is required
3 The identifier of the sub-account is required
4 You do not have the permission
5 Credit to attribute must be greater than 0
6 The balance must be greater than 0
7 The sub-account does not exist
8 Insufficient credit
10 Invalid API key
200 Everything went well !

Remove credit

From your account, you can delete your credit accounts under. The credits will be added to your main account.

URLs

POST https://api.smspartner.fr/v1/subaccount/credit/remove

Settings

Each API request supports the following parameters :

apiKey ApiKey from your account. You get it in your SMS Partner account
credit Number of Credit in Euro add subaccount.
tokenSubaccount Under Account Name.
Optional settings
_format Response format. You can choose between JSON ou XML. By default, the response format is JSON.

Request

Sample query :

Replies

Errors

Error message Example :

Control code

Reply
1 The API Key is required
2 Credit is required
3 The identifier of the sub-account is required
4 You do not have the permission
5 Credit to attribute must be greater than 0
6 The balance must be greater than 0
7 The sub-account does not exist
8 Insufficient credit
10 Invalid API key
200 Everything went well !