{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/metricool/json-schema/metricool-json-ok-list-response-affiliation-payment-dto-schema.json",
  "title": "JsonOkListResponseAffiliationPaymentDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/metricool-affiliations-api-openapi.yml#/components/schemas/JsonOkListResponseAffiliationPaymentDto",
  "type": "object",
  "properties": {
    "metadata": {
      "type": "object"
    },
    "page": {
      "$ref": "#/$defs/JsonPaging"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AffiliationPaymentDto"
      }
    }
  },
  "$defs": {
    "AffiliationPaymentDto": {
      "required": [
        "amount",
        "date"
      ],
      "type": "object",
      "properties": {
        "date": {
          "type": "string",
          "description": "Payment date and time",
          "format": "date-time"
        },
        "amount": {
          "type": "number",
          "description": "Payment amount",
          "format": "double"
        },
        "status": {
          "type": "string",
          "description": "Payment status. \"refunded\" when the payment was reversed due to a failed charge; absent otherwise"
        }
      },
      "description": "Affiliation payment information"
    },
    "JsonPaging": {
      "type": "object",
      "properties": {
        "next": {
          "type": "string"
        }
      }
    }
  }
}