Register
registerNewUserPost
https://sandbox-api.srpago.com/v1/register
Registra un nuevo usuario Sr. Pago.
headers
AuthorizationBasic
Content-Typeapplication/json
body
{
"name":"Nombres",
"sur_name":"Materno",
"last_name":"Paterno",
"area":"Papalote Museo del Niño",
"city":"Miguel Hidalgo",
"state":"Ciudad de México",
"street":"Calle",
"zip_code":"11111",
"num_ext":"Numero ext",
"num_int":"Numero int",
"label":"Personal",
"ip":"200.52.80.218",
"company":{
"bussines_id":20,
"name":"Nombre Del Negocio"
},
"user":{
"email":"[email protected]",
"password":"CuentaDemo1"
},
"phone":{
"number":"3234561245",
"label":"celular"
},
"code":"<CODE OPTIONAL>"
}
Example Request
curl --location --request POST 'https://sandbox-api.srpago.com/v1/register' \
--header 'Content-Type: application/json' \
--data-raw '{
"name":"Nombres",
"sur_name":"Materno",
"last_name":"Paterno",
"area":"Papalote Museo del Niño",
"city":"Miguel Hidalgo",
"state":"Ciudad de México",
"street":"Calle",
"zip_code":"11111",
"num_ext":"Numero ext",
"num_int":"Numero int",
"label":"Personal",
"ip":"200.52.80.218",
"company":{
"bussines_id":20,
"name":"Nombre Del Negocio"
},
"user":{
"email":"[email protected]",
"password":"CuentaDemo1"
},
"phone":{
"number":"3234561245",
"label":"celular"
},
"code":"<CODE OPTIONAL>"
}'
Example Response
{
"connectionSso": {
"accessToken": "eyJraWQiOiJTVjZpWFwvUGJxQWEySjYrOXMre...",
"refreshToken": "eyJjdHkiOiJKV1QiLCJlbmMiOiJBMjU2R0NN..."
},
"success": true,
"result": {
"token": "3dce5df5852797ed34872fe037a8ed27c...",
"expires": "2022-06-13T13:21:31-05:00",
"user_id": 1943761
}
}