Acción
POST https://desa-cointic-api.peypertica.paypertic.com/cointicAPIv1/auth
Formato del cuerpo (Body) del la llamada
application/jsonauth/realms/entidades/protocol/openid-connect/token
Tipo de mensaje
x-www-form-urlencoded
Parámetros del mensaje
Nombre | Tipo |
---|
Formato | Descripción | |
---|---|---|
username |
string | nombre de usuario
| |||||||
password |
string | contraseña
|
Ejemplos
Curl
Code Block | ||
---|---|---|
| ||
curl -X POST \
https://desa-cointic-api.peypertic.com/cointicAPIv1/auth \
-d '{"username":"payer_nielsen", "password":"******"}' |
Node Js
Code Block | ||
---|---|---|
| ||
var request = require("request");
var options = { method: 'POST',
url: 'https://desa-cointic-api.peypertic.com/cointicAPIv1/auth',
headers:
{ 'Content-Type': 'application/json' },
body: { username: 'payer_nielsen', password: '******' },
json: true };
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
}); |
Ajax
...
theme | Midnight |
---|
...
grant_type | string | password | Tipo de grant usado para la autenticación en el servicio.
| ||||||
client_id | string | Identificador del cliente.
| |||||||
client_secret | string | Clave de identificación de autenticación.
|
Ejemplo
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
POST /auth/realms/entidades/protocol/openid-connect/token HTTP/1.1
Host: a.paypertic.com
Content-Type: application/x-www-form-urlencoded
Cache-Control: no-cache
Postman-Token: 46944d22-ffe6-449d-a921-b150110569e6
username=usuario&password=contrasea&grant_type=password&client_id=16462308-1844-4abe-abe6-f184149ee740&client_secret=a2d03fa3-fcs4-45e5-9792-dc0d8b51a25c |
Error posibles
4000 Invalid request.
4001 Invalid payment id.
4002 Invalid payment type.
4004 Invalid collector.
- 5001 Internal service error.