> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wepayout.co/llms.txt
> Use this file to discover all available pages before exploring further.

# List Submerchant Markups

> List the submerchants of a merchant with their own markup configuration.

# List Submerchant Markups

Use this endpoint to list the submerchants of a merchant, together with the markup configured for each one.

Submerchants that do not have their own markup are also returned, with `has_markup: false` and empty `payin` and `payout` lists. These submerchants use the merchant's [global markup](https://docs.wepayout.co/api-reference/markup/account/list-merchant-markups.md).

## Path Parameters

**merchantId** `integer` *required*

ID of the merchant (parent account). It must be one of the authenticated user's companies.

## Query Parameters

**search** `string`

Free-text filter. Matches the submerchant's name or legal name (partial match), ID (exact match), or document. When searching by document, punctuation is ignored, so `12.345.678/0001-90` and `12345678000190` are the same.

Max length: `255`

**page** `integer` (default: 1)

Page number. Must be greater than or equal to `1`.

**per\_page** `integer` (default: 10)

Number of submerchants per page. Must be between `1` and `500`.

## Request Examples

```bash cURL - List submerchants theme={null}
curl -X GET "https://api.sandbox.wepayout.com.br/v2/account/123/submerchants/markups?page=1&per_page=25" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Accept: application/json"
```

```bash cURL - Search by document theme={null}
curl -X GET "https://api.sandbox.wepayout.com.br/v2/account/123/submerchants/markups?search=12.345.678/0001-90" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Accept: application/json"
```

## Response

**data** `array[object]`

List of submerchants.

**Submerchant Object**

**id** `integer`

Submerchant ID.

**name** `string`

Submerchant name.

**legal\_name** `string or null`

Submerchant legal name.

**document** `string or null`

Submerchant document (CNPJ or CPF), digits only.

**has\_markup** `boolean`

`true` when the submerchant has its own markup for at least one product and payment method. When `false`, the global markup is applied.

**payin** `array[object]`

Markups configured for `payin`, sorted by payment method. Empty when there is none.

**Markup Object**

**id** `integer`

Markup configuration ID.

**payment\_method** `string`

Payment method. Values: `pix`, `billet`, `credit_card`.

**mode** `string`

Markup mode. Values: `fixed`, `percent`.

**amount** `string`

Markup value, with 2 decimal places. In BRL when `mode` is `fixed`, and a percentage when `mode` is `percent` (`"1.50"` means 1.5%).

**min\_charge\_value** `string or null`

Minimum markup amount in BRL when `mode` is `percent`. `null` when `mode` is `fixed`.

**max\_charge\_value** `string or null`

Maximum markup amount in BRL when `mode` is `percent`. `null` when `mode` is `fixed`.

**payout** `array[object]`

Markups configured for `payout`, with the same structure as `payin`. Payment method values: `pix`, `ted`.

**updated\_at** `string or null`

Date and time (`Y-m-d H:i:s`, America/Sao\_Paulo) of the most recent change to the submerchant's markup. `null` when there is no markup.

**total** `integer`

Total number of submerchants that match the filter.

**page** `integer`

Current page.

**per\_page** `integer`

Number of submerchants per page.

**total\_pages** `integer`

Total number of pages.

```json 200 OK theme={null}
{
  "data": [
    {
      "id": 1234,
      "name": "Store X",
      "legal_name": "Store X LTDA",
      "document": "12345678000190",
      "has_markup": true,
      "payin": [
        {
          "id": 55,
          "payment_method": "pix",
          "mode": "percent",
          "amount": "1.40",
          "min_charge_value": "1.00",
          "max_charge_value": "5.00"
        }
      ],
      "payout": [],
      "updated_at": "2026-09-28 10:49:13"
    },
    {
      "id": 1235,
      "name": "Store Y",
      "legal_name": "Store Y LTDA",
      "document": "98765432000110",
      "has_markup": false,
      "payin": [],
      "payout": [],
      "updated_at": null
    }
  ],
  "total": 110,
  "page": 1,
  "per_page": 10,
  "total_pages": 11
}
```

```json 422 Unprocessable Entity theme={null}
{
  "message": "The given data was invalid.",
  "errors": {
    "per_page": [
      "The per page field must not be greater than 500."
    ]
  }
}
```

```json 422 Unprocessable Entity - Unauthorized merchant theme={null}
{
  "message": "The given data was invalid.",
  "errors": {
    "merchantId": [
      "Unauthorized to perform this action."
    ]
  }
}
```

```json 500 Internal Server Error theme={null}
{
  "error": "Failed to list subaccounts."
}
```

## Related Resources

> [card] [Get Submerchant Markup](https://docs.wepayout.co/api-reference/markup/submerchant/get-submerchant-markup.md)
>
> View the markup of a single submerchant

> [card] [Configure Submerchant Markup](https://docs.wepayout.co/api-reference/markup/submerchant/upsert-submerchant-markup.md)
>
> Set the markup of a submerchant

> [card] [Batch Apply Submerchant Markup](https://docs.wepayout.co/api-reference/markup/submerchant/batch-apply-submerchant-markup.md)
>
> Apply the same markup to many submerchants

> [card] [About Markup](https://docs.wepayout.co/markup/about-markup.md)
>
> Learn about markup types and configuration levels


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.