Overview
REST API for cards, customers, transactions and webhooks.
Base URL
https://perfito.al/v1
JSON in, JSON out. Authenticate with a scoped key, send an Idempotency-Key on every write, and read the rate-limit headers. Test keys write to the same tables with a test flag and never sync a wallet.
Example
curl -X POST https://perfito.al/v1/cards/PF-8F2A-19/earn \ -H "Authorization: Bearer sk_test_…" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: 6d0a157e" \ -d '{ "amount": 1450, "reference": "order_10492" }'
$ch = curl_init('https://perfito.al/v1/cards/PF-8F2A-19/earn'); curl_setopt_array($ch, [ CURLOPT_RETURNTRANSFER => true, CURLOPT_POST => true, CURLOPT_POSTFIELDS => '{ "amount": 1450, "reference": "order_10492" }', CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . $key, 'Content-Type: application/json'], ]); $data = json_decode(curl_exec($ch), true);
const res = await fetch('https://perfito.al/v1/cards/PF-8F2A-19/earn', { method: 'POST', headers: { Authorization: `Bearer ${key}`, 'Content-Type': 'application/json' }, body: JSON.stringify({ "amount": 1450, "reference": "order_10492" }), }); const data = await res.json();