For the complete documentation index, see llms.txt. This page is also available as Markdown.

Products

Product operations. Products exist in three types:

  • digital - Digital product. Any Telegram message with optional attachments

  • custom - Custom product. On-demand content, e.g., personalized video greetings

  • physical - Physical product. Merchandise with shipping, e.g., printed t-shirts

All amounts are in smallest currency units (cents/kopecks)

Get Products List

get

Returns a paginated list of products

Autorizaciones
Api-KeystringRequerido

API key for authentication.

Parámetros de consulta
pageinteger · mín: 1Opcional

Page number

Default: 1
sizeinteger · mín: 1 · máx: 100Opcional

Items per page

Default: 20
typestring · enumOpcional

Filter by product type

Valores posibles:
descbooleanOpcional

Sort by ID descending

Default: false
Respuestas
200

Successful response

application/json
get/products

Get Product by ID

get

Returns a single product by its ID

Autorizaciones
Api-KeystringRequerido

API key for authentication.

Parámetros de ruta
idintegerRequerido

Product ID

Respuestas
200

Successful response

application/json
idintegerRequerido

Product ID

Example: 2548
typestring · enumRequerido

Product type

Example: digitalValores posibles:
namestringRequerido

Product name

Example: VPN Access - 1 Month
descriptionstringOpcional

Product description

Example: High-speed VPN service with unlimited bandwidth and 50+ server locations worldwide
amountinteger · int64Requerido

Product price in smallest currency units (cents for USD/EUR, kopecks for RUB). For physical products this is the starting price, taken from the cheapest variant.

Example: 499
currencystring · enumRequerido

Currency code

Example: usdValores posibles:
starsAmountintegerOpcional

Price in Telegram Stars

Example: 100
starsAmountEnabledbooleanOpcional

Whether payment with Stars is enabled

Example: true
statusstring · enumRequerido

Product status

Example: approvedValores posibles:
isCustombooleanRequerido

Whether this is a custom product

Example: false
acceptCardsbooleanRequerido

Whether card payments are accepted

Example: true
acceptWalletPaybooleanRequerido

Whether wallet payments are accepted

Example: false
protectContentbooleanRequerido

Whether content protection is enabled

Example: true
createdstring · date-timeRequerido

Product creation date

Example: 2025-08-25T10:30:00Z
updatedstring · date-timeRequerido

Product last update date

Example: 2025-08-25T10:30:00Z
pendingOrdersintegerOpcional

Number of pending orders (for custom products)

Example: 3
imageUrlstring · uriOpcional

Product image URL

Example: https://cdn.example.com/image.jpg
linkstring · uriRequerido

Direct link to product in Telegram app

Example: https://t.me/tribute_bot/app?startapp=pf6
webLinkstring · uriRequerido

Web link to product

Example: https://web.tribute.tg/p/f6
get/products/{id}

Cancel Digital Product Purchase

post

Cancels a digital product purchase and refunds the payment.

Important: This endpoint only supports refunds for purchases paid with Telegram Stars. Purchases paid with other payment methods cannot be refunded via this endpoint.

Autorizaciones
Api-KeystringRequerido

API key for authentication.

Parámetros de ruta
purchaseIdintegerRequerido

Digital product purchase ID (ProductPurchase.ID)

Example: 12345
Respuestas
200

Purchase successfully cancelled and payment refunded

application/json
successbooleanRequerido

Operation success status

Example: true
purchaseIdintegerRequerido

Cancelled purchase ID

Example: 12345
messagestringRequerido

Success message

Example: purchase cancelled and payment refunded
post/products/purchases/{purchaseId}/cancel

Última actualización