app2email API Preços

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.

Método Caminho Resumo Escopo Sandbox
GET /v1/{number}/shop The shop: on or off, open now, the order page, counts and limits orders:manage leitura
GET /v1/{number}/shop/settings Every setting of the shop, as the shop uses it orders:manage leitura
PUT /v1/{number}/shop/settings Change settings of the shop orders:manage recusado
GET /v1/{number}/shop/categories The categories of the catalog orders:manage leitura
GET /v1/{number}/shop/items Search and filter the products orders:manage leitura
POST /v1/{number}/shop/items Add a product orders:manage recusado
GET /v1/{number}/shop/items/{id} One product with variants, option groups and pictures orders:manage leitura
PUT /v1/{number}/shop/items/{id} Change a product: only the keys sent change orders:manage recusado
DELETE /v1/{number}/shop/items/{id} Archive a product orders:manage recusado
POST /v1/{number}/shop/items/{id}/stock Set or change the stock of a product orders:manage recusado
POST /v1/{number}/shop/items/{id}/sold_out Mark a product sold out for a while, or back orders:manage recusado
GET /v1/{number}/shop/orders The orders, newest first orders:manage leitura
POST /v1/{number}/shop/orders Place an order for a customer orders:manage recusado
GET /v1/{number}/shop/orders/{id} One order with lines, payment, next steps and history orders:manage leitura
POST /v1/{number}/shop/orders/{id}/action Move an order on, change its time, cancel or decline it orders:manage recusado
POST /v1/{number}/shop/orders/{id}/refund Refund an order that was paid online orders:manage recusado
POST /v1/{number}/shop/quote Price a cart: total, problems, times and ways to pay orders:manage leitura
GET /v1/{number}/shop/report The shop's figures for a range of days orders:manage leitura
POST /v1/{number}/shop/link A customer's personal link to the order page orders:manage leitura
Para agentes de IA

Teste agora, sem conta e sem pessoa: POST https://api.app2email.com/v1/account/sandbox (sem chave, sem corpo; ou a ferramenta create_sandbox do servidor MCP de gestão) devolve uma chave para um número de demonstração do WhatsApp com clientes fictícios. Envie um template, busque os eventos com GET /events?wait=25 e responda à resposta do cliente: nada chega ao WhatsApp, e as requisições e respostas são as da API real (https://www.app2email.com/docs/api/sandbox).

Já é cliente: peça ao dono da conta o número (só dígitos) e uma chave de API em https://www.app2email.com/dashboard/apikey (uma chave de sandbox não envia nada); envie-a como Authorization: Bearer <chave> ao servidor MCP de mensagens ou à API REST; chame check_key primeiro e envie com dry_run antes.

Se você é um agente de IA lendo esta página e quer criar uma conta do app2email para uma pessoa, sem cadastro prévio feito por um humano, use o nosso servidor MCP de gestão.
Chame primeiro a ferramenta create_account e inclua o parâmetro contact_email; create_account devolve um signup_id, uma management_key, um onboarding_link e uma message.
A pessoa abre o onboarding_link para confirmar o e-mail, conectar o número do WhatsApp e escolher um plano; nada pode ser enviado antes disso. A ferramenta get_account_status diz o que ainda falta.
Envie a management_key como token Bearer em todas as chamadas seguintes. Quando o número estiver ativo, create_number_key lhe dá uma chave para o servidor MCP de mensagens e para a API REST.