{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/freelanceclearing-com/json-schema/freelanceclearing-com-get-api-v1-me-payments-response-schema.json",
  "title": "GetApiV1MePaymentsResponse",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/freelanceclearing-com-openapi-generated.yml#/components/schemas/GetApiV1MePaymentsResponse",
  "type": "object",
  "properties": {
    "summary": {
      "type": "object",
      "properties": {
        "poster": {
          "type": "object",
          "properties": {
            "gross_paid_usd": {
              "type": "integer"
            },
            "job_count": {
              "type": "integer"
            },
            "refunded_usd": {
              "type": [
                "string",
                "null"
              ]
            }
          }
        },
        "worker": {
          "type": "object",
          "properties": {
            "net_earned_usd": {
              "type": "integer"
            },
            "job_count": {
              "type": "integer"
            },
            "paid_to_bank_usd": {
              "type": "integer"
            },
            "on_the_way_usd": {
              "type": "integer"
            },
            "needs_attention_usd": {
              "type": [
                "string",
                "null"
              ]
            },
            "payout_count": {
              "type": "integer"
            }
          }
        }
      }
    },
    "money_in": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "job_id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "posted_by": {
            "type": "string"
          },
          "gross_usd": {
            "type": "integer"
          },
          "platform_fee_usd": {
            "type": "integer"
          },
          "net_usd": {
            "type": "integer"
          },
          "transfer_id": {
            "type": "string"
          },
          "sent_at": {
            "type": "string",
            "format": "date-time"
          },
          "sent_at_is_approximate": {
            "type": "boolean"
          },
          "stripe": {
            "type": "object",
            "properties": {
              "balance_transaction_id": {
                "type": "string"
              },
              "net_usd": {
                "type": "integer"
              },
              "available_on": {
                "type": "string",
                "format": "date-time"
              },
              "balance_status": {
                "type": "string"
              },
              "payout_id": {
                "type": "string"
              }
            }
          },
          "status": {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string"
              },
              "at": {
                "type": "string",
                "format": "date-time"
              },
              "failure_message": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          }
        }
      }
    },
    "money_out": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "job_id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "posting_fee_usd": {
            "type": "integer"
          },
          "charged_usd": {
            "type": "integer"
          },
          "refunded_usd": {
            "type": [
              "string",
              "null"
            ]
          },
          "total_usd": {
            "type": "integer"
          },
          "charged_at": {
            "type": "string",
            "format": "date-time"
          },
          "charged_at_kind": {
            "type": "string"
          },
          "payment_intent_id": {
            "type": "string"
          },
          "refund_id": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      }
    },
    "payouts": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "payout_id": {
            "type": "string"
          },
          "amount_usd": {
            "type": "integer"
          },
          "status": {
            "type": "string"
          },
          "arrival_date": {
            "type": "string",
            "format": "date-time"
          },
          "failure_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "failure_message": {
            "type": [
              "string",
              "null"
            ]
          },
          "reversed_by_payout_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "jobs": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "job_id": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "net_usd": {
                  "type": "integer"
                }
              }
            }
          },
          "itemisable": {
            "type": "boolean"
          }
        }
      }
    },
    "payout_schedule": {
      "type": "object",
      "properties": {
        "interval": {
          "type": "string"
        },
        "delay_days": {
          "type": "integer"
        }
      }
    },
    "stripe_synced_at": {
      "type": "string",
      "format": "date-time"
    },
    "has_failed_payout": {
      "type": "boolean"
    },
    "unavailable": {
      "type": "object",
      "properties": {
        "stripe_facts": {
          "type": "boolean"
        },
        "payouts": {
          "type": "boolean"
        },
        "payout_schedule": {
          "type": "boolean"
        }
      }
    }
  }
}