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

# claim.denied

<RequestExample>
  ```json Example Webhook Request theme={null}
  {
    "id": "aa58a883-1e6f-4ec1-aa06-556908167f46",
    "topic": "claim.denied",
    "created_at": "2024-03-20T10:00:00Z",
    "body": {
      "claim_id": "cm6v2zdt10002j20vqs7f74hc",
      "order_id": "order-1",
      "source_order_id": "100",
      "resolutions": [
        {
          "type": "NOT_COVERED",
          "details": {
            "items": [
              {
                "product_id": "prod001",
                "variant_id": "var001",
                "sku": "sku001",
                "item_id": "item001",
                "item_name": "Wireless Mouse",
                "price": 30.0,
                "discount": 5.0,
                "tax": 2.0,
                "resolution_percentage": 80,
                "resolution_flat_amount": null,
                "quantity": 1
              }
            ],
            "shipping_amount": 0.0,
            "shipping_amount_tax": 0.0,
            "total_refund_amount": 0.0,
            "currency": "USD"
          }
        }
      ]
    }
  }
  ```
</RequestExample>

This webhook is triggered when a claim is denied.

## Request Body

The webhook will send a JSON payload with the following structure:

### Properties

<ParamField body="id" type="string">
  Unique identifier for the webhook event
</ParamField>

<ParamField body="topic" type="string">
  The webhook topic
</ParamField>

<ParamField body="created_at" type="string">
  ISO 8601 timestamp of when the webhook was created
</ParamField>

<ParamField body="body" type="object">
  The webhook payload

  <Expandable title="Webhook Payload">
    <ParamField body="claim_id" type="string">
      Unique identifier for the claim
    </ParamField>

    <ParamField body="order_id" type="string">
      Unique identifier for the order within Order Protection
    </ParamField>

    <ParamField body="source_order_id" type="string">
      Unique identifier for the order within your system
    </ParamField>

    <ParamField body="resolutions" type="array">
      List of resolution actions taken

      <Expandable title="Resolution Object">
        <ParamField body="type" type="enum">
          Type of resolution.

          Available options: `ADDRESS_TYPO`, `CUSTOMER_RESPONDED`, `EXPIRED30`, `FOLLOW_UP`, `INSUFFICIENT_SHIPPER`, `NOT_COVERED`, `NO_RESPONSE`, `OTHER`, `PACKAGE_ARRIVED`, `PHOTO_VERIFIED`, `THRESHOLD_REACHED`, `ALREADY_REFUNDED`,  `ALREADY_REPLACED`,  `POTENTIAL_FRAUD`
        </ParamField>

        <ParamField body="details" type="object">
          Details of the resolution

          <Expandable title="Details Object">
            <ParamField body="items" type="array">
              List of items involved in the resolution

              <Expandable title="Item Object">
                <ParamField body="product_id" type="string">
                  Unique identifier for the product
                </ParamField>

                <ParamField body="variant_id" type="string">
                  Identifier for the product variant
                </ParamField>

                <ParamField body="sku" type="string">
                  Stock keeping unit
                </ParamField>

                <ParamField body="item_id" type="string">
                  Unique identifier for the item
                </ParamField>

                <ParamField body="item_name" type="string">
                  Name of the item
                </ParamField>

                <ParamField body="price" type="number">
                  Original price of the item prior to discounts and taxes
                </ParamField>

                <ParamField body="discount" type="number">
                  Discount amount applied
                </ParamField>

                <ParamField body="tax" type="number">
                  Tax amount
                </ParamField>

                <ParamField body="resolution_percentage" type="number">
                  Percentage of refund/credit (if applicable)
                </ParamField>

                <ParamField body="resolution_flat_amount" type="number">
                  Fixed amount for refund/credit. If `FLAT_RATE` isn't the resolution type, this will be `null`
                </ParamField>

                <ParamField body="quantity" type="integer">
                  Number of items
                </ParamField>
              </Expandable>
            </ParamField>

            <ParamField body="shipping_amount" type="number">
              Amount related to shipping
            </ParamField>

            <ParamField body="shipping_amount_tax" type="number">
              Tax amount related to shipping
            </ParamField>

            <ParamField body="total_refund_amount" type="number">
              Total amount of the refund
            </ParamField>

            <ParamField body="currency" type="string">
              Currency code
            </ParamField>
          </Expandable>
        </ParamField>
      </Expandable>
    </ParamField>
  </Expandable>
</ParamField>
