create-and-update-access-records-for-purchased-productlisted
Install: claude install-skill zapier/awesome-zaps
# Create and update access records for purchased product
The Zap's code lives at https://github.com/zapier/awesome-zaps/tree/main/zaps/create-and-update-access-records-for-purchased-product. Read the files there if this skill was installed on its own.
## What it does
1. **Trigger:** a paid order arrives from Shopify (`shopify`, `new_paid_order_v3`).
2. **Filter:** the workflow continues only if one of the order's line items has the configured product ID. Otherwise it stops with `skipped`.
3. **Email check:** the workflow needs an email address (customer email, then order email). Without one it stops with `skipped`.
4. **Webhooks by Zapier POST:** sends the email, name, `access_status` (`active`), and billing and shipping address summaries as JSON to your user management API. The API creates the user when no match exists, or updates the existing user with the same email.
The workflow never matches or updates users itself; the user management API must match on email.
## Ask the user
Each `REPLACE_…` value is set per person. Resolve names to IDs with the user's own connections; don't ask them to paste an ID you can look up.
| Setting | What goes there |
| ----------------------- | ----------------------------------------------------------------------------------------------------- |
| `QUALIFYING_PRODUCT_ID` | The Shopify product whose paid orders grant access; look up it