Automated WooCommerce Invoicing Workflow
Budget / Salary₹600–1,500
TypeFreelance project
LocationRemote
Posted1 day ago
I’m building a small service that closes the loop between my WooCommerce store, Delhivery shipments, and OneStop Invoice. The flow is straightforward but must run without manual touchpoints and with strict safeguards against premature or duplicate billing.
Workflow in plain words
1. Pull each new WooCommerce order via API.
• I need the full payload: Order ID, customer name / phone / email, billing & shipping addresses, every product with its quantity and price, plus GST and the grand total.
2. Use the AWB/Waybill from the order to query Delhivery’s API. If the status is anything other than “Delivered”, the process stops immediately—no alerts or retries, just skip creation for now.
3. Before calling OneStop, check our own database (or another lightweight store) to confirm we have never invoiced this WooCommerce Order ID. If we already have, simply log the attempt and move on.
4. When the shipment is confirmed delivered and the order is still uninvoiced, push the data set above to the OneStop Invoice API and generate the invoice automatically.
5. Persist a mapping of WooCommerce Order ID ⇄ OneStop Invoice ID so the duplicate guard keeps working.
Acceptance criteria
• End-to-end job runs on a schedule or webhook trigger and finishes unattended.
• Invoices appear in OneStop only when Delhivery reports “Delivered.”
• Duplicate attempts are logged, never issued.
• Code is clean, documented, and ready for deployment on a typical LAMP / PHP stack (open to Node.js if you can justify it).
• A short README shows how to set API tokens and cron/webhook setup.
Let me know if you’ve integrated WooCommerce or courier APIs before, and roughly how you’d structure the verification and logging layers.
Workflow in plain words
1. Pull each new WooCommerce order via API.
• I need the full payload: Order ID, customer name / phone / email, billing & shipping addresses, every product with its quantity and price, plus GST and the grand total.
2. Use the AWB/Waybill from the order to query Delhivery’s API. If the status is anything other than “Delivered”, the process stops immediately—no alerts or retries, just skip creation for now.
3. Before calling OneStop, check our own database (or another lightweight store) to confirm we have never invoiced this WooCommerce Order ID. If we already have, simply log the attempt and move on.
4. When the shipment is confirmed delivered and the order is still uninvoiced, push the data set above to the OneStop Invoice API and generate the invoice automatically.
5. Persist a mapping of WooCommerce Order ID ⇄ OneStop Invoice ID so the duplicate guard keeps working.
Acceptance criteria
• End-to-end job runs on a schedule or webhook trigger and finishes unattended.
• Invoices appear in OneStop only when Delhivery reports “Delivered.”
• Duplicate attempts are logged, never issued.
• Code is clean, documented, and ready for deployment on a typical LAMP / PHP stack (open to Node.js if you can justify it).
• A short README shows how to set API tokens and cron/webhook setup.
Let me know if you’ve integrated WooCommerce or courier APIs before, and roughly how you’d structure the verification and logging layers.
Apply on Freelancer →
Project sourced from Freelancer.com. Applications happen directly on the original platform — we never collect your data.