Subscribe to the compliance topics
Uninstall
When a merchant uninstalls your app:- Every token is revoked at once. The next Admin API call is 401
APP_TOKEN_INVALID, and a refresh is refused. app/uninstalledis sent to that installation (data.installation, withstatus: "uninstalled"anduninstalledAt). Forget its tokens, stop its jobs, and stop calling the API for it.- 48 hours later, Tassyir deletes every app data value
the installation kept, and sends
business/redactto that installation (data.business.id). Delete everything your servers still hold about the business for it.
- A reinstall is a new installation, with a new id, a new consent and no
data, even within the 48 hours. The old installation’s
business/redactstill comes, naming the old installation id: delete by installation, not by business. business/redactreaches only the uninstalled installation it names, and is redelivered like any webhook: answer 200 when you already handled it, even though the installation is gone.
Buyer data requests
customers/data_request and customers/redact are sent when Tassyir exports
or erases a buyer’s data for a business.
data.customer.idis the customer (Customers);data.customer.phoneis there only withread_customer_contact, and reads**********when the plan hides phones or when every order it names was waiting.data.orderIdsare the buyer’s orders your installation could see.- An installation limited to selected stores is told only about orders in its stores, and gets no delivery when none is left: it never saw this buyer.
customers/redact: delete or anonymise everything your app holds about that buyer and those orders. Tassyir has already erased the buyer from the orders; the orders themselves stay, as the merchant’s records.customers/data_request: gather what your app holds about that buyer and make it available to the merchant.
Suspension
Tassyir can suspend an installation, or a whole app. Its tokens are revoked, its page cannot be opened, and its webhooks are skipped until it is resumed.A checklist
- Subscribe to
app/uninstalled,customers/data_request,customers/redactandbusiness/redact. - On
app/uninstalled: forget the tokens and stop the installation’s work. - On
customers/redact: erase the buyer from your systems. - On
customers/data_request: be able to tell the merchant what you hold. - On
business/redact: delete what you hold for that installation. - Deduplicate on
webhook-id, and answer 2xx to a delivery you already handled.