---
title: "Get transaction request for withdrawing collected integrator's fees by chain"
method: GET
path: "/v1/integrators/{integratorId}/withdraw/{chainId}"
---

# Get transaction request for withdrawing collected integrator's fees by chain

`GET /v1/integrators/{integratorId}/withdraw/{chainId}`

## Request

- Base URL: `https://li.quest`
- URL: `https://li.quest/v1/integrators/{integratorId}/withdraw/{chainId}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/lifi/apis/li-fi-api/docs/v1/integrators/:integratorId/withdraw/:chainId/get.ts> (a function with typed inputs; its response is checked against the schema)

This endpoint can be used to get transaction request for withdrawing integrator's collected fees the specified chain. If a list of token addresses is provided, the generated transaction will only withdraw the specified funds.
If there is no collected fees for the provided token's addresses, the `400` error will be thrown.
The endpoint returns a `IntegratorWithdrawalTransactionResponse` object which contains the transaction request.

## Path parameters

- `integratorId` string, required
- `chainId` string, required

## Query parameters

- `tokenAddresses` string[]

## Headers

- `x-lifi-api-key` string

## Response `200`

Response of the integrator's fee withdrawal transaction request

- IntegratorWithdrawalResponse: Transaction request for withdrawing integrator's collected fees for the specified chain
  - `transactionRequest` object, required: The transaction request
    - `data` string: The transaction's data
    - `to` string: The FeeCollector's contract address for the specified chain

## Other responses

- `400`: None of the requested tokens has a balance
- `404`: Integrator with the name ${integratorId} is not found

---

[API](https://skmtc.dev/lifi/apis/li-fi-api.md) - [All operations](https://skmtc.dev/lifi/apis/li-fi-api/llms.txt) - [OpenAPI document](https://skmtc.dev/lifi/apis/li-fi-api/revisions/82e72a7fa5e0?raw)
