Integración: PIX

In this guide, we will provide you all the information you need to integrate and use PIX efficiently. PIX is a Brazilian account to account (A2A) payment method offering a secure and reliable real time transactions in a seamless solution for your payment processing needs.

NuPay payment method

PIX payment method

Pix Overview and Payment Flow

Pix is an instant payment method developed by the Central Bank of Brazil, operated by banks and digital wallets. It has quickly become one of the most widely used payment methods in the country. Pix offers real-time transactions, 24/7, providing convenience and speed for both businesses and consumers.

Pix Payment Flow

  1. Payment Selection: The shopper selects Pix as their payment method on your website or app.
  2. QR Code Generation: Your website or app generates and displays a unique QR code associated with the transaction.
  3. Payment Confirmation: The shopper accesses their banking app, scans or pastes the QR code, and confirms the payment. The transaction is processed instantly.

This seamless and efficient flow makes Pix an ideal solution for businesses seeking to offer fast, secure, and frictionless payment options.

Supported Operations

  • Purchase
  • Refund
  • Partial Refund
  • Multiple Partial Refund
  • Webhook

Integration Steps

Environments:

Postman Collection:
https://www.postman.com/deunaonline/deuna/folder/phmffeu/pix-brazil?action=share&source=copy-link&creator=30572503&ctx=documentation

1 - Creating a User

Create an user with DEUNA in order to get the authorization token to perform the purchase later. This API will return back a User's token which will be required to follow the next steps.

👍

We recommend to use the OTP to get a new token each time your customer confirms through the SMS or Email the code. Also, you can use an External Authentication login to manage the user auth tokens by your own without request them the OTP. Talked to your Sales Engineer for further guidance.

To create a user use follow the API Reference The document could be CPF or CNPJ. E.g. 01354778911 or 52672745000112. In case the email used already exists, the API will return the message user already exists, so you can proceed to Request the OTP and then, Login with the OTP to obtain a fresh user tokenand proceed with the purchase.

🚧

Create a User is optional. In case you do not want to create users with DEUNA, talk to your Sales Engineer for further steps.

2 - Making a PIX Purchase

When purchasing a PIX, DEUNA will generate the QR Code, the Token (Copia e Cola) and the Expiration Date informed in the request. All of these paramaters are in the authorization_bank_transfer node. Once expired, the customer cannot use the PIX to pay anymore. In the response, the field payment.status will inform the status of the transaction and the field order.status, the status of the order. We recommend to use the Purchase V2 to send the order in the same API call. If you do no want to use it, you will need to Create the Order and then the Purchase V1.

2.1 - Notifications

When a purchase is made, the merchant can receive the following notifications. Below, in section 5 - Webhooks, you can see the payload examples:

  • Pix Created: The statuses are payment.status and order.status = pending.This indicates that the Pix has been generated and is awaiting payment from the customer.
  • Pix Expired: If the customer does not act on the QR Code, the Pix will expire. The statuses are payment.status = denied. and order.status = expired.
  • Pix Processed: When the Pix payment is successfully completed. The possible statuses are payment.status = processed and order.status = succeeded
  • Pix Denied: This rare scenario occurs when the customer makes the Pix payment, but it has already expired in the Central Bank of Brazil. The possible statuses are payment.status = denied and the order.status = pending. In these cases, the order remains in a pending status, allowing the user to either complete the payment with a different payment method or retry the Pix transaction.
NuPay payment method

PIX statuses from the DEUNA ADMIN

  • Request Example:
{
    "order_type": "DEUNA_CHECKOUT",
    "payer_info": {
        "email": "{{$randomEmail}}",
        "save_user_info": false
    },
    "callback_urls": {
        "on_success": "url",
        "on_reject": "url",
        "on_canceled": "url",
        "on_failed": "url"
    },
    "payment_source": {
        "method_type": "bank_transfer", //use bank_transfer for PIX payment method
        "processor": "asaas_pix", //ask to your SE for the processor name
        "method_type_specific_fields": {
            "description": "Test PIX DEUNA",
            "expiration_date": "2024-08-30 12:00:00" //always yyyy/MM/dd hh:mm:ss in Local Brazil Time. Add extra time for PIX expiration window
        }
    },
    "order": {
        "order_id": "{{$randomUUID}}",
        "store_code": "all",
        "currency": "BRL",
        "items_total_amount": 2175,
        "tax_amount": 0,
        "sub_total": 2175,
        "shipping_amount": 100,
        "shipping_tax_amount": 0,
        "total_tax_amount": 65,
        "total_amount": 2240,
        "expires_at":"2024-08-30T16:00:00.000Z", // 15m min 60days max //e.g. UTC 2024-08-30T16:00:00.000Z
        "shipping_methods": [
            {
                "code": "12345JR",
                "name": "Fast Delivery",
                "cost": 250
            }
        ],
        "discounts": [],
        "metadata": {
            "key1": "identificador 1",
            "key2": "identificador 2"
        },
        "items": [
            {
                "id": "{{$randomUUID}}",
                "name": "Premium Baby Beef",
                "description": "Premium Baby Beef Estância 92 Angus Resfriado",
                "total_amount": {
                    "original_amount": 2100,
                    "amount": 2050,
                    "total_discount": 100,
                    "currency": "BRL",
                    "currency_symbol": "R$"
                },
                "unit_price": {
                    "amount": 1050,
                    "currency": "BRL",
                    "currency_symbol": "R$"
                },
                "tax_amount": {
                    "amount": 50,
                    "currency": "BRL",
                    "currency_symbol": "R$"
                },
                "quantity": 2,
                "image_url": "https://media-cdn.tripadvisor.com/media/photo-s/1a/e2/c6/68/porcion-de-papas-a-la.jpg",
                "taxable": true
            },
            {
                "id": "{{$randomUUID}}",
                "name": "Coração Da Alcatra",
                "description": "Coração Da Alcatra (bombom) Estância 92 Resfriado",
                "total_amount": {
                    "original_amount": 75,
                    "amount": 90,
                    "total_discount": 0,
                    "currency": "BRL",
                    "currency_symbol": "R$"
                },
                "unit_price": {
                    "amount": 75,
                    "currency": "BRL",
                    "currency_symbol": "R$"
                },
                "tax_amount": {
                    "amount": 15,
                    "currency": "BRL",
                    "currency_symbol": "R$"
                },
                "quantity": 1,
                "image_url": "https://media-cdn.tripadvisor.com/media/photo-s/1a/e2/c6/68/porcion-de-papas-a-la.jpg",
                "taxable": true
            }
        ],
        "shipping_address": {
            "id": "204",
            "first_name": "Joao",
            "last_name": "Silva",
            "email": "{{$randomEmail}}",
            "address1": "Av. Pres. Juscelino Kubitschek",
            "address2": "3ro. Andar",
            "zipcode": "04543-011",
            "city": "São Paulo",
            "state_name": "SP",
            "country_code": "BRA",
            "identity_document": "52672745000112",
            "identity_document_type": "CNPJ", //CPF or CNPJ E.g. 01354778911 or 52672745000112
            "phone": "+5511985176644",
            "lat": -22.943934,
            "lng": -43.182984,
            "additional_description": "confirmar",
            "address_type": "casa"
        },
        "billing_address": {
            "id": "179",
            "first_name": "Joao",
            "last_name": "Silva",
            "email": "{{$randomEmail}}",
            "address1": "Av. Pres. Juscelino Kubitschek",
            "address2": "3ro. Andar",
            "zipcode": "04543-011",
            "city": "São Paulo",
            "state_name": "SP",
            "country_code": "BRA",
            "identity_document": "52672745000112",
            "identity_document_type": "CNPJ", //CPF or CNPJ E.g. 01354778911 or 52672745000112
            "phone": "+5511985176644",
            "lat": -23.555425,
            "lng": -46.677048,
            "address_type": "casa"
        },
        "user_instructions": "pesar antes de enviar",
        "browser_details": {
            "screen_height": 1000,
            "screen_width": 2000
        },
        "webhook_urls": {
            "notify_order": "https://webhook.site/5f19a36f-8931-4317-a850-fe102f93edbb",
            "apply_coupon": "",
            "remove_coupon": "",
            "get_shipping_methods": "",
            "update_shipping_method": "",
            "Tarifa de envio": ""
        }
    }
}
  • Response Example:
{
    "order_type": "DEUNA_CHECKOUT",
    "order_token": "410c9684-9046-42aa-8507-50779eaae223",
    "order": {
        "order_id": "717981f0-bade-4c29-9d2b-302763e655cb",
        "store_code": "all",
        "currency": "BRL",
        "tax_amount": 0,
        "display_tax_amount": "",
        "shipping_amount": 100,
        "display_shipping_amount": "BRL 1,00",
        "items_total_amount": 2175,
        "display_items_total_amount": "BRL 21,75",
        "sub_total": 2175,
        "display_sub_total": "BRL 21,75",
        "total_amount": 2240,
        "display_total_amount": "BRL 22,40",
        "items": [
            {
                "id": "73a8886c-7dfb-4f49-a13c-d021adcf3e0f",
                "name": "Premium Baby Beef",
                "description": "Premium Baby Beef Estância 92 Angus Resfriado",
                "options": "",
                "total_amount": {
                    "amount": 2050,
                    "original_amount": 2100,
                    "display_amount": "BRL 20,50",
                    "display_original_amount": "BRL 21,00",
                    "currency": "BRL",
                    "currency_symbol": "R$",
                    "total_discount": 100,
                    "display_total_discount": "BRL 1,00"
                },
                "unit_price": {
                    "amount": 1050,
                    "display_amount": "BRL 10,50",
                    "currency": "BRL",
                    "currency_symbol": "R$"
                },
                "tax_amount": {
                    "amount": 50,
                    "display_amount": "BRL 0,50",
                    "currency": "BRL",
                    "currency_symbol": "R$"
                },
                "quantity": 2,
                "uom": "",
                "upc": "",
                "sku": "",
                "isbn": "",
                "brand": "",
                "manufacturer": "",
                "category": "",
                "color": "",
                "size": "",
                "weight": {
                    "weight": 0,
                    "unit": ""
                },
                "image_url": "https://media-cdn.tripadvisor.com/media/photo-s/1a/e2/c6/68/porcion-de-papas-a-la.jpg",
                "details_url": "",
                "type": "",
                "taxable": true,
                "discounts": [],
                "included_in_subscription": false,
                "subscription_id": "00000000-0000-0000-0000-000000000000",
                "item_details": []
            },
            {
                "id": "5f0ab6cc-1c90-432d-a805-2cc4032f7b08",
                "name": "Coração Da Alcatra",
                "description": "Coração Da Alcatra (bombom) Estância 92 Resfriado",
                "options": "",
                "total_amount": {
                    "amount": 90,
                    "original_amount": 75,
                    "display_amount": "BRL 0,90",
                    "display_original_amount": "BRL 0,75",
                    "currency": "BRL",
                    "currency_symbol": "R$",
                    "total_discount": 0,
                    "display_total_discount": "BRL 0,00"
                },
                "unit_price": {
                    "amount": 75,
                    "display_amount": "BRL 0,75",
                    "currency": "BRL",
                    "currency_symbol": "R$"
                },
                "tax_amount": {
                    "amount": 15,
                    "display_amount": "BRL 0,15",
                    "currency": "BRL",
                    "currency_symbol": "R$"
                },
                "quantity": 1,
                "uom": "",
                "upc": "",
                "sku": "",
                "isbn": "",
                "brand": "",
                "manufacturer": "",
                "category": "",
                "color": "",
                "size": "",
                "weight": {
                    "weight": 0,
                    "unit": ""
                },
                "image_url": "https://media-cdn.tripadvisor.com/media/photo-s/1a/e2/c6/68/porcion-de-papas-a-la.jpg",
                "details_url": "",
                "type": "",
                "taxable": true,
                "discounts": [],
                "included_in_subscription": false,
                "subscription_id": "00000000-0000-0000-0000-000000000000",
                "item_details": []
            }
        ],
        "discounts": [],
        "shipping_address": {
            "id": 204,
            "user_id": "",
            "first_name": "Joao",
            "last_name": "Silva",
            "phone": "+5511985176644",
            "identity_document": "52672745000112",
            "lat": -22.943934,
            "lng": -43.182984,
            "address1": "Av. Pres. Juscelino Kubitschek",
            "address2": "3ro. Andar",
            "city": "São Paulo",
            "zipcode": "04543-011",
            "state_name": "SP",
            "country_code": "BRA",
            "additional_description": "confirmar",
            "address_type": "casa",
            "is_default": false,
            "created_at": "0001-01-01T00:00:00Z",
            "updated_at": "2024-08-26T15:25:43.635770405Z",
            "identity_document_type": "CNPJ"
        },
        "shipping_options": null,
        "user_instructions": "pesar antes de enviar",
        "metadata": {
            "key1": "identificador 1",
            "key2": "identificador 2"
        },
        "status": "pending",
        "payment": {
            "data": {
                "amount": {
                    "amount": 2240,
                    "currency": "BRL"
                },
                "metadata": {
                    "authorization_code": "",
                    "reference_transaction_id": ""
                },
                "from_card": {
                    "card_brand": "",
                    "first_six": "",
                    "last_four": "",
                    "bank_name": "",
                    "country_iso": ""
                },
                "updated_at": "2024-08-26 15:25:44.243843116 +0000 UTC",
                "method_type": "bank_transfer",
                "merchant": {
                    "store_code": "all",
                    "id": "c2273d9a-94c0-40a6-9b39-2556b4fadd1b"
                },
                "created_at": "2024-08-26 15:25:44.243356589 +0000 UTC",
                "id": "717981f0-bade-4c29-9d2b-302763e655cb",
                "processor": "asaas_pix",
                "customer": {
                    "email": "[email protected]",
                    "id": "ffd0b445-4537-4316-8677-423deb770f24",
                    "first_name": "",
                    "last_name": ""
                },
                "status": "pending",
                "reason": "",
                "external_transaction_id": "JEANROLD00000000495401ASA",
                "authorization_bank_transfer": {
                    "qr": "iVBORw0KGgoAAAANSUhEUgAAAZ8AAAGfCAIAAAAPgEjDAAAP3UlEQVR42u3aQXIjORADQP3/0943zIqFAqnEVR6rmywmHYH5/ImIvJiPJRARuomI0E1EhG4iInQTEaGbiNBNRIRuIiJ0ExGhm4gI3URE6CYidBMRoZuICN1EROgmIkI3ERG6iQjdREToJiJCNxERuomI0E1EhG4iQrf/87tSueKZ/+mL/ukhv3nBb17/4L89+L4lY3ZwQ7/ZhYPf+8Lpphvd6EY3utGNbnSjG93oRje60Y1udKMb3eh2k25bv3luZA8Ox5zIB4cyxkrsTMbOc2x/Y0NYcrrpRje60Y1udKMb3ehGN7rRjW50oxvd6EY3uv2MbgfruZLD0GnfjV1e7N/GasGDF8Pc5X3j6aYb3ehGN7rRjW50oxvd6EY3utGNbnSjG93oRresbnO9WEy3WD031xLGysqSL4plTka60Y1udKMb3ehGN7rRjW50oxvd6EY3utGNbnR7RbeDlVNJ7xmr9mIFXMm1UVKDxkblm2emG93oRje60Y1udKMb3ehGN7rRjW50oxvd6Ea3Vd1iv7lkgucGa2ugY831Vhl9RZE9J9QVp5tudKMb3ehGN7rRjW50oxvd6EY3utGNbnSj27u6xbo8n/rUp+FP72jq6eZTn/qUbnTzqU99Sje6+dSndKMb3XzqU7pV67aVWKm09UVznWlnlxfrWzvnKnb4Y93lmgx0oxvd6EY3utGNbnSjG93oRje60Y1udKMb3S7W7eAE5zqXlCNbdVXJGx0cpM4ub+5OveLPArrRjW50oxvd6EY3utGNbnSjG93oRje60Y1udMvqdqObcy1hTIq5Hz647Ae3+wo4SsrZb35VrgWmG93oRje60Y1udKMb3ehGN7rRjW50oxvd6PaObrFZ2ZqkuWnYmtEHmuu5Zd+6craeees+phvd6EY3utGNbnSjG93oRje60Y1udKMb3ej2M7qVFFKxiq2kYdyq2Do70znrY138XDkbq5vpRje60Y1udKMb3ehGN7rRjW50oxvd6EY3utEt28fFFnrrIWMt4dxTxRrVrdWI3amdcMxdonSjG93oRje60Y1udKMb3ehGN7rRjW50oxvdflW3ueXYmoa5/rHkeMeWrsT6gz+8tQudd3mJyHSjG93oRje60Y1udKMb3ehGN7rRjW50oxvdunWbG/et4ejcwoNjdxCdkrScqw7O5h4ydj/RjW50oxvd6EY3utGNbnSjG93oRje60Y1udPtV3UoaqNhBip2cEmQP1nOdteCcX7F/u/VFayeFbnSjG93oRje60Y1udKMb3ehGN7rRjW50o9s7upVsf2yTDpJUcghjjerW/sZu6y0a5u6nksqYbnSjG93oRje60Y1udKMb3ehGN7rRjW50o9uv6nbwqWLTX/JUseo2Vt6VELx11c1tSsk6041udKMb3ehGN7rRjW50oxvd6EY3utGNbnSj2+p5nmtFY01fZ/F30K+D4z73VFeWhvd303SjG93oRje60Y1udKMb3ehGN7rRjW50oxvd3tXtvdLwM5bOOrLkjebed640LOF7rsntvMzoRje60Y1udK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fu79UYl3fQLnSnd6EY3utGNbnSjG93oRje60Y1udKMb3ehGt/HVmesBS7Zh7hW22uetodxajTkZS/ZorvXeOs50oxvd6EY3utGNbnSjG93oRje60Y1udKMb3eg2DMd7us2durl13irBO5UpMXdurdb+rwXd6EY3utGNbnSjG93oRje60Y1udKMb3ehGN7ptztlBdLaQ3SpJrzgbJZ1pCZSdg0Q3utGNbnSjG93oRje60Y1udKMb3ehGN7rR7Wd0i/3mudHZ8rrzYoj5tbU4nQf44J26Vb/+pUI3utGNbnSjG93oRje60Y1udKMb3ehGN7rR7SrdYuXOwaXsPJMlZWVnoTwH1sHvjX3R1h8NJTcf3ehGN7rRjW50oxvd6EY3utGNbnSjG93oRrerdBMR6QndRIRuIiJ0ExGhm4gI3URE6CYidBMRoZuICN1EROgmIkI3ERG6iQjdREToJiJCNxERuomI0E1EhG4iQjcREbqJiNBNRIRuIiJ0ExGhm4j8Tv4DbsF+ej0/+ecAAAAASUVORK5CYII=",
                    "token": "00020126760014br.gov.bcb.pix013689bd5e4e-2393-4bd1-b973-2010c3169ea20214Test PIX DEUNA520400005303986540522.405802BR5911Jean Roldan6014Rio de Janeiro62290525JEANROLD00000000495401ASA6304507E",
                    "expiration_date": "2024-08-30 12:00:00"
                },
                "merchant_payment_processor_name": "",
                "authorization_code": "",
                "installment_interest_calculations": null
            }
        },
        "gift_card": [],
        "redirect_url": "",
        "webhook_urls": null,
        "total_discount": 0,
        "display_total_discount": "BRL 0,00",
        "shipping": null,
        "cash_change": 0,
        "shipping_method": null,
        "shipping_methods": [],
        "timezone": "",
        "scheduled_at": "",
        "billing_address": {
            "id": 179,
            "user_id": "",
            "first_name": "Joao",
            "last_name": "Silva",
            "phone": "+5511985176644",
            "identity_document": "52672745000112",
            "lat": -23.555425,
            "lng": -46.677048,
            "address1": "Av. Pres. Juscelino Kubitschek",
            "address2": "3ro. Andar",
            "city": "São Paulo",
            "zipcode": "04543-011",
            "state_name": "SP",
            "country_code": "BRA",
            "additional_description": "",
            "address_type": "casa",
            "is_default": false,
            "created_at": "0001-01-01T00:00:00Z",
            "updated_at": "2024-08-26T15:25:43.635771056Z",
            "email": "[email protected]",
            "identity_document_type": "CNPJ"
        },
        "payment_link": "",
        "display_shipping_tax_amount": "BRL 0,00",
        "display_total_tax_amount": "BRL 0,65",
        "shipping_tax_amount": 0,
        "total_tax_amount": 65,
        "user_id": "",
        "include_payment_options": [],
        "redirect_urls": {
            "success": "",
            "pending": "",
            "error": "",
            "fallback": "",
            "close": ""
        },
        "created_at": "",
        "updated_at": "",
        "payer_info": null,
        "discount_amount": 0,
        "shipping_discount_amount": 0,
        "device_fingerprint": "",
        "expired_at": "",
        "version": "0",
        "fraud": null,
        "display_total_interest_amount": "",
        "payment_method": "",
        "token": "",
        "statement_descriptor": ""
    }


3 - Creating a Pix Refund

When processing a refund, you have the flexibility to choose between a full refund, a partial refund or a multiple partial refund:

  • Full Refund: Refund the entire amount of the original transaction.
  • Partial Refund: Refund a specific portion of the original amount, allowing greater flexibility.
  • Additionally, you can perform multiple partial refunds for the same transaction, as long as the total refunded amount does not exceed the original transaction value.

Example Refund request:

{
    "reason": "",
    "amount": 2240
}

Example Refund response

{
    "data": {
        "refund_id": "961bb161-5340-4d36-a08d-7d767458e0af",
        "status": "refunding",
        "refund_amount": {
            "amount": "2240",
            "currency": "BRL"
        },
        "order": null,
        "refunds": [
            {
                "refund_id": "961bb161-5340-4d36-a08d-7d767458e0af",
                "refund_amount": {
                    "amount": "2240",
                    "currency": "BRL"
                },
                "refunded_on": "2024-08-17T00:05:05Z",
                "status": "refunding",
                "external_transaction_id": "c0884fd3-8c7f-45eb-b4f5-caf89ba44d4b"
            }
        ]
    },
    "error": null
}

Here you can see an example of multiple partial refunds, with the corresponding refund_id for each requested refund:

{
    "data": {
        "invoice": {
            "token": "6c2ccbe0-ec31-40d0-b21d-45e2a33f604a",
            "order_id": "e54d8720-d4e6-4922-ad45-6cc1c9724fd8",
            "amount": 5025
        },
        "refund_id": "bdc2f63e-230c-46f6-9c9b-2ba2b5817cc9",
        "status": "refunding",
        "external_transaction_id": "50722010-fd12-4718-8383-30aefa25f3ad",
        "refund_amount": {
            "amount": 4025,
            "currency": "BRL"
        },
        "refunds": [
            {
                "refund_id": "8e41fe00-dd9f-4505-906d-7b1dc9a4016c",
                "status": "refunding",
                "external_transaction_id": "7db40b18-0926-4d31-9c84-43df7c55c56f",
                "refund_amount": {
                    "amount": 1000,
                    "currency": "BRL"
                },
                "refunded_on": "2025-01-06T21:32:13Z"
            },
            {
                "refund_id": "bdc2f63e-230c-46f6-9c9b-2ba2b5817cc9",
                "status": "refunding",
                "external_transaction_id": "50722010-fd12-4718-8383-30aefa25f3ad",
                "refund_amount": {
                    "amount": 4025,
                    "currency": "BRL"
                },
                "refunded_on": "2025-01-06T21:32:52Z"
            }
        ],
        "request": {
            "raw_request": {
                "description": "refund",
                "value": 40.25
            },
            "raw_response": {
                "addressKey": null,
                "addressKeyType": null,
                "canBeCanceled": false,
                "canBeRefunded": false,
                "changeValue": null,
                "chargedFeeValue": 0,
                "conciliationIdentifier": null,
                "dateCreated": "2025-01-06 18:32:51",
                "description": "refund",
                "effectiveDate": "2025-01-06 18:32:51",
                "endToEndIdentifier": null,
                "externalAccount": {
                    "account": "000000",
                    "accountDigit": "0",
                    "accountType": "PAYMENT_ACCOUNT",
                    "addressKey": "89bd5e4e-2393-4bd1-b973-2010c3169ea2",
                    "addressKeyType": "EVP",
                    "agency": "0000",
                    "cpfCnpj": "***.399.399-**",
                    "ispb": 19540550,
                    "ispbName": "ASAAS GESTÃO FINANCEIRA INSTITUIÇÃO DE PAGAMENTO S.A.",
                    "name": "Jean Roldan"
                },
                "externalReference": null,
                "finality": null,
                "id": "50722010-fd12-4718-8383-30aefa25f3ad",
                "originType": null,
                "originalTransaction": {
                    "effectiveDate": "2025-01-06 18:30:34",
                    "endToEndIdentifier": "5e71aeec7171974a7a2aa51adcca1a28",
                    "id": "933f092e-d511-426c-be39-c6609f8a5a9b",
                    "value": 50.25
                },
                "payment": null,
                "qrCode": null,
                "refundDisabledReason": "O tipo desta transação não permite que ela seja estornada.",
                "refundedValue": 0,
                "refusalReason": null,
                "scheduledDate": null,
                "status": "AWAITING_REQUEST",
                "transactionReceiptUrl": null,
                "transferId": "37d3cd1f-1f2b-453a-ad02-7d034d65fabc",
                "type": "CREDIT_REFUND",
                "value": 40.25
            }
        }
    }
}

Follow this API Reference for further details.

📘

If you don't send the parameter amount in the request body, the refund will be total. If the amount is less than the total amount sent in the order, will be considered as a partial refund.

3.1 - Notifications

The following notifications may be received:

  • Refund Denied: If the refund fails, the possible statuses are payment.status = processed and order.status = succeeded
  • Refund Processed: If the refund is successfully processed, the possible statuses are payment.status

For multiple partial refunds:

  • If at least one partial refund has been successfully processed but the total value has not been reached, the notifications for subsequent refunds will be: success (payment.status = partial_refunded order.status = succeeded)
  • When the refund reaches the total value, the statuses will be: payment.status = refunded and order.status = refund
  • In these cases, we send the refund_id along with an array of refunds, where the merchant can check the status and additional information about the refund (e.g., amount).

4 - Retrieving information from an Order

At any time, you are able to retrieve the order's information, in special, to check the status of the order. We recommend to use theauthorization_bank_transfer node's data and payment.data.statusfor monitoring purposes. Follow the API Reference for further details.

 "status": "pending",
        "payment": {
            "data": {
                    .
                    .
                    .
                    },
                "status": "pending",
                "reason": "",
                "external_transaction_id": "JEANROLD00000000495401ASA",
                "authorization_bank_transfer": {
                    "qr": "iVBORw0KGgoAAAANSUhEUgAAAZ8AAAGfCAIAAAAPgEjDAAAP3UlEQVR42u3aQXIjORADQP3/0943zIqFAqnEVR6rmywmHYH5/ImIvJiPJRARuomI0E1EhG4iInQTEaGbiNBNRIRuIiJ0ExGhm4gI3URE6CYidBMRoZuICN1EROgmIkI3ERG6iQjdREToJiJCNxERuomI0E1EhG4iQrf/87tSueKZ/+mL/ukhv3nBb17/4L89+L4lY3ZwQ7/ZhYPf+8Lpphvd6EY3utGNbnSjG93oRje60Y1udKMb3eh2k25bv3luZA8Ox5zIB4cyxkrsTMbOc2x/Y0NYcrrpRje60Y1udKMb3ehGN7rRjW50oxvd6EY3uv2MbgfruZLD0GnfjV1e7N/GasGDF8Pc5X3j6aYb3ehGN7rRjW50oxvd6EY3utGNbnSjG93oRresbnO9WEy3WD031xLGysqSL4plTka60Y1udKMb3ehGN7rRjW50oxvd6EY3utGNbnR7RbeDlVNJ7xmr9mIFXMm1UVKDxkblm2emG93oRje60Y1udKMb3ehGN7rRjW50oxvd6Ea3Vd1iv7lkgucGa2ugY831Vhl9RZE9J9QVp5tudKMb3ehGN7rRjW50oxvd6EY3utGNbnSj27u6xbo8n/rUp+FP72jq6eZTn/qUbnTzqU99Sje6+dSndKMb3XzqU7pV67aVWKm09UVznWlnlxfrWzvnKnb4Y93lmgx0oxvd6EY3utGNbnSjG93oRje60Y1udKMb3S7W7eAE5zqXlCNbdVXJGx0cpM4ub+5OveLPArrRjW50oxvd6EY3utGNbnSjG93oRje60Y1udMvqdqObcy1hTIq5Hz647Ae3+wo4SsrZb35VrgWmG93oRje60Y1udKMb3ehGN7rRjW50oxvd6PaObrFZ2ZqkuWnYmtEHmuu5Zd+6craeees+phvd6EY3utGNbnSjG93oRje60Y1udKMb3ej2M7qVFFKxiq2kYdyq2Do70znrY138XDkbq5vpRje60Y1udKMb3ehGN7rRjW50oxvd6EY3utEt28fFFnrrIWMt4dxTxRrVrdWI3amdcMxdonSjG93oRje60Y1udKMb3ehGN7rRjW50oxvdflW3ueXYmoa5/rHkeMeWrsT6gz+8tQudd3mJyHSjG93oRje60Y1udKMb3ehGN7rRjW50oxvdunWbG/et4ejcwoNjdxCdkrScqw7O5h4ydj/RjW50oxvd6EY3utGNbnSjG93oRje60Y1udPtV3UoaqNhBip2cEmQP1nOdteCcX7F/u/VFayeFbnSjG93oRje60Y1udKMb3ehGN7rRjW50o9s7upVsf2yTDpJUcghjjerW/sZu6y0a5u6nksqYbnSjG93oRje60Y1udKMb3ehGN7rRjW50o9uv6nbwqWLTX/JUseo2Vt6VELx11c1tSsk6041udKMb3ehGN7rRjW50oxvd6EY3utGNbnSj2+p5nmtFY01fZ/F30K+D4z73VFeWhvd303SjG93oRje60Y1udKMb3ehGN7rRjW50oxvd3tXtvdLwM5bOOrLkjebed640LOF7rsntvMzoRje60Y1udKMb3ehGN7rRjW50oxvd6EY3uj2k2zfTH+tMtzY4tnRbnVpJw1iyKXPFfaxB3hKKbnSjG93oRje60Y1udKMb3ehGN7rRjW50o9u7usXO5Na6x+b7CqBj63zFqeusMg/eMXMTSze60Y1udKMb3ehGN7rRjW50oxvd6EY3utGNbsOtWaxEi03D1rLHrqvPUg7OxlwNurWwB4/G1p8ydKMb3ehGN7rRjW50oxvd6EY3utGNbnSjG93e1e3GCjW2hbHzXKLb3A0Ua0WvsO89KOlGN7rRjW50oxvd6EY3utGNbnSjG93oRje6PaTb3EDfWKId3OCtx4gd4K1nLvnerfv4ijNIN7rRjW50oxvd6EY3utGNbnSjG93oRje60e1d3Q4e4LldmWvrYg3j8xM8t6FbPX7JaZ97qtjBoRvd6EY3utGNbnSjG93oRje60Y1udKMb3ej2kG4HX3jutHfWZCUruTaFlffEFXNV8vdHCWd0oxvd6EY3utGNbnSjG93oRje60Y1udKMb3d7VLbZnB/9tSfO19b5z+zt3bVxhQSejD5wjutGNbnSjG93oRje60Y1udKMb3ehGN7rRjW7dun06MvfMscWJLWxndVuyOHO7HztHsevq/c6UbnSjG93oRje60Y1udKMb3ehGN7rRjW50o1u6My35oticbcExV1eVHNG5lbziTp1rRec609gtQje60Y1udKMb3ehGN7rRjW50oxvd6EY3utHtId3eqwVjmsfe9+AE3/iCc69f8kZb9q0dHLrRjW50oxvd6EY3utGNbnSjG93oRje60Y1uN+nW8oapJmjrMQ4OdKyP6/T6itZ76w+OrfNLN7rRjW50oxvd6EY3utGNbnSjG93oRje60e1d3Q4O1sGTM7f9V0zhVvscI7izmp+jIfbDsf8/cEdnSje60Y1udKMb3ehGN7rRjW50oxvd6EY3utFtWbfY6szt2ZwFsXsi1jB2tnUli3OHFGM37oOdKd3oR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O576UY3utGNbnSjG93oRje60Y1udKMb3ehGN7rdrNtWI1OyhQdpmINyqxQu6ZcPrsbcr7piNeYekm50oxvd6EY3utGNbnSjG93oRje60Y1udKPbr+rW+Zs7sSvpAWMkbbWEJfu79UYl3fQLnSnd6EY3utGNbnSjG93oRje60Y1udKMb3ehGt/HVmesBS7Zh7hW22uetodxajTkZS/ZorvXeOs50oxvd6EY3utGNbnSjG93oRje60Y1udKMb3eg2DMd7us2durl13irBO5UpMXdurdb+rwXd6EY3utGNbnSjG93oRje60Y1udKMb3ehGN7ptztlBdLaQ3SpJrzgbJZ1pCZSdg0Q3utGNbnSjG93oRje60Y1udKMb3ehGN7rR7Wd0i/3mudHZ8rrzYoj5tbU4nQf44J26Vb/+pUI3utGNbnSjG93oRje60Y1udKMb3ehGN7rR7SrdYuXOwaXsPJMlZWVnoTwH1sHvjX3R1h8NJTcf3ehGN7rRjW50oxvd6EY3utGNbnSjG93oRrerdBMR6QndRIRuIiJ0ExGhm4gI3URE6CYidBMRoZuICN1EROgmIkI3ERG6iQjdREToJiJCNxERuomI0E1EhG4iQjcREbqJiNBNRIRuIiJ0ExGhm4j8Tv4DbsF+ej0/+ecAAAAASUVORK5CYII=",
                    "token": "00020126760014br.gov.bcb.pix013689bd5e4e-2393-4bd1-b973-2010c3169ea20214Test PIX DEUNA520400005303986540522.405802BR5911Jean Roldan6014Rio de Janeiro62290525JEANROLD00000000495401ASA6304507E",
                    "expiration_date": "2024-08-30 12:00:00"
                },

5 - Webkooks

Pix Pending:

{
  "api_key_id": "036074c6-ca84-4ac2-b945-f1285d03a51f",
  "billing_address": {
    "additional_description": "",
    "address1": "Av. Pres. Juscelino Kubitschek",
    "address2": "3ro. Andar",
    "address_type": "casa",
    "city": "São Paulo",
    "country_code": "BRA",
    "created_at": "2025-01-06T13:55:03.751977546Z",
    "email": "[email protected]",
    "first_name": "",
    "id": 179,
    "identity_document": "52672745000112",
    "is_default": false,
    "last_name": "",
    "lat": -23.555425,
    "lng": -46.677048,
    "phone": "+5511985176644",
    "state_name": "SP",
    "updated_at": "2025-01-06T13:55:03.751977591Z",
    "user_id": "",
    "zipcode": "04543-011"
  },
  "cash_change": 0,
  "created_at": "2025-01-06T13:55:03.722627322Z",
  "currency": "BRL",
  "custom_fields": {},
  "deleted_at": null,
  "discounts": null,
  "fraud": null,
  "gift_cards": null,
  "hooks": null,
  "items": [
    {
      "brand": "",
      "category": "",
      "color": "",
      "description": "Premium Baby Beef Estância 92 Angus Resfriado",
      "details_url": "",
      "id": "65dc09c9-7044-4e51-8d1a-f82a8ffc74bd",
      "image_url": "https://media-cdn.tripadvisor.com/media/photo-s/1a/e2/c6/68/porcion-de-papas-a-la.jpg",
      "isbn": "",
      "manufacturer": "",
      "name": "Premium Baby Beef",
      "options": "",
      "quantity": 2,
      "size": "",
      "sku": "",
      "subscription_id": "00000000-0000-0000-0000-000000000000",
      "tax_amount": {
        "amount": 50,
        "currency": "BRL",
        "currency_symbol": "R$"
      },
      "taxable": true,
      "total_amount": {
        "amount": 2050,
        "currency": "BRL",
        "currency_symbol": "R$",
        "original_amount": 2100
      },
      "type": "",
      "unit_price": {
        "amount": 1050,
        "currency": "BRL",
        "currency_symbol": "R$"
      },
      "uom": "",
      "upc": "",
      "weight": {
        "unit": "",
        "weight": 0
      }
    },
    {
      "brand": "",
      "category": "",
      "color": "",
      "description": "Coração Da Alcatra (bombom) Estância 92 Resfriado",
      "details_url": "",
      "id": "fa85ecac-1b26-4c70-bba4-58d6e3cc5aea",
      "image_url": "https://media-cdn.tripadvisor.com/media/photo-s/1a/e2/c6/68/porcion-de-papas-a-la.jpg",
      "isbn": "",
      "manufacturer": "",
      "name": "Coração Da Alcatra",
      "options": "",
      "quantity": 1,
      "size": "",
      "sku": "",
      "subscription_id": "00000000-0000-0000-0000-000000000000",
      "tax_amount": {
        "amount": 15,
        "currency": "BRL",
        "currency_symbol": "R$"
      },
      "taxable": true,
      "total_amount": {
        "amount": 90,
        "currency": "BRL",
        "currency_symbol": "R$",
        "original_amount": 75
      },
      "type": "",
      "unit_price": {
        "amount": 75,
        "currency": "BRL",
        "currency_symbol": "R$"
      },
      "uom": "",
      "upc": "",
      "weight": {
        "unit": "",
        "weight": 0
      }
    }
  ],
  "items_total_amount": 2175,
  "merchant_id": "c2273d9a-94c0-40a6-9b39-2556b4fadd1b",
  "metadata": {
    "key1": "identificador 1",
    "key2": "identificador 2"
  },
  "order_id": "e0ddaacf-9309-48af-8637-d754e3b7e053",
  "order_type": "DEUNA_CHECKOUT",
  "payer_info": null,
  "payment": {
    "data": {
      "amount": {
        "amount": 2240,
        "currency": "BRL"
      },
      "authentication_method": "NONE",
      "authorization_3ds": {
        "url_challenge": "",
        "version": ""
      },
      "authorization_bank_transfer": {
        "description": "Test PIX DEUNA",
        "expiration_date": "2025-01-31 16:05:00",
        "qr": "iVBORw0KGgoAAAANSUhEUgAAAcIAAAHCAQAAAABUY/ToAAADF0lEQVR4Xu2VQZIbMQwD5zb//1GepZsToEmNs5WUUnsJXQWOrZFANC7ieq/XN+vH9VX51wp5qpCnCnmqkKcKear/Rq7Ldb/W7e1Nb7HhpbXaGELOJXHcdGVidWQDWqS3P+RgstRiaiO2MAW0WHzI8STP474EI+zQkJ9DNoIbVpum35whR5OvVmXVrqy9a387Q44mfenqHZ9yhvzrM4Dc1T/H/qjf/mc+doUcS/p+dcvt4b7r0omoHVEhZ5PeglSAEyrE22dCQo4nfeW658vN8i8SrHdPGmjIwaS2rW+hMsQpwZaKDDmZFKMuV76PuvHO2hqBISeT1VbLfSHtMOEEgnYj5FgSVA69WAiqlJIVwT7kaHIfl3qO6pUvZ9JqHkLOJevS9YZnBsrEEPjwlhNyLklpHPRxxC2/s94QhwCGHEy6/yA6qwu2Qx+TxJBjSS7aL21418mA4zwG0CFHkxKxlFsWbU2414oDjIQcS6JaWv7DdVPq06uDG0ZDjiXdZxDcepM4LtGeDwKkhpxLSkLxNDjAIfbfXD2EWyFHk2W3w/TSTPj2GY4agc4JOZvE/tIty2NnK1RH4hEYci65MLeLJoJMPu8cQkKOJtuh9Rf0wGLUBaRvMORksnx+m3WWQ+TaaU4CDTmXZL/2PMAXTt67w2khx5J2VRtIIhl8lU1kB4ecS3LlX/i1/w0bNS1bpYecS/oo0A/YTdxuIPgrT8jJZAm0eioUYVE9ZTmGTsjxJAslmzy1OOH2MBCvRsix5AKjVex24dSZmfAh5GTSWzmVYFQ2O9pHVLlCDie3LhSkJDkdVqt6RIWcS9rJX64NFgjkcYYjvVU35GBSqtlfNjX0aanitkRoyLnk7yBClexqikLtYQk5luySqVL+NAn1qlkIOZZ0H0qrGvaV2Q4B/GiXI+Rc0m2IS14b2Ziv29fiQNlDDibb0a7FbCjmyULFE/IjSFEWtEjigOF5yRPyA0hE37uAemH2MDwVcjBpu7iyGOOFhkEiaSEnk/WrjK4IH3GQUDlFhxxNfqtCnirkqUKeKuSpQp7qw8ifBnmnkzG2qU4AAAAASUVORK5CYII=",
        "token": "00020126760014br.gov.bcb.pix013689bd5e4e-2393-4bd1-b973-2010c3169ea20214Test PIX DEUNA520400005303986540522.405802BR5911Jean Roldan6014Rio de Janeiro62290525JEANROLD00000000570699ASA63048E09"
      },
      "authorization_code": "",
      "created_at": "2025-01-06T13:55:04.00829Z",
      "customer": {
        "email": "[email protected]",
        "id": "6b240064-2ff0-44df-bdb3-dce9c3219341"
      },
      "dynamic_routing_details": {
        "applied_strategy": "",
        "rules": null
      },
      "external_transaction_id": "JEANROLD00000000570699ASA",
      "from_card": {
        "bank_name": "",
        "card_brand": "",
        "card_holder": "",
        "card_id": "",
        "country_iso": "",
        "credential_source": "",
        "first_six": "",
        "installment": {
          "calculated_interest": 0,
          "installment_amount": 0,
          "installment_rate": 0,
          "installment_type": "",
          "installments": 1,
          "items_subtotal_amount": 0,
          "plan_id": "",
          "plan_option_id": ""
        },
        "last_four": ""
      },
      "id": "e0ddaacf-9309-48af-8637-d754e3b7e053",
      "installments": 1,
      "invoice_id": "55281765-65dd-4ea3-90b3-d0e6cb383de3",
      "manual_status": "automatic",
      "merchant": {
        "id": "c2273d9a-94c0-40a6-9b39-2556b4fadd1b",
        "store_code": "all"
      },
      "merchant_payment_processor_name": "asaas_pix",
      "metadata": {
        "authorization_code": "",
        "reference_transaction_id": ""
      },
      "method_type": "bank_transfer",
      "next_action": {
        "action": ""
      },
      "processor": "asaas_pix",
      "processor_error": {
        "code": null,
        "message": null
      },
      "raw_response": {
        "allowsMultiplePayments": false,
        "encodedImage": "iVBORw0KGgoAAAANSUhEUgAAAcIAAAHCAQAAAABUY/ToAAADF0lEQVR4Xu2VQZIbMQwD5zb//1GepZsToEmNs5WUUnsJXQWOrZFANC7ieq/XN+vH9VX51wp5qpCnCnmqkKcKear/Rq7Ldb/W7e1Nb7HhpbXaGELOJXHcdGVidWQDWqS3P+RgstRiaiO2MAW0WHzI8STP474EI+zQkJ9DNoIbVpum35whR5OvVmXVrqy9a387Q44mfenqHZ9yhvzrM4Dc1T/H/qjf/mc+doUcS/p+dcvt4b7r0omoHVEhZ5PeglSAEyrE22dCQo4nfeW658vN8i8SrHdPGmjIwaS2rW+hMsQpwZaKDDmZFKMuV76PuvHO2hqBISeT1VbLfSHtMOEEgnYj5FgSVA69WAiqlJIVwT7kaHIfl3qO6pUvZ9JqHkLOJevS9YZnBsrEEPjwlhNyLklpHPRxxC2/s94QhwCGHEy6/yA6qwu2Qx+TxJBjSS7aL21418mA4zwG0CFHkxKxlFsWbU2414oDjIQcS6JaWv7DdVPq06uDG0ZDjiXdZxDcepM4LtGeDwKkhpxLSkLxNDjAIfbfXD2EWyFHk2W3w/TSTPj2GY4agc4JOZvE/tIty2NnK1RH4hEYci65MLeLJoJMPu8cQkKOJtuh9Rf0wGLUBaRvMORksnx+m3WWQ+TaaU4CDTmXZL/2PMAXTt67w2khx5J2VRtIIhl8lU1kB4ecS3LlX/i1/w0bNS1bpYecS/oo0A/YTdxuIPgrT8jJZAm0eioUYVE9ZTmGTsjxJAslmzy1OOH2MBCvRsix5AKjVex24dSZmfAh5GTSWzmVYFQ2O9pHVLlCDie3LhSkJDkdVqt6RIWcS9rJX64NFgjkcYYjvVU35GBSqtlfNjX0aanitkRoyLnk7yBClexqikLtYQk5luySqVL+NAn1qlkIOZZ0H0qrGvaV2Q4B/GiXI+Rc0m2IS14b2Ziv29fiQNlDDibb0a7FbCjmyULFE/IjSFEWtEjigOF5yRPyA0hE37uAemH2MDwVcjBpu7iyGOOFhkEiaSEnk/WrjK4IH3GQUDlFhxxNfqtCnirkqUKeKuSpQp7qw8ifBnmnkzG2qU4AAAAASUVORK5CYII=",
        "expirationDate": "2025-01-31 16:05:00",
        "externalReference": "e0ddaacf-9309-48af-8637-d754e3b7e053",
        "id": "JEANROLD00000000570699ASA",
        "payload": "00020126760014br.gov.bcb.pix013689bd5e4e-2393-4bd1-b973-2010c3169ea20214Test PIX DEUNA520400005303986540522.405802BR5911Jean Roldan6014Rio de Janeiro62290525JEANROLD00000000570699ASA63048E09"
      },
      "reason": "",
      "secure_authentication": {
        "cavv": "",
        "eci": "",
        "flow_type": "",
        "xid": ""
      },
      "status": "pending",
      "transaction_id": "55281765-65dd-4ea3-90b3-d0e6cb383de3",
      "updated_at": "2025-01-06T13:55:06.75948915Z"
    }
  },
  "payment_method": "bank_transfer",
  "payment_status": "pending",
  "redirect_url": "",
  "shipping_address": {
    "additional_description": "confirmar",
    "address1": "Av. Pres. Juscelino Kubitschek",
    "address2": "3ro. Andar",
    "address_type": "casa",
    "city": "São Paulo",
    "country_code": "BRA",
    "created_at": "2025-01-06T13:55:03.751976356Z",
    "email": "[email protected]",
    "first_name": "Diego",
    "id": 204,
    "identity_document": "52672745000112",
    "is_default": false,
    "last_name": "Urbina",
    "lat": -22.943934,
    "lng": -43.182984,
    "phone": "+5511985176644",
    "state_name": "SP",
    "updated_at": "2025-01-06T13:55:03.751976402Z",
    "user_id": "",
    "zipcode": "04543-011"
  },
  "shipping_amount": 100,
  "shipping_method": {
    "code": ""
  },
  "shipping_options": {
    "details": {
      "additional_details": {
        "pickup_time": "0001-01-01T00:00:00Z",
        "stock_location": ""
      },
      "address": "",
      "address_coordinates": {
        "lat": 0,
        "lng": 0
      },
      "contact": {
        "name": "",
        "phone": ""
      },
      "store_name": ""
    },
    "type": ""
  },
  "status": "pending",
  "statuses": [
    {
      "created_at": "2025-01-06T13:55:03.722627322Z",
      "name": "pending"
    },
    {
      "created_at": "2025-01-06T13:55:07.004647312Z",
      "name": "pending"
    }
  ],
  "store_code": "all",
  "sub_total": 2175,
  "succeeded_at": null,
  "tax_amount": 0,
  "template_id": null,
  "token": "5446fa15-9b60-44f7-a237-07584c88fc8b",
  "total_amount": 2240,
  "transaction_id": "e0ddaacf-9309-48af-8637-d754e3b7e053",
  "updated_at": "2025-01-06T13:55:07.004648924Z",
  "user_id": "6b240064-2ff0-44df-bdb3-dce9c3219341",
  "user_instructions": "pesar antes de enviar",
  "user_is_guest": false,
  "webhook_urls": {
    "apply_coupon": "",
    "get_shipping_methods": "",
    "notify_order": "https://webhook.site/webhook-url",
    "remove_coupon": "",
    "shipping_rate": "",
    "sync_notify_order": "",
    "update_shipping_method": ""
  }
}

Pix Processed

{
  "api_key_id": "036074c6-ca84-4ac2-b945-f1285d03a51f",
  "billing_address": {
    "additional_description": "",
    "address1": "Av. Pres. Juscelino Kubitschek",
    "address2": "3ro. Andar",
    "address_type": "casa",
    "city": "São Paulo",
    "country_code": "BRA",
    "created_at": "2025-01-06T13:55:03.751977546Z",
    "email": "[email protected]",
    "first_name": "",
    "id": 179,
    "identity_document": "52672745000112",
    "is_default": false,
    "last_name": "",
    "lat": -23.555425,
    "lng": -46.677048,
    "phone": "+5511985176644",
    "state_name": "SP",
    "updated_at": "2025-01-06T13:55:03.751977591Z",
    "user_id": "",
    "zipcode": "04543-011"
  },
  "cash_change": 0,
  "created_at": "2025-01-06T13:55:03.722627322Z",
  "currency": "BRL",
  "custom_fields": {},
  "deleted_at": null,
  "discounts": null,
  "fraud": null,
  "gift_cards": null,
  "hooks": null,
  "items": [
    {
      "brand": "",
      "category": "",
      "color": "",
      "description": "Premium Baby Beef Estância 92 Angus Resfriado",
      "details_url": "",
      "id": "65dc09c9-7044-4e51-8d1a-f82a8ffc74bd",
      "image_url": "https://media-cdn.tripadvisor.com/media/photo-s/1a/e2/c6/68/porcion-de-papas-a-la.jpg",
      "isbn": "",
      "manufacturer": "",
      "name": "Premium Baby Beef",
      "options": "",
      "quantity": 2,
      "size": "",
      "sku": "",
      "subscription_id": "00000000-0000-0000-0000-000000000000",
      "tax_amount": {
        "amount": 50,
        "currency": "BRL",
        "currency_symbol": "R$"
      },
      "taxable": true,
      "total_amount": {
        "amount": 2050,
        "currency": "BRL",
        "currency_symbol": "R$",
        "original_amount": 2100
      },
      "type": "",
      "unit_price": {
        "amount": 1050,
        "currency": "BRL",
        "currency_symbol": "R$"
      },
      "uom": "",
      "upc": "",
      "weight": {
        "unit": "",
        "weight": 0
      }
    },
    {
      "brand": "",
      "category": "",
      "color": "",
      "description": "Coração Da Alcatra (bombom) Estância 92 Resfriado",
      "details_url": "",
      "id": "fa85ecac-1b26-4c70-bba4-58d6e3cc5aea",
      "image_url": "https://media-cdn.tripadvisor.com/media/photo-s/1a/e2/c6/68/porcion-de-papas-a-la.jpg",
      "isbn": "",
      "manufacturer": "",
      "name": "Coração Da Alcatra",
      "options": "",
      "quantity": 1,
      "size": "",
      "sku": "",
      "subscription_id": "00000000-0000-0000-0000-000000000000",
      "tax_amount": {
        "amount": 15,
        "currency": "BRL",
        "currency_symbol": "R$"
      },
      "taxable": true,
      "total_amount": {
        "amount": 90,
        "currency": "BRL",
        "currency_symbol": "R$",
        "original_amount": 75
      },
      "type": "",
      "unit_price": {
        "amount": 75,
        "currency": "BRL",
        "currency_symbol": "R$"
      },
      "uom": "",
      "upc": "",
      "weight": {
        "unit": "",
        "weight": 0
      }
    }
  ],
  "items_total_amount": 2175,
  "merchant_id": "c2273d9a-94c0-40a6-9b39-2556b4fadd1b",
  "metadata": {
    "key1": "identificador 1",
    "key2": "identificador 2"
  },
  "order_id": "e0ddaacf-9309-48af-8637-d754e3b7e053",
  "order_type": "DEUNA_CHECKOUT",
  "payer_info": null,
  "payment": {
    "data": {
      "amount": {
        "amount": 2240,
        "currency": "BRL"
      },
      "authentication_method": "NONE",
      "authorization_3ds": {
        "url_challenge": "",
        "version": ""
      },
      "authorization_bank_transfer": {
        "description": "Test PIX DEUNA",
        "expiration_date": "2025-01-31 16:05:00",
        "external_transaction_status": "PIX_CREDIT_RECEIVED",
        "qr": "iVBORw0KGgoAAAANSUhEUgAAAcIAAAHCAQAAAABUY/ToAAADF0lEQVR4Xu2VQZIbMQwD5zb//1GepZsToEmNs5WUUnsJXQWOrZFANC7ieq/XN+vH9VX51wp5qpCnCnmqkKcKear/Rq7Ldb/W7e1Nb7HhpbXaGELOJXHcdGVidWQDWqS3P+RgstRiaiO2MAW0WHzI8STP474EI+zQkJ9DNoIbVpum35whR5OvVmXVrqy9a387Q44mfenqHZ9yhvzrM4Dc1T/H/qjf/mc+doUcS/p+dcvt4b7r0omoHVEhZ5PeglSAEyrE22dCQo4nfeW658vN8i8SrHdPGmjIwaS2rW+hMsQpwZaKDDmZFKMuV76PuvHO2hqBISeT1VbLfSHtMOEEgnYj5FgSVA69WAiqlJIVwT7kaHIfl3qO6pUvZ9JqHkLOJevS9YZnBsrEEPjwlhNyLklpHPRxxC2/s94QhwCGHEy6/yA6qwu2Qx+TxJBjSS7aL21418mA4zwG0CFHkxKxlFsWbU2414oDjIQcS6JaWv7DdVPq06uDG0ZDjiXdZxDcepM4LtGeDwKkhpxLSkLxNDjAIfbfXD2EWyFHk2W3w/TSTPj2GY4agc4JOZvE/tIty2NnK1RH4hEYci65MLeLJoJMPu8cQkKOJtuh9Rf0wGLUBaRvMORksnx+m3WWQ+TaaU4CDTmXZL/2PMAXTt67w2khx5J2VRtIIhl8lU1kB4ecS3LlX/i1/w0bNS1bpYecS/oo0A/YTdxuIPgrT8jJZAm0eioUYVE9ZTmGTsjxJAslmzy1OOH2MBCvRsix5AKjVex24dSZmfAh5GTSWzmVYFQ2O9pHVLlCDie3LhSkJDkdVqt6RIWcS9rJX64NFgjkcYYjvVU35GBSqtlfNjX0aanitkRoyLnk7yBClexqikLtYQk5luySqVL+NAn1qlkIOZZ0H0qrGvaV2Q4B/GiXI+Rc0m2IS14b2Ziv29fiQNlDDibb0a7FbCjmyULFE/IjSFEWtEjigOF5yRPyA0hE37uAemH2MDwVcjBpu7iyGOOFhkEiaSEnk/WrjK4IH3GQUDlFhxxNfqtCnirkqUKeKuSpQp7qw8ifBnmnkzG2qU4AAAAASUVORK5CYII=",
        "token": "00020126760014br.gov.bcb.pix013689bd5e4e-2393-4bd1-b973-2010c3169ea20214Test PIX DEUNA520400005303986540522.405802BR5911Jean Roldan6014Rio de Janeiro62290525JEANROLD00000000570699ASA63048E09"
      },
      "authorization_code": "",
      "created_at": "2025-01-06T13:55:04.00829Z",
      "customer": {
        "email": "[email protected]",
        "id": "6b240064-2ff0-44df-bdb3-dce9c3219341"
      },
      "dynamic_routing_details": {
        "applied_strategy": "",
        "rules": null
      },
      "external_transaction_id": "70660a2a-40a0-40b9-8dd1-9096168259e5",
      "from_card": {
        "bank_name": "",
        "card_brand": "",
        "card_holder": "",
        "card_id": "",
        "country_iso": "",
        "credential_source": "",
        "first_six": "",
        "installment": {
          "calculated_interest": 0,
          "installment_amount": 0,
          "installment_rate": 0,
          "installment_type": "",
          "installments": 1,
          "items_subtotal_amount": 0,
          "plan_id": "",
          "plan_option_id": ""
        },
        "last_four": ""
      },
      "id": "e0ddaacf-9309-48af-8637-d754e3b7e053",
      "installments": 1,
      "invoice_id": "55281765-65dd-4ea3-90b3-d0e6cb383de3",
      "manual_status": "automatic",
      "merchant": {
        "id": "c2273d9a-94c0-40a6-9b39-2556b4fadd1b",
        "store_code": "all"
      },
      "merchant_payment_processor_name": "asaas_pix",
      "metadata": {
        "authorization_code": "",
        "reference_transaction_id": ""
      },
      "method_type": "bank_transfer",
      "next_action": {
        "action": ""
      },
      "processor": "asaas_pix",
      "processor_error": {
        "code": null,
        "message": null
      },
      "raw_response": {
        "dateCreated": "2025-01-06 10:56:11",
        "event": "PIX_CREDIT_RECEIVED",
        "id": "evt_9c701e168237b89e39b4b978f9c0bc6b&6118",
        "pix": {
          "addressKey": "89bd5e4e-2393-4bd1-b973-2010c3169ea2",
          "addressKeyType": "EVP",
          "canBeCanceled": false,
          "canBeRefunded": true,
          "changeValue": null,
          "chargedFeeValue": 0,
          "conciliationIdentifier": "JEANROLD00000000570699ASA",
          "dateCreated": "2025-01-06 10:56:10",
          "description": null,
          "effectiveDate": "2025-01-06 10:56:10",
          "endToEndIdentifier": "6f7c6173e5e0962a4e69bad36579ec7c",
          "externalAccount": {
            "account": "000000",
            "accountDigit": "0",
            "accountType": "PAYMENT_ACCOUNT",
            "addressKey": "89bd5e4e-2393-4bd1-b973-2010c3169ea2",
            "addressKeyType": "EVP",
            "agency": "0000",
            "cpfCnpj": "***.399.399-**",
            "ispb": 19540550,
            "ispbName": "ASAAS GESTÃO FINANCEIRA INSTITUIÇÃO DE PAGAMENTO S.A.",
            "name": "Jean Roldan"
          },
          "externalReference": "e0ddaacf-9309-48af-8637-d754e3b7e053",
          "finality": null,
          "id": "70660a2a-40a0-40b9-8dd1-9096168259e5",
          "originType": "STATIC_QRCODE",
          "originalTransaction": null,
          "payment": null,
          "qrCode": null,
          "refundDisabledReason": null,
          "refundedValue": 0,
          "refusalReason": null,
          "scheduledDate": null,
          "status": "DONE",
          "transactionReceiptUrl": "https://sandbox.asaas.com/comprovantes/h/UElYX1RSQU5TQUNUSU9OX0RPTkU6NzA2NjBhMmEtNDBhMC00MGI5LThkZDEtOTA5NjE2ODI1OWU1%0A",
          "transferId": null,
          "type": "CREDIT",
          "value": 22.4
        }
      },
      "reason": "",
      "secure_authentication": {
        "cavv": "",
        "eci": "",
        "flow_type": "",
        "xid": ""
      },
      "status": "processed",
      "transaction_id": "55281765-65dd-4ea3-90b3-d0e6cb383de3",
      "updated_at": "2025-01-06T13:56:18.106977055Z"
    }
  },
  "payment_method": "bank_transfer",
  "payment_status": "processed",
  "redirect_url": "",
  "shipping_address": {
    "additional_description": "confirmar",
    "address1": "Av. Pres. Juscelino Kubitschek",
    "address2": "3ro. Andar",
    "address_type": "casa",
    "city": "São Paulo",
    "country_code": "BRA",
    "created_at": "2025-01-06T13:55:03.751976356Z",
    "email": "[email protected]",
    "first_name": "Diego",
    "id": 204,
    "identity_document": "52672745000112",
    "is_default": false,
    "last_name": "Urbina",
    "lat": -22.943934,
    "lng": -43.182984,
    "phone": "+5511985176644",
    "state_name": "SP",
    "updated_at": "2025-01-06T13:55:03.751976402Z",
    "user_id": "",
    "zipcode": "04543-011"
  },
  "shipping_amount": 100,
  "shipping_method": {
    "code": ""
  },
  "shipping_options": {
    "details": {
      "additional_details": {
        "pickup_time": "0001-01-01T00:00:00Z",
        "stock_location": ""
      },
      "address": "",
      "address_coordinates": {
        "lat": 0,
        "lng": 0
      },
      "contact": {
        "name": "",
        "phone": ""
      },
      "store_name": ""
    },
    "type": ""
  },
  "status": "succeeded",
  "statuses": [
    {
      "created_at": "2025-01-06T13:55:03.722627322Z",
      "name": "pending"
    },
    {
      "created_at": "2025-01-06T13:55:07.004647312Z",
      "name": "pending"
    },
    {
      "created_at": "2025-01-06T13:56:12.736564756Z",
      "name": "pending"
    },
    {
      "created_at": "2025-01-06T13:56:18.380723933Z",
      "name": "succeeded"
    }
  ],
  "store_code": "all",
  "sub_total": 2175,
  "succeeded_at": "2025-01-06T13:56:18.380725499Z",
  "tax_amount": 0,
  "template_id": null,
  "token": "5446fa15-9b60-44f7-a237-07584c88fc8b",
  "total_amount": 2240,
  "transaction_id": "e0ddaacf-9309-48af-8637-d754e3b7e053",
  "updated_at": "2025-01-06T13:56:18.380725499Z",
  "user_id": "6b240064-2ff0-44df-bdb3-dce9c3219341",
  "user_instructions": "pesar antes de enviar",
  "user_is_guest": false,
  "webhook_urls": {
    "apply_coupon": "",
    "get_shipping_methods": "",
    "notify_order": "https://webhook.site/webhook-url",
    "remove_coupon": "",
    "shipping_rate": "",
    "sync_notify_order": "",
    "update_shipping_method": ""
  }
}

Pix Expired:

{
  "api_key_id": "036074c6-ca84-4ac2-b945-f1285d03a51f",
  "billing_address": {
    "additional_description": "",
    "address1": "",
    "address2": "",
    "address_type": "",
    "city": "",
    "country_code": "",
    "created_at": "0001-01-01T00:00:00Z",
    "email": "",
    "first_name": "",
    "id": 0,
    "identity_document": "",
    "is_default": false,
    "last_name": "",
    "lat": 0,
    "lng": 0,
    "phone": "",
    "state_name": "",
    "updated_at": "0001-01-01T00:00:00Z",
    "user_id": "",
    "zipcode": ""
  },
  "cash_change": 0,
  "created_at": "2025-01-09T19:34:20.609719793Z",
  "currency": "BRL",
  "custom_fields": {},
  "deleted_at": null,
  "discounts": null,
  "fraud": null,
  "gift_cards": null,
  "hooks": null,
  "items": [
    {
      "brand": "",
      "category": "",
      "color": "",
      "description": "",
      "details_url": "",
      "id": "b914a8f4-5244-4b8c-b9f9-ce1c347d159a",
      "image_url": "",
      "isbn": "",
      "manufacturer": "",
      "name": "",
      "options": "",
      "quantity": 0,
      "size": "",
      "sku": "",
      "subscription_id": "00000000-0000-0000-0000-000000000000",
      "tax_amount": {
        "amount": 0,
        "currency": "",
        "currency_symbol": ""
      },
      "taxable": false,
      "total_amount": {
        "amount": 0,
        "currency": "",
        "currency_symbol": "",
        "original_amount": 0
      },
      "type": "",
      "unit_price": {
        "amount": 0,
        "currency": "",
        "currency_symbol": ""
      },
      "uom": "",
      "upc": "",
      "weight": {
        "unit": "",
        "weight": 0
      }
    }
  ],
  "items_total_amount": 0,
  "merchant_id": "c2273d9a-94c0-40a6-9b39-2556b4fadd1b",
  "metadata": {
    "application_id": "mg",
    "company_id": "1",
    "id_transaction_dux_pay": "0d5e11ab-f21a-49a5-a933-a7008fea99a3",
    "order_id": "000827941"
  },
  "order_id": "e509bce2-52b2-4fa1-b322-1952fa1f77da",
  "order_type": "DEUNA_CHECKOUT",
  "payer_info": null,
  "payment": {
    "data": {
      "amount": {
        "amount": 46001,
        "currency": "BRL"
      },
      "authentication_method": "NONE",
      "authorization_3ds": {
        "url_challenge": "",
        "version": ""
      },
      "authorization_bank_transfer": {
        "description": "Bank transfer transaction",
        "expiration_date": "2025-01-09 16:54:20",
        "qr": "iVBORw0KGgoAAAANSUhEUgAAAcIAAAHCAQAAAABUY/ToAAADeklEQVR4Xu2UQZLbMBADddP/f5Rn8aYIDQzl3VTKW5vDTqqGtiQSQMMHUj6ub45fx2flq2PId2PId+OfyHUwznu1uDFf5zr81XLpu9ArPWRXUvGPSUvOuws8HXaGbEtKkuLNLowsTdixdnrI5mRRS3PRktOTNc6Q/wcphzTg4gRYr7rDkyGbk97rsLrJNBDUmCtyMobsSu49/9In6SH/+vlhco8ydQBoQiLGxAekxpBNSXlWebGVKgRHSiG86W4fsjVpGyczNAoySTPu858wZDPyQRaRK5lHYpJyFTEfsi0JYOvM5u+IFdCw7hqyNamFVQcPV5zo+66bYOWGbEqWZOJQpibwbg6x64bsSmbvBWNjaOGLRflUumvIruRiLkkpf8FpMhOEH3HnkF1Jo4eG/cTDKgmVg6LkkH1Jdl1ZGiom0AUQL4bdIfuSZm9F09vRN01C5PmcOKBHTsKQDclbYZ8TlSwPYa9eur0esin5GLK0Ktt6oXvu3JBNyeU3Oc+j3moe0silnDI3DdmXxPJdAdwSU/fI/p0h25KSDD4FCggRoeTy2Sj/8EkYsiFJ0H/TlFxmhWwVpnLS9n/8kN3I5Y1OmJBMWjwT4DuaryH7ktvAouti/5US79JotA/ZlQQ99XggVVnTMlqaUIbsS7LXPgV2lCpp+WtYTpJDdiUXsUIUdsxFElE25PYh25KaRZbDKj6NH7rT5ZMwZEty++gJusZPy4E8HbItuROnD4FRJXwIqjWyg0O2JQXYJ21YU313Cd3UIg3Zl1w+CDIyJUtXNVL0+gNDNiWvbO59kXTqhuHzan8oIDZkV9JgkjvABD6J4JK0GrIpmaRBqQj1fj8tmBL5nSH7kkja8Ipm8uz7FuqA5CQM2Y+0jZvdT4CrwDoneXIShmxJGpX4iTkhtAioGNflkzBkS/KFXSTkORYqPFZCQzYlN+VZ7fx9p1G9LtPDh0WPIZuSr7Y6HNONR6jUp+DY//FDtiNNyaRF7+1iSs6IXWuuHLIvyQgeFPfpK86amodsSiqkHOSlJLgrHIXyEkrKkF1JGfsuE1gJ1i7N3EVDtialLH388GmAURImdTWG/B9IIvIDpgW1Gi7N/zgJQ7Ykse+5Ud+WNt63XS50yLYkAMbDkEwOm18wxDVkV/JgSMfUTQWU8Ng9PhJyh2xLfnMM+W4M+W78CPkb85C+Gl+A2DoAAAAASUVORK5CYII=",
        "token": "00020126870014br.gov.bcb.pix013689bd5e4e-2393-4bd1-b973-2010c3169ea20225Bank transfer transaction5204000053039865406460.015802BR5911Jean Roldan6014Rio de Janeiro62290525JEANROLD00000000572698ASA6304F214"
      },
      "authorization_code": "",
      "created_at": "2025-01-09T19:34:20.834876Z",
      "customer": {
        "email": "[email protected]",
        "id": "180effe8-8e4b-4773-91bb-ee3cd974f565"
      },
      "dynamic_routing_details": {
        "applied_strategy": "",
        "rules": null
      },
      "external_transaction_id": "JEANROLD00000000572698ASA",
      "from_card": {
        "bank_name": "",
        "card_brand": "",
        "card_holder": "",
        "card_id": "",
        "country_iso": "",
        "credential_source": "",
        "first_six": "",
        "installment": {
          "calculated_interest": 0,
          "installment_amount": 0,
          "installment_rate": 0,
          "installment_type": "",
          "installments": 1,
          "items_subtotal_amount": 0,
          "plan_id": "",
          "plan_option_id": ""
        },
        "last_four": ""
      },
      "id": "e509bce2-52b2-4fa1-b322-1952fa1f77da",
      "installments": 1,
      "invoice_id": "4190c36b-7b02-4d6b-bc99-e5c4cd992605",
      "manual_status": "manually_denied",
      "merchant": {
        "id": "c2273d9a-94c0-40a6-9b39-2556b4fadd1b",
        "store_code": "all"
      },
      "merchant_payment_processor_name": "asaas_pix",
      "metadata": {
        "authorization_code": "",
        "reference_transaction_id": ""
      },
      "method_type": "bank_transfer",
      "next_action": {
        "action": ""
      },
      "processor": "asaas_pix",
      "processor_error": {
        "code": null,
        "message": null
      },
      "raw_response": {
        "data": [],
        "hasMore": false,
        "limit": 10,
        "object": "list",
        "offset": 0,
        "totalCount": 0
      },
      "reason": "",
      "secure_authentication": {
        "cavv": "",
        "eci": "",
        "flow_type": "",
        "xid": ""
      },
      "status": "denied",
      "transaction_id": "4190c36b-7b02-4d6b-bc99-e5c4cd992605",
      "updated_at": "2025-01-09T19:58:08.944387172Z"
    }
  },
  "payment_method": "bank_transfer",
  "payment_status": "denied",
  "redirect_url": "",
  "shipping_address": {
    "additional_description": "",
    "address1": "",
    "address2": "",
    "address_type": "",
    "city": "",
    "country_code": "",
    "created_at": "0001-01-01T00:00:00Z",
    "email": "",
    "first_name": "",
    "id": 0,
    "identity_document": "",
    "is_default": false,
    "last_name": "",
    "lat": 0,
    "lng": 0,
    "phone": "",
    "state_name": "",
    "updated_at": "0001-01-01T00:00:00Z",
    "user_id": "",
    "zipcode": ""
  },
  "shipping_amount": 0,
  "shipping_method": {
    "code": ""
  },
  "shipping_options": {
    "details": {
      "additional_details": {
        "pickup_time": "0001-01-01T00:00:00Z",
        "stock_location": ""
      },
      "address": "",
      "address_coordinates": {
        "lat": 0,
        "lng": 0
      },
      "contact": {
        "name": "",
        "phone": ""
      },
      "store_name": ""
    },
    "type": ""
  },
  "status": "expired",
  "statuses": [
    {
      "created_at": "2025-01-09T19:34:20.609719793Z",
      "name": "pending"
    },
    {
      "created_at": "2025-01-09T19:34:23.292301449Z",
      "name": "pending"
    },
    {
      "created_at": "2025-01-09T19:56:27.746011634Z",
      "name": "expired"
    },
    {
      "created_at": "2025-01-09T19:58:09.149931574Z",
      "name": "expired"
    }
  ],
  "store_code": "all",
  "sub_total": 41819,
  "succeeded_at": null,
  "tax_amount": 0,
  "template_id": null,
  "tenant_id": "00000000-0000-0000-0000-000000000000",
  "tenant_name": "deuna",
  "token": "032d9471-9881-4d83-abf1-e2d741328538",
  "total_amount": 46001,
  "transaction_id": "e509bce2-52b2-4fa1-b322-1952fa1f77da",
  "updated_at": "2025-01-09T19:58:09.14993308Z",
  "user_id": "180effe8-8e4b-4773-91bb-ee3cd974f565",
  "user_instructions": "",
  "user_is_guest": false,
  "webhook_urls": {
    "apply_coupon": "",
    "get_shipping_methods": "",
    "notify_order": "urlApi/webhook/notify2",
    "remove_coupon": "",
    "shipping_rate": "",
    "sync_notify_order": "",
    "update_shipping_method": ""
  }
}

Pix Denied

"order": {
                "token": "974a4405-424e-412d-b594-3c2bd923f1c5",
                "merchant_id": "835cdb9b-0c5f-4fd6-809d-45a605fd664c",
                "payment_method": "bank_transfer",
                "payment_status": "denied",
                "store_code": "all",
                "currency": "BRL",
                "tax_amount": 0,
                "shipping_amount": 0,
                "items_total_amount": 0,
                "sub_total": 69840,
                "total_amount": 76824,
                "order_id": "3bb96f5a-29fe-4529-9aad-49bc1cbf6978",
                "transaction_id": "3bb96f5a-29fe-4529-9aad-49bc1cbf6978",
                "items": [
                    {
                        "id": "ae9ff7bc-a64f-4e8c-a4fa-29be5f82ac13",
                        "name": "",
                        "description": "",
                        "options": "",
                        "total_amount": {
                            "amount": 0,
                            "original_amount": 0,
                            "currency": "",
                            "currency_symbol": ""
                        },
                        "unit_price": {
                            "amount": 0,
                            "currency": "",
                            "currency_symbol": ""
                        },
                        "tax_amount": {
                            "amount": 0,
                            "currency": "",
                            "currency_symbol": ""
                        },
                        "quantity": 0,
                        "uom": "",
                        "upc": "",
                        "sku": "",
                        "isbn": "",
                        "brand": "",
                        "manufacturer": "",
                        "category": "",
                        "color": "",
                        "size": "",
                        "weight": {
                            "weight": 0,
                            "unit": ""
                        },
                        "image_url": "",
                        "details_url": "",
                        "type": "",
                        "taxable": false
                    }
                ],
                "discounts": null,
                "shipping_address": {
                    "id": 0,
                    "user_id": "",
                    "first_name": "",
                    "last_name": "",
                    "email": "",
                    "phone": "",
                    "identity_document": "",
                    "lat": 0,
                    "lng": 0,
                    "address1": "",
                    "address2": "",
                    "city": "",
                    "zipcode": "",
                    "state_name": "",
                    "country_code": "",
                    "additional_description": "",
                    "address_type": "",
                    "is_default": false,
                    "created_at": "0001-01-01T00:00:00Z",
                    "updated_at": "0001-01-01T00:00:00Z"
                },
                "billing_address": {
                    "id": 0,
                    "user_id": "",
                    "first_name": "",
                    "last_name": "",
                    "email": "",
                    "phone": "",
                    "identity_document": "",
                    "lat": 0,
                    "lng": 0,
                    "address1": "",
                    "address2": "",
                    "city": "",
                    "zipcode": "",
                    "state_name": "",
                    "country_code": "",
                    "additional_description": "",
                    "address_type": "",
                    "is_default": false,
                    "created_at": "0001-01-01T00:00:00Z",
                    "updated_at": "0001-01-01T00:00:00Z"
                },
                "metadata": {
                    "application_id": "mg",
                    "company_id": "1",
                    "id_transaction_dux_pay": "aab31e7b-6bae-4f55-9b93-c6e73217a88c",
                    "order_id": "000827770"
                },
                "payment": {
                    "data": {
                        "id": "3bb96f5a-29fe-4529-9aad-49bc1cbf6978",
                        "invoice_id": "fcafdfa3-3f42-4972-a08c-76de21aac460",
                        "transaction_id": "fcafdfa3-3f42-4972-a08c-76de21aac460",
                        "metadata": {
                            "authorization_code": "",
                            "reference_transaction_id": ""
                        },
                        "from_card": {
                            "card_brand": "",
                            "first_six": "",
                            "last_four": "",
                            "card_id": "",
                            "card_holder": "",
                            "bank_name": "",
                            "country_iso": "",
                            "installment": {
                                "installments": 1,
                                "plan_id": "",
                                "plan_option_id": "",
                                "installment_type": "",
                                "installment_rate": 0,
                                "installment_amount": 0
                            }
                        },
                        "amount": {
                            "amount": 76824,
                            "currency": "BRL"
                        },
                        "updated_at": "2024-12-26T14:22:59.732530599Z",
                        "method_type": "bank_transfer",
                        "created_at": "2024-12-26T13:58:30.852596Z",
                        "merchant": {
                            "store_code": "all",
                            "id": "835cdb9b-0c5f-4fd6-809d-45a605fd664c"
                        },
                        "processor": "asaas_pix",
                        "customer": {
                            "email": "[email protected]",
                            "id": "4379fac6-a021-490a-a500-c4c6d27bdb92"
                        },
                        "status": "denied",
                        "reason": "",
                        "external_transaction_id": "MINERVAS00000403046153ASA",
                        "installments": 1,
                        "authentication_method": "NONE",
                        "manual_status": "manually_denied",
                        "raw_response": {
                            "data": [],
                            "hasMore": false,
                            "limit": 10,
                            "object": "list",
                            "offset": 0,
                            "totalCount": 0
                        },
                        "refunds": null
                    }
                },
                "shipping_options": {
                    "type": "",
                    "details": {
                        "store_name": "",
                        "address": "",
                        "address_coordinates": {
                            "lat": 0,
                            "lng": 0
                        },
                        "contact": {
                            "name": "",
                            "phone": ""
                        },
                        "additional_details": {
                            "pickup_time": "0001-01-01T00:00:00Z",
                            "stock_location": ""
                        }
                    }
                },
                "user_instructions": "",
                "statuses": [
                    {
                        "name": "pending",
                        "created_at": "2024-12-26T13:58:30.718976376Z"
                    },
                    {
                        "name": "pending",
                        "created_at": "2024-12-26T13:58:31.494173957Z"
                    },
                    {
                        "name": "pending",
                        "created_at": "2024-12-26T14:22:59.884776111Z"
                    }
                ],
                "shipping_method": {
                    "code": ""
                },
                "created_at": "2024-12-26T13:58:30.718976376Z",
                "expires_at": null,
                "expired_at": null,
                "updated_at": "2024-12-26T14:22:59.884778629Z",
                "deleted_at": null,
                "status": "denied",
                "hooks": null,
                "user_id": "4379fac6-a021-490a-a500-c4c6d27bdb92",
                "gift_cards": null,
                "redirect_url": "",
                "webhook_urls": {
                    "notify_order": "https://int-backend-duxcloud.minervafoods.com:2022/webhook/v1/webhook/update-order",
                    "apply_coupon": "",
                    "remove_coupon": "",
                    "get_shipping_methods": "",
                    "update_shipping_method": "",
                    "shipping_rate": ""
                },
                "cash_change": 0,
                "api_key_id": "c5629812-e1ca-475c-99af-cbc2e8805807",
                "custom_fields": {},
                "payer_info": null
            },
            "signed_at": "2024-12-26T14:23:00Z"
        }

Pix Refund Processed:

{
  "order": {
    "token": "75a5dfc5-46ef-45fc-9cce-ec0871b079e5",
    "merchant_id": "c2273d9a-94c0-40a6-9b39-2556b4fadd1b",
    "payment_method": "bank_transfer",
    "payment_status": "refunded",
    "store_code": "all",
    "currency": "BRL",
    "tax_amount": 0,
    "shipping_amount": 100,
    "items_total_amount": 2175,
    "sub_total": 2175,
    "total_amount": 2240,
    "order_id": "ca193c67-af93-4811-a091-015b56994f3e",
    "transaction_id": "ca193c67-af93-4811-a091-015b56994f3e",
    "items": [
      {
        "id": "f3505dfa-126f-40c3-bbca-f13a357ea1ba",
        "name": "Premium Baby Beef",
        "description": "Premium Baby Beef Estância 92 Angus Resfriado",
        "options": "",
        "total_amount": {
          "amount": 2050,
          "original_amount": 2100,
          "currency": "BRL",
          "currency_symbol": "R$"
        },
        "unit_price": {
          "amount": 1050,
          "currency": "BRL",
          "currency_symbol": "R$"
        },
        "tax_amount": {
          "amount": 50,
          "currency": "BRL",
          "currency_symbol": "R$"
        },
        "quantity": 2,
        "uom": "",
        "upc": "",
        "sku": "",
        "isbn": "",
        "brand": "",
        "manufacturer": "",
        "category": "",
        "color": "",
        "size": "",
        "weight": {
          "weight": 0,
          "unit": ""
        },
        "image_url": "https://media-cdn.tripadvisor.com/media/photo-s/1a/e2/c6/68/porcion-de-papas-a-la.jpg",
        "details_url": "",
        "type": "",
        "taxable": true
      },
      {
        "id": "70d7dd29-607b-43ad-8d48-c68be5bfab2b",
        "name": "Coração Da Alcatra",
        "description": "Coração Da Alcatra (bombom) Estância 92 Resfriado",
        "options": "",
        "total_amount": {
          "amount": 90,
          "original_amount": 75,
          "currency": "BRL",
          "currency_symbol": "R$"
        },
        "unit_price": {
          "amount": 75,
          "currency": "BRL",
          "currency_symbol": "R$"
        },
        "tax_amount": {
          "amount": 15,
          "currency": "BRL",
          "currency_symbol": "R$"
        },
        "quantity": 1,
        "uom": "",
        "upc": "",
        "sku": "",
        "isbn": "",
        "brand": "",
        "manufacturer": "",
        "category": "",
        "color": "",
        "size": "",
        "weight": {
          "weight": 0,
          "unit": ""
        },
        "image_url": "https://media-cdn.tripadvisor.com/media/photo-s/1a/e2/c6/68/porcion-de-papas-a-la.jpg",
        "details_url": "",
        "type": "",
        "taxable": true
      }
    ],
    "discounts": null,
    "shipping_address": {
      "id": 204,
      "user_id": "",
      "first_name": "Joao",
      "last_name": "Silva",
      "email": "",
      "phone": "+5511985176644",
      "identity_document": "52672745000112",
      "lat": -22.943934,
      "lng": -43.182984,
      "address1": "Av. Pres. Juscelino Kubitschek",
      "address2": "3ro. Andar",
      "city": "São Paulo",
      "zipcode": "04543-011",
      "state_name": "SP",
      "country_code": "BRA",
      "additional_description": "confirmar",
      "address_type": "casa",
      "is_default": false,
      "created_at": "0001-01-01T00:00:00Z",
      "updated_at": "2024-11-12T10:51:25.540301268Z"
    },
    "billing_address": {
      "id": 179,
      "user_id": "",
      "first_name": "Joao",
      "last_name": "Silva",
      "email": "[email protected]",
      "phone": "+5511985176644",
      "identity_document": "52672745000112",
      "lat": -23.555425,
      "lng": -46.677048,
      "address1": "Av. Pres. Juscelino Kubitschek",
      "address2": "3ro. Andar",
      "city": "São Paulo",
      "zipcode": "04543-011",
      "state_name": "SP",
      "country_code": "BRA",
      "additional_description": "",
      "address_type": "casa",
      "is_default": false,
      "created_at": "0001-01-01T00:00:00Z",
      "updated_at": "2024-11-12T10:51:25.540301851Z"
    },
    "metadata": {
      "key1": "identificador 1",
      "key2": "identificador 2"
    },
    "payment": {
      "data": {
        "metadata": {
          "authorization_code": "",
          "reference_transaction_id": ""
        },
        "from_card": {
          "card_brand": "",
          "first_six": "",
          "last_four": "",
          "card_id": "",
          "card_holder": "",
          "bank_name": "",
          "country_iso": "",
          "installment": {
            "installments": 1,
            "plan_id": "",
            "plan_option_id": "",
            "installment_type": "",
            "installment_rate": 0,
            "installment_amount": 0
          }
        },
        "amount": {
          "amount": 2240,
          "currency": "BRL"
        },
        "updated_at": "2024-11-12T11:06:11.016722464Z",
        "method_type": "bank_transfer",
        "created_at": "2024-11-12T10:51:25.784947Z",
        "merchant": {
          "store_code": "all",
          "id": "c2273d9a-94c0-40a6-9b39-2556b4fadd1b"
        },
        "id": "ca193c67-af93-4811-a091-015b56994f3e",
        "processor": "ASAAS_PIX",
        "customer": {
          "email": "[email protected]",
          "id": "d294f8bf-8cdc-4d4b-abd3-8c6bd9f6495f"
        },
        "status": "refunded",
        "reason": "",
        "external_transaction_id": "dff1a656-5caf-4aeb-abef-1bccdf10eb9a",
        "installments": 1,
        "authentication_method": "NONE",
        "manual_status": "automatic",
        "raw_response": {
          "dateCreated": "2024-11-12 08:06:05",
          "event": "PIX_CREDIT_REFUND_DONE",
          "id": "evt_95f1a2dd22bfec56069cba4f05799150&2565",
          "pix": {
            "addressKey": null,
            "addressKeyType": null,
            "canBeCanceled": false,
            "canBeRefunded": false,
            "changeValue": null,
            "chargedFeeValue": 0,
            "conciliationIdentifier": null,
            "dateCreated": "2024-11-12 08:06:01",
            "description": "refund",
            "effectiveDate": "2024-11-12 08:06:04",
            "endToEndIdentifier": "94ffa60a-60cc-4eca-8ff1-b7a4ef85a50b",
            "externalAccount": {
              "account": "000000",
              "accountDigit": "0",
              "accountType": "PAYMENT_ACCOUNT",
              "addressKey": "89bd5e4e-2393-4bd1-b973-2010c3169ea2",
              "addressKeyType": "EVP",
              "agency": "0000",
              "cpfCnpj": "***.399.399-**",
              "ispb": 19540550,
              "ispbName": "ASAAS GESTÃO FINANCEIRA INSTITUIÇÃO DE PAGAMENTO S.A.",
              "name": "Jean Roldan"
            },
            "externalReference": null,
            "finality": null,
            "id": "a24caa8d-3540-4f6e-8386-87b8d02e255e",
            "originType": null,
            "originalTransaction": {
              "effectiveDate": "2024-11-12 08:03:54",
              "endToEndIdentifier": "c7562022ceb941f6f0f93d464c982654",
              "id": "dff1a656-5caf-4aeb-abef-1bccdf10eb9a",
              "value": 22.4
            },
            "payment": null,
            "qrCode": null,
            "refundDisabledReason": "O tipo desta transação não permite que ela seja estornada.",
            "refundedValue": 0,
            "refusalReason": null,
            "scheduledDate": null,
            "status": "DONE",
            "transactionReceiptUrl": "https://sandbox.asaas.com/comprovantes/6854962257874935",
            "transferId": "2dea56e0-7c49-4741-a813-0b22e1881be3",
            "type": "CREDIT_REFUND",
            "value": 22.4
          }
        }
      }
    },
    "shipping_options": {
      "type": "",
      "details": {
        "store_name": "",
        "address": "",
        "address_coordinates": {
          "lat": 0,
          "lng": 0
        },
        "contact": {
          "name": "",
          "phone": ""
        },
        "additional_details": {
          "pickup_time": "0001-01-01T00:00:00Z",
          "stock_location": ""
        }
      }
    },
    "user_instructions": "pesar antes de enviar",
    "statuses": [
      {
        "name": "pending",
        "created_at": "2024-11-12T10:51:25.511021297Z"
      },
      {
        "name": "pending",
        "created_at": "2024-11-12T10:51:27.932484163Z"
      },
      {
        "name": "pending",
        "created_at": "2024-11-12T11:04:02.039776823Z"
      },
      {
        "name": "succeeded",
        "created_at": "2024-11-12T11:04:02.892069526Z"
      },
      {
        "name": "succeeded",
        "created_at": "2024-11-12T11:06:01.718404915Z"
      },
      {
        "name": "refund",
        "created_at": "2024-11-12T11:06:11.296678358Z"
      }
    ],
    "shipping_method": {
      "code": ""
    },
    "created_at": "2024-11-12T10:51:25.511021297Z",
    "expires_at": null,
    "expired_at": null,
    "updated_at": "2024-11-12T11:06:11.296679469Z",
    "deleted_at": null,
    "status": "refund",
    "hooks": null,
    "user_id": "d294f8bf-8cdc-4d4b-abd3-8c6bd9f6495f",
    "gift_cards": null,
    "redirect_url": "",
    "webhook_urls": {
      "notify_order": "",
      "apply_coupon": "",
      "remove_coupon": "",
      "get_shipping_methods": "",
      "update_shipping_method": "",
      "shipping_rate": ""
    },
    "cash_change": 0,
    "api_key_id": "036074c6-ca84-4ac2-b945-f1285d03a51f",
    "custom_fields": {},
    "payer_info": null
  },
  "signed_at": "2024-11-12T11:06:11Z"
}

Pix Partial Refunded

"order": {
                "token": "347acd91-dffa-4844-a524-fc03ea18e253",
                "merchant_id": "835cdb9b-0c5f-4fd6-809d-45a605fd664c",
                "payment_method": "bank_transfer",
                "payment_status": "partial_refunded",
                "store_code": "all",
                "currency": "BRL",
                "tax_amount": 0,
                "shipping_amount": 0,
                "items_total_amount": 0,
                "sub_total": 2222,
                "total_amount": 2444,
                "order_id": "88ffc84f-9923-4100-ad1c-470473452711",
                "transaction_id": "88ffc84f-9923-4100-ad1c-470473452711",
                "items": [
                    {
                        "id": "a14b23ea-f11f-48a2-9fb9-fa51931467bf",
                        "name": "",
                        "description": "",
                        "options": "",
                        "total_amount": {
                            "amount": 0,
                            "original_amount": 0,
                            "currency": "",
                            "currency_symbol": ""
                        },
                        "unit_price": {
                            "amount": 0,
                            "currency": "",
                            "currency_symbol": ""
                        },
                        "tax_amount": {
                            "amount": 0,
                            "currency": "",
                            "currency_symbol": ""
                        },
                        "quantity": 0,
                        "uom": "",
                        "upc": "",
                        "sku": "",
                        "isbn": "",
                        "brand": "",
                        "manufacturer": "",
                        "category": "",
                        "color": "",
                        "size": "",
                        "weight": {
                            "weight": 0,
                            "unit": ""
                        },
                        "image_url": "",
                        "details_url": "",
                        "type": "",
                        "taxable": false
                    }
                ],
                "discounts": null,
                "shipping_address": {
                    "id": 0,
                    "user_id": "",
                    "first_name": "",
                    "last_name": "",
                    "email": "",
                    "phone": "",
                    "identity_document": "",
                    "lat": 0,
                    "lng": 0,
                    "address1": "",
                    "address2": "",
                    "city": "",
                    "zipcode": "",
                    "state_name": "",
                    "country_code": "",
                    "additional_description": "",
                    "address_type": "",
                    "is_default": false,
                    "created_at": "0001-01-01T00:00:00Z",
                    "updated_at": "0001-01-01T00:00:00Z"
                },
                "billing_address": {
                    "id": 0,
                    "user_id": "",
                    "first_name": "",
                    "last_name": "",
                    "email": "",
                    "phone": "",
                    "identity_document": "",
                    "lat": 0,
                    "lng": 0,
                    "address1": "",
                    "address2": "",
                    "city": "",
                    "zipcode": "",
                    "state_name": "",
                    "country_code": "",
                    "additional_description": "",
                    "address_type": "",
                    "is_default": false,
                    "created_at": "0001-01-01T00:00:00Z",
                    "updated_at": "0001-01-01T00:00:00Z"
                },
                "metadata": {
                    "application_id": "mg",
                    "company_id": "1",
                    "id_transaction_dux_pay": "6f05d851-64c9-454e-943f-bdadfb75b873",
                    "order_id": "000855463"
                },
                "payment": {
                    "data": {
                        "metadata": {
                            "authorization_code": "",
                            "reference_transaction_id": ""
                        },
                        "from_card": {
                            "card_brand": "",
                            "first_six": "",
                            "last_four": "",
                            "card_id": "",
                            "card_holder": "",
                            "bank_name": "",
                            "country_iso": "",
                            "installment": {
                                "installments": 1,
                                "plan_id": "",
                                "plan_option_id": "",
                                "installment_type": "",
                                "installment_rate": 0,
                                "installment_amount": 0
                            }
                        },
                        "amount": {
                            "amount": 2444,
                            "currency": "BRL"
                        },
                        "updated_at": "2024-12-12T14:32:10.246438677Z",
                        "method_type": "bank_transfer",
                        "created_at": "2024-12-12T13:05:00.947086Z",
                        "merchant": {
                            "store_code": "all",
                            "id": "835cdb9b-0c5f-4fd6-809d-45a605fd664c"
                        },
                        "id": "88ffc84f-9923-4100-ad1c-470473452711",
                        "processor": "asaas_pix",
                        "customer": {
                            "email": "[email protected]",
                            "id": "2ade7c06-ec14-46fc-927a-8eefe6c355f9"
                        },
                        "status": "partial_refunded",
                        "reason": "",
                        "external_transaction_id": "acc876d7-9cfb-4f61-9b2c-b8ef8b5916c1",
                        "installments": 1,
                        "authentication_method": "NONE",
                        "manual_status": "automatic",
                        "raw_response": {
                            "dateCreated": "2024-12-12 11:32:07",
                            "event": "PIX_CREDIT_REFUND_DONE",
                            "id": "evt_95f1a2dd22bfec56069cba4f05799150&283520491",
                            "pix": {
                                "addressKey": null,
                                "addressKeyType": null,
                                "canBeCanceled": false,
                                "canBeRefunded": false,
                                "changeValue": null,
                                "chargedFeeValue": 0,
                                "conciliationIdentifier": null,
                                "dateCreated": "2024-12-12 11:32:01",
                                "description": "refund",
                                "effectiveDate": "2024-12-12 11:32:05",
                                "endToEndIdentifier": "D1954055020241212143204297788016",
                                "externalAccount": {
                                    "account": "000000",
                                    "accountDigit": "0",
                                    "accountType": "CHECKING_ACCOUNT",
                                    "addressKey": "8eb153a4-6e27-4bfe-aefe-0400b83596c6",
                                    "addressKeyType": "EVP",
                                    "agency": "0000",
                                    "cpfCnpj": "***.698.188-**",
                                    "ispb": 60746948,
                                    "ispbName": "BANCO BRADESCO S.A.",
                                    "name": "ANA MARIA BARBOSA LOPES"
                                },
                                "externalReference": null,
                                "finality": null,
                                "id": "b4dcb26e-773d-4fde-9c9f-ee51326b6c0f",
                                "originType": null,
                                "originalTransaction": {
                                    "effectiveDate": "2024-12-12 10:06:40",
                                    "endToEndIdentifier": "E60746948202412121306M3899H7Ctdg",
                                    "id": "acc876d7-9cfb-4f61-9b2c-b8ef8b5916c1",
                                    "value": 24.44
                                },
                                "payment": null,
                                "qrCode": null,
                                "refundDisabledReason": "O tipo desta transação não permite que ela seja estornada.",
                                "refundedValue": 0,
                                "refusalReason": null,
                                "scheduledDate": null,
                                "status": "DONE",
                                "transactionReceiptUrl": "https://www.asaas.com/comprovantes/1214081023802190",
                                "transferId": "9d22213c-1d7b-4cc8-9887-1e4ac7d385cd",
                                "type": "CREDIT_REFUND",
                                "value": 2.33
                            }
                        }
                    }
                },
                "shipping_options": {
                    "type": "",
                    "details": {
                        "store_name": "",
                        "address": "",
                        "address_coordinates": {
                            "lat": 0,
                            "lng": 0
                        },
                        "contact": {
                            "name": "",
                            "phone": ""
                        },
                        "additional_details": {
                            "pickup_time": "0001-01-01T00:00:00Z",
                            "stock_location": ""
                        }
                    }
                },
                "user_instructions": "",
                "statuses": [
                    {
                        "name": "pending",
                        "created_at": "2024-12-12T13:05:00.686659867Z"
                    },
                    {
                        "name": "pending",
                        "created_at": "2024-12-12T13:05:01.777297375Z"
                    },
                    {
                        "name": "pending",
                        "created_at": "2024-12-12T13:06:43.86821819Z"
                    },
                    {
                        "name": "succeeded",
                        "created_at": "2024-12-12T13:06:45.775425071Z"
                    },
                    {
                        "name": "succeeded",
                        "created_at": "2024-12-12T14:32:02.225971046Z"
                    },
                    {
                        "name": "succeeded",
                        "created_at": "2024-12-12T14:32:10.450303922Z"
                    }
                ],
                "shipping_method": {
                    "code": ""
                },
                "created_at": "2024-12-12T13:05:00.686659867Z",
                "expires_at": null,
                "expired_at": null,
                "updated_at": "2024-12-12T14:32:10.450305332Z",
                "deleted_at": null,
                "status": "succeeded",
                "hooks": null,
                "user_id": "2ade7c06-ec14-46fc-927a-8eefe6c355f9",
                "gift_cards": null,
                "redirect_url": "",
                "webhook_urls": {
                    "notify_order": "https://int-backend-duxcloud.minervafoods.com:2022/webhook/v1/webhook/update-order",
                    "apply_coupon": "",
                    "remove_coupon": "",
                    "get_shipping_methods": "",
                    "update_shipping_method": "",
                    "shipping_rate": ""
                },
                "cash_change": 0,
                "api_key_id": "c5629812-e1ca-475c-99af-cbc2e8805807",
                "custom_fields": {},
                "payer_info": null
            },
            "signed_at": "2024-12-12T14:32:10Z"
        }

Refund Refused

{
"transaction_id": null
"externaltransaction_id": null
"status": "processed"  
   "event":"PIX_CREDIT_REFUND_REFUSED",
   "data":{
      "id":"dc874d10-1526-4b28-9c8c-28528d9991b4",
      "transferId":"b59f99d4-00a9-49f7-b1ca-68d962c78024",
      "endToEndIdentifier":"8d5d45eb-a6b8-4bc2-a47d-4a579d3c2320",
      "finality":null,
      "value":100.00,
      "changeValue":null,
      "refundedValue":0,
      "dateCreated":"13/06/2023 14:00:17",
      "effectiveDate":"19/10/2023 12:12:43",
      "scheduledDate":null,
      "status":"REFUSED",
      "type":"CREDIT_REFUND",
      "originType":null,
      "conciliationIdentifier":null,
      "description":null,
      "transactionReceiptUrl":null,
      "chargedFeeValue":0,
      "canBeRefunded":false,
      "refundDisabledReason":"A situação desta transação não permite que ela seja estornada.",
      "refusalReason":"Erro desconhecido na institui\u00e7\u00e3o do recebedor.",
      "canBeCanceled":false,
      "originalTransaction":{
         "id":"b2f68752-1158-4da5-9a3f-a92a854e2846",
         "endToEndIdentifier":"5ddd7b28-e1fd-495a-afa4-eea499a51266",
         "value":100.00,
         "effectiveDate":"13/06/2023 13:59:44"
      },
      "externalAccount":{
         "ispb":19540550,
         "ispbName":"ASAAS GESTÃO FINANCEIRA INSTITUIÇÃO DE PAGAMENTO S.A.",
         "name":"Marcelo Almeida",
         "agency":"1",
         "account":"1111111",
         "accountDigit":"1",
         "accountType":"CHECKING_ACCOUNT",
         "cpfCnpj":"19.540.550/0001-21",
         "addressKey":null,
         "addressKeyType":null
      },
      "qrCode":null,
      "payment":null,
      "addressKey":null,
      "addressKeyType":null
   }
}