Update Merchant Markup
Use this endpoint to update an existing markup configuration for a merchant, identified by its markupId.
Business Rules
Important Restrictions :
This feature launches in January 2026
Path Parameters
Unique identifier of the markup configuration to be updated.
Request Body
Markup mode to be applied. Allowed values: Business rules:
Required if you send any of these fields: amount, min_charge_value, max_charge_value.
Markup value to be applied. Constraints:
Optional
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
Flag to enable or disable this markup configuration.
Optional
Allowed values: true, false
Mode and range rules
If you send any of amount, min_charge_value or max_charge_value, you must also send mode.
When mode = fixed, you must not send min_charge_value or max_charge_value.
When mode = percent, you must send min_charge_value, and max_charge_value is optional but must be greater than or equal to min_charge_value when provided.
Special rule when changing mode If you change the mode from percent to fixed, the service will internally reset:
min_charge_value = null
max_charge_value = null
Request Examples
cURL - Update to fixed mode and disable markup
cURL - Invalid percent mode payload (missing min_charge_value)
cURL - Disable markup only
curl -X PATCH "https://api.sandbox.wepayout.com.br/v2/account/markup/1234" \
-H "Authorization: Bearer SEU_TOKEN_AQUI" \
-H "Content-Type: application/json" \
-d '{
"mode": "fixed",
"amount": 10.0,
"enabled": false
}'
Response
Product where the markup is applied (e.g., payin).
Payment method where the markup is applied (e.g., pix).
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.
Indicates whether the markup configuration is currently active.
Date and time when the markup configuration was created.
Date and time when the markup configuration was last updated.
200 OK
422 Unprocessable Entity
{
"id" : 1234 ,
"product" : "payin" ,
"payment_method" : "pix" ,
"account_id" : 987 ,
"parent_id" : null ,
"type" : "global" ,
"mode" : "fixed" ,
"amount" : 10.0 ,
"min_charge_value" : null ,
"max_charge_value" : null ,
"enabled" : false ,
"created_at" : "2025-01-01 12:00:00" ,
"updated_at" : "2025-01-10 09:30:00"
}