Webhook: refund.processed

This endpoint is called when we've refunded a player's purchase successfully. When you receive this event you should remove the items from the player's account.

Example

{
  "id": "663e302a-6599-4464-b284-e155e0ca88fc",
  "version": 2,
  "isSandbox": false,
  "type": "refund.processed",
  "data": {
    "refund": {
      "id": "34126a8b-77ca-4983-9140-64f34bcf4534",
      "purchaseId": "39781eb2-6189-4f86-92ea-577b733f3dd8",
      "currency": "USD",
      "date": "2024-01-01T00:00:00.000Z",
      "subtotalAmount": 399,
      "taxAmount": 0,
      "taxRate": 0,
      "totalAmount": 399,
      "accountId": "player-account-id",
      "externalReferenceId": null,
      "externalMetadata": {
        "creatorCode": "ABC-XYZ" //if sent in checkout or auth API
      },
      "items": [
        {
          "sku": "offer-110-gems",
          "name": "110 Gems",
          "price": 399,
          "quantity": 1,
          "referencePrice": 399,
          "referenceCurrency": "USD",
          "quantity": 1
        }
      ]
    }
  }
}

What’s Next