---
title: "Query Repay Record (USER_DATA)"
method: GET
path: "/sapi/v1/margin/repay"
tags: ["Margin"]
---

# Query Repay Record (USER_DATA)

`GET /sapi/v1/margin/repay`

- `txId` or `startTime` must be sent. `txId` takes precedence.
- Response in descending order
- If `isolatedSymbol` is not sent, crossed margin data will be returned
- Set `archived` to `true` to query data from 6 months ago

Weight(IP): 10

## Query parameters

- `asset` string, required
- `isolatedSymbol` string
- `txId` integer
- `startTime` integer
- `endTime` integer
- `current` integer
- `size` integer
- `archived` string
- `recvWindow` integer
- `timestamp` integer, required
- `signature` string, required

## Response `200`

Load records

- object
  - `rows` object[], required
    - `isolatedSymbol` string, required — Isolated symbol, will not be returned for crossed margin
    - `amount` string, required — Total amount repaid
    - `asset` string, required
    - `interest` string, required — Interest repaid
    - `principal` string, required — Principal repaid
    - `status` string, required — One of PENDING (pending execution), CONFIRMED (successfully execution), FAILED (execution failed, nothing happened to your account)
    - `timestamp` integer, required
    - `txId` integer, required
  - `total` integer, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized Request

## Changes

- **2021-10-25** `a484ce871a72` — 7 breaking, 14 info
  - for the `query` request parameter `current`, the type changed from `number` to `integer`, and format from no format to `int32`
  - for the `query` request parameter `endTime`, the format changed from no format to `int64`
  - for the `query` request parameter `recvWindow`, the format changed from no format to `int64`
  - for the `query` request parameter `size`, the format changed from no format to `int32`
  - …17 more

[Change history](https://skmtc.dev/binance/apis/binance-public-spot-api/changes/sapi/v1/margin/repay/get.md)

---

[API](https://skmtc.dev/binance/apis/binance-public-spot-api.md) · [All operations](https://skmtc.dev/binance/apis/binance-public-spot-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/binance/binance-public-spot-api/revisions/042dad2ebffe/schema)
