{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/curlec/json-schema/curlec-payout-link-schema.json",
  "title": "PayoutLink",
  "description": "Payout link sent to a contact when fund account details are unavailable.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/curlec-x-payout-links-api-openapi.yml#/components/schemas/PayoutLink",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Payout link ID (poutlk_*)"
    },
    "entity": {
      "type": "string",
      "enum": [
        "payout_link"
      ]
    },
    "contact_id": {
      "type": "string"
    },
    "contact": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "email": {
          "type": "string"
        },
        "contact": {
          "type": "string"
        },
        "type": {
          "type": "string"
        }
      }
    },
    "amount": {
      "type": "integer",
      "description": "Amount in paise"
    },
    "currency": {
      "type": "string"
    },
    "purpose": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "issued",
        "processing",
        "processed",
        "cancelled",
        "rejected"
      ]
    },
    "fund_account_id": {
      "type": "string"
    },
    "payout_id": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "receipt": {
      "type": "string"
    },
    "notes": {
      "type": "object"
    },
    "send_sms": {
      "type": "boolean"
    },
    "send_email": {
      "type": "boolean"
    },
    "short_url": {
      "type": "string"
    },
    "attempt_count": {
      "type": "integer"
    },
    "created_at": {
      "type": "integer"
    },
    "cancelled_at": {
      "type": "integer"
    },
    "expire_by": {
      "type": "integer",
      "description": "Must be at least 15 minutes in the future"
    },
    "expired_at": {
      "type": "integer"
    }
  }
}