All guides

Recipe: a Shopify order records a sale

When someone buys in your Shopify shop, cuil.si records the sale on their lead: they become a customer, their deal is won and their follow-up emails stop. The order number is counted once, so a retry never records it twice.
  1. 1Start on a new order

    In Zapier or Make, pick Shopify › New Order (WooCommerce and other shops work the same way).

  2. 2Record the sale

    Add cuil.si › Record a Sale and match Buyer's email, Amount (for example 2499.50), Currency, Product and Order id. Until the cuil.si app is listed, send POST /lead-sales with an API key that has the Website forms or Zapier and Make choice.

    curl -X POST "https://cuil.si/api/v1/lead-sales" -H "Authorization: Bearer $CUILSI_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: SHOP-1042" \
      -d '{"email": "[email protected]", "amount_minor": 249950, "currency": "INR", "product": "Coffee subscription", "order_id": "SHOP-1042"}'
    # { "sale": { "id": "...", "amount_text": "₹2,499.50", ... }, "duplicate": false, ... }   The same order id is counted once.