Use this endpoint to configure markup rules for a merchant, defining how much additional amount will be charged per product and payment method.
Request Body
ID of the merchant that will receive the markup.
Optional parent relationship ID. Can be used to associate this markup to a parent account or hierarchy level.
Product where the markup will be applied.Allowed values: payin, payout
Payment method where the markup will be applied.Allowed values: pix, billet, credit_card
Markup scope type.Currently, only global is supported externally.
Type of markup to be applied.Allowed values:
fixed: fixed amount per charge
percent: percentage over the charge amount
Markup value to be applied.Constraints:
- Must be greater than or equal to
0.01.
Minimum markup amount when mode is percent.Business rules:
- Required when
mode = percent
- Prohibited when
mode = fixed
- Must be greater than or equal to
0.01
Maximum markup amount when mode is percent.Business rules:
- Optional
- Must be greater than or equal to
min_charge_value
- Prohibited when
mode = fixed
When mode is fixed, do not send min_charge_value or max_charge_value.
Request Examples
{
"account_id": 123,
"product": "payin",
"payment_method": "pix",
"type": "global",
"mode": "percent",
"amount": 2.5,
"min_charge_value": 1.0,
"max_charge_value": 100.0
}
Response
Product where the markup is applied.
Payment method where the markup is applied.
Merchant ID that receives the markup.
Parent relationship ID, when applicable.
Markup scope type. Example: global.
Markup mode. Example: fixed or percent.
Markup value configured for this rule.
Minimum markup value when mode is percent.
Maximum markup value when mode is percent.
{
"id": 1,
"product": "payin",
"payment_method": "pix",
"account_id": 123,
"parent_id": null,
"type": "global",
"mode": "percent",
"amount": 2.5,
"min_charge_value": 1.0,
"max_charge_value": 100.0
}