Messenjer API
Panel ulangan Telegram, WhatsApp yoki Instagram akkaunt bilan qila oladigan hamma narsa — REST orqali: bitta kalit, bitta javob formati, bo'limma-bo'lim.
Sotuvlar va to'lovlar
Chat-bot ichida mahsulotlar, buyurtmalar va to'lovlar: Payme, Click, Telegram Stars yoki qo'lda.
Mahsulotlar va to'lov tizimlari panelda (Sotuvlar) sozlanadi. Buyurtma Payme / Click havolasini yoki — botdan — Telegram hisob-fakturani oladi; to'langach kontaktga paid:{product} tegi qo'yiladi, payment_ok qoidalari ishlaydi, webhook'laringiz order.paid oladi.
Base URL: https://chatvendor.net/api/v1 · har javob {"success": true, "data": …}
GET
/shop/products
Products of the workspace (name, price, picture, category, stock)
channels:read
Ruxsat: channels:read
Javob 200
OK
curl https://chatvendor.net/api/v1/shop/products \
-H "Authorization: Bearer cv_live_xxxxxxxxxxxx"
GET
/shop/orders
Orders (filters: status, peer_id, product_id, limit)
channels:read
Ruxsat: channels:read
Javob 200
OK
curl https://chatvendor.net/api/v1/shop/orders \
-H "Authorization: Bearer cv_live_xxxxxxxxxxxx"
POST
/shop/orders
Create an order for a contact and get the Payme / Click pay link; send=true posts it into the chat (gateway=telegram: a bot invoice paid with Stars or a provider token)
channels:write
Ruxsat: channels:write
So'rov tanasi (application/json)
channel_idstringpeer_idintegerproduct_idintegergatewaystring: auto | payme | click | telegram | manualsendbooleantextstringpromostringJavob 200
OK
curl -X POST https://chatvendor.net/api/v1/shop/orders \
-H "Authorization: Bearer cv_live_xxxxxxxxxxxx"
-H "Content-Type: application/json" \
-d '[]'
GET
/shop/orders/{id}
One order with its pay link
channels:read
Ruxsat: channels:read
Parametrlar
idpath · integermajburiyOrder id
Javob 200
OK
curl https://chatvendor.net/api/v1/shop/orders/1 \
-H "Authorization: Bearer cv_live_xxxxxxxxxxxx"
POST
/shop/orders/{id}/paid
Mark an order paid by hand (fires payment_ok rules, tags, subscription clock)
channels:write
Ruxsat: channels:write
Parametrlar
idpath · integermajburiyOrder id
Javob 200
OK
curl -X POST https://chatvendor.net/api/v1/shop/orders/1/paid \
-H "Authorization: Bearer cv_live_xxxxxxxxxxxx"
POST
/shop/orders/{id}/cancel
Cancel a pending order or refund a paid one (revokes tags/access)
channels:write
Ruxsat: channels:write
Parametrlar
idpath · integermajburiyOrder id
Javob 200
OK
curl -X POST https://chatvendor.net/api/v1/shop/orders/1/cancel \
-H "Authorization: Bearer cv_live_xxxxxxxxxxxx"