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

# Order Refunded

An event triggered when an order is refunded, either manually or automatically.

**Event Data**

<ResponseField name="timestamp" type="number">
  The time when the event occurred. Example: `1632345000`
</ResponseField>

<ResponseField name="appChargePaymentId" type="string">
  The Appcharge payment ID for the event. Example: `pay_12345`
</ResponseField>

<ResponseField name="appChargeOrderId" type="string">
  The Appcharge order ID for the event. Example: `order_12345`
</ResponseField>

<ResponseField name="playerId" type="string">
  The unique identifier of the player involved in the order. Example: `player_12345`
</ResponseField>

<ResponseField name="sessionMetadata" type="object">
  Relevant only to Personalization API users, the player session metadata object received from the Personalization API. Example: `{ "metadata": "data" }`
</ResponseField>

<ResponseField name="paymentMethod" type="string">
  The payment method used for the transaction. Example: `credit_card`
</ResponseField>

<ResponseField name="reason" type="string">
  Error reason in case of a failure. Example: `insufficient_funds`
</ResponseField>

<ResponseField name="offer" type="object">
  Details about the offer associated with the order.

  <Expandable title="properties">
    <ResponseField name="offerName" type="string">
      The name of the offer. Example: `Special Bundle`
    </ResponseField>

    <ResponseField name="offerInternalId" type="string">
      The Appcharge offer ID. Example: `offer_12345`
    </ResponseField>

    <ResponseField name="offerExternalId" type="string">
      The publisher's offer ID. Example: `ext_offer_12345`
    </ResponseField>

    <ResponseField name="originalPriceInDollar" type="number">
      The base price of the offer in USD. Example: `10.00`
    </ResponseField>

    <ResponseField name="country" type="string">
      The ISO 3166-1 alpha-2 country code of the player. Example: `US`
    </ResponseField>

    <ResponseField name="currency" type="string">
      The ISO 4217 currency code used for the payment. Example: `USD`
    </ResponseField>

    <ResponseField name="priceInDollar" type="number">
      The paid price without taxes, converted to USD in real-time. Example: `8.00`
    </ResponseField>

    <ResponseField name="priceInCents" type="number">
      The paid price in local currency (in cents). Example: `800`
    </ResponseField>

    <ResponseField name="subtotal" type="number">
      The price paid by the player in local currency, excluding taxes. Example: `750`
    </ResponseField>

    <ResponseField name="tax" type="number">
      The tax amount paid by the player (in cents of local currency). Example: `50`
    </ResponseField>

    <ResponseField name="promoCodeName" type="string">
      The name of the promo code being applied. Example: `PROMO10`
    </ResponseField>

    <ResponseField name="discount" type="float">
      The discount amount in the currency the order was placed in. Example: `1.00`
    </ResponseField>

    <ResponseField name="discountRatePoints" type="string">
      The rate of the discount as a percentage. Example: `10%`
    </ResponseField>

    <ResponseField name="products" type="array of objects">
      A list of products included in the offer.

      <Expandable title="properties">
        <ResponseField name="name" type="string">
          The name of the product. Example: `Deluxe Skin`
        </ResponseField>

        <ResponseField name="sku" type="string">
          The publisher's product ID. Example: `prod_12345`
        </ResponseField>

        <ResponseField name="amount" type="number">
          The quantity of the purchased product. Example: `1`
        </ResponseField>
      </Expandable>
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseExample>
  ```json Event Payload theme={"system"}
  { 
    "timestamp": 1632345000, 
    "appChargePaymentId": "pay_12345", 
    "appChargeOrderId": "order_12345", 
    "playerId": "player_12345", 
    "sessionMetadata": {
      "device": "mobile", 
      "region": "US"
    }, 
    "paymentMethod": "credit_card", 
    "reason": "insufficient_funds", 
    "offer": { 
      "offerName": "Special Bundle", 
      "offerInternalId": "offer_12345", 
      "offerExternalId": "ext_offer_12345", 
      "originalPriceInDollar": 10.00, 
      "country": "US", 
      "currency": "USD", 
      "priceInDollar": 8.00, 
      "priceInCents": 800, 
      "subtotal": 750, 
      "tax": 50, 
      "promoCodeName": "PROMO10", 
      "discount": 1.00, 
      "discountRatePoints": "10%", 
      "products": [
        { 
          "name": "Deluxe Skin", 
          "sku": "prod_12345", 
          "amount": 1 
        }
      ] 
    } 
  }
  ```
</ResponseExample>
