refund — request

V1

{
  "body": {
    "agent": {
      "firstName": "string",
      "isAccessVerified": "boolean",
      "lastName": "string",
      "userId": "string"
    },
    "amount": "integer" <REMOVED>,
    "customer": {
      "dateOfBirth": "string (date)",
      "email": "string",
      "enterpriseId": "string",
      "firstName": "string",
      "hsid": "string (uuid)",
      "lastName": "string",
      "metadata": {
        "property1": "string",
        "property2": "string"
      },
      "name": "string" <REMOVED>,
      "phoneNumber": {
        "countryCode": "string",
        "number": "string"
      },
      "ssnLastFour": "string",
      "zip5": "string"
    },
    "merchantTransactionId": "string",
    "metadata": {
      "property1": "string",
      "property2": "string"
    },
    "paymentId": "string (uuid)",
    "paymentMethodId": "string (uuid)",
    "reason": "string"
  },
  "headers": {
    "Accept": "application/json",
    "Content-Type": "application/json",
    "X-Checkout-Id": "string (uuid)",
    "X-Merchant-Id": "string (uuid)",
    "x-source": "string"
  },
  "method": "POST",
  "path": "/refunds" <MODIFIED>
}

V2

{
  "body": {
    "agent": {
      "firstName": "string",
      "isAccessVerified": "boolean",
      "lastName": "string",
      "userId": "string"
    },
    "customer": {
      "dateOfBirth": "string (date)",
      "email": "string",
      "enterpriseId": "string",
      "firstName": "string",
      "hsid": "string (uuid)",
      "lastName": "string",
      "metadata": {
        "property1": "string",
        "property2": "string"
      },
      "phoneNumber": {
        "countryCode": "string",
        "number": "string"
      },
      "ssnLastFour": "string",
      "zip5": "string"
    },
    "merchantTransactionId": "string",
    "metadata": {
      "property1": "string",
      "property2": "string"
    },
    "paymentId": "string (uuid)",
    "paymentMethodId": "string (uuid)",
    "reason": "string",
    "refundAllocations": [
        {
          "amount": "integer",
          "paymentAllocationId": "string (uuid)"
        }
      ] <ADDED>
  },
  "headers": {
    "Accept": "application/json",
    "Content-Type": "application/json",
    "X-Checkout-Id": "string (uuid)",
    "X-Merchant-Id": "string (uuid)",
    "x-source": "string"
  },
  "method": "POST",
  "path": "/v2/refunds" <MODIFIED>
}