AUDevelopers
An API developers enjoy.
Predictable REST resources, readable errors, idempotency and webhooks. Make your first test payment in minutes.
// create a payment
const payment = await zw.payments.create({
amount: 14900,
currency: 'aud',
methods: ['card', 'payto', 'payid'],
});
// → status: 'succeeded'
Quick start
Your first payment in a few lines.
Amounts are in cents. Test keys start with sk_test_ and live keys start with sk_live_.
import FatZebra from '@fatzebra/node';
const zw = new FatZebra(process.env.FATZEBRA_SECRET_KEY);
const payment = await zw.payments.create({
amount: 14900, // in cents
currency: 'aud',
methods: ['card', 'payto', 'payid', 'afterpay'],
description: 'Order #1042',
return_url: 'https://shop.example.com.au/thanks',
});
# Create a payment
curl https://api.fatzebra.us.com/v1/payments \
-u sk_test_...: \
-H "Idempotency-Key: 7f3c-..." \
-d amount=14900 \
-d currency=aud \
-d "methods[]=card" \
-d "methods[]=payto" \
-d description="Order #1042"
$zw = new \FatZebra\Client(getenv('FATZEBRA_SECRET_KEY'));
$payment = $zw->payments->create([
'amount' => 14900,
'currency' => 'aud',
'methods' => ['card', 'payto'],
]);
header('Location: ' . $payment->checkout_url);
import fatzebra
zw = fatzebra.Client(os.environ["FATZEBRA_SECRET_KEY"])
payment = zw.payments.create(
amount=14900,
currency="aud",
methods=["card", "payid"],
)
Resources
Core API resources
| Endpoint | Description | Methods |
|---|---|---|
| /v1/payments | Create and retrieve payments | GET, POST |
| /v1/refunds | Full and partial refunds | GET, POST |
| /v1/customers | Customers and saved payment methods | GET, POST, PATCH |
| /v1/payto/agreements | PayTo payment agreements | GET, POST, PATCH |
| /v1/subscriptions | Recurring billing | GET, POST, PATCH, DELETE |
| /v1/payment_links | Payment links | GET, POST |
| /v1/payouts | Payouts to your bank account | GET |
| /v1/webhooks | Webhook endpoints | GET, POST, DELETE |
Tooling
Everything you need to ship.
Sandbox
Test cards, PayTo agreements, PayID payments and BNPL flows.
SDKs
Official libraries for Node.js, PHP, Python and Java.
Webhooks
HMAC-signed events with automatic retries.
Request logs
Inspect every API request and response.
Restricted keys
API keys limited to specific resources.
Start building today.
Create a sandbox account and get your test API keys instantly.