Set Paywall
set_paywallTurn a short link into a gated link or update its paywall so consumers pay to unlock the destination and optionally receive an access code.
Instructions
Turn a link into a Gated link (or update its paywall): consumers pay to get the destination and, optionally, an access code. Replaces the paywall's settings, so pass every field you want kept. For one code per order use codeMode 'unique' and fill the pool with add_pool_items.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The link's short code (the part after the domain). | |
| price | Yes | Price in USDT/USDC as a decimal string, e.g. "5" or "4.99". | |
| title | Yes | What the consumer sees as the title. | |
| codeMode | No | 'same': one code for every consumer. 'unique': each order takes one item from the pool. | |
| coverUrl | No | A third-party https image URL for the cover. Xbitto stores only the address. | |
| blurCover | No | Blur the cover on the landing page. | |
| codeLabel | No | What the consumer page calls the code, e.g. "License Key". | |
| accessCode | No | The code every consumer gets, in 'same' mode. Left out: none. | |
| description | No | Shown before payment. Supports **bold**, _italic_ and lists with '- ' or '1. '. Links show as plain text. | |
| verifyPayer | No | Screen the consumer's wallet before showing the payment address (each real check costs credits). | |
| payoutWalletIds | No | Wallet ids from list_wallets, at most one per network. Left out: the first usable wallet on each network. |