Skip to main content
POST

Create Charge

Generate a new QR Code Pix or Boleto payment request.

Request Body

integer
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: 10000
string
required
Your identification number, it must be unique on our database.Max length: 255 characters
string
The url where we will submit the callbacks.Min: 1 character, Max: 255 characters
string
required
Payment method that will be used in payin.Allowed values: pix, boleto
integer
required
The 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: 15000000
string
required
Currency code of the amount (ISO 4217).Length: 3 charactersExample: BRL
string
required
Country code (ISO 3166-1 alpha-2).Length: 2 charactersExample: BR
string
Instructions that will be displayed to the user.Max length: 140 characters
object
required
The person you are charging object.
Use this object to inform the legal name of the final beneficiary. Required when payment_method is boleto.
object
Pix QRCode specific instructions. Required when payment_method is PIX.
object
Automatic Pix configuration object. Required when creating an Automatic Pix charge.
object
Boleto specific instructions. Required when payment_method is BOLETO.

Response

integer
WEpayment’s auto generated id, use this id to perform conciliation or perform queries via API / Dashboard.
object
Merchant object.
string
WEpayments auto generated hash, use this hash to send your user to the payment page.
string
The WEpayments payment page is the place where you will redirect the end customer to pay the bill.
string
The bank identification number.
string
Your identification number.
string
The url where we will submit the callbacks.
string
Payment method that will be used in payin.Values: pix, boleto
integer
The payin total amount in cents.
integer
The total amount of the payin paid.
integer
Amount refunded from this charge. Only pix payment_method.
object
Currency object.
string
Instructions that will be displayed to the user.
object
The person you are charging object.
Final Beneficiary object.
object
Pix QRCode specific instructions object.
object
Boleto specific instructions object.
object
Status object.
array
Status History object.
object
Sub status object. Can be null.
array
Refund object.
object
Automatic Pix configuration object (if enabled). Returns null when not configured.
string
Cash-in created date.
string
Cash-in update date.

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