Endpoint General
https://devapi.didi.cr
Para realizar cualquier operación distinta al proceso de autenticación, se debe enviar en el header los siguientes atributos:
Headers
Content-Type: application/json
x-access-token: **token**
Autenticación / Login
Proceso base para obtener el token para intercambiarlos en cualquier llamada distinta a esta
Request
{
"username": "luisperez",
"password": "passworddeluisperez"
}
Response
{
"auth": true,
"user": {
"first_name": "Usuario",
"last_name": "Test",
"email": "test@pagaqui.net",
"picture": "https://app.pagaqui.net/apple-touch-icon.png",
"bio": "",
"role": "CLIENT",
"menu": [
"CLIENT"
],
"phone": "987654321",
"timezone": "America/Costa_Rica",
"id_cliente": "cli_49d29a30-a44c-11ea-937b-07cfabe53eae",
"id": ""
},
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImRYTnlYekl6TVRSa1lUZ3dMVFF5TkRRdE1URmxZUzFoTTJOaUxUZzNNVEl5WTJJMk16YzNaQT09Iiwicm9sZSI6eyJjb2RlIjoiMzAwMCIsInJvbGUiOiJDTElFTlQifSwidXNlckFnZW50IjoiUG9zdG1hblJ1bnRpbWUvNy4yNS4wIiwiaWF0IjoxNTkxOTIyMjgzLCJleHAiOjE1OTI1MjcwODN9.9CKT6_rd4Hw_e2eO2w53Ol_lEQMgUiEo5Aja6kJSuws"
}