API Reference
update Changelog
GET

List sales

language https://api.araucaria.money/v1/merchants/{merchantId}/sales

Returns the card sales (credit, debit and prepaid) taken on a merchant code, with the processor fee and payout, newest sale first (by soldAt), with cursor-based pagination. Sales are not transactions: their payouts already appear as deposits in the merchant's bank account.


Parameters

Name Type Description
merchantId * path string
limit query number Number of items per page
starting_after query string Return items after this ID. Pass the `next_cursor` from the previous response. Omit for the first page

Request Example

bash
curl -X GET "https://api.araucaria.money/v1/merchants/{merchantId}/sales" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY"

Response Example

200 OK
json
{
  "data": [
    {
      "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"
          },
          {
            "key": "medio_de_pago",
            "label": "Medio de Pago",
            "value": "Crédito"
          }
        ]
      },
      "createdAt": "2026-10-03T14:30:00Z",
      "lastSyncedAt": "2026-10-03T14:30:00Z"
    }
  ],
  "has_more": false
}

Response Fields

Field Type Description
data * SaleResponseDto[] Array of sales
has_more * boolean Whether more results are available
next_cursor string Cursor for the next page. Pass it as the `starting_after` query parameter. Only present when `has_more` is true