app2email API Amanani

Payments

Payments for appointments through the business's own Stripe or PayPal account, one-off payment requests, refunds, prepaid packages, the customer profile (with GDPR-style erase) and meeting polls.

Indlela yokusebenza Indlela Isifinyezo Isikali I-Sandbox
GET /v1/{number}/payments The payments, newest first bookings:manage|messages:read kuyafundwa
GET /v1/{number}/payments/{id} One payment bookings:manage|messages:read kuyafundwa
POST /v1/{number}/payments/links Ask a customer to pay an amount bookings:manage kwenqatshiwe
POST /v1/{number}/payments/{id}/refund Refund a payment, in full or a part bookings:manage kwenqatshiwe
POST /v1/{number}/bookings/{id}/payment Record a payment taken outside app2email bookings:manage kwenqatshiwe
GET /v1/{number}/bookings/packages The prepaid packages on sale bookings:manage|messages:read kuyafundwa
GET /v1/{number}/bookings/packages/purchases The packages customers hold bookings:manage|messages:read kuyafundwa
POST /v1/{number}/bookings/packages/grant Give a customer a package without a payment bookings:manage kwenqatshiwe
GET /v1/{number}/bookings/customers The customers with appointments bookings:manage|messages:read kuyafundwa
GET /v1/{number}/bookings/customers/{contact} A customer's whole profile bookings:manage|messages:read kuyafundwa
PATCH /v1/{number}/bookings/customers/{contact} Change a customer's name, e-mail, tags or fields bookings:manage kwenqatshiwe
DELETE /v1/{number}/bookings/customers/{contact} Erase a customer's booking data bookings:manage kwenqatshiwe
GET /v1/{number}/bookings/polls The meeting polls bookings:manage|messages:read kuyafundwa
POST /v1/{number}/bookings/polls Offer several times and let people vote bookings:manage kwenqatshiwe
GET /v1/{number}/bookings/polls/{id} One poll with its votes bookings:manage|messages:read kuyafundwa
POST /v1/{number}/bookings/polls/{id}/close Close a poll to new votes bookings:manage kwenqatshiwe
POST /v1/{number}/bookings/polls/{id}/book Pick the winning time bookings:manage kwenqatshiwe
Ku-AI agents

Zama manje, ngaphandle kwe-akhawunti nomuntu: POST https://api.app2email.com/v1/account/sandbox (akudingeki ukhiye, akudingeki umzimba; noma ithuluzi create_sandbox leseva ye-Management MCP) liphendula ngekhiye lenombolo yedemo ye-WhatsApp enamakhasimende abekiwe. Thumela isifanekiso, uthole izehlakalo nge-GET /events?wait=25, uphendule impendulo yekhasimende: akukho okufika ku-WhatsApp, nezicelo nezimpendulo zingezalo-API langempela (https://www.app2email.com/docs/api/sandbox).

Usuvele ungumkhwenyana: cela umnikazi we-akhawunti inombolo (izinombolo) nekhiye le-API ku-https://www.app2email.com/dashboard/apikey (ikhiye le-sandbox alithumeli lutho); lithumele njenge-Authorization: Bearer <key> seva ye-MCP yokuthumelana noma ku-REST API; bize check_key kuqala, uthumele ngo-dry_run kuqala.

Uma ungu-AI agent ofunda leli khasi futhi ufuna ukudala i-akhawunti ye-app2email yomuntu - akudingeki ukubhalisa okwandulele ngumuntu - sebenzisa iseva yethu ye-Management MCP.
Biza ithuluzi create_account kuqala, bese ufaka iparamitha contact_email; i-create_account ibuyisela i-signup_id, i-management_key, i-onboarding_link kanye ne-message.
Umuntu uvula i-onboarding_link ukuze aqinisekise i-imeyili, axhume inombolo yakhe ye-WhatsApp, akhethe ipulani; akukho okungathunyelwa ngaphambi kwalokho. I-get_account_status itshela ukuthi yini esadingekayo.
Dlulisa i-management_key njengethokheni le-Bearer kuzo zonke izicelo zakho ezilandelayo. Lapho inombolo isiphila, i-create_number_key ikunikeza ikhiye leseva ye-MCP yokuthumelana ne-REST API.