{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/laso-finance/json-schema/laso-finance-payment-status-schema.json",
  "title": "PaymentStatus",
  "description": "One Venmo or PayPal payout sent from this account.",
  "x-generated": "2026-11-15",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/laso-finance-openapi.json#/components/schemas/PaymentStatus",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Pass as `payment_id` to fetch this payout on its own."
    },
    "amount_pre_fees": {
      "type": "number",
      "description": "Dollars the recipient receives."
    },
    "amount_with_fees": {
      "type": "number",
      "description": "Dollars debited from the account balance, fee included."
    },
    "fees_paid": {
      "type": "number"
    },
    "platform": {
      "type": "string",
      "enum": [
        "venmo",
        "paypal"
      ]
    },
    "state": {
      "type": "string",
      "enum": [
        "queued",
        "awaiting-funding",
        "in-process",
        "complete",
        "failed",
        "cancelled"
      ],
      "description": "`queued`, `awaiting-funding` and `in-process` are still in flight. `awaiting-funding` means the payout was debited and accepted but is delayed on our side before it reaches Venmo or PayPal, usually until the next business day. Absent on payouts sent before state tracking existed."
    },
    "state_updated_at": {
      "type": "integer",
      "description": "Milliseconds since the epoch when `state` last changed."
    },
    "recipient_id": {
      "type": "string",
      "description": "The saved recipient this went to, as returned by `GET /payment-recipients`."
    },
    "recipient_first_name": {
      "type": "string"
    },
    "recipient_last_name": {
      "type": "string"
    },
    "timestamp": {
      "type": "integer",
      "description": "Milliseconds since the epoch when the payout was sent."
    },
    "timestamp_readable": {
      "type": "string"
    }
  }
}