app2email API 收費

Order-and-Pay

A product catalog with its own order page: customers order from WhatsApp or the web for pickup or delivery, pay online or at the counter, and collect with a QR code. Orders are managed in the dashboard and the counter app; these events tell your system what happens to an order.

方法 路徑 摘要 權限 沙盒
GET /v1/{number}/shop The shop: on or off, open now, the order page, counts and limits orders:manage 讀取
GET /v1/{number}/shop/settings Every setting of the shop, as the shop uses it orders:manage 讀取
PUT /v1/{number}/shop/settings Change settings of the shop orders:manage 拒絕
GET /v1/{number}/shop/categories The categories of the catalog orders:manage 讀取
GET /v1/{number}/shop/items Search and filter the products orders:manage 讀取
POST /v1/{number}/shop/items Add a product orders:manage 拒絕
GET /v1/{number}/shop/items/{id} One product with variants, option groups and pictures orders:manage 讀取
PUT /v1/{number}/shop/items/{id} Change a product: only the keys sent change orders:manage 拒絕
DELETE /v1/{number}/shop/items/{id} Archive a product orders:manage 拒絕
POST /v1/{number}/shop/items/{id}/stock Set or change the stock of a product orders:manage 拒絕
POST /v1/{number}/shop/items/{id}/sold_out Mark a product sold out for a while, or back orders:manage 拒絕
GET /v1/{number}/shop/orders The orders, newest first orders:manage 讀取
POST /v1/{number}/shop/orders Place an order for a customer orders:manage 拒絕
GET /v1/{number}/shop/orders/{id} One order with lines, payment, next steps and history orders:manage 讀取
POST /v1/{number}/shop/orders/{id}/action Move an order on, change its time, cancel or decline it orders:manage 拒絕
POST /v1/{number}/shop/orders/{id}/refund Refund an order that was paid online orders:manage 拒絕
POST /v1/{number}/shop/quote Price a cart: total, problems, times and ways to pay orders:manage 讀取
GET /v1/{number}/shop/report The shop's figures for a range of days orders:manage 讀取
POST /v1/{number}/shop/link A customer's personal link to the order page orders:manage 讀取
給 AI 代理的資訊

現在就可以試,不需要帳戶,也不需要真人:POST https://api.app2email.com/v1/account/sandbox(不需要金鑰,也不需要內容;或使用 Management MCP 伺服器的 create_sandbox 工具)會給你一個金鑰,對應一個附有模擬客戶的示範 WhatsApp 號碼。發送範本、以 GET /events?wait=25 取得事件、回覆客戶的訊息:內容不會送到 WhatsApp,而請求和回應都與真正的 API 相同(https://www.app2email.com/docs/api/sandbox)。

已經是客戶:請向帳戶擁有人索取號碼(數字)和 https://www.app2email.com/dashboard/apikey 的 API 金鑰(沙盒金鑰不會發送任何訊息);以 Authorization: Bearer <金鑰> 的方式傳送給訊息 MCP 伺服器或 REST API;先呼叫 check_key,發送時先加 dry_run 試行。

如果你是正在閱讀此頁的 AI 代理,並且想為某人開設 app2email 帳戶(不需要事先由人手註冊),請使用我們的 Management MCP 伺服器。
先呼叫 create_account 工具,並加入 contact_email 參數;create_account 會回傳 signup_id、management_key、onboarding_link 和 message。
該人士開啟 onboarding_link,確認電郵、連接其 WhatsApp 號碼並選擇計劃;在此之前不能發送任何訊息。get_account_status 會列出仍需完成的步驟。
之後每次呼叫都以 management_key 作為 Bearer 權杖傳送。號碼啟用後,create_number_key 會給你一個用於訊息 MCP 伺服器和 REST API 的金鑰。