upsert-customer-then-order
Reuse or create a customer by email, then place and confirm an order.
Resolves the customer by email (reusing or creating), places an order for that email, and reads the order back.
4 steps
inputs: email, firstName, lastName, quantity, variantId
outputs: order, orderId, orderName
1
findCustomer
Search for an existing customer by email, returning at most one match.
2
createCustomer
Create a new customer when no existing one matched the email.
3
placeOrder
Place an order tied to the resolved customer email containing the variant line item.
4
getOrder
Read the order back to confirm it was placed.
Every workflow here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for arazzo workflows
4 MCP tools reach this
find_arazzoBrowse and filter every workflow in the catalog.
apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
resolveTurn a domain, URL or GitHub org into the provider it belongs to.
find_cohortsEvery scored population of providers in the catalog.
All 92 tools →
Call it yourself
curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/shopify-upsert-customer-then-order-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.
A second provider on the same verified email joins the account you already have.