---
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`

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.net/portone/apis/payment-apis.md) · [All operations](https://skmtc.net/portone/apis/payment-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/portone/payment-apis/revisions/f3ccea652555/schema)
