Payments API

Move money in one request.

Card charges, payouts, and a real double-entry ledger behind a single REST API. Test keys in under a minute, no sales call.

api.garnet.dev/v1/payments
env: test
curl https://api.garnet.dev/v1/payments \
  -H "Authorization: Bearer sk_test_9f2c" \
  -d amount=4200 \
  -d currency=usd \
  -d source=tok_visa \
  -d capture=true
RESPONSE 200 OK · 38ms
{
  "id": "pay_3Nk8Qm2Lz9",
  "status": "succeeded",
  "amount": 4200,
  "currency": "usd",
  "fee": 122,
  "net": 4078,
  "ledger_entry": "txn_8Ha2",
  "livemode": false
}
PCI DSS Level 1/SOC 2 Type II/3-D Secure 2/Idempotent writes/135 currencies/Signed webhooks/
Capabilities

Four primitives, one balance sheet

Every call posts to the same ledger, so money in and money out always reconcile.

01 · Payments

Charge cards, wallets, and bank debits

One endpoint handles auth, capture, refunds, and disputes. Strong Customer Authentication is triggered automatically when the issuer requires it.

idmethodamountstatus
pay_3Nk8visa$42.00● succeeded
pay_3Nk7ach$1,290.00● pending
pay_3Nk6applepay$18.50● succeeded
02 · Payouts

Pay out to any account

Split, schedule, and send to connected sellers with a single transfer object.

03 · Ledger

Double-entry, always balanced

Query balances at any timestamp. No spreadsheet reconciliation at month end.

04 · Webhooks

Signed, replayable events

Every state change emits a signed event you can verify and replay from the dashboard for 30 days.

payment.succeeded → 200 · delivered
Developer experience

Typed SDKs that read like your code

Idempotency keys, automatic retries, and exhaustive types are built into every client. Error objects tell you exactly which field failed and why.

  • Node · TypeScriptnpm i garnet
  • Pythonpip install garnet
  • Gogo get garnet.dev/go
  • Rubygem install garnet
refund_on_dispute.ts
try {
  const refund = await garnet.refunds.create({
    payment: 'pay_3Nk8Qm2Lz9',
    reason: 'requested_by_customer',
  }, { idempotencyKey: dispute.id });
} catch (err) {
  if (err.code === 'refund_exceeds_balance') {
    logger.warn(err.param); // "amount"
  }
}
Automations

Wire an event to whatever happens next

Chain a webhook to ledger writes, payouts, and alerts. No queue to run, no cron to babysit.

Trigger

Event: payment.succeeded

Fires the instant a charge clears in live mode.

→
Action 01

Post ledger entry

account: revenue amount: net
→
Action 02

Schedule seller payout

split: 88% delay: T+2d
→
Action 03

Notify #finance

RUN HISTORY ● live
  • run_a1f9 · payout sent340ms
  • run_a1f8 · ledger posted28ms
  • run_a1f7 · retried 1×1.2s
  • run_a1f6 · payout sent302ms
  • run_a1f5 · ledger posted31ms
99.982%
Rolling 90-day uptime
47ms
p99 API latency
PCI L1
Audited annually
SOC 2
Type II report on request

Card data is tokenized at the edge and never touches your servers. Full audit logs export to your SIEM over a signed stream.

Your first request is waiting

Create an account, copy your test keys, and move your first dollar in the next few minutes.

No sales call · Test mode is free · Live mode is 2.7% + 25¢ per charge

Made with Baljia