Create Payin with Inline Markup
Payin
Create Payin with Inline Markup
Create a payin charge with inline markup configuration.
POST
Create Payin with Inline Markup
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.
Create Payin with Inline Markup
When creating a payin charge, you can include aninline markup object in the request payload.
Inline markup takes precedence: If you send a
markup object in the charge creation request, it will override any global or submerchant markup configurations.Markup Object Structure
Themarkup object should be added to the request body when creating a charge via POST /v2/payin/payments.
Optional inline markup configuration for this specific charge.
Request Examples
Response
WEpayment’s auto generated id, use this id to perform conciliation or perform queries via API / Dashboard.
Merchant object.
WEpayments auto generated hash, use this hash to send your user to the payment page.
The WEpayments payment page is the place where you will redirect the end customer to pay the bill.
Your identification number.
Payment method that will be used in payin.Values:
pix, boletoThe payin total amount in cents.
Currency object.
Current status of the payin.Example:
pendingInline markup configuration applied to this charge.
How It Works
- Priority: The inline markup configuration takes precedence over global and submerchant markup settings.
-
Calculation (for percent mode):
- The system converts the markup amount to percentage:
amount * 100 = percentage% - Then calculates:
transaction_amount * (amount) - If calculated value <
min_charge_value→ appliesmin_charge_value - If calculated value >
max_charge_value→ appliesmax_charge_value - Otherwise → applies the calculated value
- The system converts the markup amount to percentage:
-
Fixed Mode: When using
fixedmode, the markup amount is applied directly regardless of the transaction value.
Related Resources
Create Charge
Complete documentation for creating payin charges
About Markup
Learn about markup types and configuration levels

