Create invoice from Kustomer shipment in Magento and Oracle
Recipe ToolsWorkato
What it does
When a new shipment arrives from Kustomer, this automation creates the Magento shipment and invoice, then creates the Oracle invoice. If an error occurs, it retries once and publishes to event topics so downstream systems stay in sync.
Who it's for
Accounting teams who need invoices created across Magento and Oracle when shipments are received.
How teams use this
Sync shipments to invoicing systems
When Kustomer records a shipment, Magento and Oracle invoices are created automatically without manual data entry. The channel stays informed through event messages.
Route failed invoices to a ghost queue
If invoice creation fails after one retry, add a message to the ghost invoice topic so operations can investigate and reprocess the shipment later without losing the record.
Notify downstream fulfillment systems
After invoices are created, this automation publishes to the fulfillment topic so fulfillment and accounting teams receive real-time confirmation that the shipment has been invoiced.
How it works
- Listen for new shipment from Kustomer. A new message arrives in the Create Invoice Event topic from Workato Pub Sub, signaling that Kustomer received a shipment and an invoice must be generated.
- Call the invoice creation function. Call the Create Invoice Recipe Function to generate the Magento shipment, Magento invoice, and Oracle invoice in one coordinated step.
- Retry and publish results. If an error occurs, retry once. On success or final failure, Workato Pub Sub publishes to the New Ghost Invoice Event topic and the fulfillment topic so billing and operations teams receive the outcome.