Get Submerchant Markup
curl --request GET \
--url https://api.sandbox.wepayout.com.br/v2/account/{merchantId}/submerchants/{subMerchantId}/markups \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sandbox.wepayout.com.br/v2/account/{merchantId}/submerchants/{subMerchantId}/markups"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sandbox.wepayout.com.br/v2/account/{merchantId}/submerchants/{subMerchantId}/markups', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sandbox.wepayout.com.br/v2/account/{merchantId}/submerchants/{subMerchantId}/markups",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sandbox.wepayout.com.br/v2/account/{merchantId}/submerchants/{subMerchantId}/markups"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sandbox.wepayout.com.br/v2/account/{merchantId}/submerchants/{subMerchantId}/markups")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.wepayout.com.br/v2/account/{merchantId}/submerchants/{subMerchantId}/markups")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"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"
}
{
"message": "The given data was invalid.",
"errors": {
"subMerchantId": [
"The subaccount 7777 does not belong to this account."
]
}
}
{
"message": "Subaccount not found."
}
{
"error": "Failed to find markup."
}
Submerchant
Get Submerchant Markup
Get the markup configuration of a single submerchant.
GET
/
v2
/
account
/
{merchantId}
/
submerchants
/
{subMerchantId}
/
markups
Get Submerchant Markup
curl --request GET \
--url https://api.sandbox.wepayout.com.br/v2/account/{merchantId}/submerchants/{subMerchantId}/markups \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sandbox.wepayout.com.br/v2/account/{merchantId}/submerchants/{subMerchantId}/markups"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sandbox.wepayout.com.br/v2/account/{merchantId}/submerchants/{subMerchantId}/markups', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sandbox.wepayout.com.br/v2/account/{merchantId}/submerchants/{subMerchantId}/markups",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sandbox.wepayout.com.br/v2/account/{merchantId}/submerchants/{subMerchantId}/markups"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sandbox.wepayout.com.br/v2/account/{merchantId}/submerchants/{subMerchantId}/markups")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.wepayout.com.br/v2/account/{merchantId}/submerchants/{subMerchantId}/markups")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"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"
}
{
"message": "The given data was invalid.",
"errors": {
"subMerchantId": [
"The subaccount 7777 does not belong to this account."
]
}
}
{
"message": "Subaccount not found."
}
{
"error": "Failed to find markup."
}
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
ID of the merchant (parent account). It must be one of the authenticated user’s companies.
Request Example
cURL
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.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.Date and time of the most recent change to the submerchant’s markup.
null when there is no markup.{
"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"
}
{
"message": "The given data was invalid.",
"errors": {
"subMerchantId": [
"The subaccount 7777 does not belong to this account."
]
}
}
{
"message": "Subaccount not found."
}
{
"error": "Failed to find markup."
}
Related Resources
Configure Submerchant Markup
Set the markup of a submerchant
Remove Submerchant Markup
Go back to the global markup
Was this page helpful?

