---
title: "Retrieves history of pix-to-token operations"
method: GET
path: "/superuser/buy/pix-to-token/history"
tags: ["Buy Operations"]
---

# Retrieves history of pix-to-token operations

`GET /superuser/buy/pix-to-token/history`

Retrieves paginated pix-to-token transactions for user

## Query parameters

- `page` integer
- `pageSize` integer
- `id` string
- `taxId` string
- `externalId` string

## Response `200`

Pix-to-token operations retrieved

- BuyPixToTokenHistoryOutput
  - `depositsLogs` PixToTokenDepositLog[]
    - `id` string, uuid
    - `token` 'BRLA' | 'USDC' | 'USDT' | 'ETH' | 'GLMR' | 'MATIC' | 'CHZ' — Not all coins might be available for every operation
    - `taxId` string
    - `referenceLabel` string
    - `externalId` string — External id you can input to help later conciliation. Up to 40 alphanumeric characters.
    - `walletAddress` string
    - `amountBrl` integer
    - `markupFee` string
    - `markupAddress` string
    - `status` string
    - `payerName` string
    - `createdAt` string, date-time
    - `updatedAt` string, date-time
    - `due` string, date-time
    - `pixToTokenOps` PixToTokenOpLog[]
      - `id` string, uuid
      - `token` 'BRLA' | 'USDC' | 'USDT' | 'ETH' | 'GLMR' | 'MATIC' | 'CHZ' — Not all coins might be available for every operation
      - `amountBrl` string
      - `amountUsd` string
      - `amountToken` string
      - `receiverAddress` string
      - `markupAddress` string
      - `createdAt` string, date-time
      - `updatedAt` string, date-time
      - `smartContractOps` SmartcontractOperationLog[]
        - `id` string, uuid
        - `operationName` string
        - `posted` boolean
        - `tx` string
        - `notPostedReason` string
        - `createdAt` string, date-time
        - `isRetry` boolean
        - `feedback` SmartcontractOperationFeedbackLog
          - `id` string, uuid
          - `success` boolean
          - `errorMsg` string
          - `createdAt` string, date-time

## Other responses

- `400` — Input could not be validated
- `401` — Authorization failure
- `429` — Rate limited
- `500` — Error internal to the server which probably shouldn't have happened, try again later

---

[API](https://skmtc.net/brla/apis/brla-superuser-api.md) · [All operations](https://skmtc.net/brla/apis/brla-superuser-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/brla/brla-superuser-api/revisions/236b95ba5c14/schema)
