{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fluxapay-xyz/json-schema/fluxapay-xyz-get-api-payment-links-refunds-response-schema.json",
  "title": "GetApiPaymentLinksRefundsResponse",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/fluxapay-xyz-openapi-generated.yml#/components/schemas/GetApiPaymentLinksRefundsResponse",
  "type": "object",
  "properties": {
    "refunds": {
      "type": "object",
      "description": "Array of refund objects"
    },
    "refundId": {
      "type": "string",
      "description": "Refund identifier"
    },
    "refundUrl": {
      "type": "string",
      "description": "URL of the refund"
    },
    "paymentId": {
      "type": "integer",
      "description": "Associated payment identifier"
    },
    "linkId": {
      "type": "string",
      "description": "Payment link identifier"
    },
    "sourceType": {
      "type": "string",
      "description": "Source type of the refund"
    },
    "amount": {
      "type": "string",
      "description": "Refund amount"
    },
    "currency": {
      "type": "string",
      "description": "Currency of the refund"
    },
    "network": {
      "type": "string",
      "description": "Network used for the refund"
    },
    "refundFrom": {
      "type": "string",
      "description": "Origin of the refund"
    },
    "refundTo": {
      "type": "string",
      "description": "Destination of the refund"
    },
    "status": {
      "type": "string",
      "description": "Current status of the refund"
    },
    "refundTxHash": {
      "type": "string",
      "description": "Transaction hash of the refund"
    },
    "refundType": {
      "type": "string",
      "description": "Type of the refund"
    },
    "reason": {
      "type": "string",
      "description": "Reason for the refund"
    },
    "originalAmount": {
      "type": "string",
      "description": "Original payment amount"
    },
    "originalTxHash": {
      "type": "string",
      "description": "Original transaction hash"
    },
    "agentName": {
      "type": "string",
      "description": "Name of the agent"
    },
    "expiresAt": {
      "type": "string",
      "description": "Expiration timestamp"
    },
    "createdAt": {
      "type": "string",
      "description": "Creation timestamp"
    }
  }
}