refund — response

V1

{
  "request": {
    "headers": {
      "Accept": "application/json",
      "X-Merchant-Id": "string (uuid)"
    },
    "method": "GET",
    "path": "/refunds/{refundId}" <MODIFIED>
  },
  "response": {
    "agent": {
      "id": "String",
      "name": "String",
      "type": "String"
    },
    "amount": "Long" <REMOVED>,
    "id": "UUID",
    "merchantId": "UUID" <REMOVED>,
    "merchantTransactionId": "String",
    "metadata": "Map<String, String>",
    "paymentId": "UUID" <REMOVED>,
    "paymentMethodId": "UUID" <REMOVED>,
    "reason": "String",
    "status": "String"
  }
}

V2

{
  "request": {
    "headers": {
      "Accept": "application/json",
      "X-Merchant-Id": "string (uuid)"
    },
    "method": "GET",
    "path": "/v2/refunds/{refundId}" <MODIFIED>
  },
  "response": {
    "agent": {
      "id": "String",
      "name": "String",
      "type": "String"
    },
    "id": "UUID",
    "merchant": {
        "id": "UUID"
      } <ADDED>,
    "merchantTransactionId": "String",
    "metadata": "Map<String, String>",
    "payment": {
        "amount": "Long",
        "authorizedAmount": "Long",
        "capturedAmount": "Long",
        "description": "String",
        "id": "UUID",
        "merchantTransactionId": "String",
        "paymentDateUtc": "String (ISO8601)"
      } <ADDED>,
    "reason": "String",
    "refundAllocations": [
        {
          "amount": "Long",
          "error": {
            "detail": "String",
            "errorDetails": [
              {
                "code": "String",
                "message": "String"
              }
            ],
            "title": "String"
          },
          "id": "UUID",
          "paymentAllocation": {
            "id": "UUID",
            "paymentMethod": {
              "id": "UUID",
              "isDefault": "Boolean",
              "nickname": "String",
              "paymentMethodDetails": {
                "cardBrand": "String",
                "cardCategories": [
                  {
                    "categoryDescription": "String",
                    "categoryType": "String"
                  }
                ],
                "expiryMonth": "Integer",
                "expiryYear": "Integer",
                "last4": "String",
                "nameOnCard": "String",
                "status": "String",
                "type": "String",
                "zipCode": "String"
              }
            }
          },
          "status": "String"
        }
      ] <ADDED>,
    "status": "String"
  }
}