Refunds

Events

Action Event name
cancelling or changing an item (ticket, parcel, etc) refund.created

Payload example

{
  "id": "string",
  "attemptId": "string",
  "livemode": "boolean",
  "created": "int",
  "event": "string",
  "data": {
    "productType": "string",
    "penalty": "int",
    "ticketId": "string",
    "itemType": "string",
    "accountId": "string",
    "taxes": [
      {
        "value": "int",
        "name": "string",
        "calculated": "int",
        "displayCalculated": "int"
      }
    ],
    "shiftNumber": "string",
    "overridedCancelFees": [],
    "email": "string",
    "agentId": "string",
    "firstName": "string",
    "productId": "string",
    "penaltyReason": "string",
    "refundId": "string",
    "amountToRefund": "int",
    "displayAmountToRefund": "int",
    "refunded": "int",
    "displayRefunded": "int",
    "status": "string",
    "createdBy": "string",
    "extra": {},
    "customerNumber": "string",
    "_id": "string",
    "rounding": {
      "policy": "string",
      "decimals": "string"
    },
    "userComments": "string",
    "transactionId": "string",
    "associatedTransactionId": "string",
    "agencyId": "string",
    "type": "string",
    "createdByUserEmail": "string",
    "itemToCancelPreTax": "int",
    "displayItemToCancelPreTax": "int",
    "associatedTrxId": "string",
    "shiftLocation": {
      "stationId": "string",
      "name": "string"
    },
    "fees": [],
    "trxId": "string",
    "ticketNumber": "string",
    "userId": "string",
    "amount": "int",
    "displayAmount": "int",
    "lastName": "string",
    "agencyName": "string",
    "payment": [
      {
        "type": "cash",
        "result": {},
        "provider": "string",
        "percentage": "int",
        "lastName": "string",
        "firstName": "string",
        "externalName": "string",
        "externalId": "string",
        "cardType": "string",
        "authCode": "string",
        "amount": "float",
        "acceptedCurrencyAmount": "float",
        "acceptedCurrency": {
          "buy": "float",
          "sell": "float",
          "isocode": "string",
          "symbol": "string",
        }
      }
    ],
    "deleted": "boolean",
    "createdAt": {
      "value": "string",
      "offset": "int"
    },
    "updatedAt": {
      "value": "string",
      "offset": "int"
    },
    "displayCurrency": {
      "buy": "float",
      "sell": "float",
      "isocode": "string",
      "symbol": "string"
    }
  }
}