> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pagamerican.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Order refunded

> Fires when a refund is confirmed.

**Event:** `refund.transaction.confirmed.v1`

Fires when a refund is confirmed. It carries the same fields as [Purchase approved](/webhooks/purchase-approved) — including the [`amounts` breakdown](/webhooks/overview#the-amounts-breakdown) — with `status` set to `refunded` and `refundedAt` filled in, plus a `refund` object detailing the refund: type, reason, description, requested and refunded amounts, the rate applied, timestamps, and a `transactions` list with the creator/affiliate refund split.

## Payload

```json theme={null}
[
  {
    "event": "refund.transaction.confirmed.v1",
    "body": {
      "version": "v1",
      "orderId": "79204",
      "platform": "PagAmerican",
      "paymentMethod": "credit_card",
      "status": "refunded",
      "createdAt": "1970-01-01 00:00:00",
      "approvedDate": "1970-01-01 00:00:00",
      "refundedAt": "2026-05-14 00:59:52",
      "customer": {
        "name": "Jane Doe",
        "email": "jane.doe@example.com",
        "phone": "5551234567",
        "document": null,
        "country": "US",
        "ip": ""
      },
      "shipping": {
        "address1": "100 Example St",
        "address2": "Apt 803",
        "city": "Belo Horizonte",
        "state": "MS",
        "country": "US",
        "zipCode": "30130"
      },
      "products": [
        {
          "id": "1306",
          "name": "teste12 - Default Offer 2",
          "offerCode": "dVsaQ1Ce",
          "sku": "PAGPRIBRA1BOTTLE",
          "planId": null,
          "planName": null,
          "quantity": 1,
          "priceInCents": 500
        }
      ],
      "trackingParameters": {
        "src": null,
        "sck": null,
        "utm_source": null,
        "utm_campaign": null,
        "utm_medium": null,
        "utm_content": null,
        "utm_term": null
      },
      "commission": {
        "totalPriceInCents": 500,
        "gatewayFeeInCents": 88,
        "userCommissionInCents": 412,
        "currency": "USD"
      },
      "amounts": {
        "itemsGrossInCents": 500,
        "itemsCouponInCents": 0,
        "itemsNetInCents": 500,
        "shippingGrossInCents": 0,
        "shippingCouponInCents": 0,
        "shippingNetInCents": 0,
        "taxesInCents": 0,
        "totalInCents": 500,
        "currency": "USD"
      },
      "isTest": false,
      "refund": {
        "orderUcode": "ord_019e23a1-d2f3-758a-974b-93d259aae3b9",
        "userAuditId": 1,
        "source": "creator",
        "type": "totally_refunded",
        "reason": "defective_product",
        "description": "Reason provided in the refund request",
        "refundableBalance": 5,
        "rateType": "percent",
        "rateCurrency": "usd",
        "rateValue": 100,
        "amountRequested": 5,
        "amountRefunded": 5,
        "checkoutInitializedAt": "2026-05-13T23:17:48.000Z",
        "requestedAt": "2026-05-14T00:59:50.000Z",
        "transactions": [
          {
            "status": "refunded",
            "createdAt": "2026-05-14T00:59:50.000Z",
            "updatedAt": "2026-05-14T00:59:52.000Z",
            "amountRequested": 5,
            "refundableBalance": 5,
            "creatorAmountRefunded": 5,
            "affiliateAmountRefunded": 0
          }
        ]
      }
    }
  }
]
```
