Skip to main content

ShipMyOrders

📄️Process ShipMyOrders Invoice

Processes one ShipMyOrders invoice. Processing walks every line of the invoice: it applies the first matching nominal-code mapping rule, then looks for a SKU.io fulfillment whose number equals the line `reference`. When one is found, a **Fulfillment** cost line (quantity, amount, tax from the invoice line; allocated to products by revenue) is added to that fulfillment's sales order and linked to the invoice line. Lines without a matching fulfillment only receive their nominal code. The invoice's `processed_at` is then set. Processing an already-processed invoice adds the cost lines again, so unprocess first when re-running.

📄️Bulk Process ShipMyOrders Invoices

Processes several ShipMyOrders invoices. Processing walks every line of the invoice: it applies the first matching nominal-code mapping rule, then looks for a SKU.io fulfillment whose number equals the line `reference`. When one is found, a **Fulfillment** cost line (quantity, amount, tax from the invoice line; allocated to products by revenue) is added to that fulfillment's sales order and linked to the invoice line. Lines without a matching fulfillment only receive their nominal code. The invoice's `processed_at` is then set.

📄️Process All ShipMyOrders Invoices

Processes every ShipMyOrders invoice that is not processed yet, archived or not. Processing walks every line of the invoice: it applies the first matching nominal-code mapping rule, then looks for a SKU.io fulfillment whose number equals the line `reference`. When one is found, a **Fulfillment** cost line (quantity, amount, tax from the invoice line; allocated to products by revenue) is added to that fulfillment's sales order and linked to the invoice line. Lines without a matching fulfillment only receive their nominal code. The invoice's `processed_at` is then set.