Skip to main content
Version: Current

Purchase Order

Overview

📥 Direction: Retail Express → Zudello
🔄 Sync Type: Incremental sync

Purchase order data flows from Retail Express to Zudello. This integration includes automatic currency creation, comprehensive line item detail, and flexible date formatting.

Purchase Order Features

Three-Phase Processing - Creates currencies, then purchase orders with lines
Custom Date Formatting - Handles multiple date input formats
Line Item Detail - Complete line-level information with relationships
Currency Auto-Creation - Extracts and creates currencies automatically

Key Behaviours

  • Currency Creation: The integration first extracts unique currencies from the purchase order data and creates them in Zudello.
  • Purchase Order Processing: It then processes the purchase order headers and lines, linking them to suppliers, currencies, products, and locations.
  • Date Formatting: The integration can handle various date formats from Retail Express.
  • Default Status: All purchase orders brought into Zudello are given a 'COMPLETE' status.

Field Mappings

Header Fields

Zudello FieldRetail Express FieldNotes
PO NumberidThe purchase order ID.
Document NumberidThe purchase order ID.
Date Issuedcreated_onThe date the purchase order was created.
StatusN/ADefaults to "COMPLETE".
Suppliersupplier.nameThe name of the supplier.
Currencyfob_currency.currency_nameThe currency of the purchase order.
Referencesuppliers_commentsComments from the supplier.
Totaltotal_supplier_buy_exThe total amount, excluding tax.

Line Item Fields

Zudello FieldRetail Express FieldNotes
Descriptionproduct.short_descriptionThe description of the product.
Quantity Orderedquantity_orderedThe quantity of the item that was ordered.
Quantity Receivedquantity_receivedThe quantity of the item that has been received.
Tax AmountN/ADefaults to 0.
Totaltotal_supplier_buy_exThe line total, excluding tax.
Unit Pricesupplier_buy_exThe unit price, excluding tax.
Itemproduct.idThe product on the line.
Locationinventory.outlet.idThe outlet/location for the line item.

Currency Fields (Auto-created)

Zudello FieldRetail Express FieldNotes
Codefob_currency.currency_codeThe currency code (e.g., AUD).
Namefob_currency.currency_nameThe name of the currency (e.g., Australian Dollar).
StatusN/ADefaults to "ACTIVE".

Troubleshooting

IssueCauseSolution
PO not syncingThe PO has not been recently modified in Retail Express.Check the PO's modification date and filter syntax.
Missing line itemsThe include_items parameter is not set correctly in the configuration.Verify API parameter configuration.
Date format errorsThe date format is not supported.Check the date formatting logic.
Currency missingThe FOB currency data is incomplete in Retail Express.Verify currency setup in Retail Express.
Line references brokenThe related product or outlet sync is incomplete.Ensure the related product and outlet syncs have completed successfully.