Sale Object
A Sale is a card payment (credit, debit or prepaid) a merchant took through a payment
processor such as Chile's Transbank, with the processor's fee and payout. Sales belong
to the merchant (merchant code) they were taken
on and are listed via GET /v1/merchants/{merchantId}/sales.
Sales are not transactions
The processor doesn't pay each sale separately: it pays the merchant in lump deposits that already appear as transactions in the merchant's bank account. Sales are therefore their own resource, so the same money is never counted twice. Use sales to see what was sold, with which card, what the processor charged and when it pays out; use the bank account's transactions to see the money arrive.
Attributes
| Field | Type | Description |
|---|---|---|
| id | string | Unique identifier for the sale. Format: sale_ULID |
| merchantId | string | ID of the parent merchant (the merchant code) |
| kind | string | What the processor recorded: sale, void, refund or other |
| status | string | approved, or voided when the sale was annulled afterwards. A voided sale keeps its id |
| soldAt | string | ISO 8601 timestamp when the card was charged |
| amount | number | Gross sale amount |
| tipAmount | number | Tip (propina) |
| cashbackAmount | number | Cash back (vuelto) given to the customer |
| exemptAmount | number | VAT-exempt part of the amount |
| voidAmount | number | Amount voided, 0 if none |
| feeAmount | number | null | Processor fee including VAT. Derived (see below), so null when it can't be computed |
| netAmount | number | null | Amount the processor pays out to the merchant for this sale. null while the processor hasn't priced the payout yet |
| currency | string | ISO 4217 currency code (CLP for Transbank) |
| paymentMethod | string | credit_card, debit_card, prepaid_card or other |
| cardBrand | string | null | Card network, lowercase (e.g. visa, mastercard). null when the processor doesn't report a network, as Transbank does for debit and prepaid cards |
| cardLast4 | string | null | Last 4 digits of the card. The full or masked card number is never stored |
| authorizationCode | string | null | Authorization code |
| installmentsCount | number | Number of installments (cuotas); 0 for a sale without installments |
| installmentType | string | null | The processor's own installment type label (Transbank: e.g. Venta $ for credit, Normal for debit) |
| installmentAmount | number | null | Amount of each installment |
| settlementDate | string | null | Date (YYYY-MM-DD) the processor pays, or paid, the sale out |
| settlementStatus | string | pending (not paid out yet), settled (paid out) or unknown |
| details | object | null | The processor's own fields, in the same {v, source, fields} envelope as transaction details. Treat every field as optional |
| createdAt | string | ISO 8601 timestamp when the sale was first synced to Araucaria |
| lastSyncedAt | string | null | ISO 8601 timestamp of the last sync that saw this sale |
Fees and payouts
Transbank reports the amount payable for a sale and the amount it pays out, but not
the fee itself. feeAmount is derived as the difference between the two,
and is only set for an approved sale whose payout has been priced; for
voided sales, unpriced payouts or an inconsistent difference it is
null. Treat it as an estimate of the fee including VAT, not as an
invoice line.
A sale's netAmount is part of a lump deposit on
settlementDate; the deposit itself is a transaction of the merchant's
bank account, not of the merchant.
Sync window and updates
Each sync reads the last 90 days. A sale keeps its id for life: when it
is paid out or voided, settlementStatus, status and the
amounts are updated in place. Sales are never removed.
Transbank details fields
For source: "cl_transbank", details.fields may include:
tipo_movimiento, estado_movimiento (Transbank's own state,
e.g. PENDIENTE, ABONADA), medio_de_pago, tipo_cuota,
monto_original_venta, monto_afecto,
monto_valido_para_abono, monto_retencion_anulacion,
fecha_anulacion, codigo_autorizacion_anulacion,
numero_boleta, numero_equipo, orden_de_pedido,
tid, tid_anulacion, codigo_empleado and
id_servicio. Fields Transbank leaves empty are omitted.
Example
{
"id": "sale_01HQ3K5J7X8Y9Z0A1B2C3D4E5F",
"merchantId": "merch_01HQ3K5J7X8Y9Z0A1B2C3D4E5F",
"kind": "sale",
"status": "approved",
"soldAt": "2026-10-02T10:18:00.000Z",
"amount": 311616,
"tipAmount": 0,
"cashbackAmount": 0,
"exemptAmount": 0,
"voidAmount": 0,
"feeAmount": 4784,
"netAmount": 306832,
"currency": "CLP",
"paymentMethod": "credit_card",
"cardBrand": "visa",
"cardLast4": "9876",
"authorizationCode": "654321",
"installmentsCount": 0,
"installmentType": "Venta $",
"installmentAmount": null,
"settlementDate": "2026-10-06",
"settlementStatus": "pending",
"details": {
"v": 1,
"source": "cl_transbank",
"fields": [
{ "key": "tipo_movimiento", "label": "Tipo Movimiento", "value": "Venta" },
{ "key": "estado_movimiento", "label": "Estado Movimiento", "value": "PENDIENTE" }
]
},
"createdAt": "2026-10-03T14:30:00Z",
"lastSyncedAt": "2026-10-03T14:30:00Z"
}