Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Reverted from v. 3

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
string

nombre de usuario

Status
colourRed
titlerequerido


password
String
string

contraseña

Status
colourRed
titleRequerido

Ejemplos

Curl

Code Block
themeMidnight
curl -X POST \
https://desa-cointic-api.peypertic.com/cointicAPIv1/auth \
-d '{"username":"payer_nielsen", "password":"******"}'

Node Js

Code Block
themeMidnight
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

...

themeMidnight

...

grant_type

stringpassword

Tipo de grant usado para la autenticación en el servicio.

Status
colourRed
titleRequerido

client_idstring

Identificador del cliente.

Status
colourRed
titleRequerido

client_secretstring

Clave de identificación de autenticación.

Status
colourRed
titleRequerido


Ejemplo

Code Block
languagejs
titleAutenticación
collapsetrue
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.