Accept payment intent
The API records amount, customer, merchant, currency, and idempotency context.
Run payment flows on an API-first surface designed for clear states, route-aware execution, and finance-grade traceability.
Entrypoint
POST /payments
The API records amount, customer, merchant, currency, and idempotency context.
Rules choose the rail while preserving a traceable decision for operators.
Authorization, capture, refund, and dispute states remain explicit.
Signed events tell product and finance systems what changed.
Settlement batches are matched back to payment and ledger evidence.
Events emitted
Evidence retained
Authorization, capture, refund, dispute, route, and settlement behavior stay attached to the same payment story.
Incident
The acquirer accepts a charge but the client times out before receiving the result.
Zentra path
The idempotency key resolves the repeated request against the original payment state.
Evidence
Payment ID, route, attempt count, provider reference, and ledger state remain connected.
Incident
A settlement batch arrives with a value that does not match captured activity.
Zentra path
The mismatch opens a review lane tied to the payment and settlement batch.
Evidence
Batch ID, captured amount, ledger entry, operator owner, and closeout status are retained.
One call to POST /payments produces status, emitted events, and retained evidence a team can inspect without leaving the product surface.
await zentra.payments.create({
amount_minor: 125000,
currency: "ledger_currency",
customer: "customer_ref",
idempotency_key: "pay_live_042"
})product consequence
Handle charges, refunds, disputes, and settlements within one coherent model.
Apply provider routing without sacrificing deterministic outcomes.
Protect payment mutations against duplicate effects under retries.
Trace every payment transition for compliance and finance review.
Visual center
Stable contracts, typed responses, and low-drift rollout paths.
State, actor, tenant, signature, and policy context remain reviewable after the happy path breaks — written to be checked by operators and compliance teams, not admired in a deck.