Action credit represents operations, initiated by the merchant, where the previously charged amount of money is returned to the customer.

ModePossible statusesDescription
refundsuccess/pending/failallows the merchant to cancel the received payment and return the previously charged amount to the customer.
voidsuccess/pending/failallows unblocking a previously withheld amount immediately.
"payment": {
    "code": 0,
    "description": "Approved",
    "action": "credit",
    "mode": "refund",
    "status": "success",
    "amount": 11.5,
    "currency": "USD",
    "orderId": "2390508062",
    "transactionId": "402276940",
    "descriptor": "Eurobill",
    "parentTransactionId": "394143534",
    "source": {
      "method": "card",
      "number": "475144****0101",
      "paymentAccountId": "3433e2ba-01d2-4e1e-a6c7-2a5fb69cea78",
      "brand": "visa"
    },
    "timestamp": {
      "dateTime": "2022-08-25 10:37:06",
      "timezone": "+00:00",
      "unixTime": 1661423826
    }
  },
  "consumer": {
    "id": "55818844",
    "email": "[email protected]",
    "firstName": "MR D",
    "lastName": "GRAY",
    "country": "GBR",
    "zip": "MK42BU"
  },
  "metadata": {
    "api_request_id": "62ddb03aa0e9e"
  }
}