{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/orboni-com/json-schema/orboni-com-update-payment-link-request-schema.json",
  "title": "UpdatePaymentLinkRequest",
  "description": "Only the fields sent change.",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/orboni-com-openapi.yml#/components/schemas/UpdatePaymentLinkRequest",
  "type": "object",
  "properties": {
    "description": {
      "type": "string",
      "minLength": 1,
      "maxLength": 250,
      "description": "What is paid for: the buyer sees it on the link’s page and the payment page."
    },
    "amount": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 1,
      "maximum": 1000000000000000,
      "description": "In the currency’s smallest unit, worth $1 to $100,000 at the day’s rate. Required unless `custom_amount`; with it, the amount suggested to the buyer."
    },
    "currency": {
      "type": "string",
      "enum": [
        "usd",
        "eur",
        "gbp",
        "chf",
        "pln",
        "czk",
        "huf",
        "ron",
        "dkk",
        "sek",
        "nok",
        "isk",
        "try",
        "jpy",
        "krw",
        "cny",
        "hkd",
        "sgd",
        "inr",
        "idr",
        "myr",
        "php",
        "thb",
        "ils",
        "aud",
        "nzd",
        "cad",
        "mxn",
        "brl",
        "zar",
        "uah",
        "ars",
        "clp",
        "aed",
        "sar",
        "twd",
        "vnd",
        "USD",
        "EUR",
        "GBP",
        "CHF",
        "PLN",
        "CZK",
        "HUF",
        "RON",
        "DKK",
        "SEK",
        "NOK",
        "ISK",
        "TRY",
        "JPY",
        "KRW",
        "CNY",
        "HKD",
        "SGD",
        "INR",
        "IDR",
        "MYR",
        "PHP",
        "THB",
        "ILS",
        "AUD",
        "NZD",
        "CAD",
        "MXN",
        "BRL",
        "ZAR",
        "UAH",
        "ARS",
        "CLP",
        "AED",
        "SAR",
        "TWD",
        "VND"
      ],
      "default": "usd",
      "description": "The link’s currency, as on a session; its amounts are in it."
    },
    "custom_amount": {
      "type": "boolean",
      "default": false,
      "description": "The buyer types the amount."
    },
    "min_amount": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 1,
      "maximum": 1000000000000000,
      "description": "With `custom_amount`: the least the buyer may pay, in the link’s currency. Default: worth $1."
    },
    "max_amount": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 1,
      "maximum": 1000000000000000,
      "description": "With `custom_amount`: the most the buyer may pay. Default: worth $100,000."
    },
    "max_payments": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 1,
      "maximum": 1000000,
      "description": "It takes no new payment once this many are paid."
    },
    "expires_at": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0,
      "maximum": 4102444800,
      "description": "Unix seconds: it takes no new payment from then on. In the future, up to a year ahead."
    },
    "details": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 500,
      "description": "What the buyer gets, in your words."
    },
    "success_url": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "maxLength": 2048,
      "description": "Where the buyer goes once paid."
    },
    "active": {
      "type": "boolean",
      "description": "`false` switches the link off, `true` on again."
    }
  }
}