Cuenta
GET/v1/cuenta
Quién sos y si ya podés cobrar. Lleva Bearer.
curl https://api.tikipay.ar/v1/cuenta \ -H "Authorization: Bearer tiki_test_xxx"
require 'Tiki.php';
$tiki = new TikiPay('tiki_test_xxx', 'https://api.tikipay.ar');
$r = $tiki->cuenta();
print_r($r['data']['data']);const tiki = new TikiPay('tiki_test_xxx', 'https://api.tikipay.ar');
const r = await tiki.cuenta();
console.log(r.data.data);HTTP/1.1 200 OK
{
"data": {
"id": 1,
"email": "comercio@ejemplo.com",
"nombre": "Ana Pérez",
"puede_cobrar": true
}
}Respuesta es el JSON HTTP. El SDK lo envuelve en { http, data }.
| Campo | |
|---|---|
| id | Tu id |
| Email de la cuenta | |
| nombre | Nombre que cargaste |
| puede_cobrar | true si están tus datos y la cuenta |
