Reseller API

Manage your reseller account with our API from your Software

  • HTTP API, Manage from any programming language.
  • Subaccounts, Manage customer accounts from API.
  • 99.9% SLA, We optimize the performance of all servers.
  • Maximum Connectivity, Compatible with all countries and operators.
Reseller API

Programming languages

Click on the programming language and access examples to integrate the API to Resellers with just copy and paste

Reseller API Features

Add a subaccount

API method that allows you to add subaccounts to your main account. To be able to use subaccounts you must be a reseller or have the subaccounts service active
Parameter Description Compulsory / Optional
class=subaccount Class requested: Class to which the request is made Compulsory
method=addsubaccount Class method requested: Method of the class to which the request is made Compulsory
user User and e-mail of your Afilnet account Compulsory
password Password of your Afilnet account Compulsory
accountemail Account email Compulsory
accountpassword Account password Compulsory
namelastname Name and surname of the contact person Compulsory
iscompany (0) If it is a natural person or (1) if it is a company Compulsory
companyname Name of the company (in case it is a company) Optional
documentid Company identification document code Compulsory
language Language of the subaccount. See attached table Compulsory
countrycode ISO country code in ISO-3166-1 ALPHA-2 format Compulsory
cityid City identifier Compulsory
cityname Name of the city or town to which it belongs Compulsory
zipcode Postal Code Compulsory
address Physical address Compulsory

Answer:

  • status
  • result (if status=success), here you will receive the following values:
    • No additional values will be sent to you
  • error (if status=error), here you will receive the error code

Error codes:

Code Description
MISSING_USER User or email not included
MISSING_PASSWORD Password not included
MISSING_CLASS Class not included
MISSING_METHOD Method not included
MISSING_COMPULSORY_PARAM Compulsory parameter not included
INCORRECT_USER_PASSWORD Incorrect user or password
INCORRECT_CLASS Incorrect class
INCORRECT_METHOD Incorrect method
EMPTY_COUNTRYCODE The country code is empty
EMPTY_FIELDS Some mandatory field is empty
COUNTRY_NOT_FOUND There is no country with the indicated code
EMPTY_CITY You have not indicated the city
CITY_NOT_FOUND The indicated city does not exist
INCORRECT_EMAIL The email included is not valid
INCORRECT_PASSWORD The password included is not valid
RESELLER_ACCOUNT_REQUIRED The user's account does not have the reseller plan active

Parameters:

  • class : subaccount
  • method : addsubaccount
  • user : user
  • password : password
  • accountemail : email@email.com
  • accountpassword : password
  • namelastname : name+lastname
  • iscompany : 1
  • companyname : mycompany
  • documentid : 123456789A
  • language : en
  • countrycode : us
  • cityid : 1
  • cityname : town
  • zipcode : 123456
  • address : address

Request:

https://www.afilnet.com/api/http/?class=subaccount&method=addsubaccount&user=user&password=password&accountemail=email@email.com&accountpassword=password&namelastname=name+lastname&iscompany=1&companyname=mycompany&documentid=123456789A&language=en&countrycode=us&cityid=1&cityname=town&zipcode=123456&address=address

Modify a subaccount

API method that allows you to modify existing subaccounts in your main account.
Parameter Description Compulsory / Optional
class=subaccount Class requested: Class to which the request is made Compulsory
method=modifysubaccount Class method requested: Method of the class to which the request is made Compulsory
user User and e-mail of your Afilnet account Compulsory
password Password of your Afilnet account Compulsory
accountemail Account email Compulsory
modifypassword Compulsory
accountpassword Account password Optional
namelastname Name and surname of the contact person Compulsory
iscompany (0) If it is a natural person or (1) if it is a company Compulsory
companyname Name of the company (in case it is a company) Optional
documentid Company identification document code Compulsory
language Language of the subaccount. See attached table Compulsory
countrycode ISO country code in ISO-3166-1 ALPHA-2 format Compulsory
cityid City identifier Compulsory
cityname Name of the city or town to which it belongs Compulsory
zipcode Postal Code Compulsory
address Physical address Compulsory

Answer:

  • status
  • result (if status=success), here you will receive the following values:
    • No additional values will be sent to you
  • error (if status=error), here you will receive the error code

Error codes:

Code Description
MISSING_USER User or email not included
MISSING_PASSWORD Password not included
MISSING_CLASS Class not included
MISSING_METHOD Method not included
MISSING_COMPULSORY_PARAM Compulsory parameter not included
INCORRECT_USER_PASSWORD Incorrect user or password
INCORRECT_CLASS Incorrect class
INCORRECT_METHOD Incorrect method
EMPTY_COUNTRYCODE The country code is empty
EMPTY_FIELDS Some mandatory field is empty
COUNTRY_NOT_FOUND There is no country with the indicated code
EMPTY_CITY You have not indicated the city
CITY_NOT_FOUND The indicated city does not exist
INCORRECT_EMAIL The email included is not valid
INCORRECT_PASSWORD The password included is not valid
ACCOUNT_NOT_FOUND User account has not been found

Parameters:

  • class : subaccount
  • method : modifysubaccount
  • user : user
  • password : password
  • accountemail : email@email.com
  • modifypassword : 1
  • accountpassword : password
  • namelastname : name+lastname
  • iscompany : 1
  • companyname : mycompany
  • documentid : 123456789A
  • language : en
  • countrycode : us
  • cityid : 1
  • cityname : town
  • zipcode : 123456
  • address : address

Request:

https://www.afilnet.com/api/http/?class=subaccount&method=modifysubaccount&user=user&password=password&accountemail=email@email.com&modifypassword=1&accountpassword=password&namelastname=name+lastname&iscompany=1&companyname=mycompany&documentid=123456789A&language=en&countrycode=us&cityid=1&cityname=town&zipcode=123456&address=address

Get list of subaccounts

API method that allows you to Get a list of existing subaccounts in your main account.
Parameter Description Compulsory / Optional
class=subaccount Class requested: Class to which the request is made Compulsory
method=getsubaccounts Class method requested: Method of the class to which the request is made Compulsory
user User and e-mail of your Afilnet account Compulsory
password Password of your Afilnet account Compulsory

Answer:

  • status
  • result (if status=success), here you will receive the following values:
    • No additional values will be sent to you
  • error (if status=error), here you will receive the error code

Error codes:

Code Description
MISSING_USER User or email not included
MISSING_PASSWORD Password not included
MISSING_CLASS Class not included
MISSING_METHOD Method not included
MISSING_COMPULSORY_PARAM Compulsory parameter not included
INCORRECT_USER_PASSWORD Incorrect user or password
INCORRECT_CLASS Incorrect class
INCORRECT_METHOD Incorrect method

Parameters:

  • class : subaccount
  • method : getsubaccounts
  • user : user
  • password : password

Request:

https://www.afilnet.com/api/http/?class=subaccount&method=getsubaccounts&user=user&password=password

Delete a subaccount

API method that allows you to delete existing subaccounts in your main account.
Parameter Description Compulsory / Optional
class=subaccount Class requested: Class to which the request is made Compulsory
method=deletesubaccount Class method requested: Method of the class to which the request is made Compulsory
user User and e-mail of your Afilnet account Compulsory
password Password of your Afilnet account Compulsory
accountemail Account email Compulsory

Answer:

  • status
  • result (if status=success), here you will receive the following values:
    • No additional values will be sent to you
  • error (if status=error), here you will receive the error code

Error codes:

Code Description
MISSING_USER User or email not included
MISSING_PASSWORD Password not included
MISSING_CLASS Class not included
MISSING_METHOD Method not included
MISSING_COMPULSORY_PARAM Compulsory parameter not included
INCORRECT_USER_PASSWORD Incorrect user or password
INCORRECT_CLASS Incorrect class
INCORRECT_METHOD Incorrect method
ACCOUNT_NOT_FOUND User account has not been found

Parameters:

  • class : subaccount
  • method : deletesubaccount
  • user : user
  • password : password
  • accountemail : email@email.com

Request:

https://www.afilnet.com/api/http/?class=subaccount&method=deletesubaccount&user=user&password=password&accountemail=email@email.com

Transfer balance to a subaccount

API method that allows you to transfer or subtract balance to existing subaccounts in your main account.
Parameter Description Compulsory / Optional
class=subaccount Class requested: Class to which the request is made Compulsory
method=transferbalance Class method requested: Method of the class to which the request is made Compulsory
user User and e-mail of your Afilnet account Compulsory
password Password of your Afilnet account Compulsory
accountemail Account email Compulsory
balancetotransfer Indicates the balance to be transferred to the subaccount, a negative value can be used to subtract the balance from the subaccount. Compulsory

Answer:

  • status
  • result (if status=success), here you will receive the following values:
    • No additional values will be sent to you
  • error (if status=error), here you will receive the error code

Error codes:

Code Description
MISSING_USER User or email not included
MISSING_PASSWORD Password not included
MISSING_CLASS Class not included
MISSING_METHOD Method not included
MISSING_COMPULSORY_PARAM Compulsory parameter not included
INCORRECT_USER_PASSWORD Incorrect user or password
INCORRECT_CLASS Incorrect class
INCORRECT_METHOD Incorrect method
ACCOUNT_NOT_FOUND User account has not been found
NOT_ENOUGH_BALANCE ERROR_NOT_ENOUGH_BALANCE
INCORRECT_MIN_BALANCE ERROR_INCORRECT_MIN_BALANCE

Parameters:

  • class : subaccount
  • method : transferbalance
  • user : user
  • password : password
  • accountemail : email@email.com
  • balancetotransfer : 10

Request:

https://www.afilnet.com/api/http/?class=subaccount&method=transferbalance&user=user&password=password&accountemail=email@email.com&balancetotransfer=10

Tools that enhance our Reseller API

SECURE API CONNECTION

SECURE API CONNECTION

Security tailored to your business

Configure your API connections , create new accesses and manage existing ones.

Filter all API accesses by IP , add or remove enabled IPs to guarantee the security of your accesses.

Keep track of all connections made , API used and connection dates / time

MULTIPLE APIs

MULTIPLE APIs

Connectivity tailored to your business

We offer you multiple APIs to connect with us, we have an HTTP API, BASIC AUTH, SOAP and JWT Authentication so that you can connect with us the way you want.

Connect with any of the APIs in a secure, simple and centralized way . Afilnet API is perfect for your software.

API Logs

API Logs

Get to know each request in detail

Thanks to our logs you will be able to review all the requests made and the corresponding response from our API, which will allow you to consult details when you need them.

The information you can consult is the following:

  • Source IP of the request
  • Date & Time of the request
  • API & Method being called
  • Parameters sent to the API
  • API response
  • metadata

Steps to use the API to Resellers

Using the Resellers API will only take a few minutes.

01

Register as a client

The first step to be able to access Afilnet is to have an account as a client. You can register on our website in a few minutes.

02

Integrate the API to Resellers

Integrate the Resellers API into your Software using the examples provided. Contact our team if you have any questions.

03

Use unlimited

Our Resellers API allows you unlimited use of it. Make the requests you need in your Software.

04

Welcome to Afilnet!

Everything ready!, has managed to improve its communications with Afilnet. We are here to support our API when you need it

Try Afilnet for free!

Sign up for free and try Afilnet! We offer you a free trial of our services. *



(*) Promotion only valid for companies that have never used the Afilnet service before. When requesting the free balance, Afilnet may request to verify your company information


Bulk SMS · Email Marketing · Social network · Instant messaging · Certification · and much more
Continue IMPORTANT INFORMATION ABOUT COOKIES: If you continue to use this web we will assume that you accept the terms of use. You will find more information in our Cookies Policy.
Payment methods
Wire transfer
Credit card
Paypal
Western Union
Skrill
Crypto
Afilnet in your language

Copyright © 2022 Afilnet · All rights reserved