Skip to main content
PATCH
Update Merchant Markup Configuration

Update Merchant Markup Configuration

Use this endpoint to update an existing markup configuration for a merchant, identified by its markupId.

Path Parameters

integer
required
Unique identifier of the markup configuration to be updated.

Request Body

string
Markup mode to be applied.Allowed values:
  • fixed
  • percent
Business rules:
  • Required if you send any of these fields: amount, min_charge_value, max_charge_value.
number
Markup value to be applied.Constraints:
  • Optional
  • Must be greater than or equal to 0.01
number
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
number
Maximum markup amount when mode is percent.Business rules:
  • Optional
  • Must be greater than or equal to min_charge_value
  • Prohibited when mode = fixed
boolean
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 modeIf you change the mode from percent to fixed, the service will internally reset:
  • min_charge_value = null
  • max_charge_value = null

Request Examples

Response

integer
Markup configuration ID.
string
Product where the markup is applied (e.g., payin).
string
Payment method where the markup is applied (e.g., pix).
integer
Merchant ID that receives the markup.
integer or null
Parent relationship ID, when applicable.
string
Markup scope type. Example: global.
string
Markup mode. Example: fixed or percent.
number
Markup value configured for this rule.
number or null
Minimum markup value when mode is percent.
number or null
Maximum markup value when mode is percent.
boolean
Indicates whether the markup configuration is currently active.
string
Date and time when the markup configuration was created.
string
Date and time when the markup configuration was last updated.

Create Merchant Markup

Create new markup configurations

List Merchant Markups

View all markup configurations

About Markup

Learn about markup types and configuration levels

Create Payin with Global Markup

Use global markup when creating payin charges