{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pinkwallet-com/json-schema/pinkwallet-com-payment-link-schema.json",
  "title": "PaymentLink",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pinkwallet-com-openapi.json#/components/schemas/PaymentLink",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "object": {
      "type": "string",
      "const": "payment_link"
    },
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "paid",
        "expired",
        "cancelled"
      ]
    },
    "amount": {
      "$ref": "#/$defs/Amount"
    },
    "asset": {
      "type": "string"
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "address": {
      "type": "string"
    },
    "reference": {
      "type": "string"
    },
    "tx_hash": {
      "type": "string"
    },
    "expires_at": {
      "type": "string",
      "format": "date-time"
    },
    "paid_at": {
      "type": "string",
      "format": "date-time"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "$defs": {
    "Amount": {
      "type": "string",
      "description": "A decimal amount as a string, e.g. \"250.00\"."
    }
  }
}