Skip to main content
POST
https://api.sandbox.wepayout.com.br
/
v2
/
payin
/
payments
curl --location 'https://api.sandbox.wepayout.co/v2/payin/payments' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_TOKEN_HERE' \
--data-raw '{
	"pix": {
		"expire_date": "2025-12-31T23:59:59"
	},
	"buyer": {
		"name": "Buyer Name",
		"document": {
			"type": "CPF",
			"number": "34960826312"
		},
		"email": "[email protected]"
	},
	"amount": 3000,
	"invoice": "YOUR-CODE1234",
	"country": "BR",
	"currency": "BRL",
	"payment_method": "pix"
}'
{
  "id": 51687,
  "merchant": {
    "id": 477,
    "name": "Merchant Test Sandbox"
  },
  "hash": "642fadb2dd586c6fe00ed4c47193757c1db23d190378817976391f1c61787847",
  "payment_page": "https://pagar.sandbox.goboleto.com/?hash=642fadb2dd586c6fe00ed4c47193757c1db23d190378817976391f1c61787847",
  "our_number": "30896",
  "invoice": "YOUR-INVOICE-CODE",
  "notification_url": null,
  "payment_method": "pix",
  "amount": 3000,
  "paid_amount": null,
  "refunded_amount": null,
  "currency": {
    "id": 19,
    "name": "Reais",
    "code": "BRL",
    "symbol": "R$"
  },
  "description": "",
  "created_at": "2025-11-19T11:45:27.000000Z",
  "updated_at": "2025-11-19T11:45:28.000000Z",
  "buyer": {
    "name": "Buyer Name",
    "email": "[email protected]",
    "document": {
      "type": "cpf",
      "number": "12345678901"
    },
    "address": {
      "country": "BR",
      "city": null,
      "street": null,
      "number": null,
      "complement": null,
      "zipcode": null,
      "district": null,
      "state_code": null
    }
  },
  "originator_legal_entity": {
    "name": null,
    "document": null,
    "helpdesk": null
  },
  "splits": [],
  "pix": {
    "expire_date": "2025-12-31T23:59:59",
    "refund_mode": "FULL_REFUND_MERCHANT",
    "qr_code": "00020126910014BR.GOV.BCB.PIX2569api-pix-h.bancobs2.com.br/spi/v2/7cc95f1a-743e-4f4a-a3ad-e2ba14f5f6f8520400005303986540510.005802BR5908Wepayout6014Belo Horizonte61083038040362070503***63049F6B",
    "end_to_end": null,
    "fine": {
      "percent": null,
      "amount": null,
      "date": null
    },
    "discount": {
      "percent": null,
      "amount": null,
      "date": null
    }
  },
  "status": {
    "id": 1,
    "name": "Created"
  },
  "status_history": [
    {
      "status": {
        "id": 1,
        "name": "Created"
      },
      "updated_at": "2025-11-19T11:45:28.000000Z"
    }
  ],
  "substatus": null,
  "refunds": [],
  "automatic_pix": null
}

Create Charge

Generate a new QR Code Pix or Boleto payment request.

Request Body

merchant_id
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
invoice
string
required
Your identification number, it must be unique on our database.Max length: 255 characters
notification_url
string
The url where we will submit the callbacks.Min: 1 character, Max: 255 characters
payment_method
string
required
Payment method that will be used in payin.Allowed values: pix, boleto
amount
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
currency
string
required
Currency code of the amount (ISO 4217).Length: 3 charactersExample: BRL
country
string
required
Country code (ISO 3166-1 alpha-2).Length: 2 charactersExample: BR
description
string
Instructions that will be displayed to the user.Max length: 140 characters
buyer
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.
splits
array
Splits are available if you want to credit more than one wallet with the charged paid amount.
pix
object
Pix QRCode specific instructions. Required when payment_method is PIX.
boleto
object
Boleto specific instructions. Required when payment_method is BOLETO.

Response

id
integer
WEpayment’s auto generated id, use this id to perform conciliation or perform queries via API / Dashboard.
merchant
object
Merchant object.
hash
string
WEpayments auto generated hash, use this hash to send your user to the payment page.
payment_page
string
The WEpayments payment page is the place where you will redirect the end customer to pay the bill.
our_number
string
The bank identification number.
invoice
string
Your identification number.
notification_url
string
The url where we will submit the callbacks.
payment_method
string
Payment method that will be used in payin.Values: pix, boleto
amount
integer
The payin total amount in cents.
paid_amount
integer
The total amount of the payin paid.
refunded_amount
integer
Amount refunded from this charge. Only pix payment_method.
currency
object
Currency object.
description
string
Instructions that will be displayed to the user.
buyer
object
The person you are charging object.
Final Beneficiary object.
splits
array
Splits object.
pix
object
Pix QRCode specific instructions object.
boleto
object
Boleto specific instructions object.
status
object
Status object.
status_history
array
Status History object.
substatus
object
Sub status object. Can be null.
refunds
array
Refund object.
automatic_pix
object
Automatic Pix configuration object (if enabled). Returns null when not configured.
created_at
string
Cash-in created date.
updated_at
string
Cash-in update date.
curl --location 'https://api.sandbox.wepayout.co/v2/payin/payments' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_TOKEN_HERE' \
--data-raw '{
	"pix": {
		"expire_date": "2025-12-31T23:59:59"
	},
	"buyer": {
		"name": "Buyer Name",
		"document": {
			"type": "CPF",
			"number": "34960826312"
		},
		"email": "[email protected]"
	},
	"amount": 3000,
	"invoice": "YOUR-CODE1234",
	"country": "BR",
	"currency": "BRL",
	"payment_method": "pix"
}'
{
  "id": 51687,
  "merchant": {
    "id": 477,
    "name": "Merchant Test Sandbox"
  },
  "hash": "642fadb2dd586c6fe00ed4c47193757c1db23d190378817976391f1c61787847",
  "payment_page": "https://pagar.sandbox.goboleto.com/?hash=642fadb2dd586c6fe00ed4c47193757c1db23d190378817976391f1c61787847",
  "our_number": "30896",
  "invoice": "YOUR-INVOICE-CODE",
  "notification_url": null,
  "payment_method": "pix",
  "amount": 3000,
  "paid_amount": null,
  "refunded_amount": null,
  "currency": {
    "id": 19,
    "name": "Reais",
    "code": "BRL",
    "symbol": "R$"
  },
  "description": "",
  "created_at": "2025-11-19T11:45:27.000000Z",
  "updated_at": "2025-11-19T11:45:28.000000Z",
  "buyer": {
    "name": "Buyer Name",
    "email": "[email protected]",
    "document": {
      "type": "cpf",
      "number": "12345678901"
    },
    "address": {
      "country": "BR",
      "city": null,
      "street": null,
      "number": null,
      "complement": null,
      "zipcode": null,
      "district": null,
      "state_code": null
    }
  },
  "originator_legal_entity": {
    "name": null,
    "document": null,
    "helpdesk": null
  },
  "splits": [],
  "pix": {
    "expire_date": "2025-12-31T23:59:59",
    "refund_mode": "FULL_REFUND_MERCHANT",
    "qr_code": "00020126910014BR.GOV.BCB.PIX2569api-pix-h.bancobs2.com.br/spi/v2/7cc95f1a-743e-4f4a-a3ad-e2ba14f5f6f8520400005303986540510.005802BR5908Wepayout6014Belo Horizonte61083038040362070503***63049F6B",
    "end_to_end": null,
    "fine": {
      "percent": null,
      "amount": null,
      "date": null
    },
    "discount": {
      "percent": null,
      "amount": null,
      "date": null
    }
  },
  "status": {
    "id": 1,
    "name": "Created"
  },
  "status_history": [
    {
      "status": {
        "id": 1,
        "name": "Created"
      },
      "updated_at": "2025-11-19T11:45:28.000000Z"
    }
  ],
  "substatus": null,
  "refunds": [],
  "automatic_pix": null
}