Acción
POST https://desa-cointic-api.peypertic.com/cointicAPIv1/auth
Formato del cuerpo (Body) del la llamada
application/json
Parámetros del mensaje
Nombre  | Tipo/Formato | Descripción  | 
|---|---|---|
| username | String | nombre de usuario REQUERIDO  | 
| password | String | contraseña REQUERIDO  | 
Ejemplos
Curl
curl -X POST \
https://desa-cointic-api.peypertic.com/cointicAPIv1/auth \
-d '{"username":"payer_nielsen", "password":"******"}'
Node Js
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
var settings = {
"async": true,
"crossDomain": true,
"url": "https://desa-cointic-api.peypertic.com/cointicAPIv1/auth",
"method": "POST",
"headers": {
"Content-Type": "application/json",
"cache-control": "no-cache",
"Postman-Token": "2378a6a7-5c99-482d-bc9e-a185f9bd7bce"
},
"processData": false,
"data": "{\"username\":\"payer_nielsen\", \"password\":\"******\"}"
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Error posibles
4000 Invalid request.
4001 Invalid payment id.
4002 Invalid payment type.
4004 Invalid collector.
- 5001 Internal service error.