Hanzo AI
OpenapiCommerce

Get payments

Reads one settled payment out of the caller's org ledger.

GET /v1/commerce/payments/{id}

Addresshttps://api.hanzo.ai/v1/commerce/payments/{id}
MethodGET
OperationgetPayment
AuthAuthorization: Bearer $HANZO_API_KEY

Reads one settled payment out of the caller's org ledger.

The org scopes the read by construction — the ledger is namespaced to it — so an id belonging to another tenant is simply not found rather than found and then filtered. A ledger row that is not a payment is likewise not found, so this cannot be used to walk the org's usage debits.

A named handler, not a closure, so zipdoc can lift this prose into the registry.

Request

1 field.

FieldInTypeRequiredDescription
idpathstringyesID is the ledger transaction id a payment returned.

Response

StatusBodyMeaning
200PaymentRecordok

200 body — 8 fields.

FieldInTypeAlwaysDescription
amountCentsbodyinteger—AmountCents is the credited amount in whole cents.
createdAtbodystring—CreatedAt is when the credit was written, RFC3339.
currencybodystring—Currency is the ISO 4217 code.
idbodystring—ID is the ledger transaction id.
notesbodystring—Notes is the ledger memo, carrying the processor and its reference.
statusbodystring—Status is the payment's state.
subjectbodystring—Subject is the billing key this payment credited.
testbodyboolean—Test reports whether this was a sandbox charge (test balance) or live money.

Failure carries the platform error shape — see Errors.

Examples

hanzo commerce payments get <id>

Commerce API · All Hanzo APIs · Interactive reference

How is this guide?

On this page