Create Payin with Global Markup
Payin
Create Payin with Global Markup
Create a payin charge using global markup configuration.
POST
Create Payin with Global 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 Global Markup
When creating a payin charge, you can use the global markup configuration that has been set up for your merchant. With global markup, you do not need to send themarkup object in the request payload.
Global markup is applied automatically: If the merchant has the markup feature enabled (
enable_markup = true), the system will automatically search for and apply the global markup configuration for the submerchant.How It Works
-
Validation: The system checks if the
enable_markupflag is active for the submerchant. -
Markup Search: If enabled, the system automatically searches for the global markup configuration based on:
account_id(submerchant ID)product(payin)payment_method(pix, boleto, etc.)
- Application: If a global markup is found, it is automatically applied to the charge.
-
Priority: If you send an inline
markupobject, it takes precedence over the global markup.
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:
pendingGlobal markup configuration applied to this charge.
Business Rules
Automatic Application: When
enable_markup = true and a global markup exists, it is automatically applied without requiring the markup object in the request.Error Scenarios
Scenario 1: enable_markup = true, No Global Markup, No Inline Markup
If the submerchant hasenable_markup = true but:
- No global markup configuration exists
- No inline markup object is sent in the request
Scenario 2: Error Verifying Global Markup
If there is an error while searching for or verifying the global markup configuration. Result: Returns 422 error with message “Error verifying markup configuration. Please try again or contact support.”Related Resources
Create Payin with Inline Markup
Learn how to create payin with inline markup
Create Merchant Markup
Configure global markup for merchants
About Markup
Understand markup types and configuration levels
Create Charge
Complete documentation for creating payin charges

