---
title: "Export Sub-merchants Transactions"
method: POST
path: "/api/master-merchant/{mkey}/merchants/export-transactions"
tags: ["MasterMerchant APIs"]
---

# Export Sub-merchants Transactions

`POST /api/master-merchant/{mkey}/merchants/export-transactions`

## Request

- Base URL: `https://api.portone.cloud`
- URL: `https://api.portone.cloud/api/master-merchant/{mkey}/merchants/export-transactions`
- Auth: none declared

Export Sub-merchants Transactions as a CSV/XLS file

## Path parameters

- `mkey` string, required

## Headers

- `X-Portone-Client-Key` string
- `Authorization` string

## Request body

- object
  - `page` integer, required: The page number of the data to be fetched.
  - `pagesize` integer, required: The page size of the data to be fetched.
  - `from` string, required: The from Date to fetch the sub-merchant.
  - `to` string, required: The to Date to fetch the sub-merchant.
  - `merchant_keys` string[], required: The list of Sub-merchants PortOne keys
  - `environment` 'live' | 'sandbox', required: The environment of the transaction is either live OR sandbox

## Response `200`

Successful response

- object
  - `content` AddSubMerchantContent: The object containing the add sub merchant API response data.
    - `kyc_link` string: The KYC page URL for the sub-merchant.
  - `message` string: The description of the API request execution result
  - `status_code` string: The status_code for API request execution result
  - `status_reason` string: The status_reason for API request execution result

## Other responses

- `400`: Failure response
- `401`: Failure response

---

[API](https://skmtc.dev/portone/apis/master-merchant-apis.md) - [All operations](https://skmtc.dev/portone/apis/master-merchant-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/portone/apis/master-merchant-apis/revisions/bc3593c8539c?raw)
