Transaction
A payin, refund or payout. The type is in
object.A payin, refund or payout. The type is in
object.Fields every transaction has — payin, refund and payout.
objectandmethod_typetell which fields come on top; the fields of the payment instrument are in an object named after it —card,apple_payorgoogle_pay.- objectDiscriminatorconst:payinrequired
- Properties: 2amountType:required
- createdType: stringFormat: date-time
_at requiredthe date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z
- idType: stringFormat: uuidrequired
Transaction id. The type of the transaction is in
object. - merchantType:
_reference min length:1max length:100requiredYour id for the transaction, unique per merchant across payins, refunds, payouts and pay sessions. It is also the idempotency key of the create — the same reference with the same body returns the existing transaction, with a different body
409 merchant_reference_conflict. Never expires. - methodType: enum
_type requiredvaluespayin_cardpayin_apple_paypayin_google_paypayin_blik - Properties: 2refundedType:
_amount required - statusType: enumrequiredvalues
- created
Recorded, processing not started. Not final.
- processing
Checks or provider in progress. Not final.
- requires
_action The payer has a step to take — read
next_action. Not final. - authorized
Amount on hold (card, two-step). Call
captureorvoid. Not final. - completed
Charged. Final; the only change after it is
refunded. - failed
Not charged — read
status_details.code. Covers declines, a voided hold (canceled_by_merchant), a payer who rejected (canceled_by_payer). Final. - refunded
Charged, then refunded in part or in full — read
refunded_amount. Set by the first completed refund and kept by later ones. Final.
- created
- statusType: nullable
_details requiredProperties: 2Why the transaction ended
failed.nullin every other status. - updatedType: stringFormat: date-time
_at requiredthe date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z
- appleType: object
_pay Properties: 2Set only when
method_typeispayin_apple_pay, after the token is decrypted. - captureType: "automatic" or "manual"enum
_method Set only when
method_typeispayin_card.manual— the shop holds card payins atauthorizeduntilcaptureorvoid. - cardType: objectProperties: 3
Set only when
method_typeispayin_card. - googleType: object
_pay Properties: 2Set only when
method_typeispayin_google_pay, after the token is decrypted. - nextType: nullable
_action Properties: 3What the payer has to do while the payin is
requires_action. Guide — /v2/guides/common/payer-actions.