▪️Registration API

This document describes how to build a custom registration page for the affiliates using TAP API.

Affiliate registration API

An Operator can implement their own affiliate registration page that is using TAP API.

The API is using simple HTTP-POST to the URL https://boapi.smartico.ai/api/register-aff

POST body is JSON in format

{
	"hostname": "aff-home.smartico.ai”, // the domain host from which the affiliate will register
	"first_name": "First-name",
	"last_name": "Last-name",
	"bo_user_email": "somemail@somewhere",
	"phone_number": "44097657269",
	"username": "username123",
	"password": "Q!w2e3r4",
	"skype": "skype",
	"company": "Astelit",
	"web_site_url": "https://googe.com",
	"country": "BG",
	"comments": "some info",
	"language": "FR",
	"tc": true,
	"token": "03AGdBq261a4cR1-w32PCilF0nq04_cjKIl8T6OeWlAnC4fWfYu94Mw6VIEdazhgDwcf_UkN1pBmTSixVNKKVXXyi-4f3f77VKQkgGKdCUs-dREm_YmwtMfYkgHj00YsQz0T3S3fHRP-XYgJkk0M7bUcaB3Lf6DA7gmZtQynXssdX3a5ElmyEJf5NTTX5IfmS3oiIL0OWWCxFiDfyPdTOoZJAjL9fMcFoqCD2_cJDiqZMNjLCIaUDQX1LgAaEr96FJ3dJ1vUwB3RnU3O-mefSffMvQtkQa-19CK78mpmQ6gDDCXD9zmdumH_aowNGyqN2BTgkrM0vwk4tmKRn6vDY5ue58jZItI7660oI3YfA96N43U_scBSBOC12qmpzNMf_T7esq3kJJTgH_rw8uQSzZk3bncCE2bPjeFg"
}

Notes regarding parameters:

  • Password should be at least 6 characters, have one lowercase letter, one uppercase letter, and one number

  • The following fields are mandatory: 'first_name', 'last_name', 'username', 'password', 'bo_user_email', 'country', 'tc', 'hostname', 'token'

  • Hostname should match exactly to the hostname that is configured in TAP BackOffice for the operator. Only one hostname is allowed.

  • Username should be 6 characters minimum

  • The system is not allowing duplicate usernames and mails

  • Language parameter should be ISO 2 symbols code of language

  • If you are submitting Microsoft Teams contact details, use 'skype' parameter

You can also pass optional parameters

The API can return the following error codes

Setting up Google ReCaptcha on the front end.

Add the following script on your front-end

It's also possible to make API calls from the server side (backend) without using re-captcha protection. Please contact your Account Manager in this case to disable re-captcha verification for your setup

Last updated

Was this helpful?