Saltar al contenido principal
GET
Get a payment

Autorizaciones

x-api-key
string
header
requerido

Parámetros de ruta

id
string<uuid>
requerido

Respuesta

Success.

id
string<uuid>
requerido
status
enum<string>
requerido
Opciones disponibles:
CONFIRMED,
CANCELLED,
REFUNDED,
HELD,
HOLD_RELEASED,
HOLD_EXPIRED
amount
number
requerido

The sale, in the payment's currency with two decimals, excluding any tip. On a payment created with holdFunds it is what was captured. To reconcile against what the card was charged, read chargedAmount.

currency
string
requerido
createdAt
string<date-time>
requerido
operationCode
integer

The reference printed on receipts and shown in the dashboard.

type
string

CARD_PRESENT, CARD_NOT_PRESENT or BANK_TRANSFER (an online sale paid by SPEI; card is null).

tipAmount
number

The tip, in the payment's currency with two decimals. 0 when there is none. Tips only come from card-present terminal charges of merchants that turned them on, on any plan; payments created through the API, payment links, one-time payments, subscriptions and payment intents always report 0. amount stays the sale, so the card was charged amount + tipAmount; on an installment (MSI) payment the tip is split into the installments together with the sale, amount + tipAmount divided over terms. A refund or cancellation reverses the tip together with the sale; the tip is never refunded on its own.

tipPercentage
number | null

The percentage of the sale the tip was chosen as on the terminal (for example 15). null when there is no tip or it was entered as a fixed amount.

chargedAmount
number

What the card was charged in total: amount + tipAmount, in the payment's currency with two decimals. Equals amount when there is no tip. On an installment (MSI) plan it is the total being collected over terms, not one installment.

conversion
object | null

Set when the payment was priced in US dollars, null otherwise. amount, tipAmount and currency stay the MXN the card was charged; this is the dollar price and the rate that converted it. See Prices in US dollars.

fee
number | null

The percentage fee charged to this merchant on this payment.

terms
integer

Installments agreed. 1 for a single payment.

paidTerms
integer

Installments already settled to the merchant.

periodicity
string | null
financingMethod
string | null
source
string | null

Where the payment originated, e.g. SHAREPAY_PAYMENT_LINK.

refundedAt
string<date-time> | null
heldAmount
number | null

What the bank authorized. Differs from amount after a partial capture.

heldAt
string<date-time> | null
capturedAt
string<date-time> | null
holdReleasedAt
string<date-time> | null
holdExpiresAt
string<date-time> | null

When the authorization lapses.

holdExpired
boolean

Only meaningful while the payment is HELD.

holdDaysRemaining
integer | null

Only set while the payment is HELD.

card
object | null

The card, masked. The full number and the stored token are never returned.

cardPresent
object | null

What the terminal's card voucher printed, for your records (the terminal always prints the voucher itself). Present on an approved card-present sale; null on every other payment.

customer
object | null
paymentIntentId
string<uuid> | null
oneTimePaymentId
string<uuid> | null
paymentMethodId
string<uuid> | null
subscriptionId
string<uuid> | null
bankAccountId
string<uuid> | null

The bank account this payment is deposited in, recorded when the payment is approved. null on a payment that was not approved and on payments taken before your business had more than one account, which settle to your default account.

allocations
object[]

The parts of a payment deposited in several bank accounts, in order: each one's account, its amount, and whether it paid its share of the fee. bankAccountId is the account of the largest part. Empty when the whole payment went to bankAccountId.