Create Charge
Generate a new QR Code Pix or Boleto payment request
POST
Create Charge
Generate a new QR Code Pix or Boleto payment request.Request Body
Merchant id of the account that is creating the payin. The custom number will be different for sandbox and production environment. Is mandatory if there is more than one account under your umbrella (sellers).Min:
2, Max: 10000Your identification number, it must be unique on our database.Max length:
255 charactersThe url where we will submit the callbacks.Min:
1 character, Max: 255 charactersPayment method that will be used in payin.Allowed values:
pix, boletoThe charge total amount in the smallest currency unit (e.g., 100 cents to charge R$1.00). When payment_method is pix, the minimum value is 1. When payment_method is boleto, the minimum value is 500.Min:
1, Max: 15000000Currency code of the amount (ISO 4217).Length:
3 charactersExample: BRLCountry code (ISO 3166-1 alpha-2).Length:
2 charactersExample: BRInstructions that will be displayed to the user.Max length:
140 charactersThe person you are charging object.
Use this object to inform the legal name of the final beneficiary. Required when payment_method is boleto.
Pix QRCode specific instructions. Required when payment_method is PIX.
Automatic Pix configuration object. Required when creating an Automatic Pix charge.
Boleto specific instructions. Required when payment_method is BOLETO.
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.
The bank identification number.
Your identification number.
The url where we will submit the callbacks.
Payment method that will be used in payin.Values:
pix, boletoThe payin total amount in cents.
The total amount of the payin paid.
Amount refunded from this charge. Only pix payment_method.
Currency object.
Instructions that will be displayed to the user.
The person you are charging object.
Final Beneficiary object.
Pix QRCode specific instructions object.
Boleto specific instructions object.
Status object.
Status History object.
Sub status object. Can be null.
Refund object.
Automatic Pix configuration object (if enabled). Returns null when not configured.
Cash-in created date.
Cash-in update date.
Related Resources
Payin Webhook
Receive real-time payin status notifications
Test Documents
Test values and documents for payin testing
Get Unique Charge
Retrieve a specific charge by ID

