> ## 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.

# Get Submerchant Markup

> Get the markup configuration of a single submerchant.

# Get Submerchant Markup

Use this endpoint to get the markup configured for one submerchant, grouped by product (`payin` and `payout`).

If the submerchant has no markup of its own, `has_markup` is `false` and the lists are empty. In that case the merchant's global markup is applied.

## Path Parameters

**merchantId** `integer` *required*

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

**subMerchantId** `integer` *required*

ID of the submerchant. It must be a submerchant of `merchantId`.

## Request Example

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

## Response

The response is a submerchant object, with the same fields as an item of [List Submerchant Markups](https://docs.wepayout.co/api-reference/markup/submerchant/list-submerchant-markups.md).

**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.

**payin** `array[object]`

Markups configured for `payin`. Each item has `id`, `payment_method`, `mode`, `amount`, `min_charge_value` and `max_charge_value`. Amounts are strings with 2 decimal places.

**payout** `array[object]`

Markups configured for `payout`, with the same structure as `payin`.

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

Date and time of the most recent change to the submerchant's markup. `null` when there is no markup.

```json 200 OK theme={null}
{
  "id": 1234,
  "name": "Store X",
  "legal_name": "Store X LTDA",
  "document": "12345678000190",
  "has_markup": true,
  "payin": [
    {
      "id": 56,
      "payment_method": "billet",
      "mode": "fixed",
      "amount": "2.00",
      "min_charge_value": null,
      "max_charge_value": null
    },
    {
      "id": 55,
      "payment_method": "pix",
      "mode": "percent",
      "amount": "1.40",
      "min_charge_value": "1.00",
      "max_charge_value": "5.00"
    }
  ],
  "payout": [
    {
      "id": 57,
      "payment_method": "pix",
      "mode": "fixed",
      "amount": "0.80",
      "min_charge_value": null,
      "max_charge_value": null
    }
  ],
  "updated_at": "2026-09-28 10:49:13"
}
```

```json 422 Unprocessable Entity - Not a submerchant of this merchant theme={null}
{
  "message": "The given data was invalid.",
  "errors": {
    "subMerchantId": [
      "The subaccount 7777 does not belong to this account."
    ]
  }
}
```

```json 404 Not Found theme={null}
{
  "message": "Subaccount not found."
}
```

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

## Related Resources

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

> [card] [Remove Submerchant Markup](https://docs.wepayout.co/api-reference/markup/submerchant/delete-submerchant-markup.md)
>
> Go back to the global markup


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