API · Webhooks · Logs

Developer

API keys

Rotate frequently. Never embed live keys client-side.

  • Production · Serverlive
    sk_live_••••_8Q21f3
  • Production · Publishablelive
    pk_live_••••_X4nP
  • Sandbox · Servertest
    sk_test_••••_M0e2a

Webhook endpoints

  • https://api.acme.com/zia/webhook
    24 events / hour
    Healthy
  • https://ops.acme.com/zia/disputes
    4 events / hour
    Healthy
  • https://staging.acme.com/zia
    0 events / hour
    Paused

Quickstart

Authorize, charge, and listen — in three calls.

import { Zia } from "@zia/sdk";
 
const zia = new Zia(process.env.ZIA_SECRET);

const charge = await zia.charges.create({
  amount: 12_50,           // cents
  currency: "USD",
  customer: "cus_8K2X1B",
  idempotency_key: orderId,
});

console.log(charge.id, charge.status);
// → "ch_8K3JZ7", "succeeded"

Environment

API version2026-09-01
SDK@zia/sdk@4.12.0
Regionus-east-1
Webhook secretwhsec_••••

Recent events

  • charge.succeeded
    20010:42:14
  • payout.created
    20010:31:02
  • dispute.opened
    20008:47:33
  • customer.updated
    20008:12:01
  • charge.refunded
    20007:55:40