Skip to main content

Process PIX Payments

  https://api-sandbox.letpay.io/payment/MY_PAYMENT_TOKEN/sendPayment

Processes a PIX payment order that were already created using the Create Payment Order method.

Request Fields

  • method (required/string): Payment method. Valid option: PIX.

Response Fields

  • payment_token (string): Token to identify this payment.
  • refresh_token (string): Updated access token for next calls.
  • transaction_status (string): Status of this payment.
  • pix_amount (string): Amount of this payment.
  • pix_qr_code (string): Base64 zipped PNG image representation of PIX QR code.
  • pix_code (string): Text string containing code to pay the PIX.
AUTHORIZATIONAPI Key
KeyX-Auth-Token
ValueMY_ACCESS_TOKEN

Body Raw(json)

json
{
"method": "PIX"
}

Example Request

Example Request

200 - Success
    curl --location 'https://api-sandbox.letpay.io/payment/MY_PAYMENT_TOKEN/sendPayment' \
--header 'X-Auth-Token: MY_ACCESS_TOKEN' \
--data '{
"method": "PIX"
}'

Example Response

Header
  Content-Type: application/json
Body
    {
"transaction_status": "PROCESSING",
"payment_token": "633de157-9a42-4d30-bbad-bd9fb883e058",
"pix_qr_code": "BASE64_ZIPPED_PNG",
"pix_code": "00020101021226600016BR.COM.PAGSEGURO01364B08C1DF-AF5D-45F1-9FEE-544AB7226F045204899953039865406123.455802BR5925ELPL Tecnologia em Pagame6009Sao Paulo63044EFC",
"pix_amount": "123.45",
"refresh_token": "MY_ACCESS_TOKEN"
}