{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/affise/main/json-schema/affise-payment-schema.json",
  "title": "payment",
  "x-generated": "2026-10-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/affise-admin-payments-api-openapi.yml#/components/schemas/payment",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer"
    },
    "pid": {
      "type": "integer"
    },
    "manager_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "posted_date": {
      "type": "string",
      "format": "date-time"
    },
    "pay_sys": {
      "type": "integer"
    },
    "pay_sys_name": {
      "type": "string"
    },
    "pay_acc": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "revenue": {
      "type": "string"
    },
    "ref_revenue": {
      "type": [
        "string",
        "null"
      ]
    },
    "currency": {
      "type": "string"
    },
    "currency_code": {
      "type": "string"
    },
    "comment": {
      "type": "string"
    },
    "notes": {
      "type": "string"
    },
    "cpa_actions": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "ref_ids": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "details": {
      "type": "object",
      "properties": {
        "details": {
          "type": "object",
          "additionalProperties": true
        },
        "count": {
          "type": "integer"
        }
      }
    },
    "additional_payments": {
      "type": "array",
      "items": {}
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}