Asosiy qismga o'tish
ChatVendor ChatVendor

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)

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)

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)

Ruxsat: channels:write

So'rov tanasi (application/json)

channel_idstring
peer_idinteger
product_idinteger
gatewaystring: auto | payme | click | telegram | manual
sendboolean
textstring
promostring

Javob 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

Ruxsat: channels:read

Parametrlar

idpath · integermajburiy

Order 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)

Ruxsat: channels:write

Parametrlar

idpath · integermajburiy

Order 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)

Ruxsat: channels:write

Parametrlar

idpath · integermajburiy

Order id

Javob 200

OK

curl -X POST https://chatvendor.net/api/v1/shop/orders/1/cancel \
  -H "Authorization: Bearer cv_live_xxxxxxxxxxxx"