WhatsApp· 7 min read

WhatsApp return and refund status updates from Shopify


A return status update is a utility template that tells a customer where their return stands: requested, approved, declined or refunded. In Shopify, subscribe to returns/request, returns/approve, returns/decline, returns/close and refunds/create. Those payloads carry ids only, so query the Return and its order with GraphQL to get the phone. On approval, send a custom UTILITY template with two quick replies, “Refund to card” and “Store credit”. Save the tap in your own returns table, tag the order with tagsAdd, and apply the choice when you call returnProcess.

The webhook contract, HMAC check and access token are the same as in Shopify order webhooks to WhatsApp, so this page links to them instead of repeating them. The tap-matching logic comes from order confirmation with Confirm and Cancel buttons.

The events Shopify sends for a return

Shopify lists these return topics: returns/request, returns/approve, returns/decline, returns/process, returns/close, returns/cancel, returns/update, returns/reopen, plus refunds/create and two reverse-logistics topics (Apps in returns, accessed 2026-11-27). “Return webhooks are available only in the GraphQL Admin API”, from version 2023-01. The same page says “You can only return items that have been fulfilled”, so a return always follows a fulfillment.

The loop runs on these topics:

Topic Status in the payload What you send
returns/request requested return_requested_v1, no buttons
returns/approve open return_approved_v1 with the two quick replies
returns/decline declined return_declined_v1, no buttons
returns/close closed Nothing. Mark your record closed
refunds/create none return_refunded_v1, unless your own service already sent it

The returns/request sample in Shopify’s webhook reference (accessed 2026-11-27) looks like this. These are Shopify’s sample values:

{
  "id": 123134564567890,
  "admin_graphql_api_id": "gid://shopify/Return/123134564567890",
  "status": "requested",
  "order": { "id": 4783296544821, "admin_graphql_api_id": "gid://shopify/Order/4783296544821" },
  "total_return_line_items": 2,
  "name": null,
  "return_line_items": [],
  "return_shipping_fees": [],
  "exchange_line_items": [],
  "total_exchange_line_items": 0,
  "requested_at": "2026-01-15T07:00:00-05:00"
}

returns/decline adds decline: { reason, note }, where Shopify’s sample note reads “As discussed on the phone, the 30-day return window has ended.” Don’t paste that free-text note into a template variable. Keep the template wording fixed, and let a person explain the decline in the chat if the customer replies.

returns/close is shorter and shaped differently: { id, admin_graphql_api_id, order_id, status: "closed" }. It carries order_id, not an order object, so code that reads payload.order.id breaks on it. The refunds/create sample carries the refund id, its order_id, a note, refund_line_items and transactions. No returns/process sample was available.

Payloads carry ids, not phones

None of these payloads has a phone, a customer or line-item detail. Fetch them with one GraphQL query on the Return object, which “Requires read_returns access scope or read_marketplace_returns” (Return, accessed 2026-11-27). Read order { phone customer { defaultPhoneNumber { phoneNumber } } shippingAddress { phone } } and normalize the first usable value, as in phone number format. The same query gives you returnLineItems, which returnProcess needs later.

Shopify’s ReturnStatus enum has five values: REQUESTED, OPEN, DECLINED, CLOSED (“The return has been completed.”) and CANCELED (ReturnStatus, accessed 2026-11-27). returnApproveRequest moves a return to OPEN. returnProcess closes it “when all items have been processed and a restock decision has been made”.

The messages: four utility templates

Return updates pass Meta’s utility test. Meta asks for content that is “non-promotional”, “specific to or requested by the user” and “essential or critical to the user” (template categorization, accessed 2026-11-27). The Order Management row on that page even carries a refund example: “We have received your item from order {{order_number}}. Your refund for ${{amount}} has been processed. Thank you for your business.”

The same page classes “an order update with a promo” as marketing. So never add a “shop again” coupon or a product suggestion to any of these templates. The rules and the cost of a recategorization are in template categories.

The Template Library has a RETURN_CONFIRMATION use case, and library templates must be UTILITY with “fixed content that cannot be edited” (Template Library, accessed 2026-11-27). Meta’s page shows no body for that type. Treat it as the matching library type and write custom templates, as explained in WhatsApp Template Library.

Give the approval message a short TTL. Utility templates default to 30 days, and message_send_ttl_seconds accepts 30 to 43,200 seconds (time-to-live, accessed 2026-11-27). The 12 hours below is our choice; Meta recommends no value. A “pick a refund method” prompt that arrives days later, after staff processed the return, only confuses the customer.

curl -X POST "https://graph.facebook.com/v26.0/$WABA_ID/message_templates" \
  -H "Authorization: Bearer $WA_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "return_approved_v1",
  "category": "UTILITY",
  "language": "en_US",
  "parameter_format": "NAMED",
  "message_send_ttl_seconds": 43200,
  "components": [
    {
      "type": "BODY",
      "text": "Hi {{customer_name}}, your return for order {{order_number}} is approved. How would you like your refund?",
      "example": {
        "body_text_named_params": [
          { "param_name": "customer_name", "example": "Ana" },
          { "param_name": "order_number", "example": "#1042" }
        ]
      }
    },
    {
      "type": "BUTTONS",
      "buttons": [
        { "type": "QUICK_REPLY", "text": "Refund to card" },
        { "type": "QUICK_REPLY", "text": "Store credit" }
      ]
    }
  ]
}'

curl -X POST "https://graph.facebook.com/v26.0/$WABA_ID/message_templates" \
  -H "Authorization: Bearer $WA_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "return_refunded_v1",
  "category": "UTILITY",
  "language": "en_US",
  "parameter_format": "NAMED",
  "components": [
    {
      "type": "BODY",
      "text": "We have received your item from order {{order_number}}. Your refund of {{amount}} has been processed. Thank you for your business.",
      "example": {
        "body_text_named_params": [
          { "param_name": "order_number", "example": "#1042" },
          { "param_name": "amount", "example": "25.99 USD" }
        ]
      }
    }
  ]
}'

Create the two button-free templates the same way. return_requested_v1 reads “We got your return request for order {{order_number}}. We will message you here once it is reviewed.” return_declined_v1 reads “Your return request for order {{order_number}} was not approved. Reply here and our team will explain the next step.” Send any of them only to customers with a WhatsApp opt-in. Shopify’s SMS consent is a different record, as the Shopify post explains, and the opt-in rules are in how to collect WhatsApp opt-in.

The reply: a tap on a refund method

At send time, each quick reply gets a payload such as refund:card:123134564567890 or refund:credit:123134564567890. The tap arrives as a messages webhook with type: "button", button.payload, button.text and context.id, the wamid of the template. Match on context.id, because Meta omits from when the user has a username and no available phone number. The full shape is in the order confirmation post.

The tap opens the 24-hour window, so the “Noted, store credit it is” reply can be free-form text. A customer who types a question instead goes to a person. A customer who changes their mind taps again, and the last tap wins in your table until the return is processed.

The write-back: your table, a tag, then returnProcess

Shopify has no field for a preferred refund method. Store the choice in your own returns table, which is the record your code reads later. Then add an order tag with tagsAdd, for example refund-pref:store-credit, so staff see the choice in the admin. tagsAdd adds without overwriting, unlike orderUpdate, as the Shopify post shows.

Apply the choice when the return is processed. returnProcess “Requires write_returns access scope or write_marketplace_returns” (returnProcess, accessed 2026-11-27). Shopify’s example input refunds through financialTransfer.issueRefund.orderTransactions, each with a transactionAmount and the parentId of the original OrderTransaction. The response returns returnProcess.return.id and userErrors.

Store credit goes through refundMethods. ReturnProcessRefundInput has orderTransactions (required), refundMethods and allowOverRefunding (ReturnProcessRefundInput, accessed 2026-11-27). RefundMethodInput.storeCreditRefund takes an amount and an optional expiresAt. Shopify notes that “Refunds issued as store credit can’t exceed the amount paid.” Shopify shows no worked store-credit example, so the store-credit body in the service is untested. In particular, it is untested whether Shopify accepts an empty orderTransactions list.

Set notifyCustomer: false. With true, Shopify emails the customer, and your WhatsApp message would tell them a second time.

The amount stays a staff decision. Inspection, restocking fees and shipping all change it, so the service exposes an internal endpoint that your back office calls with the return id and the amount. The customer’s tap decides the method, and a person decides the number. If the customer never tapped, the service refunds to the original payment method. That default is our choice.

The complete service

This Node 18+ file runs with npm install express. It verifies both webhook signatures, dedupes deliveries, return events and Meta messages, and writes back through the Admin GraphQL API, version 2026-10. State lives in memory for the example; use tables with unique keys in production.

// return-updates.js. Node 18+. npm install express
const crypto = require("crypto");
const express = require("express");

const {
  SHOP, SHOPIFY_CLIENT_ID, SHOPIFY_CLIENT_SECRET,
  WA_TOKEN, PHONE_NUMBER_ID, APP_SECRET, VERIFY_TOKEN,
  INTERNAL_TOKEN, DEFAULT_COUNTRY_CODE = "", PORT = "3000",
} = process.env;

const ADMIN_URL = `https://${SHOP}.myshopify.com/admin/api/2026-10/graphql.json`;
const GRAPH_URL = `https://graph.facebook.com/v26.0/${PHONE_NUMBER_ID}/messages`;

const seenDeliveries = new Set(); // X-Shopify-Webhook-Id
const seenEvents = new Set();     // `${returnGid}:${status}` and `refund:${id}`
const seenMessages = new Set();   // Meta messages[].id
const optIns = new Set();         // order gids with a WhatsApp opt-in, fed by your order pipeline
const optOuts = new Set();        // phones and BSUIDs that sent STOP
const returns = new Map();        // return gid -> record (your returns table)
const byWamid = new Map();        // template wamid -> return gid

const safeEqual = (a, b) => {
  const x = Buffer.from(a ?? ""), y = Buffer.from(b ?? "");
  return x.length === y.length && crypto.timingSafeEqual(x, y);
};
const handOff = (ref, reason, detail) => console.log("needs_person", { ref, reason, detail });

let token = { value: null, expiresAt: 0 };
async function shopifyToken() {
  if (token.value && Date.now() < token.expiresAt) return token.value;
  const res = await fetch(`https://${SHOP}.myshopify.com/admin/oauth/access_token`, {
    method: "POST",
    headers: { "Content-Type": "application/x-www-form-urlencoded" },
    body: new URLSearchParams({
      grant_type: "client_credentials", client_id: SHOPIFY_CLIENT_ID, client_secret: SHOPIFY_CLIENT_SECRET,
    }),
  });
  if (!res.ok) throw new Error(`token ${res.status}`);
  const json = await res.json();
  token = { value: json.access_token, expiresAt: Date.now() + (json.expires_in - 300) * 1000 };
  return token.value;
}

async function admin(query, variables) {
  const res = await fetch(ADMIN_URL, {
    method: "POST",
    headers: { "Content-Type": "application/json", "X-Shopify-Access-Token": await shopifyToken() },
    body: JSON.stringify({ query, variables }),
  });
  const json = await res.json();
  if (!res.ok || json.errors) throw new Error(`admin ${res.status}: ${JSON.stringify(json.errors)}`);
  return json.data;
}

const RETURN_QUERY = `query ret($id: ID!) {
  return(id: $id) {
    id name status
    order { id name phone customer { firstName defaultPhoneNumber { phoneNumber } } shippingAddress { phone } }
    returnLineItems(first: 50) { nodes { id quantity: processableQuantity } }
  } }`;
// Fields checked against OrderTransaction, 2026-10.
const TX_QUERY = `query tx($id: ID!) {
  order(id: $id) { transactions(first: 20) { id kind status amountSet { shopMoney { amount currencyCode } } } } }`;
const TAGS_ADD = `mutation tagsAdd($id: ID!, $tags: [String!]!) {
  tagsAdd(id: $id, tags: $tags) { node { id } userErrors { field message } } }`;
const RETURN_PROCESS = `mutation returnProcess($input: ReturnProcessInput!) {
  returnProcess(input: $input) { return { id status } userErrors { field message } } }`;

function normalizePhone(raw) {
  if (!raw || /[a-z]/i.test(raw)) return null;
  const digits = raw.replace(/\D/g, "");
  if (raw.trim().startsWith("+")) return digits.length >= 8 ? digits : null;
  return DEFAULT_COUNTRY_CODE && digits.length >= 6 ? DEFAULT_COUNTRY_CODE + digits.replace(/^0+/, "") : null;
}

async function loadReturn(gid) {
  const r = (await admin(RETURN_QUERY, { id: gid })).return;
  if (!r) throw new Error(`return ${gid} not found`);
  const o = r.order;
  const rec = returns.get(gid) ?? { gid, preference: null, processing: false, refundedNotified: false, userId: null };
  Object.assign(rec, {
    status: r.status, orderGid: o.id, orderName: o.name,
    firstName: o.customer?.firstName ?? "there",
    phone: normalizePhone(o.phone ?? o.customer?.defaultPhoneNumber?.phoneNumber ?? o.shippingAddress?.phone),
    lineItems: r.returnLineItems.nodes.map((n) => ({ id: n.id, quantity: n.quantity })),
  });
  returns.set(gid, rec);
  return rec;
}

const canMessage = (rec) => optIns.has(rec.orderGid) && rec.phone
  && !optOuts.has(rec.phone) && !(rec.userId && optOuts.has(rec.userId));

async function waSend(body) {
  const res = await fetch(GRAPH_URL, {
    method: "POST",
    headers: { Authorization: `Bearer ${WA_TOKEN}`, "Content-Type": "application/json" },
    body: JSON.stringify({ messaging_product: "whatsapp", ...body }),
  });
  const json = await res.json();
  if (!res.ok) throw new Error(`Graph ${res.status}: ${JSON.stringify(json.error ?? json)}`);
  return json.messages[0].id;
}
const waText = (to, text) => waSend({ to, type: "text", text: { body: text } });

async function sendTemplate(rec, name, params, payloads = []) {
  const components = [{
    type: "body",
    parameters: Object.entries(params).map(([k, v]) => ({ type: "text", parameter_name: k, text: String(v) })),
  }];
  payloads.forEach((payload, index) => components.push({
    type: "button", sub_type: "quick_reply", index, parameters: [{ type: "payload", payload }],
  }));
  const wamid = await waSend({ to: rec.phone, type: "template", template: { name, language: { code: "en_US" }, components } });
  byWamid.set(wamid, rec.gid);
  return wamid;
}

const STATUS_BY_TOPIC = {
  "returns/request": "REQUESTED", "returns/approve": "OPEN",
  "returns/decline": "DECLINED", "returns/close": "CLOSED",
};

async function onReturnEvent(topic, payload) {
  const gid = payload.admin_graphql_api_id;
  const status = STATUS_BY_TOPIC[topic];
  const key = `${gid}:${status}`; // one message per return and status, even if a topic arrives again
  if (seenEvents.has(key)) return;
  seenEvents.add(key);
  try {
    const rec = await loadReturn(gid);
    if (status === "CLOSED") return void (rec.status = "CLOSED");
    if (!canMessage(rec)) return;
    const id = gid.split("/").pop();
    if (status === "REQUESTED") await sendTemplate(rec, "return_requested_v1", { order_number: rec.orderName });
    if (status === "DECLINED") await sendTemplate(rec, "return_declined_v1", { order_number: rec.orderName });
    if (status === "OPEN") {
      await sendTemplate(rec, "return_approved_v1",
        { customer_name: rec.firstName, order_number: rec.orderName },
        [`refund:card:${id}`, `refund:credit:${id}`]);
    }
  } catch (err) {
    seenEvents.delete(key);
    handOff(gid, `${topic}_failed`, err.message);
  }
}

async function onRefundCreated(refund) {
  const key = `refund:${refund.id}`;
  if (seenEvents.has(key)) return;
  seenEvents.add(key);
  const orderGid = `gid://shopify/Order/${refund.order_id}`;
  const rec = [...returns.values()].find((r) => r.orderGid === orderGid);
  if (!rec || rec.processing || rec.refundedNotified) return; // untracked, or our endpoint sends it
  // Field names checked against Shopify's refunds/create sample; its transaction currency can be null.
  const tx = (refund.transactions ?? []).filter((t) => t.kind === "refund" && t.status === "success");
  const currency = tx[0]?.currency ?? refund.refund_line_items?.[0]?.subtotal_set?.shop_money?.currency_code;
  if (!tx.length || !currency) return handOff(orderGid, "refund_amount_unknown", refund.id);
  const total = tx.reduce((sum, t) => sum + Number(t.amount), 0).toFixed(2);
  rec.refundedNotified = true;
  if (canMessage(rec)) {
    await sendTemplate(rec, "return_refunded_v1", { order_number: rec.orderName, amount: `${total} ${currency}` });
  }
}

async function onWhatsAppMessage(msg) {
  if (seenMessages.has(msg.id)) return;
  seenMessages.add(msg.id);
  if (msg.type === "text" && /^\s*stop\s*$/i.test(msg.text?.body ?? "")) {
    [msg.from, msg.from_user_id].filter(Boolean).forEach((v) => optOuts.add(v));
    if (msg.from) await waText(msg.from, "Done. You will not get more return updates here.");
    return;
  }
  const gid = byWamid.get(msg.context?.id);
  const rec = gid && returns.get(gid);
  if (!rec) return handOff(null, "unmatched_message", { id: msg.id, type: msg.type });
  if (msg.from_user_id) rec.userId = msg.from_user_id;
  if (msg.type !== "button") return handOff(gid, "free_text", msg.text?.body ?? msg.type);

  const [, method] = String(msg.button?.payload ?? "").split(":");
  const label = String(msg.button?.text ?? "").trim().toLowerCase();
  const choice = method === "card" || label === "refund to card" ? "card"
    : method === "credit" || label === "store credit" ? "credit" : null;
  if (!choice) return handOff(gid, "unreadable_button", msg.button);
  if (rec.processing || rec.refundedNotified || rec.status === "CLOSED") {
    return waText(rec.phone, `The refund for order ${rec.orderName} is already processed. Reply here if you have a question.`);
  }
  rec.preference = choice; // your returns table is the source of truth
  const data = await admin(TAGS_ADD, { id: rec.orderGid, tags: [choice === "credit" ? "refund-pref:store-credit" : "refund-pref:card"] })
    .catch((err) => ({ tagsAdd: { userErrors: [err.message] } }));
  if (data.tagsAdd.userErrors.length) handOff(gid, "tag_failed", data.tagsAdd.userErrors);
  return waText(rec.phone, choice === "credit"
    ? `Noted. The refund for order ${rec.orderName} will go to store credit.`
    : `Noted. The refund for order ${rec.orderName} will go back to your original payment method.`);
}

async function processReturn(rec, amount, currencyCode) {
  const money = { amount: String(amount), currencyCode };
  let issueRefund;
  if (rec.preference === "credit") {
    // TODO:test: store credit only, with an empty orderTransactions list.
    issueRefund = { orderTransactions: [], refundMethods: [{ storeCreditRefund: { amount: money } }] };
  } else {
    const txs = (await admin(TX_QUERY, { id: rec.orderGid })).order.transactions;
    const parent = txs.find((t) => ["SALE", "CAPTURE"].includes(t.kind) && t.status === "SUCCESS");
    if (!parent) throw new Error("no captured transaction to refund");
    issueRefund = { orderTransactions: [{ transactionAmount: money, parentId: parent.id }] };
  }
  const data = await admin(RETURN_PROCESS, { input: {
    returnId: rec.gid, returnLineItems: rec.lineItems, financialTransfer: { issueRefund }, notifyCustomer: false,
  } });
  return data.returnProcess;
}

const app = express();

app.post("/shopify/webhooks", express.raw({ type: "*/*" }), (req, res) => {
  const digest = crypto.createHmac("sha256", SHOPIFY_CLIENT_SECRET).update(req.body).digest("base64");
  if (!safeEqual(digest, req.get("x-shopify-hmac-sha256"))) return res.sendStatus(401);
  const deliveryId = req.get("x-shopify-webhook-id");
  res.sendStatus(200);
  if (seenDeliveries.has(deliveryId)) return;
  seenDeliveries.add(deliveryId);
  const topic = req.get("x-shopify-topic");
  const payload = JSON.parse(req.body.toString("utf8"));
  const job = STATUS_BY_TOPIC[topic] ? onReturnEvent(topic, payload)
    : topic === "refunds/create" ? onRefundCreated(payload) : Promise.resolve();
  job.catch((err) => handOff(payload.admin_graphql_api_id ?? payload.id, `${topic}_failed`, err.message));
});

const internal = (req, res, next) =>
  safeEqual(req.get("authorization"), `Bearer ${INTERNAL_TOKEN}`) ? next() : res.sendStatus(401);

// Your order pipeline records the WhatsApp opt-in captured at checkout.
app.post("/internal/opt-in", express.json(), internal, (req, res) => {
  if (!req.body?.orderGid) return res.sendStatus(400);
  optIns.add(req.body.orderGid);
  res.sendStatus(204);
});

// Your back office calls this after inspection, with the amount a person approved.
app.post("/internal/returns/process", express.json(), internal, async (req, res) => {
  const { returnId, amount, currencyCode } = req.body ?? {};
  if (!returnId || !(Number(amount) > 0) || !currencyCode) return res.sendStatus(400);
  try {
    const rec = returns.get(returnId) ?? await loadReturn(returnId);
    if (rec.processing || rec.refundedNotified) return res.status(409).json({ error: "already processed" });
    rec.processing = true;
    const result = await processReturn(rec, amount, currencyCode).catch((err) => ({ userErrors: [{ message: err.message }] }));
    if (result.userErrors.length) {
      rec.processing = false;
      return res.status(422).json({ userErrors: result.userErrors });
    }
    rec.refundedNotified = true;
    if (canMessage(rec)) {
      await sendTemplate(rec, "return_refunded_v1", { order_number: rec.orderName, amount: `${amount} ${currencyCode}` })
        .catch((err) => handOff(rec.gid, "refunded_message_failed", err.message));
    }
    res.json({ return: result.return, method: rec.preference ?? "card" });
  } catch (err) {
    res.status(502).json({ error: err.message });
  }
});

app.get("/whatsapp/webhook", (req, res) => {
  const ok = req.query["hub.mode"] === "subscribe" && req.query["hub.verify_token"] === VERIFY_TOKEN;
  return ok ? res.send(req.query["hub.challenge"]) : res.sendStatus(403);
});

app.post("/whatsapp/webhook", express.raw({ type: "application/json" }), (req, res) => {
  const expected = "sha256=" + crypto.createHmac("sha256", APP_SECRET).update(req.body).digest("hex");
  if (!safeEqual(expected, req.get("x-hub-signature-256"))) return res.sendStatus(401);
  res.sendStatus(200);
  const body = JSON.parse(req.body.toString("utf8"));
  for (const entry of body.entry ?? []) {
    for (const change of entry.changes ?? []) {
      for (const msg of change.value?.messages ?? []) {
        onWhatsAppMessage(msg).catch((err) => handOff(null, "reply_failed", err.message));
      }
    }
  }
});

app.listen(Number(PORT), () => console.log(`listening on ${PORT}`));

The refunded message goes out from one place per return. The internal endpoint sends it when your service processed the return. refunds/create sends it when staff refunded from the Shopify admin instead, and it hands off when the payload’s transaction fields don’t parse. A refund on that order that is not part of the return also triggers it. If staff issue such refunds, send the refunded message from the internal endpoint only.

When something fails

If the customer never taps, nothing waits on them. Staff process the return as usual, and the service refunds to the original payment method. The 12-hour TTL drops an approval message that couldn’t be delivered in time, and Meta names no error code for that drop.

Shopify can deliver the same webhook more than once, so the service skips a repeated X-Shopify-Webhook-Id. The service also keys each message on return id plus status, so a repeated status never sends a second message. Meta can resend a tap, so it skips a repeated messages[].id. A failed send removes the event key and goes to a person, because Shopify already got its 200 and won’t retry.

A STOP reply adds both the phone and the from_user_id to an opt-out list that every send checks. Record it in your consent table too, so the next order doesn’t re-enable it.

If returnProcess returns userErrors, the endpoint answers 422 and leaves the return open, with the tag still showing the customer’s choice. A person then processes it in the admin. Shopify’s page doesn’t say which webhook fires when staff create an already-open return with returnCreate, so test that path before relying on returns/approve.

Where Z-API Omni fits

Omni has no documented Shopify integration, so the service above stays the bridge. On Meta’s official API, the templates go out through POST https://api.omni.z-api.io/v1/channels/{channelId}/messages with a Bearer Secret Key, and template creation accepts message_send_ttl_seconds. A disconnected channel returns 422 with subCode: CHANNEL_DISCONNECTED, and the message is not sent. Free-text replies arrive as MESSAGE_RECEIVED, but the docs don’t show the inbound shape of a quick-reply tap yet.

One subscription covers WhatsApp, Messenger, Instagram and Telegram, from US$29 per number per month for 1 to 10 numbers down to US$20 above 100. Webhooks are included without limit. Meta’s fees pass through on the official connection.

curl -X POST "https://api.omni.z-api.io/v1/channels/$CHANNEL_ID/messages" \
  -H "Authorization: Bearer $OMNI_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{"recipient":{"identifier":"5511999999999"},"content":{"type":"TEMPLATE","attachments":[{"template":{"name":"return_refunded_v1","language":{"policy":"deterministic","code":"en_US"},"components":[{"type":"body","parameters":[{"type":"text","text":"#1042"},{"type":"text","text":"25.99 USD"}]}]}}]}}'

View documentation

Z-API Omni team