Inscrição Simple - API Set-Up (In English)

This is the recommended flow for setting up new users in Voxy:
 
  1. Create the user in Voxy with an expiration date (POST /partners/users/${external_id})
  2. Retrieve the authentication token (SSO) (GET /partners/users /${external_id}/auth_token)
  3. Redirect the user to response (SSO) → ['actions'] ['start']
 
For users already registered in Voxy:
  1. Retrieve the authentication token (SSO) (GET /partners/users/${external_id}/auth_token)
  2. Redirect the user to response (SSO) → ['actions'] ['start']
 
Check whether a user is already registered in Voxy or if the user's account has expired (GET /partners/users/external_id}/auth_token)If the user is registered and has a valid account expiration date (the account has not expired), the response will be:
 
HTTP_STATUS=200
{
  'auth_token':'eTJeh7FLE4zkVAvOO_VQ0yoCUHriNnJtHZLiGxg0sY8VeuZtmOdNADZaEeCNRgkHjP3cf0_T',
  'actions':{
}
 
If the user is registered but his/her account has expired account (account expiration date <today's date), the response will be:
 
HTTP_STATUS = 403
{"error_message": "Access for the user with the id = '{id}' expired expired_date on {} "}
 
If the user has not been registered, the return will be:
 
HTTP_STATUS = 403
{" error_message ": " user does not exist "}
 
 
Esse artigo foi útil?
Usuários que acharam isso útil: 0 de 0
Tem mais dúvidas? Submeter um pedido

Comentários

0 comentário

Artigo fechado para comentários.