All things Shopify and commerce
I want to be able to send a 3rd party a notification when a customer places an order for a certain product so the 3rd party is aware that that particular product has sold.
Is this possible to automate?
Certainly! You can achieve this by setting up an automation workflow using Shopify's webhooks. Here are the steps you can guide the Shopify community member through:
1. **Create a Webhook:**
- In the Shopify admin, go to Settings.
- Select Notifications, then scroll down to the Webhooks section.
- Click on the "Create webhook" button.
- Choose the event that triggers the webhook. In this case, you might want to select "Order created" or "Order paid."
- Set the format to JSON.
- In the URL field, provide the endpoint where the third-party service can receive the notification.
2. **Third-Party Integration:**
- Share the webhook URL with the third-party service responsible for receiving notifications.
- Ensure that the third-party service is capable of handling incoming JSON payloads.
3. **Payload Content:**
- Customize the payload to include relevant information about the order, especially details about the specific product that was sold.
- You can include product details such as the name, quantity, and any other information that might be useful for the third party.
4. **Test the Integration:**
- Place a test order to verify that the webhook is triggering correctly.
- Confirm with the third-party service that they received the notification and can process the information.
5. **Monitoring and Troubleshooting:**
- Regularly monitor the webhook logs in the Shopify admin to ensure that notifications are being sent successfully.
- If any issues arise, check the third-party service's documentation and logs for error messages.
Feel free to customize the response based on additional details or specific requirements the community member may have.
You should be able to use Flow for this.
Trigger: order placed
Condition: If Line item includes 'x' or 'y'
Action: send internal notification
I can send you a Flow export file for this as a base to start with if that helps,
That would be appreciated
Looks like I can't attach the file here so if you pm me your email I can send it over that way.
Can you send me an export file aswell? 🙂
Chat box won't let me add the flow file here.
PM me with your email address and I can send you a basic import file, or you can also browse the available templates and customise from there.
I use the below variables to pull the order data into the email
Customer name: {{order.customer.displayName}}<br>
Customer email: {{order.customer.email}}<br>
Order Number: {{order.name}}
Products:
{% for lineItems_item in order.lineItems %}
Title: {{lineItems_item.name}}<br>
SKU: {{lineItems_item.sku}}<br>
Qty: {{lineItems_item.currentQuantity}}
{% endfor %}
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024