Webhook - destinationRunUpdated script called at 2025-09-15 10:08:35
Data: {"payload":{"runReference":"c43bf043768e43649ab6675232f90421","status":"LOCKED","vehicleReference":"TEST","shiftDate":"2025-09-17"},"timestamp":"2025-09-15T09:08:34Z"}
JSON: {"payload":{"runReference":"c43bf043768e43649ab6675232f90421","status":"LOCKED","vehicleReference":"TEST","shiftDate":"2025-09-17"},"timestamp":"2025-09-15T09:08:34Z"}
Vehicle: TEST
date: 2025-09-17
Status: LOCKED
200 response code sent
Processing order: SO-00437
Looking for local order: SO-00437
Updating local order from MaxOptra - current local order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => ianhitchman@fastmail.com
[contactName] => Ian Hitchman
[contactNotes] =>
[contactPhone] =>
[created] => 2025-09-15 08:32:26.889Z
[custom] => Array
(
)
[customer] => kbgli4rhh2bs7qd
[deliveryCity] => Benfleet
[deliveryCounty] =>
[deliveryEnd] => 2025-09-17 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => test
[deliveryPostcode] => SS7 3BD
[deliveryStart] => 2025-09-17 00:00:00.000Z
[deliveryStreet] => 21 Broadlands
[description] =>
[driverRef] => TEST
[externalCustomerId] => 499326000046148036
[externalLocationId] => 499326000046148042
[externalOrderId] => 499326000048033346
[id] => 7il1ekrua7cvsaq
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] =>
[pendingSyncToSource] => 1
[ref] =>
[refId] => SO-00437
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Pending
[syncInCreated] => 2025-09-15 07:11:00.000Z
[syncInStatus] => confirmed
[syncInUpdated] => 2025-09-15 08:58:33.000Z
[syncOutStatus] => UNALLOCATED
[syncOutUpdated] => 2025-09-15 08:52:00.000Z
[timeWindows] => Array
(
)
[title] => Test Company
[totalValue] => 15.95
[totalWeight] => 0
[type] =>
[updated] => 2025-09-15 08:59:02.198Z
[vehicleRef] => TEST
[what3Words] =>
)
MaxOptra order details: Array
(
[0] => Array
(
[referenceNumber] => SO-00437
[consignmentReference] =>
[distributionCentreReference] => Head Office
[distributionCentreName] => Head Office
[task] => DELIVERY
[priority] => NORMAL
[vehicleRequirements] => Array
(
)
[additionalInstructions] =>
[clientName] => Test Company
[contactPerson] => Ian Hitchman
[contactNumber] =>
[contactEmail] => ianhitchman@fastmail.com
[additionalContactEmails] =>
[notificationPreferences] => Array
(
[allowSMS] => 1
[allowEmail] => 1
)
[customerLocation] => Array
(
[referenceNumber] => 499326000046148042
[name] => test, 21 Broadlands, Benfleet
[address] => SS7 3BD
[w3wAddress] =>
[latitude] => 51.56741
[longitude] => 0.58135
)
[territoryReference] =>
[stopSequence] => ANY
[timeWindows] => Array
(
[0] => Array
(
[start] => 2025-09-17T06:00:00+01:00
[end] => 2025-09-17T20:00:00+01:00
)
)
[orderDate] =>
[capacity1] => 0
[capacity2] => 0
[price] => 0
[operationDuration] => 300
[customFields] => Array
(
[7DCEmptiesGas] => 8
[7DCEmpties] => 8
[7DCPayment] => testtest
)
[orderItems] => Array
(
[0] => Array
(
[itemReferenceNumber] => 499326000000060809
[orderReferenceNumber] => SO-00437
[name] => Adblue
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 15.95
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 15.95
[height] => 0
[width] => 0
[length] => 0
[weight] => 0
[volume] => 0
)
)
[widgetTrackingDetails] =>
)
)
MaxOptra schedule details: Array
(
[orderReferenceNumber] => SO-00437
[assignedDriverReference] => TEST
[assignedDriverName] => TEST
[assignedVehicleReference] => TEST
[assignedVehicleName] => TEST
[plannedArrivalTime] => 2025-09-17T06:00:00+01:00
[plannedCompletionTime] => 2025-09-17T06:05:00+01:00
[stopNumber] => 1
[totalStopsInRun] => 1
[runNumber] => 1
[runReference] => c43bf043768e43649ab6675232f90421
[eta] =>
[factArrivalTimeGPS] =>
[factCompletionTimeGPS] =>
[factArrivalTimeReported] =>
[factCompletionTimeReported] =>
[failReason] =>
[failComment] =>
[status] => LOCKED
[driver] => TEST
[arrival_planned] => 2025-09-17T06:00:00+01:00
[arrival_estimated] =>
[arrival_actual] =>
[totalStops] => 1
)
Updating order: SO-00437
Update ID 7il1ekrua7cvsaq with: Array
(
[custom] => Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => testtest
)
[1] => Array
(
[id] => yt2l2o3cacu43wf
[value] => 8
)
[2] => Array
(
[id] => j381owny56syys6
[value] => 8
)
)
[driverRef] => TEST
[vehicleRef] => TEST
[seqNo] => 1
)
Updated order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => ianhitchman@fastmail.com
[contactName] => Ian Hitchman
[contactNotes] =>
[contactPhone] =>
[created] => 2025-09-15 08:32:26.889Z
[custom] => Array
(
[0] => stdClass Object
(
[id] => nc7sndad5bhvi5x
[value] => testtest
)
[1] => stdClass Object
(
[id] => yt2l2o3cacu43wf
[value] => 8
)
[2] => stdClass Object
(
[id] => j381owny56syys6
[value] => 8
)
)
[customer] => kbgli4rhh2bs7qd
[deliveryCity] => Benfleet
[deliveryCounty] =>
[deliveryEnd] => 2025-09-17 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => test
[deliveryPostcode] => SS7 3BD
[deliveryStart] => 2025-09-17 00:00:00.000Z
[deliveryStreet] => 21 Broadlands
[description] =>
[driverRef] => TEST
[externalCustomerId] => 499326000046148036
[externalLocationId] => 499326000046148042
[externalOrderId] => 499326000048033346
[id] => 7il1ekrua7cvsaq
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] =>
[pendingSyncToSource] => 1
[ref] =>
[refId] => SO-00437
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Pending
[syncInCreated] => 2025-09-15 07:11:00.000Z
[syncInStatus] => confirmed
[syncInUpdated] => 2025-09-15 08:58:33.000Z
[syncOutStatus] => UNALLOCATED
[syncOutUpdated] => 2025-09-15 08:52:00.000Z
[timeWindows] => Array
(
)
[title] => Test Company
[totalValue] => 15.95
[totalWeight] => 0
[type] =>
[updated] => 2025-09-15 09:08:35.960Z
[vehicleRef] => TEST
[what3Words] =>
)
Updating source from local order
Getting custom fields
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-07-18 02:35:52.065Z
[id] => nc7sndad5bhvi5x
[inCollection] => orders
[inField] => paymentMethod
[mappedField] => 7DCPayment
[name] => Payment method
[sourceField] =>
[syncFromSource] => 1
[syncToSource] =>
[type] => text
[updated] => 2025-07-18 02:35:52.065Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
Processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:03:34.631Z
[id] => pcn96l3kgkps4az
[inCollection] => orders
[inField] => driverRef
[mappedField] =>
[name] => Delivery driver
[sourceField] => cf_delivery_driver
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:03:34.631Z
)
Processing field
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-08 04:52:51.399Z
[id] => hhrzcmytzs8p3kw
[inCollection] => orders
[inField] => seqNo
[mappedField] =>
[name] => Run number
[sourceField] => cf_run_number
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-08 04:52:51.399Z
)
Processing field
Finished processing field
Continue
Updating source order: Array
(
[custom_fields] => Array
(
[0] => Array
(
[api_name] => cf_delivery_driver
[value] => TEST
)
[1] => Array
(
[api_name] => cf_run_number
[value] => 1
)
)
)
Update result: Array
(
[code] => 0
[message] => Sales Order has been updated.
[salesorder] => Array
(
[salesorder_id] => 499326000048033346
[is_viewed_in_mail] =>
[mail_first_viewed_time] =>
[mail_last_viewed_time] =>
[documents] => Array
(
)
[zcrm_potential_id] =>
[zcrm_potential_name] =>
[salesorder_number] => SO-00437
[date] => 2025-09-17
[offline_created_date_with_time] =>
[tracking_url] =>
[has_discount] =>
[status] => confirmed
[color_code] =>
[current_sub_status_id] =>
[current_sub_status] => confirmed
[sub_statuses] => Array
(
)
[shipment_date] => 2025-09-22
[reference_number] =>
[customer_id] => 499326000046148036
[customer_name] => Test Company
[contact_persons] => Array
(
[0] => 499326000046148038
)
[contact_persons_associated] => Array
(
[0] => Array
(
[contact_person_id] => 499326000046148038
[contact_person_email] => ianhitchman@fastmail.com
[first_name] => Ian
[last_name] => Hitchman
[mobile] =>
[communication_preference] => Array
(
[is_email_enabled] => 1
)
)
)
[contact_person_details] => Array
(
[0] => Array
(
[phone] => +64-2041132636
[mobile] =>
[last_name] => Hitchman
[contact_person_id] => 499326000046148038
[first_name] => Ian
[email] => ianhitchman@fastmail.com
)
)
[source] => Client
[contact_category] => uk
[is_taxable] =>
[has_shipping_address] => 1
[currency_id] => 499326000000000065
[currency_code] => GBP
[currency_symbol] => £
[exchange_rate] => 1
[is_discount_before_tax] => 1
[discount_type] => item_level
[estimate_id] =>
[delivery_method] =>
[delivery_method_id] =>
[vat_treatment] => uk
[is_inclusive_tax] =>
[tax_rounding] => entity_level
[tax_override_preference] => no_override
[order_status] => confirmed
[invoiced_status] => not_invoiced
[paid_status] => unpaid
[shipped_status] => pending
[sales_channel] => direct_sales
[sales_channel_formatted] => Direct Sales
[account_identifier] =>
[integration_id] =>
[is_dropshipped] =>
[is_backordered] =>
[is_manually_fulfilled] =>
[can_manually_fulfill] => 1
[has_qty_cancelled] =>
[is_reverse_charge_applied] =>
[shipping_details] => Array
(
)
[created_by_email] => warehousing@7daycellar.co.uk
[created_by_name] => Admin Profile
[branch_id] => 499326000023111007
[branch_name] => Head Office
[location_id] => 499326000023111007
[location_name] => Head Office
[total_quantity] => 1
[line_items] => Array
(
[0] => Array
(
[line_item_id] => 499326000048033356
[variant_id] => 499326000000060809
[track_batch_number] =>
[item_id] => 499326000000060809
[is_returnable] =>
[product_id] => 499326000000060809
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] =>
[name] => Adblue
[group_name] => Adblue
[description] => Adblue
[item_order] => 1
[bcy_rate] => 15.95
[rate] => 15.95
[sales_rate] => 15.95
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] =>
[tax_name] =>
[tax_type] => tax
[tax_percentage] => 0
[line_item_taxes] => Array
(
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 15.95
[item_sub_total] => 15.95
[product_type] => goods
[line_item_type] => goods
[item_type] => sales_and_purchases
[is_invoiced] =>
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] =>
[image_type] =>
[document_id] =>
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 0
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] =>
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
)
[is_advanced_tracking_missing] =>
[entity_tags] =>
[submitter_id] =>
[approver_id] =>
[submitted_date] =>
[submitted_by] =>
[submitted_by_name] =>
[submitted_by_email] =>
[submitted_by_photo_url] =>
[price_precision] => 2
[is_emailed] => 1
[has_unconfirmed_line_item] =>
[picklists] => Array
(
)
[purchaseorders] => Array
(
)
[locations] => Array
(
[0] => Array
(
[location_id] => 499326000023111007
[location_name] => Head Office
[status] => active
)
[1] => Array
(
[location_id] => 499326000041689155
[location_name] => Bason Bridge Brewery Duty Bonded Warehouse
[status] => active
)
)
[billing_address_id] => 499326000046148040
[billing_address] => Array
(
[address] => 200 Broadlands
[street2] =>
[city] => Benfleet
[state] => Essex
[zip] => SS7 3BD
[country] => United Kingdom
[country_code] => GB
[county] =>
[state_code] => ESS
[fax] =>
[phone] =>
[attention] =>
)
[shipping_address_id] => 499326000046148042
[shipping_address] => Array
(
[company_name] =>
[address] => 21 Broadlands
[street2] =>
[city] => Benfleet
[state] =>
[zip] => SS7 3BD
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] => 07764485844
[attention] => test
)
[is_test_order] =>
[notes] => Account Name: 7 Day Cellar Ltd
Sort Code: 09-01-30
Account No: 10888924
[terms] =>
[payment_terms] => 0
[payment_terms_label] => Due On Receipt
[custom_fields] => Array
(
[0] => Array
(
[field_id] => 499326000042690007
[customfield_id] => 499326000042690007
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 1
[label] => Automation Required
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[is_color_code_supported] =>
[api_name] => cf__ulrql_automation_required
[show_in_all_pdf] =>
[selected_option_id] => 499326000042690011
[value_formatted] => Yes
[search_entity] => salesorder
[data_type] => dropdown
[placeholder] => cf__ulrql_automation_required
[value] => Yes
[is_dependent_field] =>
)
[1] => Array
(
[field_id] => 499326000046047547
[customfield_id] => 499326000046047547
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 2
[label] => Keg Empties Collected
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_empties_collected
[show_in_all_pdf] =>
[value_formatted] => 7
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_empties_collected
[value] => 7
[is_dependent_field] =>
)
[2] => Array
(
[field_id] => 499326000046252153
[customfield_id] => 499326000046252153
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 3
[label] => Gas Empties Collected
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_gas_empties_collected
[show_in_all_pdf] =>
[value_formatted] => 7
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_gas_empties_collected
[value] => 7
[is_dependent_field] =>
)
[3] => Array
(
[field_id] => 499326000046252173
[customfield_id] => 499326000046252173
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 4
[label] => Delivery Driver
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_driver
[show_in_all_pdf] =>
[value_formatted] => TEST
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_driver
[value] => TEST
[is_dependent_field] =>
)
[4] => Array
(
[field_id] => 499326000046717945
[customfield_id] => 499326000046717945
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 5
[label] => GoCardless Mandate
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_gocardless_mandate
[show_in_all_pdf] =>
[value_formatted] => False
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_gocardless_mandate
[value] => False
[is_dependent_field] =>
)
[5] => Array
(
[field_id] => 499326000047922345
[customfield_id] => 499326000047922345
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 6
[label] => Run Number
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_run_number
[show_in_all_pdf] =>
[value_formatted] => 1
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_run_number
[value] => 1
[is_dependent_field] =>
)
)
[custom_field_hash] => Array
(
[cf__ulrql_automation_required] => Yes
[cf__ulrql_automation_required_unformatted] => Yes
[cf_empties_collected] => 7
[cf_empties_collected_unformatted] => 7
[cf_gas_empties_collected] => 7
[cf_gas_empties_collected_unformatted] => 7
[cf_delivery_driver] => TEST
[cf_delivery_driver_unformatted] => TEST
[cf_gocardless_mandate] => False
[cf_gocardless_mandate_unformatted] => False
[cf_run_number] => 1
[cf_run_number_unformatted] => 1
)
[template_id] => 499326000000000111
[template_name] => Standard Template
[page_width] => 8.27in
[page_height] => 11.69in
[orientation] => portrait
[template_type] => standard
[created_time] => 2025-09-15T08:11:00+0100
[last_modified_time] => 2025-09-15T10:08:36+0100
[created_by_id] => 499326000044410001
[created_date] => 2025-09-15
[last_modified_by_id] => 499326000044410001
[attachment_name] =>
[can_send_in_mail] =>
[salesperson_id] =>
[salesperson_name] =>
[merchant_id] =>
[merchant_name] =>
[pickup_location_id] =>
[discount] => 0
[discount_applied_on_amount] => 0
[is_adv_tracking_in_package] =>
[shipping_charge_taxes] => Array
(
)
[lock_details] => Array
(
[can_lock] =>
)
[locked_actions] => Array
(
)
[shipping_charge_tax_id] =>
[shipping_charge_tax_name] =>
[shipping_charge_tax_type] =>
[shipping_charge_tax_percentage] =>
[shipping_charge_tax_exemption_id] =>
[shipping_charge_tax_exemption_code] =>
[shipping_charge_tax] =>
[bcy_shipping_charge_tax] =>
[shipping_charge_exclusive_of_tax] => 0
[shipping_charge_inclusive_of_tax] => 0
[shipping_charge_tax_formatted] =>
[shipping_charge_exclusive_of_tax_formatted] => £0.00
[shipping_charge_inclusive_of_tax_formatted] => £0.00
[shipping_charge] => 0
[bcy_shipping_charge] => 0
[adjustment] => 0
[bcy_adjustment] => 0
[adjustment_description] => Adjustment
[roundoff_value] => 0
[transaction_rounding_type] => no_rounding
[rounding_mode] => round_half_up
[bcy_rounding_mode] => round_half_up
[sub_total] => 15.95
[bcy_sub_total] => 15.95
[sub_total_inclusive_of_tax] => 0
[sub_total_exclusive_of_discount] => 15.95
[discount_total] => 0
[bcy_discount_total] => 0
[discount_percent] => 0
[tax_total] => 0
[bcy_tax_total] => 0
[total] => 15.95
[computation_type] => basic
[bcy_total] => 15.95
[reverse_charge_tax_total] => 0
[taxes] => Array
(
)
[tds_calculation_type] => tds_item_level
[packages] => Array
(
)
[so_cycle_preference] => Array
(
[is_feature_enabled] => 1
[socycle_status] => not_triggered
[can_create_invoice] => 1
[can_create_package] =>
[can_create_shipment] =>
[shipment_preference] => Array
(
[default_carrier] =>
[send_notification] =>
[deliver_shipments] =>
)
[invoice_preference] => Array
(
[mark_as_sent] =>
[record_payment] =>
[payment_mode_id] => 499326000000000199
[payment_account_id] => 499326000000000349
)
)
[invoices] => Array
(
)
[can_show_kit_return] =>
[is_kit_partial_return] =>
[salesreturns] => Array
(
)
[payments] => Array
(
)
[creditnotes] => Array
(
)
[refunds] => Array
(
)
[contact] => Array
(
[customer_balance] => 130.8
[credit_limit] => 0
[unused_customer_credits] => 0
[is_credit_limit_migration_completed] => 1
)
[balance] => 15.95
[approvers_list] => Array
(
)
[is_scheduled_for_quick_shipment_create] =>
)
)
Finished at 2025-09-15 10:08:36
Webhook - sourceUpdated script called at 2025-09-15 10:08:49
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048033346","salesorder_no":"SO-00437","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048033346","salesorder_no":"SO-00437","status":"open"}}
EXT ID: 499326000048033346
REF: SO-00437
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048033346 (REF SO-00437)
Updates pending to source for order: 499326000048033346
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-09-15 08:58:33.000Z,
source updated = 2025-09-15T10:08:36+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => ianhitchman@fastmail.com
[contactName] => Ian Hitchman
[notes] =>
[externalOrderId] => 499326000048033346
[refId] => SO-00437
[externalCustomerId] => 499326000046148036
[externalLocationId] => 499326000046148042
[title] => Test Company
[deliveryStart] => 2025-09-17
[deliveryEnd] => 2025-09-17
[totalValue] => 15.95
[totalWeight] => 0
[syncInCreated] => 2025-09-15T08:11:00+0100
[syncInUpdated] => 2025-09-15T10:08:36+0100
[syncInStatus] => confirmed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048033356
[externalProductId] => 499326000000060809
[sku] =>
[title] => Adblue
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 15.95
[price] => 15.95
)
)
[deliveryName] => test
[deliveryStreet] => 21 Broadlands
[deliveryCity] => Benfleet
[deliveryCounty] =>
[deliveryPostcode] => SS7 3BD
)
Webhook - sourceUpdated script called at 2025-09-15 10:09:19
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048033346","salesorder_no":"SO-00437","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048033346","salesorder_no":"SO-00437","status":"open"}}
EXT ID: 499326000048033346
REF: SO-00437
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048033346 (REF SO-00437)
Local order updated = 2025-09-15 08:58:33.000Z,
source updated = 2025-09-15T10:08:49+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => ianhitchman@fastmail.com
[contactName] => Ian Hitchman
[notes] =>
[externalOrderId] => 499326000048033346
[refId] => SO-00437
[externalCustomerId] => 499326000046148036
[externalLocationId] => 499326000046148042
[title] => Test Company
[deliveryStart] => 2025-09-17
[deliveryEnd] => 2025-09-17
[totalValue] => 15.95
[totalWeight] => 0
[syncInCreated] => 2025-09-15T08:11:00+0100
[syncInUpdated] => 2025-09-15T10:08:49+0100
[syncInStatus] => confirmed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048033356
[externalProductId] => 499326000000060809
[sku] =>
[title] => Adblue
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 15.95
[price] => 15.95
)
)
[deliveryName] => test
[deliveryStreet] => 21 Broadlands
[deliveryCity] => Benfleet
[deliveryCounty] =>
[deliveryPostcode] => SS7 3BD
)
Webhook - sourceUpdated script called at 2025-09-15 10:10:22
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048033346","salesorder_no":"SO-00437","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048033346","salesorder_no":"SO-00437","status":"open"}}
EXT ID: 499326000048033346
REF: SO-00437
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048033346 (REF SO-00437)
Local order updated = 2025-09-15 08:58:33.000Z,
source updated = 2025-09-15T10:10:04+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => ianhitchman@fastmail.com
[contactName] => Ian Hitchman
[notes] =>
[externalOrderId] => 499326000048033346
[refId] => SO-00437
[externalCustomerId] => 499326000046148036
[externalLocationId] => 499326000046148042
[title] => Test Company
[deliveryStart] => 2025-09-17
[deliveryEnd] => 2025-09-17
[totalValue] => 15.95
[totalWeight] => 0
[syncInCreated] => 2025-09-15T08:11:00+0100
[syncInUpdated] => 2025-09-15T10:10:04+0100
[syncInStatus] => confirmed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048033356
[externalProductId] => 499326000000060809
[sku] =>
[title] => Adblue
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 15.95
[price] => 15.95
)
)
[deliveryName] => test
[deliveryStreet] => 21 Broadlands
[deliveryCity] => Benfleet
[deliveryCounty] =>
[deliveryPostcode] => SS7 3BD
)
Webhook - sourceUpdated script called at 2025-09-15 10:13:55
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048033346","salesorder_no":"SO-00437","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048033346","salesorder_no":"SO-00437","status":"open"}}
EXT ID: 499326000048033346
REF: SO-00437
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048033346 (REF SO-00437)
Local order updated = 2025-09-15 08:58:33.000Z,
source updated = 2025-09-15T10:13:35+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => ianhitchman@fastmail.com
[contactName] => Ian Hitchman
[notes] =>
[externalOrderId] => 499326000048033346
[refId] => SO-00437
[externalCustomerId] => 499326000046148036
[externalLocationId] => 499326000046148042
[title] => Test Company
[deliveryStart] => 2025-09-17
[deliveryEnd] => 2025-09-17
[totalValue] => 15.95
[totalWeight] => 0
[syncInCreated] => 2025-09-15T08:11:00+0100
[syncInUpdated] => 2025-09-15T10:13:35+0100
[syncInStatus] => confirmed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048033356
[externalProductId] => 499326000000060809
[sku] =>
[title] => Adblue
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 15.95
[price] => 15.95
)
)
[deliveryName] => test
[deliveryStreet] => 21 Broadlands
[deliveryCity] => Benfleet
[deliveryCounty] =>
[deliveryPostcode] => SS7 3BD
)
Webhook - sourceUpdated script called at 2025-09-15 10:17:59
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048033346","salesorder_no":"SO-00437","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048033346","salesorder_no":"SO-00437","status":"open"}}
EXT ID: 499326000048033346
REF: SO-00437
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048033346 (REF SO-00437)
Local order updated = 2025-09-15 08:58:33.000Z,
source updated = 2025-09-15T10:17:35+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => ianhitchman@fastmail.com
[contactName] => Ian Hitchman
[notes] =>
[externalOrderId] => 499326000048033346
[refId] => SO-00437
[externalCustomerId] => 499326000046148036
[externalLocationId] => 499326000046148042
[title] => Test Company
[deliveryStart] => 2025-09-17
[deliveryEnd] => 2025-09-17
[totalValue] => 15.95
[totalWeight] => 0
[syncInCreated] => 2025-09-15T08:11:00+0100
[syncInUpdated] => 2025-09-15T10:17:35+0100
[syncInStatus] => confirmed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048033356
[externalProductId] => 499326000000060809
[sku] =>
[title] => Adblue
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 15.95
[price] => 15.95
)
)
[deliveryName] => test
[deliveryStreet] => 21 Broadlands
[deliveryCity] => Benfleet
[deliveryCounty] =>
[deliveryPostcode] => SS7 3BD
)
Does this order already exist?
Yes
Webhook - sourceUpdated script called at 2025-09-15 10:28:14
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048033346","salesorder_no":"SO-00437","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048033346","salesorder_no":"SO-00437","status":"open"}}
EXT ID: 499326000048033346
REF: SO-00437
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048033346 (REF SO-00437)
Local order updated = 2025-09-15 08:58:33.000Z,
source updated = 2025-09-15T10:27:58+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => ianhitchman@fastmail.com
[contactName] => Ian Hitchman
[notes] =>
[externalOrderId] => 499326000048033346
[refId] => SO-00437
[externalCustomerId] => 499326000046148036
[externalLocationId] => 499326000046148042
[title] => Test Company
[deliveryStart] => 2025-09-17
[deliveryEnd] => 2025-09-17
[totalValue] => 15.95
[totalWeight] => 0
[syncInCreated] => 2025-09-15T08:11:00+0100
[syncInUpdated] => 2025-09-15T10:27:58+0100
[syncInStatus] => confirmed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048033356
[externalProductId] => 499326000000060809
[sku] =>
[title] => Adblue
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 15.95
[price] => 15.95
)
)
[deliveryName] => test
[deliveryStreet] => 21 Broadlands
[deliveryCity] => Benfleet
[deliveryCounty] =>
[deliveryPostcode] => SS7 3BD
)
Does this order already exist?
Yes
Webhook - sourceUpdated script called at 2025-09-15 10:30:46
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048033346","salesorder_no":"SO-00437","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048033346","salesorder_no":"SO-00437","status":"open"}}
EXT ID: 499326000048033346
REF: SO-00437
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048033346 (REF SO-00437)
Local order updated = 2025-09-15 08:58:33.000Z,
source updated = 2025-09-15T10:30:24+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => ianhitchman@fastmail.com
[contactName] => Ian Hitchman
[notes] =>
[externalOrderId] => 499326000048033346
[refId] => SO-00437
[externalCustomerId] => 499326000046148036
[externalLocationId] => 499326000046148042
[title] => Test Company
[deliveryStart] => 2025-09-17
[deliveryEnd] => 2025-09-17
[totalValue] => 15.95
[totalWeight] => 0
[syncInCreated] => 2025-09-15T08:11:00+0100
[syncInUpdated] => 2025-09-15T10:30:24+0100
[syncInStatus] => confirmed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048033356
[externalProductId] => 499326000000060809
[sku] =>
[title] => Adblue
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 15.95
[price] => 15.95
)
)
[deliveryName] => test
[deliveryStreet] => 21 Broadlands
[deliveryCity] => Benfleet
[deliveryCounty] =>
[deliveryPostcode] => SS7 3BD
)
Does this order already exist?
Yes
Existing custom fields: Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => testtest
)
[1] => Array
(
[id] => yt2l2o3cacu43wf
[value] => 8
)
[2] => Array
(
[id] => j381owny56syys6
[value] => 8
)
)
Is array
Merging custom fields...
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => ianhitchman@fastmail.com
[contactName] => Ian Hitchman
[notes] =>
[externalOrderId] => 499326000048033346
[refId] => SO-00437
[externalCustomerId] => 499326000046148036
[externalLocationId] => 499326000046148042
[title] => Test Company
[deliveryStart] => 2025-09-17
[deliveryEnd] => 2025-09-17
[totalValue] => 15.95
[totalWeight] => 0
[syncInCreated] => 2025-09-15T08:11:00+0100
[syncInUpdated] => 2025-09-15T10:30:24+0100
[syncInStatus] => confirmed
[deliveryName] => test
[deliveryStreet] => 21 Broadlands
[deliveryCity] => Benfleet
[deliveryCounty] =>
[deliveryPostcode] => SS7 3BD
[syncOutUpdated] => 2025-09-15T10:30:47+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Ian Hitchman
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => [{"id":"nc7sndad5bhvi5x","value":"testtest"},{"id":"yt2l2o3cacu43wf","value":"8"},{"id":"j381owny56syys6","value":"8"}]
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000046148036
Getting products
Updating product 499326000000060809
Updating order product 499326000048033356
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00437
Processing order: 7il1ekrua7cvsaq, ref SO-00437
Syncing SO-00437
Using default start and end times
Time window: 2025-09-17T06:00:00+01:00 - 2025-09-17T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 15/09/2025 10:08 - Local updated: 2025-09-15 09:30:47.000Z - Source updated: 2025-09-15 09:30:24.000Z
Changed? yes
Current MaxOptra status: LOCKED
Completed? yes
Previous status: UNALLOCATED
Status changed - mark for sync back to source
Updating local order POD and attachments...
Don't have local POD - fetching...
No POD found
Getting attachments for SO-00437...
No new attachments found
Updating custom fields locally
Is allocated? yes
Local updated: 2025-09-15 09:30:47.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Remote order is locked - will be replaced
Communication error with MaxOptra (412)
orders/SO-00437
https://7daycellar.maxoptra.com/api/v6/orders/SO-00437
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000046148042
Array
(
[referenceNumber] => 499326000046148042
[name] => test, 21 Broadlands, Benfleet
[address] => SS7 3BD
)
499326000046148042
Error updating SO-00437
Remote order is locked. Skipping.
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00437
Done all.
Finished at 2025-09-15 10:30:49
Webhook - sourceUpdated script called at 2025-09-15 10:38:56
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048033346","salesorder_no":"SO-00437","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048033346","salesorder_no":"SO-00437","status":"open"}}
EXT ID: 499326000048033346
REF: SO-00437
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048033346 (REF SO-00437)
Updates pending to source for order: 499326000048033346
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-09-15 09:30:24.000Z,
source updated = 2025-09-15T10:38:44+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => ianhitchman@fastmail.com
[contactName] => Ian Hitchman
[notes] =>
[externalOrderId] => 499326000048033346
[refId] => SO-00437
[externalCustomerId] => 499326000046148036
[externalLocationId] => 499326000046148042
[title] => Test Company
[deliveryStart] => 2025-09-17
[deliveryEnd] => 2025-09-17
[totalValue] => 15.95
[totalWeight] => 0
[syncInCreated] => 2025-09-15T08:11:00+0100
[syncInUpdated] => 2025-09-15T10:38:44+0100
[syncInStatus] => confirmed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048033356
[externalProductId] => 499326000000060809
[sku] =>
[title] => Adblue
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 15.95
[price] => 15.95
)
)
[deliveryName] => test
[deliveryStreet] => 21 Broadlands
[deliveryCity] => Benfleet
[deliveryCounty] =>
[deliveryPostcode] => SS7 3BD
)
Does this order already exist?
Yes
Existing custom fields: Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => testtest
)
[1] => Array
(
[id] => yt2l2o3cacu43wf
[value] => 8
)
[2] => Array
(
[id] => j381owny56syys6
[value] => 8
)
)
Is array
Merging custom fields...
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => ianhitchman@fastmail.com
[contactName] => Ian Hitchman
[notes] =>
[externalOrderId] => 499326000048033346
[refId] => SO-00437
[externalCustomerId] => 499326000046148036
[externalLocationId] => 499326000046148042
[title] => Test Company
[deliveryStart] => 2025-09-17
[deliveryEnd] => 2025-09-17
[totalValue] => 15.95
[totalWeight] => 0
[syncInCreated] => 2025-09-15T08:11:00+0100
[syncInUpdated] => 2025-09-15T10:38:44+0100
[syncInStatus] => confirmed
[deliveryName] => test
[deliveryStreet] => 21 Broadlands
[deliveryCity] => Benfleet
[deliveryCounty] =>
[deliveryPostcode] => SS7 3BD
[syncOutUpdated] => 2025-09-15T10:38:57+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Ian Hitchman
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => [{"id":"nc7sndad5bhvi5x","value":"testtest"},{"id":"yt2l2o3cacu43wf","value":"8"},{"id":"j381owny56syys6","value":"8"}]
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000046148036
Getting products
Updating product 499326000000060809
Updating order product 499326000048033356
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00437
Processing order: 7il1ekrua7cvsaq, ref SO-00437
Syncing SO-00437
Using default start and end times
Time window: 2025-09-17T06:00:00+01:00 - 2025-09-17T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 15/09/2025 10:08 - Local updated: 2025-09-15 09:38:57.000Z - Source updated: 2025-09-15 09:38:44.000Z
Changed? yes
Current MaxOptra status: LOCKED
Completed? yes
Previous status: LOCKED
Updating local order POD and attachments...
Don't have local POD - fetching...
No POD found
Getting attachments for SO-00437...
No new attachments found
Updating custom fields locally
Is allocated? yes
Local updated: 2025-09-15 09:38:57.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Remote order is locked - will be replaced
Communication error with MaxOptra (412)
orders/SO-00437
https://7daycellar.maxoptra.com/api/v6/orders/SO-00437
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000046148042
Array
(
[referenceNumber] => 499326000046148042
[name] => test, 21 Broadlands, Benfleet
[address] => SS7 3BD
)
499326000046148042
Error updating SO-00437
Remote order is locked. Skipping.
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00437
Done all.
Finished at 2025-09-15 10:38:59
Webhook - sourceUpdated script called at 2025-09-15 10:39:26
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048033346","salesorder_no":"SO-00437","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048033346","salesorder_no":"SO-00437","status":"open"}}
EXT ID: 499326000048033346
REF: SO-00437
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048033346 (REF SO-00437)
Updates pending to source for order: 499326000048033346
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-09-15 09:38:44.000Z,
source updated = 2025-09-15T10:38:57+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00437
Processing order: 7il1ekrua7cvsaq, ref SO-00437
Syncing SO-00437
Using default start and end times
Time window: 2025-09-17T06:00:00+01:00 - 2025-09-17T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 15/09/2025 10:08 - Local updated: 2025-09-15 09:08:00.000Z - Source updated: 2025-09-15 09:38:44.000Z
Changed? yes
Current MaxOptra status: LOCKED
Completed? yes
Previous status: LOCKED
Updating local order POD and attachments...
Don't have local POD - fetching...
No POD found
Getting attachments for SO-00437...
No new attachments found
Webhook - sourceUpdated script called at 2025-09-15 10:39:56
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048033346","salesorder_no":"SO-00437","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048033346","salesorder_no":"SO-00437","status":"open"}}
EXT ID: 499326000048033346
REF: SO-00437
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048033346 (REF SO-00437)
Updates pending to source for order: 499326000048033346
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-09-15 09:38:44.000Z,
source updated = 2025-09-15T10:39:27+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00437
Processing order: 7il1ekrua7cvsaq, ref SO-00437
Syncing SO-00437
Using default start and end times
Time window: 2025-09-17T06:00:00+01:00 - 2025-09-17T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 15/09/2025 10:08 - Local updated: 2025-09-15 09:08:00.000Z - Source updated: 2025-09-15 09:38:44.000Z
Changed? yes
Current MaxOptra status: LOCKED
Completed? yes
Previous status: LOCKED
Updating local order POD and attachments...
Don't have local POD - fetching...
No POD found
Getting attachments for SO-00437...
No new attachments found
Updating custom fields locally
Is allocated? yes
Local updated: 2025-09-15 09:08:00.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Remote order is locked - will be replaced
Communication error with MaxOptra (412)
orders/SO-00437
https://7daycellar.maxoptra.com/api/v6/orders/SO-00437
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000046148042
Array
(
[referenceNumber] => 499326000046148042
[name] => test, 21 Broadlands, Benfleet
[address] => SS7 3BD
)
499326000046148042
Error updating SO-00437
Remote order is locked. Skipping.
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00437
Done all.
Finished at 2025-09-15 10:39:59
Webhook - sourceUpdated script called at 2025-09-15 10:40:26
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048033346","salesorder_no":"SO-00437","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048033346","salesorder_no":"SO-00437","status":"open"}}
EXT ID: 499326000048033346
REF: SO-00437
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048033346 (REF SO-00437)
Updates pending to source for order: 499326000048033346
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-09-15 09:38:44.000Z,
source updated = 2025-09-15T10:40:22+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => ianhitchman@fastmail.com
[contactName] => Ian Hitchman
[notes] =>
[externalOrderId] => 499326000048033346
[refId] => SO-00437
[externalCustomerId] => 499326000046148036
[externalLocationId] => 499326000046148042
[title] => Test Company
[deliveryStart] => 2025-09-17
[deliveryEnd] => 2025-09-17
[totalValue] => 15.95
[totalWeight] => 0
[syncInCreated] => 2025-09-15T08:11:00+0100
[syncInUpdated] => 2025-09-15T10:40:22+0100
[syncInStatus] => confirmed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048033356
[externalProductId] => 499326000000060809
[sku] =>
[title] => Adblue
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 15.95
[price] => 15.95
)
)
[deliveryName] => test
[deliveryStreet] => 21 Broadlands
[deliveryCity] => Benfleet
[deliveryCounty] =>
[deliveryPostcode] => SS7 3BD
)
Does this order already exist?
Yes
Existing custom fields: Array
(
[yt2l2o3cacu43wf] => testtest
[j381owny56syys6] => testtest
[pcn96l3kgkps4az] =>
[hhrzcmytzs8p3kw] =>
)
Is array
Merging custom fields...
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => ianhitchman@fastmail.com
[contactName] => Ian Hitchman
[notes] =>
[externalOrderId] => 499326000048033346
[refId] => SO-00437
[externalCustomerId] => 499326000046148036
[externalLocationId] => 499326000046148042
[title] => Test Company
[deliveryStart] => 2025-09-17
[deliveryEnd] => 2025-09-17
[totalValue] => 15.95
[totalWeight] => 0
[syncInCreated] => 2025-09-15T08:11:00+0100
[syncInUpdated] => 2025-09-15T10:40:22+0100
[syncInStatus] => confirmed
[deliveryName] => test
[deliveryStreet] => 21 Broadlands
[deliveryCity] => Benfleet
[deliveryCounty] =>
[deliveryPostcode] => SS7 3BD
[syncOutUpdated] => 2025-09-15T10:40:28+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Ian Hitchman
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => {"yt2l2o3cacu43wf":"testtest","j381owny56syys6":"testtest","pcn96l3kgkps4az":null,"hhrzcmytzs8p3kw":null}
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000046148036
Getting products
Updating product 499326000000060809
Updating order product 499326000048033356
Updated
Removing deleted order items
Done
Finished at 2025-09-15 10:40:28
Webhook - sourceUpdated script called at 2025-09-15 10:40:56
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048033346","salesorder_no":"SO-00437","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048033346","salesorder_no":"SO-00437","status":"open"}}
EXT ID: 499326000048033346
REF: SO-00437
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048033346 (REF SO-00437)
Local order updated = 2025-09-15 09:40:22.000Z,
source updated = 2025-09-15T10:40:27+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Finished at 2025-09-15 10:40:56
Webhook - sourceUpdated script called at 2025-09-15 10:41:07
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048033346","salesorder_no":"SO-00437","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048033346","salesorder_no":"SO-00437","status":"open"}}
EXT ID: 499326000048033346
REF: SO-00437
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048033346 (REF SO-00437)
Local order updated = 2025-09-15 09:40:22.000Z,
source updated = 2025-09-15T10:40:27+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Finished at 2025-09-15 10:41:07
Webhook - sourceUpdated script called at 2025-09-15 10:43:15
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048033346","salesorder_no":"SO-00437","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048033346","salesorder_no":"SO-00437","status":"open"}}
EXT ID: 499326000048033346
REF: SO-00437
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048033346 (REF SO-00437)
Local order updated = 2025-09-15 09:40:22.000Z,
source updated = 2025-09-15T10:43:13+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => ianhitchman@fastmail.com
[contactName] => Ian Hitchman
[notes] =>
[externalOrderId] => 499326000048033346
[refId] => SO-00437
[externalCustomerId] => 499326000046148036
[externalLocationId] => 499326000046148042
[title] => Test Company
[deliveryStart] => 2025-09-17
[deliveryEnd] => 2025-09-17
[totalValue] => 15.95
[totalWeight] => 0
[syncInCreated] => 2025-09-15T08:11:00+0100
[syncInUpdated] => 2025-09-15T10:43:13+0100
[syncInStatus] => confirmed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048033356
[externalProductId] => 499326000000060809
[sku] =>
[title] => Adblue
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 15.95
[price] => 15.95
)
)
[deliveryName] => test
[deliveryStreet] => 21 Broadlands
[deliveryCity] => Benfleet
[deliveryCounty] =>
[deliveryPostcode] => SS7 3BD
)
Does this order already exist?
Yes
Existing custom fields: Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => testtest
)
[1] => Array
(
[id] => yt2l2o3cacu43wf
[value] => 8
)
[2] => Array
(
[id] => j381owny56syys6
[value] => 8
)
)
Is array
Merging custom fields...
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => ianhitchman@fastmail.com
[contactName] => Ian Hitchman
[notes] =>
[externalOrderId] => 499326000048033346
[refId] => SO-00437
[externalCustomerId] => 499326000046148036
[externalLocationId] => 499326000046148042
[title] => Test Company
[deliveryStart] => 2025-09-17
[deliveryEnd] => 2025-09-17
[totalValue] => 15.95
[totalWeight] => 0
[syncInCreated] => 2025-09-15T08:11:00+0100
[syncInUpdated] => 2025-09-15T10:43:13+0100
[syncInStatus] => confirmed
[deliveryName] => test
[deliveryStreet] => 21 Broadlands
[deliveryCity] => Benfleet
[deliveryCounty] =>
[deliveryPostcode] => SS7 3BD
[syncOutUpdated] => 2025-09-15T10:43:15+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Ian Hitchman
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => [{"id":"nc7sndad5bhvi5x","value":"testtest"},{"id":"yt2l2o3cacu43wf","value":"8"},{"id":"j381owny56syys6","value":"8"}]
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000046148036
Getting products
Updating product 499326000000060809
Updating order product 499326000048033356
Updated
Removing deleted order items
Done
Finished at 2025-09-15 10:43:16
Webhook - sourceUpdated script called at 2025-09-15 10:46:53
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048033346","salesorder_no":"SO-00437","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048033346","salesorder_no":"SO-00437","status":"open"}}
EXT ID: 499326000048033346
REF: SO-00437
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048033346 (REF SO-00437)
Local order updated = 2025-09-15 09:43:13.000Z,
source updated = 2025-09-15T10:46:51+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => ianhitchman@fastmail.com
[contactName] => Ian Hitchman
[notes] =>
[externalOrderId] => 499326000048033346
[refId] => SO-00437
[externalCustomerId] => 499326000046148036
[externalLocationId] => 499326000046148042
[title] => Test Company
[deliveryStart] => 2025-09-17
[deliveryEnd] => 2025-09-17
[totalValue] => 15.95
[totalWeight] => 0
[syncInCreated] => 2025-09-15T08:11:00+0100
[syncInUpdated] => 2025-09-15T10:46:51+0100
[syncInStatus] => confirmed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048033356
[externalProductId] => 499326000000060809
[sku] =>
[title] => Adblue
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 15.95
[price] => 15.95
)
)
[deliveryName] => test
[deliveryStreet] => 21 Broadlands
[deliveryCity] => Benfleet
[deliveryCounty] =>
[deliveryPostcode] => SS7 3BD
)
Does this order already exist?
Yes
Existing custom fields: Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => testtest
)
[1] => Array
(
[id] => yt2l2o3cacu43wf
[value] => 8
)
[2] => Array
(
[id] => j381owny56syys6
[value] => 8
)
)
Is array
Merging custom fields...
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => ianhitchman@fastmail.com
[contactName] => Ian Hitchman
[notes] =>
[externalOrderId] => 499326000048033346
[refId] => SO-00437
[externalCustomerId] => 499326000046148036
[externalLocationId] => 499326000046148042
[title] => Test Company
[deliveryStart] => 2025-09-17
[deliveryEnd] => 2025-09-17
[totalValue] => 15.95
[totalWeight] => 0
[syncInCreated] => 2025-09-15T08:11:00+0100
[syncInUpdated] => 2025-09-15T10:46:51+0100
[syncInStatus] => confirmed
[deliveryName] => test
[deliveryStreet] => 21 Broadlands
[deliveryCity] => Benfleet
[deliveryCounty] =>
[deliveryPostcode] => SS7 3BD
[syncOutUpdated] => 2025-09-15T10:46:53+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Ian Hitchman
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => [{"id":"nc7sndad5bhvi5x","value":"testtest"},{"id":"yt2l2o3cacu43wf","value":"8"},{"id":"j381owny56syys6","value":"8"}]
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000046148036
Getting products
Updating product 499326000000060809
Updating order product 499326000048033356
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00437
Processing order: 7il1ekrua7cvsaq, ref SO-00437
Syncing SO-00437
Using default start and end times
Time window: 2025-09-17T06:00:00+01:00 - 2025-09-17T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 15/09/2025 10:08 - Local updated: 2025-09-15 09:46:53.000Z - Source updated: 2025-09-15 09:46:51.000Z
Changed? yes
Current MaxOptra status: LOCKED
Completed? yes
Previous status: LOCKED
Updating local order POD and attachments...
Don't have local POD - fetching...
No POD found
Getting attachments for SO-00437...
No new attachments found
Is allocated? yes
Local updated: 2025-09-15 09:46:53.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Remote order is locked - will be replaced
Communication error with MaxOptra (412)
orders/SO-00437
https://7daycellar.maxoptra.com/api/v6/orders/SO-00437
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000046148042
Array
(
[referenceNumber] => 499326000046148042
[name] => test, 21 Broadlands, Benfleet
[address] => SS7 3BD
)
499326000046148042
Error updating SO-00437
Remote order is locked. Skipping.
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00437
Done all.
Finished at 2025-09-15 10:46:55
Webhook - destinationRunUpdated script called at 2025-09-15 10:47:40
Data: {"payload":{"runReference":"c43bf043768e43649ab6675232f90421","status":"UNLOCKED","vehicleReference":"TEST","shiftDate":"2025-09-17"},"timestamp":"2025-09-15T09:47:40Z"}
JSON: {"payload":{"runReference":"c43bf043768e43649ab6675232f90421","status":"UNLOCKED","vehicleReference":"TEST","shiftDate":"2025-09-17"},"timestamp":"2025-09-15T09:47:40Z"}
Vehicle: TEST
date: 2025-09-17
Status: UNLOCKED
200 response code sent
Processing order: SO-00437
Looking for local order: SO-00437
Updating local order from MaxOptra - current local order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => ianhitchman@fastmail.com
[contactName] => Ian Hitchman
[contactNotes] =>
[contactPhone] =>
[created] => 2025-09-15 08:32:26.889Z
[custom] => Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => testtest
)
[1] => Array
(
[id] => yt2l2o3cacu43wf
[value] => 8
)
[2] => Array
(
[id] => j381owny56syys6
[value] => 8
)
)
[customer] => kbgli4rhh2bs7qd
[deliveryCity] => Benfleet
[deliveryCounty] =>
[deliveryEnd] => 2025-09-17 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => test
[deliveryPostcode] => SS7 3BD
[deliveryStart] => 2025-09-17 00:00:00.000Z
[deliveryStreet] => 21 Broadlands
[description] =>
[driverRef] => TEST
[externalCustomerId] => 499326000046148036
[externalLocationId] => 499326000046148042
[externalOrderId] => 499326000048033346
[id] => 7il1ekrua7cvsaq
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00437
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Delivered
[syncInCreated] => 2025-09-15 07:11:00.000Z
[syncInStatus] => confirmed
[syncInUpdated] => 2025-09-15 09:46:51.000Z
[syncOutStatus] => LOCKED
[syncOutUpdated] => 2025-09-15 09:08:00.000Z
[timeWindows] => Array
(
)
[title] => Test Company
[totalValue] => 15.95
[totalWeight] => 0
[type] =>
[updated] => 2025-09-15 09:46:55.664Z
[vehicleRef] => TEST
[what3Words] =>
)
MaxOptra order details: Array
(
[0] => Array
(
[referenceNumber] => SO-00437
[consignmentReference] =>
[distributionCentreReference] => Head Office
[distributionCentreName] => Head Office
[task] => DELIVERY
[priority] => NORMAL
[vehicleRequirements] => Array
(
)
[additionalInstructions] =>
[clientName] => Test Company
[contactPerson] => Ian Hitchman
[contactNumber] =>
[contactEmail] => ianhitchman@fastmail.com
[additionalContactEmails] =>
[notificationPreferences] => Array
(
[allowSMS] => 1
[allowEmail] => 1
)
[customerLocation] => Array
(
[referenceNumber] => 499326000046148042
[name] => test, 21 Broadlands, Benfleet
[address] => SS7 3BD
[w3wAddress] =>
[latitude] => 51.56741
[longitude] => 0.58135
)
[territoryReference] =>
[stopSequence] => ANY
[timeWindows] => Array
(
[0] => Array
(
[start] => 2025-09-17T06:00:00+01:00
[end] => 2025-09-17T20:00:00+01:00
)
)
[orderDate] =>
[capacity1] => 0
[capacity2] => 0
[price] => 0
[operationDuration] => 300
[customFields] => Array
(
[7DCEmptiesGas] => 8
[7DCEmpties] => 8
[7DCPayment] => testtest
)
[orderItems] => Array
(
[0] => Array
(
[itemReferenceNumber] => 499326000000060809
[orderReferenceNumber] => SO-00437
[name] => Adblue
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 15.95
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 15.95
[height] => 0
[width] => 0
[length] => 0
[weight] => 0
[volume] => 0
)
)
[widgetTrackingDetails] =>
)
)
MaxOptra schedule details: Array
(
[orderReferenceNumber] => SO-00437
[assignedDriverReference] => TEST
[assignedDriverName] => TEST
[assignedVehicleReference] => TEST
[assignedVehicleName] => TEST
[plannedArrivalTime] => 2025-09-17T06:00:00+01:00
[plannedCompletionTime] => 2025-09-17T06:05:00+01:00
[stopNumber] => 1
[totalStopsInRun] => 1
[runNumber] => 1
[runReference] => c43bf043768e43649ab6675232f90421
[eta] =>
[factArrivalTimeGPS] =>
[factCompletionTimeGPS] =>
[factArrivalTimeReported] =>
[factCompletionTimeReported] =>
[failReason] =>
[failComment] =>
[status] => ALLOCATED
[driver] => TEST
[arrival_planned] => 2025-09-17T06:00:00+01:00
[arrival_estimated] =>
[arrival_actual] =>
[totalStops] => 1
)
Updating order: SO-00437
Update ID 7il1ekrua7cvsaq with: Array
(
[custom] => Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => testtest
)
[1] => Array
(
[id] => yt2l2o3cacu43wf
[value] => 8
)
[2] => Array
(
[id] => j381owny56syys6
[value] => 8
)
)
[driverRef] => TEST
[vehicleRef] => TEST
[seqNo] => 1
)
Updated order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => ianhitchman@fastmail.com
[contactName] => Ian Hitchman
[contactNotes] =>
[contactPhone] =>
[created] => 2025-09-15 08:32:26.889Z
[custom] => Array
(
[0] => stdClass Object
(
[id] => nc7sndad5bhvi5x
[value] => testtest
)
[1] => stdClass Object
(
[id] => yt2l2o3cacu43wf
[value] => 8
)
[2] => stdClass Object
(
[id] => j381owny56syys6
[value] => 8
)
)
[customer] => kbgli4rhh2bs7qd
[deliveryCity] => Benfleet
[deliveryCounty] =>
[deliveryEnd] => 2025-09-17 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => test
[deliveryPostcode] => SS7 3BD
[deliveryStart] => 2025-09-17 00:00:00.000Z
[deliveryStreet] => 21 Broadlands
[description] =>
[driverRef] => TEST
[externalCustomerId] => 499326000046148036
[externalLocationId] => 499326000046148042
[externalOrderId] => 499326000048033346
[id] => 7il1ekrua7cvsaq
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00437
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Delivered
[syncInCreated] => 2025-09-15 07:11:00.000Z
[syncInStatus] => confirmed
[syncInUpdated] => 2025-09-15 09:46:51.000Z
[syncOutStatus] => LOCKED
[syncOutUpdated] => 2025-09-15 09:08:00.000Z
[timeWindows] => Array
(
)
[title] => Test Company
[totalValue] => 15.95
[totalWeight] => 0
[type] =>
[updated] => 2025-09-15 09:47:41.031Z
[vehicleRef] => TEST
[what3Words] =>
)
Updating source from local order
Getting custom fields
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-07-18 02:35:52.065Z
[id] => nc7sndad5bhvi5x
[inCollection] => orders
[inField] => paymentMethod
[mappedField] => 7DCPayment
[name] => Payment method
[sourceField] =>
[syncFromSource] => 1
[syncToSource] =>
[type] => text
[updated] => 2025-07-18 02:35:52.065Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Processing field
Custom field: Array
(
[id] => yt2l2o3cacu43wf
[value] => 8
)
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
Processing field
Custom field: Array
(
[id] => j381owny56syys6
[value] => 8
)
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:03:34.631Z
[id] => pcn96l3kgkps4az
[inCollection] => orders
[inField] => driverRef
[mappedField] =>
[name] => Delivery driver
[sourceField] => cf_delivery_driver
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:03:34.631Z
)
Processing field
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-08 04:52:51.399Z
[id] => hhrzcmytzs8p3kw
[inCollection] => orders
[inField] => seqNo
[mappedField] =>
[name] => Run number
[sourceField] => cf_run_number
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-08 04:52:51.399Z
)
Processing field
Finished processing field
Continue
Updating source order: Array
(
[custom_fields] => Array
(
[0] => Array
(
[api_name] => cf_empties_collected
[value] => 8
)
[1] => Array
(
[api_name] => cf_gas_empties_collected
[value] => 8
)
[2] => Array
(
[api_name] => cf_delivery_driver
[value] => TEST
)
[3] => Array
(
[api_name] => cf_run_number
[value] => 1
)
)
)
Update result: Array
(
[code] => 0
[message] => Sales Order has been updated.
[salesorder] => Array
(
[salesorder_id] => 499326000048033346
[is_viewed_in_mail] =>
[mail_first_viewed_time] =>
[mail_last_viewed_time] =>
[documents] => Array
(
)
[zcrm_potential_id] =>
[zcrm_potential_name] =>
[salesorder_number] => SO-00437
[date] => 2025-09-17
[offline_created_date_with_time] =>
[tracking_url] =>
[has_discount] =>
[status] => confirmed
[color_code] =>
[current_sub_status_id] =>
[current_sub_status] => confirmed
[sub_statuses] => Array
(
)
[shipment_date] => 2025-09-22
[reference_number] =>
[customer_id] => 499326000046148036
[customer_name] => Test Company
[contact_persons] => Array
(
[0] => 499326000046148038
)
[contact_persons_associated] => Array
(
[0] => Array
(
[contact_person_id] => 499326000046148038
[contact_person_email] => ianhitchman@fastmail.com
[first_name] => Ian
[last_name] => Hitchman
[mobile] =>
[communication_preference] => Array
(
[is_email_enabled] => 1
)
)
)
[contact_person_details] => Array
(
[0] => Array
(
[phone] => +64-2041132636
[mobile] =>
[last_name] => Hitchman
[contact_person_id] => 499326000046148038
[first_name] => Ian
[email] => ianhitchman@fastmail.com
)
)
[source] => Client
[contact_category] => uk
[is_taxable] =>
[has_shipping_address] => 1
[currency_id] => 499326000000000065
[currency_code] => GBP
[currency_symbol] => £
[exchange_rate] => 1
[is_discount_before_tax] => 1
[discount_type] => item_level
[estimate_id] =>
[delivery_method] =>
[delivery_method_id] =>
[vat_treatment] => uk
[is_inclusive_tax] =>
[tax_rounding] => entity_level
[tax_override_preference] => no_override
[order_status] => confirmed
[invoiced_status] => not_invoiced
[paid_status] => unpaid
[shipped_status] => pending
[sales_channel] => direct_sales
[sales_channel_formatted] => Direct Sales
[account_identifier] =>
[integration_id] =>
[is_dropshipped] =>
[is_backordered] =>
[is_manually_fulfilled] =>
[can_manually_fulfill] => 1
[has_qty_cancelled] =>
[is_reverse_charge_applied] =>
[shipping_details] => Array
(
)
[created_by_email] => warehousing@7daycellar.co.uk
[created_by_name] => Admin Profile
[branch_id] => 499326000023111007
[branch_name] => Head Office
[location_id] => 499326000023111007
[location_name] => Head Office
[total_quantity] => 1
[line_items] => Array
(
[0] => Array
(
[line_item_id] => 499326000048033356
[variant_id] => 499326000000060809
[track_batch_number] =>
[item_id] => 499326000000060809
[is_returnable] =>
[product_id] => 499326000000060809
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] =>
[name] => Adblue
[group_name] => Adblue
[description] => Adblue
[item_order] => 1
[bcy_rate] => 15.95
[rate] => 15.95
[sales_rate] => 15.95
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] =>
[tax_name] =>
[tax_type] => tax
[tax_percentage] => 0
[line_item_taxes] => Array
(
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 15.95
[item_sub_total] => 15.95
[product_type] => goods
[line_item_type] => goods
[item_type] => sales_and_purchases
[is_invoiced] =>
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] =>
[image_type] =>
[document_id] =>
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 0
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] =>
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
)
[is_advanced_tracking_missing] =>
[entity_tags] =>
[submitter_id] =>
[approver_id] =>
[submitted_date] =>
[submitted_by] =>
[submitted_by_name] =>
[submitted_by_email] =>
[submitted_by_photo_url] =>
[price_precision] => 2
[is_emailed] => 1
[has_unconfirmed_line_item] =>
[picklists] => Array
(
)
[purchaseorders] => Array
(
)
[locations] => Array
(
[0] => Array
(
[location_id] => 499326000023111007
[location_name] => Head Office
[status] => active
)
[1] => Array
(
[location_id] => 499326000041689155
[location_name] => Bason Bridge Brewery Duty Bonded Warehouse
[status] => active
)
)
[billing_address_id] => 499326000046148040
[billing_address] => Array
(
[address] => 200 Broadlands
[street2] =>
[city] => Benfleet
[state] => Essex
[zip] => SS7 3BD
[country] => United Kingdom
[country_code] => GB
[county] =>
[state_code] => ESS
[fax] =>
[phone] =>
[attention] =>
)
[shipping_address_id] => 499326000046148042
[shipping_address] => Array
(
[company_name] =>
[address] => 21 Broadlands
[street2] =>
[city] => Benfleet
[state] =>
[zip] => SS7 3BD
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] => 07764485844
[attention] => test
)
[is_test_order] =>
[notes] => Account Name: 7 Day Cellar Ltd
Sort Code: 09-01-30
Account No: 10888924
[terms] =>
[payment_terms] => 0
[payment_terms_label] => Due On Receipt
[custom_fields] => Array
(
[0] => Array
(
[field_id] => 499326000042690007
[customfield_id] => 499326000042690007
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 1
[label] => Automation Required
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[is_color_code_supported] =>
[api_name] => cf__ulrql_automation_required
[show_in_all_pdf] =>
[selected_option_id] => 499326000042690011
[value_formatted] => Yes
[search_entity] => salesorder
[data_type] => dropdown
[placeholder] => cf__ulrql_automation_required
[value] => Yes
[is_dependent_field] =>
)
[1] => Array
(
[field_id] => 499326000046047547
[customfield_id] => 499326000046047547
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 2
[label] => Keg Empties Collected
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_empties_collected
[show_in_all_pdf] =>
[value_formatted] => 8
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_empties_collected
[value] => 8
[is_dependent_field] =>
)
[2] => Array
(
[field_id] => 499326000046252153
[customfield_id] => 499326000046252153
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 3
[label] => Gas Empties Collected
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_gas_empties_collected
[show_in_all_pdf] =>
[value_formatted] => 8
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_gas_empties_collected
[value] => 8
[is_dependent_field] =>
)
[3] => Array
(
[field_id] => 499326000046252173
[customfield_id] => 499326000046252173
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 4
[label] => Delivery Driver
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_driver
[show_in_all_pdf] =>
[value_formatted] => TEST
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_driver
[value] => TEST
[is_dependent_field] =>
)
[4] => Array
(
[field_id] => 499326000046717945
[customfield_id] => 499326000046717945
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 5
[label] => GoCardless Mandate
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_gocardless_mandate
[show_in_all_pdf] =>
[value_formatted] => False
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_gocardless_mandate
[value] => False
[is_dependent_field] =>
)
[5] => Array
(
[field_id] => 499326000047922345
[customfield_id] => 499326000047922345
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 6
[label] => Run Number
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_run_number
[show_in_all_pdf] =>
[value_formatted] => 1
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_run_number
[value] => 1
[is_dependent_field] =>
)
)
[custom_field_hash] => Array
(
[cf__ulrql_automation_required] => Yes
[cf__ulrql_automation_required_unformatted] => Yes
[cf_empties_collected] => 8
[cf_empties_collected_unformatted] => 8
[cf_gas_empties_collected] => 8
[cf_gas_empties_collected_unformatted] => 8
[cf_delivery_driver] => TEST
[cf_delivery_driver_unformatted] => TEST
[cf_gocardless_mandate] => False
[cf_gocardless_mandate_unformatted] => False
[cf_run_number] => 1
[cf_run_number_unformatted] => 1
)
[template_id] => 499326000000000111
[template_name] => Standard Template
[page_width] => 8.27in
[page_height] => 11.69in
[orientation] => portrait
[template_type] => standard
[created_time] => 2025-09-15T08:11:00+0100
[last_modified_time] => 2025-09-15T10:47:41+0100
[created_by_id] => 499326000044410001
[created_date] => 2025-09-15
[last_modified_by_id] => 499326000044410001
[attachment_name] =>
[can_send_in_mail] =>
[salesperson_id] =>
[salesperson_name] =>
[merchant_id] =>
[merchant_name] =>
[pickup_location_id] =>
[discount] => 0
[discount_applied_on_amount] => 0
[is_adv_tracking_in_package] =>
[shipping_charge_taxes] => Array
(
)
[lock_details] => Array
(
[can_lock] =>
)
[locked_actions] => Array
(
)
[shipping_charge_tax_id] =>
[shipping_charge_tax_name] =>
[shipping_charge_tax_type] =>
[shipping_charge_tax_percentage] =>
[shipping_charge_tax_exemption_id] =>
[shipping_charge_tax_exemption_code] =>
[shipping_charge_tax] =>
[bcy_shipping_charge_tax] =>
[shipping_charge_exclusive_of_tax] => 0
[shipping_charge_inclusive_of_tax] => 0
[shipping_charge_tax_formatted] =>
[shipping_charge_exclusive_of_tax_formatted] => £0.00
[shipping_charge_inclusive_of_tax_formatted] => £0.00
[shipping_charge] => 0
[bcy_shipping_charge] => 0
[adjustment] => 0
[bcy_adjustment] => 0
[adjustment_description] => Adjustment
[roundoff_value] => 0
[transaction_rounding_type] => no_rounding
[rounding_mode] => round_half_up
[bcy_rounding_mode] => round_half_up
[sub_total] => 15.95
[bcy_sub_total] => 15.95
[sub_total_inclusive_of_tax] => 0
[sub_total_exclusive_of_discount] => 15.95
[discount_total] => 0
[bcy_discount_total] => 0
[discount_percent] => 0
[tax_total] => 0
[bcy_tax_total] => 0
[total] => 15.95
[computation_type] => basic
[bcy_total] => 15.95
[reverse_charge_tax_total] => 0
[taxes] => Array
(
)
[tds_calculation_type] => tds_item_level
[packages] => Array
(
)
[so_cycle_preference] => Array
(
[is_feature_enabled] => 1
[socycle_status] => not_triggered
[can_create_invoice] => 1
[can_create_package] =>
[can_create_shipment] =>
[shipment_preference] => Array
(
[default_carrier] =>
[send_notification] =>
[deliver_shipments] =>
)
[invoice_preference] => Array
(
[mark_as_sent] =>
[record_payment] =>
[payment_mode_id] => 499326000000000199
[payment_account_id] => 499326000000000349
)
)
[invoices] => Array
(
)
[can_show_kit_return] =>
[is_kit_partial_return] =>
[salesreturns] => Array
(
)
[payments] => Array
(
)
[creditnotes] => Array
(
)
[refunds] => Array
(
)
[contact] => Array
(
[customer_balance] => 130.8
[credit_limit] => 0
[unused_customer_credits] => 0
[is_credit_limit_migration_completed] => 1
)
[balance] => 15.95
[approvers_list] => Array
(
)
[is_scheduled_for_quick_shipment_create] =>
)
)
Finished at 2025-09-15 10:47:41
Webhook - sourceUpdated script called at 2025-09-15 10:47:54
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048033346","salesorder_no":"SO-00437","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048033346","salesorder_no":"SO-00437","status":"open"}}
EXT ID: 499326000048033346
REF: SO-00437
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048033346 (REF SO-00437)
Local order updated = 2025-09-15 09:46:51.000Z,
source updated = 2025-09-15T10:47:41+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00437
Processing order: 7il1ekrua7cvsaq, ref SO-00437
Syncing SO-00437
Using default start and end times
Time window: 2025-09-17T06:00:00+01:00 - 2025-09-17T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 15/09/2025 10:47 - Local updated: 2025-09-15 09:08:00.000Z - Source updated: 2025-09-15 09:46:51.000Z
Changed? yes
Current MaxOptra status: ALLOCATED
Completed? no
Previous status: LOCKED
Status changed - mark for sync back to source
Is allocated? yes
MO delivery date: 2025-09-17, Local delivery date: 2025-09-17
Local updated: 2025-09-15 09:08:00.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000046148042
Array
(
[referenceNumber] => 499326000046148042
[name] => test, 21 Broadlands, Benfleet
[address] => SS7 3BD
)
499326000046148042
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00437
Done all.
Finished at 2025-09-15 10:47:56
Webhook - destinationRunUpdated script called at 2025-09-15 10:49:01
Data: {"payload":{"runReference":"3506a3da98944bfca0a9ffee9bd51a61","status":"LOCKED","vehicleReference":"TEST","shiftDate":"2025-09-17"},"timestamp":"2025-09-15T09:49:01Z"}
JSON: {"payload":{"runReference":"3506a3da98944bfca0a9ffee9bd51a61","status":"LOCKED","vehicleReference":"TEST","shiftDate":"2025-09-17"},"timestamp":"2025-09-15T09:49:01Z"}
Vehicle: TEST
date: 2025-09-17
Status: LOCKED
200 response code sent
Processing order: SO-00437
Looking for local order: SO-00437
Updating local order from MaxOptra - current local order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => ianhitchman@fastmail.com
[contactName] => Ian Hitchman
[contactNotes] =>
[contactPhone] =>
[created] => 2025-09-15 08:32:26.889Z
[custom] => Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => testtest
)
[1] => Array
(
[id] => yt2l2o3cacu43wf
[value] => 8
)
[2] => Array
(
[id] => j381owny56syys6
[value] => 8
)
)
[customer] => kbgli4rhh2bs7qd
[deliveryCity] => Benfleet
[deliveryCounty] =>
[deliveryEnd] => 2025-09-17 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => test
[deliveryPostcode] => SS7 3BD
[deliveryStart] => 2025-09-17 00:00:00.000Z
[deliveryStreet] => 21 Broadlands
[description] =>
[driverRef] => TEST
[externalCustomerId] => 499326000046148036
[externalLocationId] => 499326000046148042
[externalOrderId] => 499326000048033346
[id] => 7il1ekrua7cvsaq
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] => 1
[ref] =>
[refId] => SO-00437
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Scheduled
[syncInCreated] => 2025-09-15 07:11:00.000Z
[syncInStatus] => confirmed
[syncInUpdated] => 2025-09-15 09:46:51.000Z
[syncOutStatus] => ALLOCATED
[syncOutUpdated] => 2025-09-15 09:47:00.000Z
[timeWindows] => Array
(
)
[title] => Test Company
[totalValue] => 15.95
[totalWeight] => 0
[type] =>
[updated] => 2025-09-15 09:47:56.209Z
[vehicleRef] => TEST
[what3Words] =>
)
MaxOptra order details: Array
(
[0] => Array
(
[referenceNumber] => SO-00437
[consignmentReference] =>
[distributionCentreReference] => Head Office
[distributionCentreName] => Head Office
[task] => DELIVERY
[priority] => NORMAL
[vehicleRequirements] => Array
(
)
[additionalInstructions] =>
[clientName] => Test Company
[contactPerson] => Ian Hitchman
[contactNumber] =>
[contactEmail] => ianhitchman@fastmail.com
[additionalContactEmails] =>
[notificationPreferences] => Array
(
[allowSMS] => 1
[allowEmail] => 1
)
[customerLocation] => Array
(
[referenceNumber] => 499326000046148042
[name] => test, 21 Broadlands, Benfleet
[address] => SS7 3BD
[w3wAddress] =>
[latitude] => 51.56741
[longitude] => 0.58135
)
[territoryReference] =>
[stopSequence] => ANY
[timeWindows] => Array
(
[0] => Array
(
[start] => 2025-09-17T06:00:00+01:00
[end] => 2025-09-17T20:00:00+01:00
)
)
[orderDate] =>
[capacity1] => 0
[capacity2] => 0
[price] => 0
[operationDuration] => 300
[customFields] => Array
(
[7DCEmptiesGas] => 10
[7DCEmpties] => 10
[7DCPayment] => testtest
)
[orderItems] => Array
(
[0] => Array
(
[itemReferenceNumber] => 499326000000060809
[orderReferenceNumber] => SO-00437
[name] => Adblue
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 15.95
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 15.95
[height] => 0
[width] => 0
[length] => 0
[weight] => 0
[volume] => 0
)
)
[widgetTrackingDetails] =>
)
)
MaxOptra schedule details: Array
(
[orderReferenceNumber] => SO-00437
[assignedDriverReference] => TEST
[assignedDriverName] => TEST
[assignedVehicleReference] => TEST
[assignedVehicleName] => TEST
[plannedArrivalTime] => 2025-09-17T06:00:00+01:00
[plannedCompletionTime] => 2025-09-17T06:05:00+01:00
[stopNumber] => 1
[totalStopsInRun] => 1
[runNumber] => 1
[runReference] => 3506a3da98944bfca0a9ffee9bd51a61
[eta] =>
[factArrivalTimeGPS] =>
[factCompletionTimeGPS] =>
[factArrivalTimeReported] =>
[factCompletionTimeReported] =>
[failReason] =>
[failComment] =>
[status] => LOCKED
[driver] => TEST
[arrival_planned] => 2025-09-17T06:00:00+01:00
[arrival_estimated] =>
[arrival_actual] =>
[totalStops] => 1
)
Updating order: SO-00437
Update ID 7il1ekrua7cvsaq with: Array
(
[custom] => Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => testtest
)
[1] => Array
(
[id] => yt2l2o3cacu43wf
[value] => 10
)
[2] => Array
(
[id] => j381owny56syys6
[value] => 10
)
)
[driverRef] => TEST
[vehicleRef] => TEST
[seqNo] => 1
)
Updated order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => ianhitchman@fastmail.com
[contactName] => Ian Hitchman
[contactNotes] =>
[contactPhone] =>
[created] => 2025-09-15 08:32:26.889Z
[custom] => Array
(
[0] => stdClass Object
(
[id] => nc7sndad5bhvi5x
[value] => testtest
)
[1] => stdClass Object
(
[id] => yt2l2o3cacu43wf
[value] => 10
)
[2] => stdClass Object
(
[id] => j381owny56syys6
[value] => 10
)
)
[customer] => kbgli4rhh2bs7qd
[deliveryCity] => Benfleet
[deliveryCounty] =>
[deliveryEnd] => 2025-09-17 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => test
[deliveryPostcode] => SS7 3BD
[deliveryStart] => 2025-09-17 00:00:00.000Z
[deliveryStreet] => 21 Broadlands
[description] =>
[driverRef] => TEST
[externalCustomerId] => 499326000046148036
[externalLocationId] => 499326000046148042
[externalOrderId] => 499326000048033346
[id] => 7il1ekrua7cvsaq
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] => 1
[ref] =>
[refId] => SO-00437
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Scheduled
[syncInCreated] => 2025-09-15 07:11:00.000Z
[syncInStatus] => confirmed
[syncInUpdated] => 2025-09-15 09:46:51.000Z
[syncOutStatus] => ALLOCATED
[syncOutUpdated] => 2025-09-15 09:47:00.000Z
[timeWindows] => Array
(
)
[title] => Test Company
[totalValue] => 15.95
[totalWeight] => 0
[type] =>
[updated] => 2025-09-15 09:49:02.094Z
[vehicleRef] => TEST
[what3Words] =>
)
Updating source from local order
Getting custom fields
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-07-18 02:35:52.065Z
[id] => nc7sndad5bhvi5x
[inCollection] => orders
[inField] => paymentMethod
[mappedField] => 7DCPayment
[name] => Payment method
[sourceField] =>
[syncFromSource] => 1
[syncToSource] =>
[type] => text
[updated] => 2025-07-18 02:35:52.065Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Processing field
Custom field: Array
(
[id] => yt2l2o3cacu43wf
[value] => 8
)
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
Processing field
Custom field: Array
(
[id] => j381owny56syys6
[value] => 8
)
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:03:34.631Z
[id] => pcn96l3kgkps4az
[inCollection] => orders
[inField] => driverRef
[mappedField] =>
[name] => Delivery driver
[sourceField] => cf_delivery_driver
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:03:34.631Z
)
Processing field
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-08 04:52:51.399Z
[id] => hhrzcmytzs8p3kw
[inCollection] => orders
[inField] => seqNo
[mappedField] =>
[name] => Run number
[sourceField] => cf_run_number
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-08 04:52:51.399Z
)
Processing field
Finished processing field
Continue
Updating source order: Array
(
[custom_fields] => Array
(
[0] => Array
(
[api_name] => cf_empties_collected
[value] => 8
)
[1] => Array
(
[api_name] => cf_gas_empties_collected
[value] => 8
)
[2] => Array
(
[api_name] => cf_delivery_driver
[value] => TEST
)
[3] => Array
(
[api_name] => cf_run_number
[value] => 1
)
)
)
Update result: Array
(
[code] => 0
[message] => Sales Order has been updated.
[salesorder] => Array
(
[salesorder_id] => 499326000048033346
[is_viewed_in_mail] =>
[mail_first_viewed_time] =>
[mail_last_viewed_time] =>
[documents] => Array
(
)
[zcrm_potential_id] =>
[zcrm_potential_name] =>
[salesorder_number] => SO-00437
[date] => 2025-09-17
[offline_created_date_with_time] =>
[tracking_url] =>
[has_discount] =>
[status] => confirmed
[color_code] =>
[current_sub_status_id] =>
[current_sub_status] => confirmed
[sub_statuses] => Array
(
)
[shipment_date] => 2025-09-22
[reference_number] =>
[customer_id] => 499326000046148036
[customer_name] => Test Company
[contact_persons] => Array
(
[0] => 499326000046148038
)
[contact_persons_associated] => Array
(
[0] => Array
(
[contact_person_id] => 499326000046148038
[contact_person_email] => ianhitchman@fastmail.com
[first_name] => Ian
[last_name] => Hitchman
[mobile] =>
[communication_preference] => Array
(
[is_email_enabled] => 1
)
)
)
[contact_person_details] => Array
(
[0] => Array
(
[phone] => +64-2041132636
[mobile] =>
[last_name] => Hitchman
[contact_person_id] => 499326000046148038
[first_name] => Ian
[email] => ianhitchman@fastmail.com
)
)
[source] => Client
[contact_category] => uk
[is_taxable] =>
[has_shipping_address] => 1
[currency_id] => 499326000000000065
[currency_code] => GBP
[currency_symbol] => £
[exchange_rate] => 1
[is_discount_before_tax] => 1
[discount_type] => item_level
[estimate_id] =>
[delivery_method] =>
[delivery_method_id] =>
[vat_treatment] => uk
[is_inclusive_tax] =>
[tax_rounding] => entity_level
[tax_override_preference] => no_override
[order_status] => confirmed
[invoiced_status] => not_invoiced
[paid_status] => unpaid
[shipped_status] => pending
[sales_channel] => direct_sales
[sales_channel_formatted] => Direct Sales
[account_identifier] =>
[integration_id] =>
[is_dropshipped] =>
[is_backordered] =>
[is_manually_fulfilled] =>
[can_manually_fulfill] => 1
[has_qty_cancelled] =>
[is_reverse_charge_applied] =>
[shipping_details] => Array
(
)
[created_by_email] => warehousing@7daycellar.co.uk
[created_by_name] => Admin Profile
[branch_id] => 499326000023111007
[branch_name] => Head Office
[location_id] => 499326000023111007
[location_name] => Head Office
[total_quantity] => 1
[line_items] => Array
(
[0] => Array
(
[line_item_id] => 499326000048033356
[variant_id] => 499326000000060809
[track_batch_number] =>
[item_id] => 499326000000060809
[is_returnable] =>
[product_id] => 499326000000060809
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] =>
[name] => Adblue
[group_name] => Adblue
[description] => Adblue
[item_order] => 1
[bcy_rate] => 15.95
[rate] => 15.95
[sales_rate] => 15.95
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] =>
[tax_name] =>
[tax_type] => tax
[tax_percentage] => 0
[line_item_taxes] => Array
(
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 15.95
[item_sub_total] => 15.95
[product_type] => goods
[line_item_type] => goods
[item_type] => sales_and_purchases
[is_invoiced] =>
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] =>
[image_type] =>
[document_id] =>
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 0
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] =>
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
)
[is_advanced_tracking_missing] =>
[entity_tags] =>
[submitter_id] =>
[approver_id] =>
[submitted_date] =>
[submitted_by] =>
[submitted_by_name] =>
[submitted_by_email] =>
[submitted_by_photo_url] =>
[price_precision] => 2
[is_emailed] => 1
[has_unconfirmed_line_item] =>
[picklists] => Array
(
)
[purchaseorders] => Array
(
)
[locations] => Array
(
[0] => Array
(
[location_id] => 499326000023111007
[location_name] => Head Office
[status] => active
)
[1] => Array
(
[location_id] => 499326000041689155
[location_name] => Bason Bridge Brewery Duty Bonded Warehouse
[status] => active
)
)
[billing_address_id] => 499326000046148040
[billing_address] => Array
(
[address] => 200 Broadlands
[street2] =>
[city] => Benfleet
[state] => Essex
[zip] => SS7 3BD
[country] => United Kingdom
[country_code] => GB
[county] =>
[state_code] => ESS
[fax] =>
[phone] =>
[attention] =>
)
[shipping_address_id] => 499326000046148042
[shipping_address] => Array
(
[company_name] =>
[address] => 21 Broadlands
[street2] =>
[city] => Benfleet
[state] =>
[zip] => SS7 3BD
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] => 07764485844
[attention] => test
)
[is_test_order] =>
[notes] => Account Name: 7 Day Cellar Ltd
Sort Code: 09-01-30
Account No: 10888924
[terms] =>
[payment_terms] => 0
[payment_terms_label] => Due On Receipt
[custom_fields] => Array
(
[0] => Array
(
[field_id] => 499326000042690007
[customfield_id] => 499326000042690007
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 1
[label] => Automation Required
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[is_color_code_supported] =>
[api_name] => cf__ulrql_automation_required
[show_in_all_pdf] =>
[selected_option_id] => 499326000042690011
[value_formatted] => Yes
[search_entity] => salesorder
[data_type] => dropdown
[placeholder] => cf__ulrql_automation_required
[value] => Yes
[is_dependent_field] =>
)
[1] => Array
(
[field_id] => 499326000046047547
[customfield_id] => 499326000046047547
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 2
[label] => Keg Empties Collected
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_empties_collected
[show_in_all_pdf] =>
[value_formatted] => 8
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_empties_collected
[value] => 8
[is_dependent_field] =>
)
[2] => Array
(
[field_id] => 499326000046252153
[customfield_id] => 499326000046252153
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 3
[label] => Gas Empties Collected
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_gas_empties_collected
[show_in_all_pdf] =>
[value_formatted] => 8
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_gas_empties_collected
[value] => 8
[is_dependent_field] =>
)
[3] => Array
(
[field_id] => 499326000046252173
[customfield_id] => 499326000046252173
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 4
[label] => Delivery Driver
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_driver
[show_in_all_pdf] =>
[value_formatted] => TEST
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_driver
[value] => TEST
[is_dependent_field] =>
)
[4] => Array
(
[field_id] => 499326000046717945
[customfield_id] => 499326000046717945
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 5
[label] => GoCardless Mandate
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_gocardless_mandate
[show_in_all_pdf] =>
[value_formatted] => False
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_gocardless_mandate
[value] => False
[is_dependent_field] =>
)
[5] => Array
(
[field_id] => 499326000047922345
[customfield_id] => 499326000047922345
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 6
[label] => Run Number
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_run_number
[show_in_all_pdf] =>
[value_formatted] => 1
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_run_number
[value] => 1
[is_dependent_field] =>
)
)
[custom_field_hash] => Array
(
[cf__ulrql_automation_required] => Yes
[cf__ulrql_automation_required_unformatted] => Yes
[cf_empties_collected] => 8
[cf_empties_collected_unformatted] => 8
[cf_gas_empties_collected] => 8
[cf_gas_empties_collected_unformatted] => 8
[cf_delivery_driver] => TEST
[cf_delivery_driver_unformatted] => TEST
[cf_gocardless_mandate] => False
[cf_gocardless_mandate_unformatted] => False
[cf_run_number] => 1
[cf_run_number_unformatted] => 1
)
[template_id] => 499326000000000111
[template_name] => Standard Template
[page_width] => 8.27in
[page_height] => 11.69in
[orientation] => portrait
[template_type] => standard
[created_time] => 2025-09-15T08:11:00+0100
[last_modified_time] => 2025-09-15T10:49:02+0100
[created_by_id] => 499326000044410001
[created_date] => 2025-09-15
[last_modified_by_id] => 499326000044410001
[attachment_name] =>
[can_send_in_mail] =>
[salesperson_id] =>
[salesperson_name] =>
[merchant_id] =>
[merchant_name] =>
[pickup_location_id] =>
[discount] => 0
[discount_applied_on_amount] => 0
[is_adv_tracking_in_package] =>
[shipping_charge_taxes] => Array
(
)
[lock_details] => Array
(
[can_lock] =>
)
[locked_actions] => Array
(
)
[shipping_charge_tax_id] =>
[shipping_charge_tax_name] =>
[shipping_charge_tax_type] =>
[shipping_charge_tax_percentage] =>
[shipping_charge_tax_exemption_id] =>
[shipping_charge_tax_exemption_code] =>
[shipping_charge_tax] =>
[bcy_shipping_charge_tax] =>
[shipping_charge_exclusive_of_tax] => 0
[shipping_charge_inclusive_of_tax] => 0
[shipping_charge_tax_formatted] =>
[shipping_charge_exclusive_of_tax_formatted] => £0.00
[shipping_charge_inclusive_of_tax_formatted] => £0.00
[shipping_charge] => 0
[bcy_shipping_charge] => 0
[adjustment] => 0
[bcy_adjustment] => 0
[adjustment_description] => Adjustment
[roundoff_value] => 0
[transaction_rounding_type] => no_rounding
[rounding_mode] => round_half_up
[bcy_rounding_mode] => round_half_up
[sub_total] => 15.95
[bcy_sub_total] => 15.95
[sub_total_inclusive_of_tax] => 0
[sub_total_exclusive_of_discount] => 15.95
[discount_total] => 0
[bcy_discount_total] => 0
[discount_percent] => 0
[tax_total] => 0
[bcy_tax_total] => 0
[total] => 15.95
[computation_type] => basic
[bcy_total] => 15.95
[reverse_charge_tax_total] => 0
[taxes] => Array
(
)
[tds_calculation_type] => tds_item_level
[packages] => Array
(
)
[so_cycle_preference] => Array
(
[is_feature_enabled] => 1
[socycle_status] => not_triggered
[can_create_invoice] => 1
[can_create_package] =>
[can_create_shipment] =>
[shipment_preference] => Array
(
[default_carrier] =>
[send_notification] =>
[deliver_shipments] =>
)
[invoice_preference] => Array
(
[mark_as_sent] =>
[record_payment] =>
[payment_mode_id] => 499326000000000199
[payment_account_id] => 499326000000000349
)
)
[invoices] => Array
(
)
[can_show_kit_return] =>
[is_kit_partial_return] =>
[salesreturns] => Array
(
)
[payments] => Array
(
)
[creditnotes] => Array
(
)
[refunds] => Array
(
)
[contact] => Array
(
[customer_balance] => 130.8
[credit_limit] => 0
[unused_customer_credits] => 0
[is_credit_limit_migration_completed] => 1
)
[balance] => 15.95
[approvers_list] => Array
(
)
[is_scheduled_for_quick_shipment_create] =>
)
)
Finished at 2025-09-15 10:49:02
Webhook - sourceUpdated script called at 2025-09-15 10:49:24
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048033346","salesorder_no":"SO-00437","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048033346","salesorder_no":"SO-00437","status":"open"}}
EXT ID: 499326000048033346
REF: SO-00437
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048033346 (REF SO-00437)
Updates pending to source for order: 499326000048033346
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-09-15 09:46:51.000Z,
source updated = 2025-09-15T10:49:02+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => ianhitchman@fastmail.com
[contactName] => Ian Hitchman
[notes] =>
[externalOrderId] => 499326000048033346
[refId] => SO-00437
[externalCustomerId] => 499326000046148036
[externalLocationId] => 499326000046148042
[title] => Test Company
[deliveryStart] => 2025-09-17
[deliveryEnd] => 2025-09-17
[totalValue] => 15.95
[totalWeight] => 0
[syncInCreated] => 2025-09-15T08:11:00+0100
[syncInUpdated] => 2025-09-15T10:49:02+0100
[syncInStatus] => confirmed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048033356
[externalProductId] => 499326000000060809
[sku] =>
[title] => Adblue
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 15.95
[price] => 15.95
)
)
[deliveryName] => test
[deliveryStreet] => 21 Broadlands
[deliveryCity] => Benfleet
[deliveryCounty] =>
[deliveryPostcode] => SS7 3BD
)
Does this order already exist?
Yes
Existing custom fields: Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => testtest
)
[1] => Array
(
[id] => yt2l2o3cacu43wf
[value] => 10
)
[2] => Array
(
[id] => j381owny56syys6
[value] => 10
)
)
Is array
Merging custom fields...
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => ianhitchman@fastmail.com
[contactName] => Ian Hitchman
[notes] =>
[externalOrderId] => 499326000048033346
[refId] => SO-00437
[externalCustomerId] => 499326000046148036
[externalLocationId] => 499326000046148042
[title] => Test Company
[deliveryStart] => 2025-09-17
[deliveryEnd] => 2025-09-17
[totalValue] => 15.95
[totalWeight] => 0
[syncInCreated] => 2025-09-15T08:11:00+0100
[syncInUpdated] => 2025-09-15T10:49:02+0100
[syncInStatus] => confirmed
[deliveryName] => test
[deliveryStreet] => 21 Broadlands
[deliveryCity] => Benfleet
[deliveryCounty] =>
[deliveryPostcode] => SS7 3BD
[syncOutUpdated] => 2025-09-15T10:49:25+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Ian Hitchman
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => [{"id":"nc7sndad5bhvi5x","value":"testtest"},{"id":"yt2l2o3cacu43wf","value":"10"},{"id":"j381owny56syys6","value":"10"}]
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000046148036
Getting products
Updating product 499326000000060809
Updating order product 499326000048033356
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00437
Processing order: 7il1ekrua7cvsaq, ref SO-00437
Syncing SO-00437
Using default start and end times
Time window: 2025-09-17T06:00:00+01:00 - 2025-09-17T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 15/09/2025 10:49 - Local updated: 2025-09-15 09:49:25.000Z - Source updated: 2025-09-15 09:49:02.000Z
Changed? yes
Current MaxOptra status: LOCKED
Completed? yes
Previous status: ALLOCATED
Status changed - mark for sync back to source
Updating local order POD and attachments...
Don't have local POD - fetching...
No POD found
Getting attachments for SO-00437...
No new attachments found
Is allocated? yes
Local updated: 2025-09-15 09:49:25.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Remote order is locked - will be replaced
Communication error with MaxOptra (412)
orders/SO-00437
https://7daycellar.maxoptra.com/api/v6/orders/SO-00437
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000046148042
Array
(
[referenceNumber] => 499326000046148042
[name] => test, 21 Broadlands, Benfleet
[address] => SS7 3BD
)
499326000046148042
Error updating SO-00437
Remote order is locked. Skipping.
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00437
Done all.
Finished at 2025-09-15 10:49:27
Webhook - sourceUpdated script called at 2025-09-15 10:49:54
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048033346","salesorder_no":"SO-00437","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048033346","salesorder_no":"SO-00437","status":"open"}}
EXT ID: 499326000048033346
REF: SO-00437
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048033346 (REF SO-00437)
Updates pending to source for order: 499326000048033346
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-09-15 09:49:02.000Z,
source updated = 2025-09-15T10:49:25+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00437
Processing order: 7il1ekrua7cvsaq, ref SO-00437
Syncing SO-00437
Using default start and end times
Time window: 2025-09-17T06:00:00+01:00 - 2025-09-17T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 15/09/2025 10:49 - Local updated: 2025-09-15 09:49:00.000Z - Source updated: 2025-09-15 09:49:02.000Z
Changed? yes
Current MaxOptra status: LOCKED
Completed? yes
Previous status: LOCKED
Updating local order POD and attachments...
Don't have local POD - fetching...
No POD found
Getting attachments for SO-00437...
No new attachments found
Is allocated? yes
Local updated: 2025-09-15 09:49:00.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Remote order is locked - will be replaced
Communication error with MaxOptra (412)
orders/SO-00437
https://7daycellar.maxoptra.com/api/v6/orders/SO-00437
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000046148042
Array
(
[referenceNumber] => 499326000046148042
[name] => test, 21 Broadlands, Benfleet
[address] => SS7 3BD
)
499326000046148042
Error updating SO-00437
Remote order is locked. Skipping.
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00437
Done all.
Finished at 2025-09-15 10:49:58
Webhook - sourceUpdated script called at 2025-09-15 10:50:25
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048033346","salesorder_no":"SO-00437","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048033346","salesorder_no":"SO-00437","status":"open"}}
EXT ID: 499326000048033346
REF: SO-00437
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048033346 (REF SO-00437)
Local order updated = 2025-09-15 09:49:02.000Z,
source updated = 2025-09-15T10:49:55+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00437
Processing order: 7il1ekrua7cvsaq, ref SO-00437
Syncing SO-00437
Using default start and end times
Time window: 2025-09-17T06:00:00+01:00 - 2025-09-17T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 15/09/2025 10:49 - Local updated: 2025-09-15 09:49:00.000Z - Source updated: 2025-09-15 09:49:02.000Z
Changed? yes
Current MaxOptra status: LOCKED
Completed? yes
Previous status: LOCKED
Updating local order POD and attachments...
Don't have local POD - fetching...
No POD found
Getting attachments for SO-00437...
No new attachments found
Is allocated? yes
Local updated: 2025-09-15 09:49:00.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Remote order is locked - will be replaced
Communication error with MaxOptra (412)
orders/SO-00437
https://7daycellar.maxoptra.com/api/v6/orders/SO-00437
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000046148042
Array
(
[referenceNumber] => 499326000046148042
[name] => test, 21 Broadlands, Benfleet
[address] => SS7 3BD
)
499326000046148042
Error updating SO-00437
Remote order is locked. Skipping.
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00437
Done all.
Finished at 2025-09-15 10:50:27
Webhook - destinationRunUpdated script called at 2025-09-15 10:55:41
Data: {"payload":{"runReference":"3506a3da98944bfca0a9ffee9bd51a61","status":"UNLOCKED","vehicleReference":"TEST","shiftDate":"2025-09-17"},"timestamp":"2025-09-15T09:55:40Z"}
JSON: {"payload":{"runReference":"3506a3da98944bfca0a9ffee9bd51a61","status":"UNLOCKED","vehicleReference":"TEST","shiftDate":"2025-09-17"},"timestamp":"2025-09-15T09:55:40Z"}
Vehicle: TEST
date: 2025-09-17
Status: UNLOCKED
200 response code sent
Processing order: SO-00437
Looking for local order: SO-00437
Updating local order from MaxOptra - current local order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => ianhitchman@fastmail.com
[contactName] => Ian Hitchman
[contactNotes] =>
[contactPhone] =>
[created] => 2025-09-15 08:32:26.889Z
[custom] => Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => testtest
)
[1] => Array
(
[id] => yt2l2o3cacu43wf
[value] => 10
)
[2] => Array
(
[id] => j381owny56syys6
[value] => 10
)
)
[customer] => kbgli4rhh2bs7qd
[deliveryCity] => Benfleet
[deliveryCounty] =>
[deliveryEnd] => 2025-09-17 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => test
[deliveryPostcode] => SS7 3BD
[deliveryStart] => 2025-09-17 00:00:00.000Z
[deliveryStreet] => 21 Broadlands
[description] =>
[driverRef] => TEST
[externalCustomerId] => 499326000046148036
[externalLocationId] => 499326000046148042
[externalOrderId] => 499326000048033346
[id] => 7il1ekrua7cvsaq
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00437
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Delivered
[syncInCreated] => 2025-09-15 07:11:00.000Z
[syncInStatus] => confirmed
[syncInUpdated] => 2025-09-15 09:49:02.000Z
[syncOutStatus] => LOCKED
[syncOutUpdated] => 2025-09-15 09:49:00.000Z
[timeWindows] => Array
(
)
[title] => Test Company
[totalValue] => 15.95
[totalWeight] => 0
[type] =>
[updated] => 2025-09-15 09:50:27.724Z
[vehicleRef] => TEST
[what3Words] =>
)
MaxOptra order details: Array
(
[0] => Array
(
[referenceNumber] => SO-00437
[consignmentReference] =>
[distributionCentreReference] => Head Office
[distributionCentreName] => Head Office
[task] => DELIVERY
[priority] => NORMAL
[vehicleRequirements] => Array
(
)
[additionalInstructions] =>
[clientName] => Test Company
[contactPerson] => Ian Hitchman
[contactNumber] =>
[contactEmail] => ianhitchman@fastmail.com
[additionalContactEmails] =>
[notificationPreferences] => Array
(
[allowSMS] => 1
[allowEmail] => 1
)
[customerLocation] => Array
(
[referenceNumber] => 499326000046148042
[name] => test, 21 Broadlands, Benfleet
[address] => SS7 3BD
[w3wAddress] =>
[latitude] => 51.56741
[longitude] => 0.58135
)
[territoryReference] =>
[stopSequence] => ANY
[timeWindows] => Array
(
[0] => Array
(
[start] => 2025-09-17T06:00:00+01:00
[end] => 2025-09-17T20:00:00+01:00
)
)
[orderDate] =>
[capacity1] => 0
[capacity2] => 0
[price] => 0
[operationDuration] => 300
[customFields] => Array
(
[7DCEmptiesGas] => 10
[7DCEmpties] => 10
[7DCPayment] => testtest
)
[orderItems] => Array
(
[0] => Array
(
[itemReferenceNumber] => 499326000000060809
[orderReferenceNumber] => SO-00437
[name] => Adblue
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 15.95
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 15.95
[height] => 0
[width] => 0
[length] => 0
[weight] => 0
[volume] => 0
)
)
[widgetTrackingDetails] =>
)
)
MaxOptra schedule details: Array
(
[orderReferenceNumber] => SO-00437
[assignedDriverReference] => TEST
[assignedDriverName] => TEST
[assignedVehicleReference] => TEST
[assignedVehicleName] => TEST
[plannedArrivalTime] => 2025-09-17T06:00:00+01:00
[plannedCompletionTime] => 2025-09-17T06:05:00+01:00
[stopNumber] => 1
[totalStopsInRun] => 1
[runNumber] => 1
[runReference] => 3506a3da98944bfca0a9ffee9bd51a61
[eta] =>
[factArrivalTimeGPS] =>
[factCompletionTimeGPS] =>
[factArrivalTimeReported] =>
[factCompletionTimeReported] =>
[failReason] =>
[failComment] =>
[status] => ALLOCATED
[driver] => TEST
[arrival_planned] => 2025-09-17T06:00:00+01:00
[arrival_estimated] =>
[arrival_actual] =>
[totalStops] => 1
)
Updating order: SO-00437
Update ID 7il1ekrua7cvsaq with: Array
(
[custom] => Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => testtest
)
[1] => Array
(
[id] => yt2l2o3cacu43wf
[value] => 10
)
[2] => Array
(
[id] => j381owny56syys6
[value] => 10
)
)
[driverRef] => TEST
[vehicleRef] => TEST
[seqNo] => 1
)
Updated order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => ianhitchman@fastmail.com
[contactName] => Ian Hitchman
[contactNotes] =>
[contactPhone] =>
[created] => 2025-09-15 08:32:26.889Z
[custom] => Array
(
[0] => stdClass Object
(
[id] => nc7sndad5bhvi5x
[value] => testtest
)
[1] => stdClass Object
(
[id] => yt2l2o3cacu43wf
[value] => 10
)
[2] => stdClass Object
(
[id] => j381owny56syys6
[value] => 10
)
)
[customer] => kbgli4rhh2bs7qd
[deliveryCity] => Benfleet
[deliveryCounty] =>
[deliveryEnd] => 2025-09-17 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => test
[deliveryPostcode] => SS7 3BD
[deliveryStart] => 2025-09-17 00:00:00.000Z
[deliveryStreet] => 21 Broadlands
[description] =>
[driverRef] => TEST
[externalCustomerId] => 499326000046148036
[externalLocationId] => 499326000046148042
[externalOrderId] => 499326000048033346
[id] => 7il1ekrua7cvsaq
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00437
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Delivered
[syncInCreated] => 2025-09-15 07:11:00.000Z
[syncInStatus] => confirmed
[syncInUpdated] => 2025-09-15 09:49:02.000Z
[syncOutStatus] => LOCKED
[syncOutUpdated] => 2025-09-15 09:49:00.000Z
[timeWindows] => Array
(
)
[title] => Test Company
[totalValue] => 15.95
[totalWeight] => 0
[type] =>
[updated] => 2025-09-15 09:55:41.886Z
[vehicleRef] => TEST
[what3Words] =>
)
Updating source from local order
Getting custom fields
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-07-18 02:35:52.065Z
[id] => nc7sndad5bhvi5x
[inCollection] => orders
[inField] => paymentMethod
[mappedField] => 7DCPayment
[name] => Payment method
[sourceField] =>
[syncFromSource] => 1
[syncToSource] =>
[type] => text
[updated] => 2025-07-18 02:35:52.065Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Processing field
Webhook - destinationRunUpdated script called at 2025-09-15 10:56:36
Data: {"payload":{"runReference":"3506a3da98944bfca0a9ffee9bd51a61","status":"LOCKED","vehicleReference":"TEST","shiftDate":"2025-09-17"},"timestamp":"2025-09-15T09:56:35Z"}
JSON: {"payload":{"runReference":"3506a3da98944bfca0a9ffee9bd51a61","status":"LOCKED","vehicleReference":"TEST","shiftDate":"2025-09-17"},"timestamp":"2025-09-15T09:56:35Z"}
Vehicle: TEST
date: 2025-09-17
Status: LOCKED
200 response code sent
Processing order: SO-00437
Looking for local order: SO-00437
Updating local order from MaxOptra - current local order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => ianhitchman@fastmail.com
[contactName] => Ian Hitchman
[contactNotes] =>
[contactPhone] =>
[created] => 2025-09-15 08:32:26.889Z
[custom] => Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => testtest
)
[1] => Array
(
[id] => yt2l2o3cacu43wf
[value] => 10
)
[2] => Array
(
[id] => j381owny56syys6
[value] => 10
)
)
[customer] => kbgli4rhh2bs7qd
[deliveryCity] => Benfleet
[deliveryCounty] =>
[deliveryEnd] => 2025-09-17 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => test
[deliveryPostcode] => SS7 3BD
[deliveryStart] => 2025-09-17 00:00:00.000Z
[deliveryStreet] => 21 Broadlands
[description] =>
[driverRef] => TEST
[externalCustomerId] => 499326000046148036
[externalLocationId] => 499326000046148042
[externalOrderId] => 499326000048033346
[id] => 7il1ekrua7cvsaq
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00437
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Delivered
[syncInCreated] => 2025-09-15 07:11:00.000Z
[syncInStatus] => confirmed
[syncInUpdated] => 2025-09-15 09:49:02.000Z
[syncOutStatus] => LOCKED
[syncOutUpdated] => 2025-09-15 09:49:00.000Z
[timeWindows] => Array
(
)
[title] => Test Company
[totalValue] => 15.95
[totalWeight] => 0
[type] =>
[updated] => 2025-09-15 09:55:41.886Z
[vehicleRef] => TEST
[what3Words] =>
)
MaxOptra order details: Array
(
[0] => Array
(
[referenceNumber] => SO-00437
[consignmentReference] =>
[distributionCentreReference] => Head Office
[distributionCentreName] => Head Office
[task] => DELIVERY
[priority] => NORMAL
[vehicleRequirements] => Array
(
)
[additionalInstructions] =>
[clientName] => Test Company
[contactPerson] => Ian Hitchman
[contactNumber] =>
[contactEmail] => ianhitchman@fastmail.com
[additionalContactEmails] =>
[notificationPreferences] => Array
(
[allowSMS] => 1
[allowEmail] => 1
)
[customerLocation] => Array
(
[referenceNumber] => 499326000046148042
[name] => test, 21 Broadlands, Benfleet
[address] => SS7 3BD
[w3wAddress] =>
[latitude] => 51.56741
[longitude] => 0.58135
)
[territoryReference] =>
[stopSequence] => ANY
[timeWindows] => Array
(
[0] => Array
(
[start] => 2025-09-17T06:00:00+01:00
[end] => 2025-09-17T20:00:00+01:00
)
)
[orderDate] =>
[capacity1] => 0
[capacity2] => 0
[price] => 0
[operationDuration] => 300
[customFields] => Array
(
[7DCEmptiesGas] => 10
[7DCEmpties] => 10
[7DCPayment] => testtest
)
[orderItems] => Array
(
[0] => Array
(
[itemReferenceNumber] => 499326000000060809
[orderReferenceNumber] => SO-00437
[name] => Adblue
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 15.95
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 15.95
[height] => 0
[width] => 0
[length] => 0
[weight] => 0
[volume] => 0
)
)
[widgetTrackingDetails] =>
)
)
MaxOptra schedule details: Array
(
[orderReferenceNumber] => SO-00437
[assignedDriverReference] => TEST
[assignedDriverName] => TEST
[assignedVehicleReference] => TEST
[assignedVehicleName] => TEST
[plannedArrivalTime] => 2025-09-17T06:00:00+01:00
[plannedCompletionTime] => 2025-09-17T06:05:00+01:00
[stopNumber] => 1
[totalStopsInRun] => 1
[runNumber] => 1
[runReference] => 3506a3da98944bfca0a9ffee9bd51a61
[eta] =>
[factArrivalTimeGPS] =>
[factCompletionTimeGPS] =>
[factArrivalTimeReported] =>
[factCompletionTimeReported] =>
[failReason] =>
[failComment] =>
[status] => LOCKED
[driver] => TEST
[arrival_planned] => 2025-09-17T06:00:00+01:00
[arrival_estimated] =>
[arrival_actual] =>
[totalStops] => 1
)
Updating order: SO-00437
Update ID 7il1ekrua7cvsaq with: Array
(
[custom] => Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => testtest
)
[1] => Array
(
[id] => yt2l2o3cacu43wf
[value] => 10
)
[2] => Array
(
[id] => j381owny56syys6
[value] => 10
)
)
[driverRef] => TEST
[vehicleRef] => TEST
[seqNo] => 1
)
Updated order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => ianhitchman@fastmail.com
[contactName] => Ian Hitchman
[contactNotes] =>
[contactPhone] =>
[created] => 2025-09-15 08:32:26.889Z
[custom] => Array
(
[0] => stdClass Object
(
[id] => nc7sndad5bhvi5x
[value] => testtest
)
[1] => stdClass Object
(
[id] => yt2l2o3cacu43wf
[value] => 10
)
[2] => stdClass Object
(
[id] => j381owny56syys6
[value] => 10
)
)
[customer] => kbgli4rhh2bs7qd
[deliveryCity] => Benfleet
[deliveryCounty] =>
[deliveryEnd] => 2025-09-17 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => test
[deliveryPostcode] => SS7 3BD
[deliveryStart] => 2025-09-17 00:00:00.000Z
[deliveryStreet] => 21 Broadlands
[description] =>
[driverRef] => TEST
[externalCustomerId] => 499326000046148036
[externalLocationId] => 499326000046148042
[externalOrderId] => 499326000048033346
[id] => 7il1ekrua7cvsaq
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00437
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Delivered
[syncInCreated] => 2025-09-15 07:11:00.000Z
[syncInStatus] => confirmed
[syncInUpdated] => 2025-09-15 09:49:02.000Z
[syncOutStatus] => LOCKED
[syncOutUpdated] => 2025-09-15 09:49:00.000Z
[timeWindows] => Array
(
)
[title] => Test Company
[totalValue] => 15.95
[totalWeight] => 0
[type] =>
[updated] => 2025-09-15 09:56:36.702Z
[vehicleRef] => TEST
[what3Words] =>
)
Updating source from local order
Getting custom fields
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-07-18 02:35:52.065Z
[id] => nc7sndad5bhvi5x
[inCollection] => orders
[inField] => paymentMethod
[mappedField] => 7DCPayment
[name] => Payment method
[sourceField] =>
[syncFromSource] => 1
[syncToSource] =>
[type] => text
[updated] => 2025-07-18 02:35:52.065Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Processing field
Webhook - destinationRunUpdated script called at 2025-09-15 11:03:53
Data: {"payload":{"runReference":"3506a3da98944bfca0a9ffee9bd51a61","status":"UNLOCKED","vehicleReference":"TEST","shiftDate":"2025-09-17"},"timestamp":"2025-09-15T10:03:53Z"}
JSON: {"payload":{"runReference":"3506a3da98944bfca0a9ffee9bd51a61","status":"UNLOCKED","vehicleReference":"TEST","shiftDate":"2025-09-17"},"timestamp":"2025-09-15T10:03:53Z"}
Vehicle: TEST
date: 2025-09-17
Status: UNLOCKED
200 response code sent
Processing order: SO-00437
Looking for local order: SO-00437
Updating local order from MaxOptra - current local order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => ianhitchman@fastmail.com
[contactName] => Ian Hitchman
[contactNotes] =>
[contactPhone] =>
[created] => 2025-09-15 08:32:26.889Z
[custom] => Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => testtest
)
[1] => Array
(
[id] => yt2l2o3cacu43wf
[value] => 10
)
[2] => Array
(
[id] => j381owny56syys6
[value] => 10
)
)
[customer] => kbgli4rhh2bs7qd
[deliveryCity] => Benfleet
[deliveryCounty] =>
[deliveryEnd] => 2025-09-17 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => test
[deliveryPostcode] => SS7 3BD
[deliveryStart] => 2025-09-17 00:00:00.000Z
[deliveryStreet] => 21 Broadlands
[description] =>
[driverRef] => TEST
[externalCustomerId] => 499326000046148036
[externalLocationId] => 499326000046148042
[externalOrderId] => 499326000048033346
[id] => 7il1ekrua7cvsaq
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00437
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Delivered
[syncInCreated] => 2025-09-15 07:11:00.000Z
[syncInStatus] => confirmed
[syncInUpdated] => 2025-09-15 09:49:02.000Z
[syncOutStatus] => LOCKED
[syncOutUpdated] => 2025-09-15 09:49:00.000Z
[timeWindows] => Array
(
)
[title] => Test Company
[totalValue] => 15.95
[totalWeight] => 0
[type] =>
[updated] => 2025-09-15 09:56:36.702Z
[vehicleRef] => TEST
[what3Words] =>
)
MaxOptra order details: Array
(
[0] => Array
(
[referenceNumber] => SO-00437
[consignmentReference] =>
[distributionCentreReference] => Head Office
[distributionCentreName] => Head Office
[task] => DELIVERY
[priority] => NORMAL
[vehicleRequirements] => Array
(
)
[additionalInstructions] =>
[clientName] => Test Company
[contactPerson] => Ian Hitchman
[contactNumber] =>
[contactEmail] => ianhitchman@fastmail.com
[additionalContactEmails] =>
[notificationPreferences] => Array
(
[allowSMS] => 1
[allowEmail] => 1
)
[customerLocation] => Array
(
[referenceNumber] => 499326000046148042
[name] => test, 21 Broadlands, Benfleet
[address] => SS7 3BD
[w3wAddress] =>
[latitude] => 51.56741
[longitude] => 0.58135
)
[territoryReference] =>
[stopSequence] => ANY
[timeWindows] => Array
(
[0] => Array
(
[start] => 2025-09-17T06:00:00+01:00
[end] => 2025-09-17T20:00:00+01:00
)
)
[orderDate] =>
[capacity1] => 0
[capacity2] => 0
[price] => 0
[operationDuration] => 300
[customFields] => Array
(
[7DCEmptiesGas] => 10
[7DCEmpties] => 10
[7DCPayment] => testtest
)
[orderItems] => Array
(
[0] => Array
(
[itemReferenceNumber] => 499326000000060809
[orderReferenceNumber] => SO-00437
[name] => Adblue
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 15.95
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 15.95
[height] => 0
[width] => 0
[length] => 0
[weight] => 0
[volume] => 0
)
)
[widgetTrackingDetails] =>
)
)
MaxOptra schedule details: Array
(
[orderReferenceNumber] => SO-00437
[assignedDriverReference] => TEST
[assignedDriverName] => TEST
[assignedVehicleReference] => TEST
[assignedVehicleName] => TEST
[plannedArrivalTime] => 2025-09-17T06:00:00+01:00
[plannedCompletionTime] => 2025-09-17T06:05:00+01:00
[stopNumber] => 1
[totalStopsInRun] => 1
[runNumber] => 1
[runReference] => 3506a3da98944bfca0a9ffee9bd51a61
[eta] =>
[factArrivalTimeGPS] =>
[factCompletionTimeGPS] =>
[factArrivalTimeReported] =>
[factCompletionTimeReported] =>
[failReason] =>
[failComment] =>
[status] => ALLOCATED
[driver] => TEST
[arrival_planned] => 2025-09-17T06:00:00+01:00
[arrival_estimated] =>
[arrival_actual] =>
[totalStops] => 1
)
Updating order: SO-00437
Update ID 7il1ekrua7cvsaq with: Array
(
[custom] => Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => testtest
)
[1] => Array
(
[id] => yt2l2o3cacu43wf
[value] => 10
)
[2] => Array
(
[id] => j381owny56syys6
[value] => 10
)
)
[driverRef] => TEST
[vehicleRef] => TEST
[seqNo] => 1
)
Updated order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => ianhitchman@fastmail.com
[contactName] => Ian Hitchman
[contactNotes] =>
[contactPhone] =>
[created] => 2025-09-15 08:32:26.889Z
[custom] => Array
(
[0] => stdClass Object
(
[id] => nc7sndad5bhvi5x
[value] => testtest
)
[1] => stdClass Object
(
[id] => yt2l2o3cacu43wf
[value] => 10
)
[2] => stdClass Object
(
[id] => j381owny56syys6
[value] => 10
)
)
[customer] => kbgli4rhh2bs7qd
[deliveryCity] => Benfleet
[deliveryCounty] =>
[deliveryEnd] => 2025-09-17 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => test
[deliveryPostcode] => SS7 3BD
[deliveryStart] => 2025-09-17 00:00:00.000Z
[deliveryStreet] => 21 Broadlands
[description] =>
[driverRef] => TEST
[externalCustomerId] => 499326000046148036
[externalLocationId] => 499326000046148042
[externalOrderId] => 499326000048033346
[id] => 7il1ekrua7cvsaq
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00437
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Delivered
[syncInCreated] => 2025-09-15 07:11:00.000Z
[syncInStatus] => confirmed
[syncInUpdated] => 2025-09-15 09:49:02.000Z
[syncOutStatus] => LOCKED
[syncOutUpdated] => 2025-09-15 09:49:00.000Z
[timeWindows] => Array
(
)
[title] => Test Company
[totalValue] => 15.95
[totalWeight] => 0
[type] =>
[updated] => 2025-09-15 10:03:54.006Z
[vehicleRef] => TEST
[what3Words] =>
)
Updating source from local order
Getting custom fields
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-07-18 02:35:52.065Z
[id] => nc7sndad5bhvi5x
[inCollection] => orders
[inField] => paymentMethod
[mappedField] => 7DCPayment
[name] => Payment method
[sourceField] =>
[syncFromSource] => 1
[syncToSource] =>
[type] => text
[updated] => 2025-07-18 02:35:52.065Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Processing field
Webhook - destinationRunUpdated script called at 2025-09-15 11:06:02
Data: {"payload":{"runReference":"3506a3da98944bfca0a9ffee9bd51a61","status":"LOCKED","vehicleReference":"TEST","shiftDate":"2025-09-17"},"timestamp":"2025-09-15T10:06:02Z"}
JSON: {"payload":{"runReference":"3506a3da98944bfca0a9ffee9bd51a61","status":"LOCKED","vehicleReference":"TEST","shiftDate":"2025-09-17"},"timestamp":"2025-09-15T10:06:02Z"}
Vehicle: TEST
date: 2025-09-17
Status: LOCKED
200 response code sent
Processing order: SO-00437
Looking for local order: SO-00437
Updating local order from MaxOptra - current local order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => ianhitchman@fastmail.com
[contactName] => Ian Hitchman
[contactNotes] =>
[contactPhone] =>
[created] => 2025-09-15 08:32:26.889Z
[custom] => Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => testtest
)
[1] => Array
(
[id] => yt2l2o3cacu43wf
[value] => 10
)
[2] => Array
(
[id] => j381owny56syys6
[value] => 10
)
)
[customer] => kbgli4rhh2bs7qd
[deliveryCity] => Benfleet
[deliveryCounty] =>
[deliveryEnd] => 2025-09-17 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => test
[deliveryPostcode] => SS7 3BD
[deliveryStart] => 2025-09-17 00:00:00.000Z
[deliveryStreet] => 21 Broadlands
[description] =>
[driverRef] => TEST
[externalCustomerId] => 499326000046148036
[externalLocationId] => 499326000046148042
[externalOrderId] => 499326000048033346
[id] => 7il1ekrua7cvsaq
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00437
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Delivered
[syncInCreated] => 2025-09-15 07:11:00.000Z
[syncInStatus] => confirmed
[syncInUpdated] => 2025-09-15 09:49:02.000Z
[syncOutStatus] => LOCKED
[syncOutUpdated] => 2025-09-15 09:49:00.000Z
[timeWindows] => Array
(
)
[title] => Test Company
[totalValue] => 15.95
[totalWeight] => 0
[type] =>
[updated] => 2025-09-15 10:03:54.006Z
[vehicleRef] => TEST
[what3Words] =>
)
MaxOptra order details: Array
(
[0] => Array
(
[referenceNumber] => SO-00437
[consignmentReference] =>
[distributionCentreReference] => Head Office
[distributionCentreName] => Head Office
[task] => DELIVERY
[priority] => NORMAL
[vehicleRequirements] => Array
(
)
[additionalInstructions] =>
[clientName] => Test Company
[contactPerson] => Ian Hitchman
[contactNumber] =>
[contactEmail] => ianhitchman@fastmail.com
[additionalContactEmails] =>
[notificationPreferences] => Array
(
[allowSMS] => 1
[allowEmail] => 1
)
[customerLocation] => Array
(
[referenceNumber] => 499326000046148042
[name] => test, 21 Broadlands, Benfleet
[address] => SS7 3BD
[w3wAddress] =>
[latitude] => 51.56741
[longitude] => 0.58135
)
[territoryReference] =>
[stopSequence] => ANY
[timeWindows] => Array
(
[0] => Array
(
[start] => 2025-09-17T06:00:00+01:00
[end] => 2025-09-17T20:00:00+01:00
)
)
[orderDate] =>
[capacity1] => 0
[capacity2] => 0
[price] => 0
[operationDuration] => 300
[customFields] => Array
(
[7DCEmptiesGas] => 10
[7DCEmpties] => 10
[7DCPayment] => testtest
)
[orderItems] => Array
(
[0] => Array
(
[itemReferenceNumber] => 499326000000060809
[orderReferenceNumber] => SO-00437
[name] => Adblue
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 15.95
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 15.95
[height] => 0
[width] => 0
[length] => 0
[weight] => 0
[volume] => 0
)
)
[widgetTrackingDetails] =>
)
)
MaxOptra schedule details: Array
(
[orderReferenceNumber] => SO-00437
[assignedDriverReference] => TEST
[assignedDriverName] => TEST
[assignedVehicleReference] => TEST
[assignedVehicleName] => TEST
[plannedArrivalTime] => 2025-09-17T06:00:00+01:00
[plannedCompletionTime] => 2025-09-17T06:05:00+01:00
[stopNumber] => 1
[totalStopsInRun] => 1
[runNumber] => 1
[runReference] => 3506a3da98944bfca0a9ffee9bd51a61
[eta] =>
[factArrivalTimeGPS] =>
[factCompletionTimeGPS] =>
[factArrivalTimeReported] =>
[factCompletionTimeReported] =>
[failReason] =>
[failComment] =>
[status] => LOCKED
[driver] => TEST
[arrival_planned] => 2025-09-17T06:00:00+01:00
[arrival_estimated] =>
[arrival_actual] =>
[totalStops] => 1
)
Updating order: SO-00437
Update ID 7il1ekrua7cvsaq with: Array
(
[custom] => Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => testtest
)
[1] => Array
(
[id] => yt2l2o3cacu43wf
[value] => 10
)
[2] => Array
(
[id] => j381owny56syys6
[value] => 10
)
)
[driverRef] => TEST
[vehicleRef] => TEST
[seqNo] => 1
)
Updated order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => ianhitchman@fastmail.com
[contactName] => Ian Hitchman
[contactNotes] =>
[contactPhone] =>
[created] => 2025-09-15 08:32:26.889Z
[custom] => Array
(
[0] => stdClass Object
(
[id] => nc7sndad5bhvi5x
[value] => testtest
)
[1] => stdClass Object
(
[id] => yt2l2o3cacu43wf
[value] => 10
)
[2] => stdClass Object
(
[id] => j381owny56syys6
[value] => 10
)
)
[customer] => kbgli4rhh2bs7qd
[deliveryCity] => Benfleet
[deliveryCounty] =>
[deliveryEnd] => 2025-09-17 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => test
[deliveryPostcode] => SS7 3BD
[deliveryStart] => 2025-09-17 00:00:00.000Z
[deliveryStreet] => 21 Broadlands
[description] =>
[driverRef] => TEST
[externalCustomerId] => 499326000046148036
[externalLocationId] => 499326000046148042
[externalOrderId] => 499326000048033346
[id] => 7il1ekrua7cvsaq
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00437
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Delivered
[syncInCreated] => 2025-09-15 07:11:00.000Z
[syncInStatus] => confirmed
[syncInUpdated] => 2025-09-15 09:49:02.000Z
[syncOutStatus] => LOCKED
[syncOutUpdated] => 2025-09-15 09:49:00.000Z
[timeWindows] => Array
(
)
[title] => Test Company
[totalValue] => 15.95
[totalWeight] => 0
[type] =>
[updated] => 2025-09-15 10:06:03.544Z
[vehicleRef] => TEST
[what3Words] =>
)
Updating source from local order
Getting custom fields
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-07-18 02:35:52.065Z
[id] => nc7sndad5bhvi5x
[inCollection] => orders
[inField] => paymentMethod
[mappedField] => 7DCPayment
[name] => Payment method
[sourceField] =>
[syncFromSource] => 1
[syncToSource] =>
[type] => text
[updated] => 2025-07-18 02:35:52.065Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Processing field
Mapped field: 7DCEmpties
Webhook - destinationRunUpdated script called at 2025-09-15 11:07:52
Data: {"payload":{"runReference":"3506a3da98944bfca0a9ffee9bd51a61","status":"UNLOCKED","vehicleReference":"TEST","shiftDate":"2025-09-17"},"timestamp":"2025-09-15T10:07:52Z"}
JSON: {"payload":{"runReference":"3506a3da98944bfca0a9ffee9bd51a61","status":"UNLOCKED","vehicleReference":"TEST","shiftDate":"2025-09-17"},"timestamp":"2025-09-15T10:07:52Z"}
Vehicle: TEST
date: 2025-09-17
Status: UNLOCKED
200 response code sent
Processing order: SO-00437
Looking for local order: SO-00437
Updating local order from MaxOptra - current local order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => ianhitchman@fastmail.com
[contactName] => Ian Hitchman
[contactNotes] =>
[contactPhone] =>
[created] => 2025-09-15 08:32:26.889Z
[custom] => Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => testtest
)
[1] => Array
(
[id] => yt2l2o3cacu43wf
[value] => 10
)
[2] => Array
(
[id] => j381owny56syys6
[value] => 10
)
)
[customer] => kbgli4rhh2bs7qd
[deliveryCity] => Benfleet
[deliveryCounty] =>
[deliveryEnd] => 2025-09-17 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => test
[deliveryPostcode] => SS7 3BD
[deliveryStart] => 2025-09-17 00:00:00.000Z
[deliveryStreet] => 21 Broadlands
[description] =>
[driverRef] => TEST
[externalCustomerId] => 499326000046148036
[externalLocationId] => 499326000046148042
[externalOrderId] => 499326000048033346
[id] => 7il1ekrua7cvsaq
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00437
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Delivered
[syncInCreated] => 2025-09-15 07:11:00.000Z
[syncInStatus] => confirmed
[syncInUpdated] => 2025-09-15 09:49:02.000Z
[syncOutStatus] => LOCKED
[syncOutUpdated] => 2025-09-15 09:49:00.000Z
[timeWindows] => Array
(
)
[title] => Test Company
[totalValue] => 15.95
[totalWeight] => 0
[type] =>
[updated] => 2025-09-15 10:06:03.544Z
[vehicleRef] => TEST
[what3Words] =>
)
MaxOptra order details: Array
(
[0] => Array
(
[referenceNumber] => SO-00437
[consignmentReference] =>
[distributionCentreReference] => Head Office
[distributionCentreName] => Head Office
[task] => DELIVERY
[priority] => NORMAL
[vehicleRequirements] => Array
(
)
[additionalInstructions] =>
[clientName] => Test Company
[contactPerson] => Ian Hitchman
[contactNumber] =>
[contactEmail] => ianhitchman@fastmail.com
[additionalContactEmails] =>
[notificationPreferences] => Array
(
[allowSMS] => 1
[allowEmail] => 1
)
[customerLocation] => Array
(
[referenceNumber] => 499326000046148042
[name] => test, 21 Broadlands, Benfleet
[address] => SS7 3BD
[w3wAddress] =>
[latitude] => 51.56741
[longitude] => 0.58135
)
[territoryReference] =>
[stopSequence] => ANY
[timeWindows] => Array
(
[0] => Array
(
[start] => 2025-09-17T06:00:00+01:00
[end] => 2025-09-17T20:00:00+01:00
)
)
[orderDate] =>
[capacity1] => 0
[capacity2] => 0
[price] => 0
[operationDuration] => 300
[customFields] => Array
(
[7DCEmptiesGas] => 10
[7DCEmpties] => 10
[7DCPayment] => testtest
)
[orderItems] => Array
(
[0] => Array
(
[itemReferenceNumber] => 499326000000060809
[orderReferenceNumber] => SO-00437
[name] => Adblue
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 15.95
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 15.95
[height] => 0
[width] => 0
[length] => 0
[weight] => 0
[volume] => 0
)
)
[widgetTrackingDetails] =>
)
)
MaxOptra schedule details: Array
(
[orderReferenceNumber] => SO-00437
[assignedDriverReference] => TEST
[assignedDriverName] => TEST
[assignedVehicleReference] => TEST
[assignedVehicleName] => TEST
[plannedArrivalTime] => 2025-09-17T06:00:00+01:00
[plannedCompletionTime] => 2025-09-17T06:05:00+01:00
[stopNumber] => 1
[totalStopsInRun] => 1
[runNumber] => 1
[runReference] => 3506a3da98944bfca0a9ffee9bd51a61
[eta] =>
[factArrivalTimeGPS] =>
[factCompletionTimeGPS] =>
[factArrivalTimeReported] =>
[factCompletionTimeReported] =>
[failReason] =>
[failComment] =>
[status] => ALLOCATED
[driver] => TEST
[arrival_planned] => 2025-09-17T06:00:00+01:00
[arrival_estimated] =>
[arrival_actual] =>
[totalStops] => 1
)
Updating order: SO-00437
Update ID 7il1ekrua7cvsaq with: Array
(
[custom] => Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => testtest
)
[1] => Array
(
[id] => yt2l2o3cacu43wf
[value] => 10
)
[2] => Array
(
[id] => j381owny56syys6
[value] => 10
)
)
[driverRef] => TEST
[vehicleRef] => TEST
[seqNo] => 1
)
Updated order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => ianhitchman@fastmail.com
[contactName] => Ian Hitchman
[contactNotes] =>
[contactPhone] =>
[created] => 2025-09-15 08:32:26.889Z
[custom] => Array
(
[0] => stdClass Object
(
[id] => nc7sndad5bhvi5x
[value] => testtest
)
[1] => stdClass Object
(
[id] => yt2l2o3cacu43wf
[value] => 10
)
[2] => stdClass Object
(
[id] => j381owny56syys6
[value] => 10
)
)
[customer] => kbgli4rhh2bs7qd
[deliveryCity] => Benfleet
[deliveryCounty] =>
[deliveryEnd] => 2025-09-17 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => test
[deliveryPostcode] => SS7 3BD
[deliveryStart] => 2025-09-17 00:00:00.000Z
[deliveryStreet] => 21 Broadlands
[description] =>
[driverRef] => TEST
[externalCustomerId] => 499326000046148036
[externalLocationId] => 499326000046148042
[externalOrderId] => 499326000048033346
[id] => 7il1ekrua7cvsaq
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00437
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Delivered
[syncInCreated] => 2025-09-15 07:11:00.000Z
[syncInStatus] => confirmed
[syncInUpdated] => 2025-09-15 09:49:02.000Z
[syncOutStatus] => LOCKED
[syncOutUpdated] => 2025-09-15 09:49:00.000Z
[timeWindows] => Array
(
)
[title] => Test Company
[totalValue] => 15.95
[totalWeight] => 0
[type] =>
[updated] => 2025-09-15 10:07:53.510Z
[vehicleRef] => TEST
[what3Words] =>
)
Updating source from local order
Getting custom fields
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-07-18 02:35:52.065Z
[id] => nc7sndad5bhvi5x
[inCollection] => orders
[inField] => paymentMethod
[mappedField] => 7DCPayment
[name] => Payment method
[sourceField] =>
[syncFromSource] => 1
[syncToSource] =>
[type] => text
[updated] => 2025-07-18 02:35:52.065Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Processing field
Mapped field: 7DCEmpties
Webhook - destinationRunUpdated script called at 2025-09-15 11:09:01
Data: {"payload":{"runReference":"3506a3da98944bfca0a9ffee9bd51a61","status":"LOCKED","vehicleReference":"TEST","shiftDate":"2025-09-17"},"timestamp":"2025-09-15T10:09:01Z"}
JSON: {"payload":{"runReference":"3506a3da98944bfca0a9ffee9bd51a61","status":"LOCKED","vehicleReference":"TEST","shiftDate":"2025-09-17"},"timestamp":"2025-09-15T10:09:01Z"}
Vehicle: TEST
date: 2025-09-17
Status: LOCKED
200 response code sent
Processing order: SO-00437
Looking for local order: SO-00437
Updating local order from MaxOptra - current local order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => ianhitchman@fastmail.com
[contactName] => Ian Hitchman
[contactNotes] =>
[contactPhone] =>
[created] => 2025-09-15 08:32:26.889Z
[custom] => Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => testtest
)
[1] => Array
(
[id] => yt2l2o3cacu43wf
[value] => 10
)
[2] => Array
(
[id] => j381owny56syys6
[value] => 10
)
)
[customer] => kbgli4rhh2bs7qd
[deliveryCity] => Benfleet
[deliveryCounty] =>
[deliveryEnd] => 2025-09-17 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => test
[deliveryPostcode] => SS7 3BD
[deliveryStart] => 2025-09-17 00:00:00.000Z
[deliveryStreet] => 21 Broadlands
[description] =>
[driverRef] => TEST
[externalCustomerId] => 499326000046148036
[externalLocationId] => 499326000046148042
[externalOrderId] => 499326000048033346
[id] => 7il1ekrua7cvsaq
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00437
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Delivered
[syncInCreated] => 2025-09-15 07:11:00.000Z
[syncInStatus] => confirmed
[syncInUpdated] => 2025-09-15 09:49:02.000Z
[syncOutStatus] => LOCKED
[syncOutUpdated] => 2025-09-15 09:49:00.000Z
[timeWindows] => Array
(
)
[title] => Test Company
[totalValue] => 15.95
[totalWeight] => 0
[type] =>
[updated] => 2025-09-15 10:07:53.510Z
[vehicleRef] => TEST
[what3Words] =>
)
MaxOptra order details: Array
(
[0] => Array
(
[referenceNumber] => SO-00437
[consignmentReference] =>
[distributionCentreReference] => Head Office
[distributionCentreName] => Head Office
[task] => DELIVERY
[priority] => NORMAL
[vehicleRequirements] => Array
(
)
[additionalInstructions] =>
[clientName] => Test Company
[contactPerson] => Ian Hitchman
[contactNumber] =>
[contactEmail] => ianhitchman@fastmail.com
[additionalContactEmails] =>
[notificationPreferences] => Array
(
[allowSMS] => 1
[allowEmail] => 1
)
[customerLocation] => Array
(
[referenceNumber] => 499326000046148042
[name] => test, 21 Broadlands, Benfleet
[address] => SS7 3BD
[w3wAddress] =>
[latitude] => 51.56741
[longitude] => 0.58135
)
[territoryReference] =>
[stopSequence] => ANY
[timeWindows] => Array
(
[0] => Array
(
[start] => 2025-09-17T06:00:00+01:00
[end] => 2025-09-17T20:00:00+01:00
)
)
[orderDate] =>
[capacity1] => 0
[capacity2] => 0
[price] => 0
[operationDuration] => 300
[customFields] => Array
(
[7DCEmptiesGas] => 10
[7DCEmpties] => 10
[7DCPayment] => testtest
)
[orderItems] => Array
(
[0] => Array
(
[itemReferenceNumber] => 499326000000060809
[orderReferenceNumber] => SO-00437
[name] => Adblue
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 15.95
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 15.95
[height] => 0
[width] => 0
[length] => 0
[weight] => 0
[volume] => 0
)
)
[widgetTrackingDetails] =>
)
)
MaxOptra schedule details: Array
(
[orderReferenceNumber] => SO-00437
[assignedDriverReference] => TEST
[assignedDriverName] => TEST
[assignedVehicleReference] => TEST
[assignedVehicleName] => TEST
[plannedArrivalTime] => 2025-09-17T06:00:00+01:00
[plannedCompletionTime] => 2025-09-17T06:05:00+01:00
[stopNumber] => 1
[totalStopsInRun] => 1
[runNumber] => 1
[runReference] => 3506a3da98944bfca0a9ffee9bd51a61
[eta] =>
[factArrivalTimeGPS] =>
[factCompletionTimeGPS] =>
[factArrivalTimeReported] =>
[factCompletionTimeReported] =>
[failReason] =>
[failComment] =>
[status] => LOCKED
[driver] => TEST
[arrival_planned] => 2025-09-17T06:00:00+01:00
[arrival_estimated] =>
[arrival_actual] =>
[totalStops] => 1
)
Updating order: SO-00437
Update ID 7il1ekrua7cvsaq with: Array
(
[custom] => Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => testtest
)
[1] => Array
(
[id] => yt2l2o3cacu43wf
[value] => 10
)
[2] => Array
(
[id] => j381owny56syys6
[value] => 10
)
)
[driverRef] => TEST
[vehicleRef] => TEST
[seqNo] => 1
)
Updated order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => ianhitchman@fastmail.com
[contactName] => Ian Hitchman
[contactNotes] =>
[contactPhone] =>
[created] => 2025-09-15 08:32:26.889Z
[custom] => Array
(
[0] => stdClass Object
(
[id] => nc7sndad5bhvi5x
[value] => testtest
)
[1] => stdClass Object
(
[id] => yt2l2o3cacu43wf
[value] => 10
)
[2] => stdClass Object
(
[id] => j381owny56syys6
[value] => 10
)
)
[customer] => kbgli4rhh2bs7qd
[deliveryCity] => Benfleet
[deliveryCounty] =>
[deliveryEnd] => 2025-09-17 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => test
[deliveryPostcode] => SS7 3BD
[deliveryStart] => 2025-09-17 00:00:00.000Z
[deliveryStreet] => 21 Broadlands
[description] =>
[driverRef] => TEST
[externalCustomerId] => 499326000046148036
[externalLocationId] => 499326000046148042
[externalOrderId] => 499326000048033346
[id] => 7il1ekrua7cvsaq
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00437
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Delivered
[syncInCreated] => 2025-09-15 07:11:00.000Z
[syncInStatus] => confirmed
[syncInUpdated] => 2025-09-15 09:49:02.000Z
[syncOutStatus] => LOCKED
[syncOutUpdated] => 2025-09-15 09:49:00.000Z
[timeWindows] => Array
(
)
[title] => Test Company
[totalValue] => 15.95
[totalWeight] => 0
[type] =>
[updated] => 2025-09-15 10:09:02.553Z
[vehicleRef] => TEST
[what3Words] =>
)
Updating source from local order
Getting custom fields
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-07-18 02:35:52.065Z
[id] => nc7sndad5bhvi5x
[inCollection] => orders
[inField] => paymentMethod
[mappedField] => 7DCPayment
[name] => Payment method
[sourceField] =>
[syncFromSource] => 1
[syncToSource] =>
[type] => text
[updated] => 2025-07-18 02:35:52.065Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Processing field
Mapped field: 7DCEmpties
Custom fields: Array
(
[0] => stdClass Object
(
[id] => nc7sndad5bhvi5x
[value] => testtest
)
[1] => stdClass Object
(
[id] => yt2l2o3cacu43wf
[value] => 10
)
[2] => stdClass Object
(
[id] => j381owny56syys6
[value] => 10
)
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Webhook - destinationRunUpdated script called at 2025-09-15 11:11:59
Data: {"payload":{"runReference":"3506a3da98944bfca0a9ffee9bd51a61","status":"UNLOCKED","vehicleReference":"TEST","shiftDate":"2025-09-17"},"timestamp":"2025-09-15T10:11:59Z"}
JSON: {"payload":{"runReference":"3506a3da98944bfca0a9ffee9bd51a61","status":"UNLOCKED","vehicleReference":"TEST","shiftDate":"2025-09-17"},"timestamp":"2025-09-15T10:11:59Z"}
Vehicle: TEST
date: 2025-09-17
Status: UNLOCKED
200 response code sent
Processing order: SO-00437
Looking for local order: SO-00437
Updating local order from MaxOptra - current local order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => ianhitchman@fastmail.com
[contactName] => Ian Hitchman
[contactNotes] =>
[contactPhone] =>
[created] => 2025-09-15 08:32:26.889Z
[custom] => Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => testtest
)
[1] => Array
(
[id] => yt2l2o3cacu43wf
[value] => 10
)
[2] => Array
(
[id] => j381owny56syys6
[value] => 10
)
)
[customer] => kbgli4rhh2bs7qd
[deliveryCity] => Benfleet
[deliveryCounty] =>
[deliveryEnd] => 2025-09-17 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => test
[deliveryPostcode] => SS7 3BD
[deliveryStart] => 2025-09-17 00:00:00.000Z
[deliveryStreet] => 21 Broadlands
[description] =>
[driverRef] => TEST
[externalCustomerId] => 499326000046148036
[externalLocationId] => 499326000046148042
[externalOrderId] => 499326000048033346
[id] => 7il1ekrua7cvsaq
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00437
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Delivered
[syncInCreated] => 2025-09-15 07:11:00.000Z
[syncInStatus] => confirmed
[syncInUpdated] => 2025-09-15 09:49:02.000Z
[syncOutStatus] => LOCKED
[syncOutUpdated] => 2025-09-15 09:49:00.000Z
[timeWindows] => Array
(
)
[title] => Test Company
[totalValue] => 15.95
[totalWeight] => 0
[type] =>
[updated] => 2025-09-15 10:09:02.553Z
[vehicleRef] => TEST
[what3Words] =>
)
MaxOptra order details: Array
(
[0] => Array
(
[referenceNumber] => SO-00437
[consignmentReference] =>
[distributionCentreReference] => Head Office
[distributionCentreName] => Head Office
[task] => DELIVERY
[priority] => NORMAL
[vehicleRequirements] => Array
(
)
[additionalInstructions] =>
[clientName] => Test Company
[contactPerson] => Ian Hitchman
[contactNumber] =>
[contactEmail] => ianhitchman@fastmail.com
[additionalContactEmails] =>
[notificationPreferences] => Array
(
[allowSMS] => 1
[allowEmail] => 1
)
[customerLocation] => Array
(
[referenceNumber] => 499326000046148042
[name] => test, 21 Broadlands, Benfleet
[address] => SS7 3BD
[w3wAddress] =>
[latitude] => 51.56741
[longitude] => 0.58135
)
[territoryReference] =>
[stopSequence] => ANY
[timeWindows] => Array
(
[0] => Array
(
[start] => 2025-09-17T06:00:00+01:00
[end] => 2025-09-17T20:00:00+01:00
)
)
[orderDate] =>
[capacity1] => 0
[capacity2] => 0
[price] => 0
[operationDuration] => 300
[customFields] => Array
(
[7DCEmptiesGas] => 10
[7DCEmpties] => 10
[7DCPayment] => testtest
)
[orderItems] => Array
(
[0] => Array
(
[itemReferenceNumber] => 499326000000060809
[orderReferenceNumber] => SO-00437
[name] => Adblue
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 15.95
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 15.95
[height] => 0
[width] => 0
[length] => 0
[weight] => 0
[volume] => 0
)
)
[widgetTrackingDetails] =>
)
)
MaxOptra schedule details: Array
(
[orderReferenceNumber] => SO-00437
[assignedDriverReference] => TEST
[assignedDriverName] => TEST
[assignedVehicleReference] => TEST
[assignedVehicleName] => TEST
[plannedArrivalTime] => 2025-09-17T06:00:00+01:00
[plannedCompletionTime] => 2025-09-17T06:05:00+01:00
[stopNumber] => 1
[totalStopsInRun] => 1
[runNumber] => 1
[runReference] => 3506a3da98944bfca0a9ffee9bd51a61
[eta] =>
[factArrivalTimeGPS] =>
[factCompletionTimeGPS] =>
[factArrivalTimeReported] =>
[factCompletionTimeReported] =>
[failReason] =>
[failComment] =>
[status] => ALLOCATED
[driver] => TEST
[arrival_planned] => 2025-09-17T06:00:00+01:00
[arrival_estimated] =>
[arrival_actual] =>
[totalStops] => 1
)
Updating order: SO-00437
Update ID 7il1ekrua7cvsaq with: Array
(
[custom] => Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => testtest
)
[1] => Array
(
[id] => yt2l2o3cacu43wf
[value] => 10
)
[2] => Array
(
[id] => j381owny56syys6
[value] => 10
)
)
[driverRef] => TEST
[vehicleRef] => TEST
[seqNo] => 1
)
Updated order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => ianhitchman@fastmail.com
[contactName] => Ian Hitchman
[contactNotes] =>
[contactPhone] =>
[created] => 2025-09-15 08:32:26.889Z
[custom] => Array
(
[0] => stdClass Object
(
[id] => nc7sndad5bhvi5x
[value] => testtest
)
[1] => stdClass Object
(
[id] => yt2l2o3cacu43wf
[value] => 10
)
[2] => stdClass Object
(
[id] => j381owny56syys6
[value] => 10
)
)
[customer] => kbgli4rhh2bs7qd
[deliveryCity] => Benfleet
[deliveryCounty] =>
[deliveryEnd] => 2025-09-17 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => test
[deliveryPostcode] => SS7 3BD
[deliveryStart] => 2025-09-17 00:00:00.000Z
[deliveryStreet] => 21 Broadlands
[description] =>
[driverRef] => TEST
[externalCustomerId] => 499326000046148036
[externalLocationId] => 499326000046148042
[externalOrderId] => 499326000048033346
[id] => 7il1ekrua7cvsaq
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00437
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Delivered
[syncInCreated] => 2025-09-15 07:11:00.000Z
[syncInStatus] => confirmed
[syncInUpdated] => 2025-09-15 09:49:02.000Z
[syncOutStatus] => LOCKED
[syncOutUpdated] => 2025-09-15 09:49:00.000Z
[timeWindows] => Array
(
)
[title] => Test Company
[totalValue] => 15.95
[totalWeight] => 0
[type] =>
[updated] => 2025-09-15 10:12:00.240Z
[vehicleRef] => TEST
[what3Words] =>
)
Updating source from local order
Getting custom fields
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-07-18 02:35:52.065Z
[id] => nc7sndad5bhvi5x
[inCollection] => orders
[inField] => paymentMethod
[mappedField] => 7DCPayment
[name] => Payment method
[sourceField] =>
[syncFromSource] => 1
[syncToSource] =>
[type] => text
[updated] => 2025-07-18 02:35:52.065Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Processing field
Mapped field: 7DCEmpties
Custom fields: Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => testtest
)
[1] => Array
(
[id] => yt2l2o3cacu43wf
[value] => 10
)
[2] => Array
(
[id] => j381owny56syys6
[value] => 10
)
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Custom field: Array
(
[id] => yt2l2o3cacu43wf
[value] => 10
)
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
Processing field
Mapped field: 7DCEmptiesGas
Custom fields: Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => testtest
)
[1] => Array
(
[id] => yt2l2o3cacu43wf
[value] => 10
)
[2] => Array
(
[id] => j381owny56syys6
[value] => 10
)
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
Custom field: Array
(
[id] => j381owny56syys6
[value] => 10
)
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:03:34.631Z
[id] => pcn96l3kgkps4az
[inCollection] => orders
[inField] => driverRef
[mappedField] =>
[name] => Delivery driver
[sourceField] => cf_delivery_driver
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:03:34.631Z
)
Processing field
driverRef...
Value: TEST
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-08 04:52:51.399Z
[id] => hhrzcmytzs8p3kw
[inCollection] => orders
[inField] => seqNo
[mappedField] =>
[name] => Run number
[sourceField] => cf_run_number
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-08 04:52:51.399Z
)
Processing field
seqNo...
Value: 1
Finished processing field
Continue
Updating source order: Array
(
[custom_fields] => Array
(
[0] => Array
(
[api_name] => cf_empties_collected
[value] => 10
)
[1] => Array
(
[api_name] => cf_gas_empties_collected
[value] => 10
)
[2] => Array
(
[api_name] => cf_delivery_driver
[value] => TEST
)
[3] => Array
(
[api_name] => cf_run_number
[value] => 1
)
)
)
Update result: Array
(
[code] => 0
[message] => Sales Order has been updated.
[salesorder] => Array
(
[salesorder_id] => 499326000048033346
[is_viewed_in_mail] =>
[mail_first_viewed_time] =>
[mail_last_viewed_time] =>
[documents] => Array
(
)
[zcrm_potential_id] =>
[zcrm_potential_name] =>
[salesorder_number] => SO-00437
[date] => 2025-09-17
[offline_created_date_with_time] =>
[tracking_url] =>
[has_discount] =>
[status] => confirmed
[color_code] =>
[current_sub_status_id] =>
[current_sub_status] => confirmed
[sub_statuses] => Array
(
)
[shipment_date] => 2025-09-22
[reference_number] =>
[customer_id] => 499326000046148036
[customer_name] => Test Company
[contact_persons] => Array
(
[0] => 499326000046148038
)
[contact_persons_associated] => Array
(
[0] => Array
(
[contact_person_id] => 499326000046148038
[contact_person_email] => ianhitchman@fastmail.com
[first_name] => Ian
[last_name] => Hitchman
[mobile] =>
[communication_preference] => Array
(
[is_email_enabled] => 1
)
)
)
[contact_person_details] => Array
(
[0] => Array
(
[phone] => +64-2041132636
[mobile] =>
[last_name] => Hitchman
[contact_person_id] => 499326000046148038
[first_name] => Ian
[email] => ianhitchman@fastmail.com
)
)
[source] => Client
[contact_category] => uk
[is_taxable] =>
[has_shipping_address] => 1
[currency_id] => 499326000000000065
[currency_code] => GBP
[currency_symbol] => £
[exchange_rate] => 1
[is_discount_before_tax] => 1
[discount_type] => item_level
[estimate_id] =>
[delivery_method] =>
[delivery_method_id] =>
[vat_treatment] => uk
[is_inclusive_tax] =>
[tax_rounding] => entity_level
[tax_override_preference] => no_override
[order_status] => confirmed
[invoiced_status] => not_invoiced
[paid_status] => unpaid
[shipped_status] => pending
[sales_channel] => direct_sales
[sales_channel_formatted] => Direct Sales
[account_identifier] =>
[integration_id] =>
[is_dropshipped] =>
[is_backordered] =>
[is_manually_fulfilled] =>
[can_manually_fulfill] => 1
[has_qty_cancelled] =>
[is_reverse_charge_applied] =>
[shipping_details] => Array
(
)
[created_by_email] => warehousing@7daycellar.co.uk
[created_by_name] => Admin Profile
[branch_id] => 499326000023111007
[branch_name] => Head Office
[location_id] => 499326000023111007
[location_name] => Head Office
[total_quantity] => 1
[line_items] => Array
(
[0] => Array
(
[line_item_id] => 499326000048033356
[variant_id] => 499326000000060809
[track_batch_number] =>
[item_id] => 499326000000060809
[is_returnable] =>
[product_id] => 499326000000060809
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] =>
[name] => Adblue
[group_name] => Adblue
[description] => Adblue
[item_order] => 1
[bcy_rate] => 15.95
[rate] => 15.95
[sales_rate] => 15.95
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] =>
[tax_name] =>
[tax_type] => tax
[tax_percentage] => 0
[line_item_taxes] => Array
(
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 15.95
[item_sub_total] => 15.95
[product_type] => goods
[line_item_type] => goods
[item_type] => sales_and_purchases
[is_invoiced] =>
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] =>
[image_type] =>
[document_id] =>
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 0
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] =>
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
)
[is_advanced_tracking_missing] =>
[entity_tags] =>
[submitter_id] =>
[approver_id] =>
[submitted_date] =>
[submitted_by] =>
[submitted_by_name] =>
[submitted_by_email] =>
[submitted_by_photo_url] =>
[price_precision] => 2
[is_emailed] => 1
[has_unconfirmed_line_item] =>
[picklists] => Array
(
)
[purchaseorders] => Array
(
)
[locations] => Array
(
[0] => Array
(
[location_id] => 499326000023111007
[location_name] => Head Office
[status] => active
)
[1] => Array
(
[location_id] => 499326000041689155
[location_name] => Bason Bridge Brewery Duty Bonded Warehouse
[status] => active
)
)
[billing_address_id] => 499326000046148040
[billing_address] => Array
(
[address] => 200 Broadlands
[street2] =>
[city] => Benfleet
[state] => Essex
[zip] => SS7 3BD
[country] => United Kingdom
[country_code] => GB
[county] =>
[state_code] => ESS
[fax] =>
[phone] =>
[attention] =>
)
[shipping_address_id] => 499326000046148042
[shipping_address] => Array
(
[company_name] =>
[address] => 21 Broadlands
[street2] =>
[city] => Benfleet
[state] =>
[zip] => SS7 3BD
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] => 07764485844
[attention] => test
)
[is_test_order] =>
[notes] => Account Name: 7 Day Cellar Ltd
Sort Code: 09-01-30
Account No: 10888924
[terms] =>
[payment_terms] => 0
[payment_terms_label] => Due On Receipt
[custom_fields] => Array
(
[0] => Array
(
[field_id] => 499326000042690007
[customfield_id] => 499326000042690007
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 1
[label] => Automation Required
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[is_color_code_supported] =>
[api_name] => cf__ulrql_automation_required
[show_in_all_pdf] =>
[selected_option_id] => 499326000042690011
[value_formatted] => Yes
[search_entity] => salesorder
[data_type] => dropdown
[placeholder] => cf__ulrql_automation_required
[value] => Yes
[is_dependent_field] =>
)
[1] => Array
(
[field_id] => 499326000046047547
[customfield_id] => 499326000046047547
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 2
[label] => Keg Empties Collected
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_empties_collected
[show_in_all_pdf] =>
[value_formatted] => 10
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_empties_collected
[value] => 10
[is_dependent_field] =>
)
[2] => Array
(
[field_id] => 499326000046252153
[customfield_id] => 499326000046252153
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 3
[label] => Gas Empties Collected
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_gas_empties_collected
[show_in_all_pdf] =>
[value_formatted] => 10
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_gas_empties_collected
[value] => 10
[is_dependent_field] =>
)
[3] => Array
(
[field_id] => 499326000046252173
[customfield_id] => 499326000046252173
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 4
[label] => Delivery Driver
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_driver
[show_in_all_pdf] =>
[value_formatted] => TEST
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_driver
[value] => TEST
[is_dependent_field] =>
)
[4] => Array
(
[field_id] => 499326000046717945
[customfield_id] => 499326000046717945
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 5
[label] => GoCardless Mandate
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_gocardless_mandate
[show_in_all_pdf] =>
[value_formatted] => False
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_gocardless_mandate
[value] => False
[is_dependent_field] =>
)
[5] => Array
(
[field_id] => 499326000047922345
[customfield_id] => 499326000047922345
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 6
[label] => Run Number
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_run_number
[show_in_all_pdf] =>
[value_formatted] => 1
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_run_number
[value] => 1
[is_dependent_field] =>
)
)
[custom_field_hash] => Array
(
[cf__ulrql_automation_required] => Yes
[cf__ulrql_automation_required_unformatted] => Yes
[cf_empties_collected] => 10
[cf_empties_collected_unformatted] => 10
[cf_gas_empties_collected] => 10
[cf_gas_empties_collected_unformatted] => 10
[cf_delivery_driver] => TEST
[cf_delivery_driver_unformatted] => TEST
[cf_gocardless_mandate] => False
[cf_gocardless_mandate_unformatted] => False
[cf_run_number] => 1
[cf_run_number_unformatted] => 1
)
[template_id] => 499326000000000111
[template_name] => Standard Template
[page_width] => 8.27in
[page_height] => 11.69in
[orientation] => portrait
[template_type] => standard
[created_time] => 2025-09-15T08:11:00+0100
[last_modified_time] => 2025-09-15T11:12:00+0100
[created_by_id] => 499326000044410001
[created_date] => 2025-09-15
[last_modified_by_id] => 499326000044410001
[attachment_name] =>
[can_send_in_mail] =>
[salesperson_id] =>
[salesperson_name] =>
[merchant_id] =>
[merchant_name] =>
[pickup_location_id] =>
[discount] => 0
[discount_applied_on_amount] => 0
[is_adv_tracking_in_package] =>
[shipping_charge_taxes] => Array
(
)
[lock_details] => Array
(
[can_lock] =>
)
[locked_actions] => Array
(
)
[shipping_charge_tax_id] =>
[shipping_charge_tax_name] =>
[shipping_charge_tax_type] =>
[shipping_charge_tax_percentage] =>
[shipping_charge_tax_exemption_id] =>
[shipping_charge_tax_exemption_code] =>
[shipping_charge_tax] =>
[bcy_shipping_charge_tax] =>
[shipping_charge_exclusive_of_tax] => 0
[shipping_charge_inclusive_of_tax] => 0
[shipping_charge_tax_formatted] =>
[shipping_charge_exclusive_of_tax_formatted] => £0.00
[shipping_charge_inclusive_of_tax_formatted] => £0.00
[shipping_charge] => 0
[bcy_shipping_charge] => 0
[adjustment] => 0
[bcy_adjustment] => 0
[adjustment_description] => Adjustment
[roundoff_value] => 0
[transaction_rounding_type] => no_rounding
[rounding_mode] => round_half_up
[bcy_rounding_mode] => round_half_up
[sub_total] => 15.95
[bcy_sub_total] => 15.95
[sub_total_inclusive_of_tax] => 0
[sub_total_exclusive_of_discount] => 15.95
[discount_total] => 0
[bcy_discount_total] => 0
[discount_percent] => 0
[tax_total] => 0
[bcy_tax_total] => 0
[total] => 15.95
[computation_type] => basic
[bcy_total] => 15.95
[reverse_charge_tax_total] => 0
[taxes] => Array
(
)
[tds_calculation_type] => tds_item_level
[packages] => Array
(
)
[so_cycle_preference] => Array
(
[is_feature_enabled] => 1
[socycle_status] => not_triggered
[can_create_invoice] => 1
[can_create_package] =>
[can_create_shipment] =>
[shipment_preference] => Array
(
[default_carrier] =>
[send_notification] =>
[deliver_shipments] =>
)
[invoice_preference] => Array
(
[mark_as_sent] =>
[record_payment] =>
[payment_mode_id] => 499326000000000199
[payment_account_id] => 499326000000000349
)
)
[invoices] => Array
(
)
[can_show_kit_return] =>
[is_kit_partial_return] =>
[salesreturns] => Array
(
)
[payments] => Array
(
)
[creditnotes] => Array
(
)
[refunds] => Array
(
)
[contact] => Array
(
[customer_balance] => 130.8
[credit_limit] => 0
[unused_customer_credits] => 0
[is_credit_limit_migration_completed] => 1
)
[balance] => 15.95
[approvers_list] => Array
(
)
[is_scheduled_for_quick_shipment_create] =>
)
)
Finished at 2025-09-15 11:12:01
Webhook - sourceUpdated script called at 2025-09-15 11:12:05
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048033346","salesorder_no":"SO-00437","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048033346","salesorder_no":"SO-00437","status":"open"}}
EXT ID: 499326000048033346
REF: SO-00437
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048033346 (REF SO-00437)
Local order updated = 2025-09-15 09:49:02.000Z,
source updated = 2025-09-15T11:12:00+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => ianhitchman@fastmail.com
[contactName] => Ian Hitchman
[notes] =>
[externalOrderId] => 499326000048033346
[refId] => SO-00437
[externalCustomerId] => 499326000046148036
[externalLocationId] => 499326000046148042
[title] => Test Company
[deliveryStart] => 2025-09-17
[deliveryEnd] => 2025-09-17
[totalValue] => 15.95
[totalWeight] => 0
[syncInCreated] => 2025-09-15T08:11:00+0100
[syncInUpdated] => 2025-09-15T11:12:00+0100
[syncInStatus] => confirmed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048033356
[externalProductId] => 499326000000060809
[sku] =>
[title] => Adblue
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 15.95
[price] => 15.95
)
)
[deliveryName] => test
[deliveryStreet] => 21 Broadlands
[deliveryCity] => Benfleet
[deliveryCounty] =>
[deliveryPostcode] => SS7 3BD
)
Does this order already exist?
Yes
Existing custom fields: Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => testtest
)
[1] => Array
(
[id] => yt2l2o3cacu43wf
[value] => 10
)
[2] => Array
(
[id] => j381owny56syys6
[value] => 10
)
)
Is array
Merging custom fields...
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => ianhitchman@fastmail.com
[contactName] => Ian Hitchman
[notes] =>
[externalOrderId] => 499326000048033346
[refId] => SO-00437
[externalCustomerId] => 499326000046148036
[externalLocationId] => 499326000046148042
[title] => Test Company
[deliveryStart] => 2025-09-17
[deliveryEnd] => 2025-09-17
[totalValue] => 15.95
[totalWeight] => 0
[syncInCreated] => 2025-09-15T08:11:00+0100
[syncInUpdated] => 2025-09-15T11:12:00+0100
[syncInStatus] => confirmed
[deliveryName] => test
[deliveryStreet] => 21 Broadlands
[deliveryCity] => Benfleet
[deliveryCounty] =>
[deliveryPostcode] => SS7 3BD
[syncOutUpdated] => 2025-09-15T11:12:06+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Ian Hitchman
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => [{"id":"nc7sndad5bhvi5x","value":"testtest"},{"id":"yt2l2o3cacu43wf","value":"10"},{"id":"j381owny56syys6","value":"10"}]
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000046148036
Getting products
Updating product 499326000000060809
Updating order product 499326000048033356
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00437
Processing order: 7il1ekrua7cvsaq, ref SO-00437
Syncing SO-00437
Using default start and end times
Time window: 2025-09-17T06:00:00+01:00 - 2025-09-17T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 15/09/2025 11:11 - Local updated: 2025-09-15 10:12:06.000Z - Source updated: 2025-09-15 10:12:00.000Z
Changed? yes
Current MaxOptra status: ALLOCATED
Completed? no
Previous status: LOCKED
Status changed - mark for sync back to source
Is allocated? yes
MO delivery date: 2025-09-17, Local delivery date: 2025-09-17
Local updated: 2025-09-15 10:12:06.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000046148042
Array
(
[referenceNumber] => 499326000046148042
[name] => test, 21 Broadlands, Benfleet
[address] => SS7 3BD
)
499326000046148042
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00437
Done all.
Finished at 2025-09-15 11:12:07
Webhook - destinationRunUpdated script called at 2025-09-15 11:13:28
Data: {"payload":{"runReference":"3136849a7cb944e28e87eb49dafe7bd1","status":"LOCKED","vehicleReference":"TEST","shiftDate":"2025-09-17"},"timestamp":"2025-09-15T10:13:27Z"}
JSON: {"payload":{"runReference":"3136849a7cb944e28e87eb49dafe7bd1","status":"LOCKED","vehicleReference":"TEST","shiftDate":"2025-09-17"},"timestamp":"2025-09-15T10:13:27Z"}
Vehicle: TEST
date: 2025-09-17
Status: LOCKED
200 response code sent
Processing order: SO-00437
Looking for local order: SO-00437
Updating local order from MaxOptra - current local order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => ianhitchman@fastmail.com
[contactName] => Ian Hitchman
[contactNotes] =>
[contactPhone] =>
[created] => 2025-09-15 08:32:26.889Z
[custom] => Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => testtest
)
[1] => Array
(
[id] => yt2l2o3cacu43wf
[value] => 10
)
[2] => Array
(
[id] => j381owny56syys6
[value] => 10
)
)
[customer] => kbgli4rhh2bs7qd
[deliveryCity] => Benfleet
[deliveryCounty] =>
[deliveryEnd] => 2025-09-17 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => test
[deliveryPostcode] => SS7 3BD
[deliveryStart] => 2025-09-17 00:00:00.000Z
[deliveryStreet] => 21 Broadlands
[description] =>
[driverRef] => TEST
[externalCustomerId] => 499326000046148036
[externalLocationId] => 499326000046148042
[externalOrderId] => 499326000048033346
[id] => 7il1ekrua7cvsaq
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] => 1
[ref] =>
[refId] => SO-00437
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Scheduled
[syncInCreated] => 2025-09-15 07:11:00.000Z
[syncInStatus] => confirmed
[syncInUpdated] => 2025-09-15 10:12:00.000Z
[syncOutStatus] => ALLOCATED
[syncOutUpdated] => 2025-09-15 10:11:00.000Z
[timeWindows] => Array
(
)
[title] => Test Company
[totalValue] => 15.95
[totalWeight] => 0
[type] =>
[updated] => 2025-09-15 10:12:07.983Z
[vehicleRef] => TEST
[what3Words] =>
)
MaxOptra order details: Array
(
[0] => Array
(
[referenceNumber] => SO-00437
[consignmentReference] =>
[distributionCentreReference] => Head Office
[distributionCentreName] => Head Office
[task] => DELIVERY
[priority] => NORMAL
[vehicleRequirements] => Array
(
)
[additionalInstructions] =>
[clientName] => Test Company
[contactPerson] => Ian Hitchman
[contactNumber] =>
[contactEmail] => ianhitchman@fastmail.com
[additionalContactEmails] =>
[notificationPreferences] => Array
(
[allowSMS] => 1
[allowEmail] => 1
)
[customerLocation] => Array
(
[referenceNumber] => 499326000046148042
[name] => test, 21 Broadlands, Benfleet
[address] => SS7 3BD
[w3wAddress] =>
[latitude] => 51.56741
[longitude] => 0.58135
)
[territoryReference] =>
[stopSequence] => ANY
[timeWindows] => Array
(
[0] => Array
(
[start] => 2025-09-17T06:00:00+01:00
[end] => 2025-09-17T20:00:00+01:00
)
)
[orderDate] =>
[capacity1] => 0
[capacity2] => 0
[price] => 0
[operationDuration] => 300
[customFields] => Array
(
[7DCEmptiesGas] => 11
[7DCEmpties] => 11
[7DCPayment] => testtest
)
[orderItems] => Array
(
[0] => Array
(
[itemReferenceNumber] => 499326000000060809
[orderReferenceNumber] => SO-00437
[name] => Adblue
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 15.95
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 15.95
[height] => 0
[width] => 0
[length] => 0
[weight] => 0
[volume] => 0
)
)
[widgetTrackingDetails] =>
)
)
MaxOptra schedule details: Array
(
[orderReferenceNumber] => SO-00437
[assignedDriverReference] => TEST
[assignedDriverName] => TEST
[assignedVehicleReference] => TEST
[assignedVehicleName] => TEST
[plannedArrivalTime] => 2025-09-17T06:00:00+01:00
[plannedCompletionTime] => 2025-09-17T06:05:00+01:00
[stopNumber] => 1
[totalStopsInRun] => 1
[runNumber] => 1
[runReference] => 3136849a7cb944e28e87eb49dafe7bd1
[eta] =>
[factArrivalTimeGPS] =>
[factCompletionTimeGPS] =>
[factArrivalTimeReported] =>
[factCompletionTimeReported] =>
[failReason] =>
[failComment] =>
[status] => LOCKED
[driver] => TEST
[arrival_planned] => 2025-09-17T06:00:00+01:00
[arrival_estimated] =>
[arrival_actual] =>
[totalStops] => 1
)
Updating order: SO-00437
Update ID 7il1ekrua7cvsaq with: Array
(
[custom] => Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => testtest
)
[1] => Array
(
[id] => yt2l2o3cacu43wf
[value] => 11
)
[2] => Array
(
[id] => j381owny56syys6
[value] => 11
)
)
[driverRef] => TEST
[vehicleRef] => TEST
[seqNo] => 1
)
Updated order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => ianhitchman@fastmail.com
[contactName] => Ian Hitchman
[contactNotes] =>
[contactPhone] =>
[created] => 2025-09-15 08:32:26.889Z
[custom] => Array
(
[0] => stdClass Object
(
[id] => nc7sndad5bhvi5x
[value] => testtest
)
[1] => stdClass Object
(
[id] => yt2l2o3cacu43wf
[value] => 11
)
[2] => stdClass Object
(
[id] => j381owny56syys6
[value] => 11
)
)
[customer] => kbgli4rhh2bs7qd
[deliveryCity] => Benfleet
[deliveryCounty] =>
[deliveryEnd] => 2025-09-17 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => test
[deliveryPostcode] => SS7 3BD
[deliveryStart] => 2025-09-17 00:00:00.000Z
[deliveryStreet] => 21 Broadlands
[description] =>
[driverRef] => TEST
[externalCustomerId] => 499326000046148036
[externalLocationId] => 499326000046148042
[externalOrderId] => 499326000048033346
[id] => 7il1ekrua7cvsaq
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] => 1
[ref] =>
[refId] => SO-00437
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Scheduled
[syncInCreated] => 2025-09-15 07:11:00.000Z
[syncInStatus] => confirmed
[syncInUpdated] => 2025-09-15 10:12:00.000Z
[syncOutStatus] => ALLOCATED
[syncOutUpdated] => 2025-09-15 10:11:00.000Z
[timeWindows] => Array
(
)
[title] => Test Company
[totalValue] => 15.95
[totalWeight] => 0
[type] =>
[updated] => 2025-09-15 10:13:28.551Z
[vehicleRef] => TEST
[what3Words] =>
)
Updating source from local order
Getting custom fields
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-07-18 02:35:52.065Z
[id] => nc7sndad5bhvi5x
[inCollection] => orders
[inField] => paymentMethod
[mappedField] => 7DCPayment
[name] => Payment method
[sourceField] =>
[syncFromSource] => 1
[syncToSource] =>
[type] => text
[updated] => 2025-07-18 02:35:52.065Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Processing field
Mapped field: 7DCEmpties
Custom fields: Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => testtest
)
[1] => Array
(
[id] => yt2l2o3cacu43wf
[value] => 11
)
[2] => Array
(
[id] => j381owny56syys6
[value] => 11
)
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Custom field: Array
(
[id] => yt2l2o3cacu43wf
[value] => 11
)
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
Processing field
Mapped field: 7DCEmptiesGas
Custom fields: Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => testtest
)
[1] => Array
(
[id] => yt2l2o3cacu43wf
[value] => 11
)
[2] => Array
(
[id] => j381owny56syys6
[value] => 11
)
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
Custom field: Array
(
[id] => j381owny56syys6
[value] => 11
)
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:03:34.631Z
[id] => pcn96l3kgkps4az
[inCollection] => orders
[inField] => driverRef
[mappedField] =>
[name] => Delivery driver
[sourceField] => cf_delivery_driver
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:03:34.631Z
)
Processing field
driverRef...
Value: TEST
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-08 04:52:51.399Z
[id] => hhrzcmytzs8p3kw
[inCollection] => orders
[inField] => seqNo
[mappedField] =>
[name] => Run number
[sourceField] => cf_run_number
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-08 04:52:51.399Z
)
Processing field
seqNo...
Value: 1
Finished processing field
Continue
Updating source order: Array
(
[custom_fields] => Array
(
[0] => Array
(
[api_name] => cf_empties_collected
[value] => 11
)
[1] => Array
(
[api_name] => cf_gas_empties_collected
[value] => 11
)
[2] => Array
(
[api_name] => cf_delivery_driver
[value] => TEST
)
[3] => Array
(
[api_name] => cf_run_number
[value] => 1
)
)
)
Update result: Array
(
[code] => 0
[message] => Sales Order has been updated.
[salesorder] => Array
(
[salesorder_id] => 499326000048033346
[is_viewed_in_mail] =>
[mail_first_viewed_time] =>
[mail_last_viewed_time] =>
[documents] => Array
(
)
[zcrm_potential_id] =>
[zcrm_potential_name] =>
[salesorder_number] => SO-00437
[date] => 2025-09-17
[offline_created_date_with_time] =>
[tracking_url] =>
[has_discount] =>
[status] => confirmed
[color_code] =>
[current_sub_status_id] =>
[current_sub_status] => confirmed
[sub_statuses] => Array
(
)
[shipment_date] => 2025-09-22
[reference_number] =>
[customer_id] => 499326000046148036
[customer_name] => Test Company
[contact_persons] => Array
(
[0] => 499326000046148038
)
[contact_persons_associated] => Array
(
[0] => Array
(
[contact_person_id] => 499326000046148038
[contact_person_email] => ianhitchman@fastmail.com
[first_name] => Ian
[last_name] => Hitchman
[mobile] =>
[communication_preference] => Array
(
[is_email_enabled] => 1
)
)
)
[contact_person_details] => Array
(
[0] => Array
(
[phone] => +64-2041132636
[mobile] =>
[last_name] => Hitchman
[contact_person_id] => 499326000046148038
[first_name] => Ian
[email] => ianhitchman@fastmail.com
)
)
[source] => Client
[contact_category] => uk
[is_taxable] =>
[has_shipping_address] => 1
[currency_id] => 499326000000000065
[currency_code] => GBP
[currency_symbol] => £
[exchange_rate] => 1
[is_discount_before_tax] => 1
[discount_type] => item_level
[estimate_id] =>
[delivery_method] =>
[delivery_method_id] =>
[vat_treatment] => uk
[is_inclusive_tax] =>
[tax_rounding] => entity_level
[tax_override_preference] => no_override
[order_status] => confirmed
[invoiced_status] => not_invoiced
[paid_status] => unpaid
[shipped_status] => pending
[sales_channel] => direct_sales
[sales_channel_formatted] => Direct Sales
[account_identifier] =>
[integration_id] =>
[is_dropshipped] =>
[is_backordered] =>
[is_manually_fulfilled] =>
[can_manually_fulfill] => 1
[has_qty_cancelled] =>
[is_reverse_charge_applied] =>
[shipping_details] => Array
(
)
[created_by_email] => warehousing@7daycellar.co.uk
[created_by_name] => Admin Profile
[branch_id] => 499326000023111007
[branch_name] => Head Office
[location_id] => 499326000023111007
[location_name] => Head Office
[total_quantity] => 1
[line_items] => Array
(
[0] => Array
(
[line_item_id] => 499326000048033356
[variant_id] => 499326000000060809
[track_batch_number] =>
[item_id] => 499326000000060809
[is_returnable] =>
[product_id] => 499326000000060809
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] =>
[name] => Adblue
[group_name] => Adblue
[description] => Adblue
[item_order] => 1
[bcy_rate] => 15.95
[rate] => 15.95
[sales_rate] => 15.95
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] =>
[tax_name] =>
[tax_type] => tax
[tax_percentage] => 0
[line_item_taxes] => Array
(
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 15.95
[item_sub_total] => 15.95
[product_type] => goods
[line_item_type] => goods
[item_type] => sales_and_purchases
[is_invoiced] =>
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] =>
[image_type] =>
[document_id] =>
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 0
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] =>
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
)
[is_advanced_tracking_missing] =>
[entity_tags] =>
[submitter_id] =>
[approver_id] =>
[submitted_date] =>
[submitted_by] =>
[submitted_by_name] =>
[submitted_by_email] =>
[submitted_by_photo_url] =>
[price_precision] => 2
[is_emailed] => 1
[has_unconfirmed_line_item] =>
[picklists] => Array
(
)
[purchaseorders] => Array
(
)
[locations] => Array
(
[0] => Array
(
[location_id] => 499326000023111007
[location_name] => Head Office
[status] => active
)
[1] => Array
(
[location_id] => 499326000041689155
[location_name] => Bason Bridge Brewery Duty Bonded Warehouse
[status] => active
)
)
[billing_address_id] => 499326000046148040
[billing_address] => Array
(
[address] => 200 Broadlands
[street2] =>
[city] => Benfleet
[state] => Essex
[zip] => SS7 3BD
[country] => United Kingdom
[country_code] => GB
[county] =>
[state_code] => ESS
[fax] =>
[phone] =>
[attention] =>
)
[shipping_address_id] => 499326000046148042
[shipping_address] => Array
(
[company_name] =>
[address] => 21 Broadlands
[street2] =>
[city] => Benfleet
[state] =>
[zip] => SS7 3BD
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] => 07764485844
[attention] => test
)
[is_test_order] =>
[notes] => Account Name: 7 Day Cellar Ltd
Sort Code: 09-01-30
Account No: 10888924
[terms] =>
[payment_terms] => 0
[payment_terms_label] => Due On Receipt
[custom_fields] => Array
(
[0] => Array
(
[field_id] => 499326000042690007
[customfield_id] => 499326000042690007
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 1
[label] => Automation Required
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[is_color_code_supported] =>
[api_name] => cf__ulrql_automation_required
[show_in_all_pdf] =>
[selected_option_id] => 499326000042690011
[value_formatted] => Yes
[search_entity] => salesorder
[data_type] => dropdown
[placeholder] => cf__ulrql_automation_required
[value] => Yes
[is_dependent_field] =>
)
[1] => Array
(
[field_id] => 499326000046047547
[customfield_id] => 499326000046047547
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 2
[label] => Keg Empties Collected
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_empties_collected
[show_in_all_pdf] =>
[value_formatted] => 11
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_empties_collected
[value] => 11
[is_dependent_field] =>
)
[2] => Array
(
[field_id] => 499326000046252153
[customfield_id] => 499326000046252153
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 3
[label] => Gas Empties Collected
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_gas_empties_collected
[show_in_all_pdf] =>
[value_formatted] => 11
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_gas_empties_collected
[value] => 11
[is_dependent_field] =>
)
[3] => Array
(
[field_id] => 499326000046252173
[customfield_id] => 499326000046252173
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 4
[label] => Delivery Driver
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_driver
[show_in_all_pdf] =>
[value_formatted] => TEST
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_driver
[value] => TEST
[is_dependent_field] =>
)
[4] => Array
(
[field_id] => 499326000046717945
[customfield_id] => 499326000046717945
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 5
[label] => GoCardless Mandate
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_gocardless_mandate
[show_in_all_pdf] =>
[value_formatted] => False
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_gocardless_mandate
[value] => False
[is_dependent_field] =>
)
[5] => Array
(
[field_id] => 499326000047922345
[customfield_id] => 499326000047922345
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 6
[label] => Run Number
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_run_number
[show_in_all_pdf] =>
[value_formatted] => 1
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_run_number
[value] => 1
[is_dependent_field] =>
)
)
[custom_field_hash] => Array
(
[cf__ulrql_automation_required] => Yes
[cf__ulrql_automation_required_unformatted] => Yes
[cf_empties_collected] => 11
[cf_empties_collected_unformatted] => 11
[cf_gas_empties_collected] => 11
[cf_gas_empties_collected_unformatted] => 11
[cf_delivery_driver] => TEST
[cf_delivery_driver_unformatted] => TEST
[cf_gocardless_mandate] => False
[cf_gocardless_mandate_unformatted] => False
[cf_run_number] => 1
[cf_run_number_unformatted] => 1
)
[template_id] => 499326000000000111
[template_name] => Standard Template
[page_width] => 8.27in
[page_height] => 11.69in
[orientation] => portrait
[template_type] => standard
[created_time] => 2025-09-15T08:11:00+0100
[last_modified_time] => 2025-09-15T11:13:28+0100
[created_by_id] => 499326000044410001
[created_date] => 2025-09-15
[last_modified_by_id] => 499326000044410001
[attachment_name] =>
[can_send_in_mail] =>
[salesperson_id] =>
[salesperson_name] =>
[merchant_id] =>
[merchant_name] =>
[pickup_location_id] =>
[discount] => 0
[discount_applied_on_amount] => 0
[is_adv_tracking_in_package] =>
[shipping_charge_taxes] => Array
(
)
[lock_details] => Array
(
[can_lock] =>
)
[locked_actions] => Array
(
)
[shipping_charge_tax_id] =>
[shipping_charge_tax_name] =>
[shipping_charge_tax_type] =>
[shipping_charge_tax_percentage] =>
[shipping_charge_tax_exemption_id] =>
[shipping_charge_tax_exemption_code] =>
[shipping_charge_tax] =>
[bcy_shipping_charge_tax] =>
[shipping_charge_exclusive_of_tax] => 0
[shipping_charge_inclusive_of_tax] => 0
[shipping_charge_tax_formatted] =>
[shipping_charge_exclusive_of_tax_formatted] => £0.00
[shipping_charge_inclusive_of_tax_formatted] => £0.00
[shipping_charge] => 0
[bcy_shipping_charge] => 0
[adjustment] => 0
[bcy_adjustment] => 0
[adjustment_description] => Adjustment
[roundoff_value] => 0
[transaction_rounding_type] => no_rounding
[rounding_mode] => round_half_up
[bcy_rounding_mode] => round_half_up
[sub_total] => 15.95
[bcy_sub_total] => 15.95
[sub_total_inclusive_of_tax] => 0
[sub_total_exclusive_of_discount] => 15.95
[discount_total] => 0
[bcy_discount_total] => 0
[discount_percent] => 0
[tax_total] => 0
[bcy_tax_total] => 0
[total] => 15.95
[computation_type] => basic
[bcy_total] => 15.95
[reverse_charge_tax_total] => 0
[taxes] => Array
(
)
[tds_calculation_type] => tds_item_level
[packages] => Array
(
)
[so_cycle_preference] => Array
(
[is_feature_enabled] => 1
[socycle_status] => not_triggered
[can_create_invoice] => 1
[can_create_package] =>
[can_create_shipment] =>
[shipment_preference] => Array
(
[default_carrier] =>
[send_notification] =>
[deliver_shipments] =>
)
[invoice_preference] => Array
(
[mark_as_sent] =>
[record_payment] =>
[payment_mode_id] => 499326000000000199
[payment_account_id] => 499326000000000349
)
)
[invoices] => Array
(
)
[can_show_kit_return] =>
[is_kit_partial_return] =>
[salesreturns] => Array
(
)
[payments] => Array
(
)
[creditnotes] => Array
(
)
[refunds] => Array
(
)
[contact] => Array
(
[customer_balance] => 130.8
[credit_limit] => 0
[unused_customer_credits] => 0
[is_credit_limit_migration_completed] => 1
)
[balance] => 15.95
[approvers_list] => Array
(
)
[is_scheduled_for_quick_shipment_create] =>
)
)
Finished at 2025-09-15 11:13:29
Webhook - sourceUpdated script called at 2025-09-15 11:13:39
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048033346","salesorder_no":"SO-00437","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048033346","salesorder_no":"SO-00437","status":"open"}}
EXT ID: 499326000048033346
REF: SO-00437
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048033346 (REF SO-00437)
Updates pending to source for order: 499326000048033346
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-09-15 10:12:00.000Z,
source updated = 2025-09-15T11:13:28+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => ianhitchman@fastmail.com
[contactName] => Ian Hitchman
[notes] =>
[externalOrderId] => 499326000048033346
[refId] => SO-00437
[externalCustomerId] => 499326000046148036
[externalLocationId] => 499326000046148042
[title] => Test Company
[deliveryStart] => 2025-09-17
[deliveryEnd] => 2025-09-17
[totalValue] => 15.95
[totalWeight] => 0
[syncInCreated] => 2025-09-15T08:11:00+0100
[syncInUpdated] => 2025-09-15T11:13:28+0100
[syncInStatus] => confirmed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048033356
[externalProductId] => 499326000000060809
[sku] =>
[title] => Adblue
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 15.95
[price] => 15.95
)
)
[deliveryName] => test
[deliveryStreet] => 21 Broadlands
[deliveryCity] => Benfleet
[deliveryCounty] =>
[deliveryPostcode] => SS7 3BD
)
Does this order already exist?
Yes
Existing custom fields: Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => testtest
)
[1] => Array
(
[id] => yt2l2o3cacu43wf
[value] => 11
)
[2] => Array
(
[id] => j381owny56syys6
[value] => 11
)
)
Is array
Merging custom fields...
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => ianhitchman@fastmail.com
[contactName] => Ian Hitchman
[notes] =>
[externalOrderId] => 499326000048033346
[refId] => SO-00437
[externalCustomerId] => 499326000046148036
[externalLocationId] => 499326000046148042
[title] => Test Company
[deliveryStart] => 2025-09-17
[deliveryEnd] => 2025-09-17
[totalValue] => 15.95
[totalWeight] => 0
[syncInCreated] => 2025-09-15T08:11:00+0100
[syncInUpdated] => 2025-09-15T11:13:28+0100
[syncInStatus] => confirmed
[deliveryName] => test
[deliveryStreet] => 21 Broadlands
[deliveryCity] => Benfleet
[deliveryCounty] =>
[deliveryPostcode] => SS7 3BD
[syncOutUpdated] => 2025-09-15T11:13:40+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Ian Hitchman
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => [{"id":"nc7sndad5bhvi5x","value":"testtest"},{"id":"yt2l2o3cacu43wf","value":"11"},{"id":"j381owny56syys6","value":"11"}]
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000046148036
Getting products
Updating product 499326000000060809
Updating order product 499326000048033356
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00437
Processing order: 7il1ekrua7cvsaq, ref SO-00437
Syncing SO-00437
Using default start and end times
Time window: 2025-09-17T06:00:00+01:00 - 2025-09-17T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 15/09/2025 11:13 - Local updated: 2025-09-15 10:13:40.000Z - Source updated: 2025-09-15 10:13:28.000Z
Changed? yes
Current MaxOptra status: LOCKED
Completed? yes
Previous status: ALLOCATED
Status changed - mark for sync back to source
Updating local order POD and attachments...
Don't have local POD - fetching...
No POD found
Getting attachments for SO-00437...
No new attachments found
Is allocated? yes
Local updated: 2025-09-15 10:13:40.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Remote order is locked - will be replaced
Communication error with MaxOptra (412)
orders/SO-00437
https://7daycellar.maxoptra.com/api/v6/orders/SO-00437
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000046148042
Array
(
[referenceNumber] => 499326000046148042
[name] => test, 21 Broadlands, Benfleet
[address] => SS7 3BD
)
499326000046148042
Error updating SO-00437
Remote order is locked. Skipping.
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00437
Done all.
Finished at 2025-09-15 11:13:42
Webhook - sourceUpdated script called at 2025-09-15 11:14:09
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048033346","salesorder_no":"SO-00437","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048033346","salesorder_no":"SO-00437","status":"open"}}
EXT ID: 499326000048033346
REF: SO-00437
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048033346 (REF SO-00437)
Updates pending to source for order: 499326000048033346
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-09-15 10:13:28.000Z,
source updated = 2025-09-15T11:13:40+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00437
Processing order: 7il1ekrua7cvsaq, ref SO-00437
Syncing SO-00437
Using default start and end times
Time window: 2025-09-17T06:00:00+01:00 - 2025-09-17T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 15/09/2025 11:13 - Local updated: 2025-09-15 10:13:00.000Z - Source updated: 2025-09-15 10:13:28.000Z
Changed? yes
Current MaxOptra status: LOCKED
Completed? yes
Previous status: LOCKED
Updating local order POD and attachments...
Don't have local POD - fetching...
No POD found
Getting attachments for SO-00437...
No new attachments found
Is allocated? yes
Local updated: 2025-09-15 10:13:00.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Remote order is locked - will be replaced
Communication error with MaxOptra (412)
orders/SO-00437
https://7daycellar.maxoptra.com/api/v6/orders/SO-00437
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000046148042
Array
(
[referenceNumber] => 499326000046148042
[name] => test, 21 Broadlands, Benfleet
[address] => SS7 3BD
)
499326000046148042
Error updating SO-00437
Remote order is locked. Skipping.
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00437
Done all.
Finished at 2025-09-15 11:14:12
Webhook - sourceUpdated script called at 2025-09-15 11:14:39
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048033346","salesorder_no":"SO-00437","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048033346","salesorder_no":"SO-00437","status":"open"}}
EXT ID: 499326000048033346
REF: SO-00437
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048033346 (REF SO-00437)
Local order updated = 2025-09-15 10:13:28.000Z,
source updated = 2025-09-15T11:14:10+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00437
Processing order: 7il1ekrua7cvsaq, ref SO-00437
Syncing SO-00437
Using default start and end times
Time window: 2025-09-17T06:00:00+01:00 - 2025-09-17T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 15/09/2025 11:13 - Local updated: 2025-09-15 10:13:00.000Z - Source updated: 2025-09-15 10:13:28.000Z
Changed? yes
Current MaxOptra status: LOCKED
Completed? yes
Previous status: LOCKED
Updating local order POD and attachments...
Don't have local POD - fetching...
No POD found
Getting attachments for SO-00437...
No new attachments found
Is allocated? yes
Local updated: 2025-09-15 10:13:00.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Remote order is locked - will be replaced
Communication error with MaxOptra (412)
orders/SO-00437
https://7daycellar.maxoptra.com/api/v6/orders/SO-00437
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000046148042
Array
(
[referenceNumber] => 499326000046148042
[name] => test, 21 Broadlands, Benfleet
[address] => SS7 3BD
)
499326000046148042
Error updating SO-00437
Remote order is locked. Skipping.
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00437
Done all.
Finished at 2025-09-15 11:14:41
Webhook - sourceUpdated script called at 2025-09-16 13:43:29
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048040472","salesorder_no":"SO-00438","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000048040472","salesorder_no":"SO-00438","status":"draft"}}
EXT ID: 499326000048040472
REF: SO-00438
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048040472 (REF SO-00438)
Source order details: Array
(
[contactPhone] => 07412708077
[contactEmail] =>
[contactName] => Mike .
[notes] =>
[externalOrderId] => 499326000048040472
[refId] => SO-00438
[externalCustomerId] => 499326000048038117
[externalLocationId] => 499326000048038123
[title] => London Inn (Bedminster)
[deliveryStart] => 2025-09-17
[deliveryEnd] => 2025-09-17
[totalValue] => 130.8
[totalWeight] => 51
[syncInCreated] => 2025-09-16T13:43:13+0100
[syncInUpdated] => 2025-09-16T13:43:13+0100
[syncInStatus] => draft
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048040478
[externalProductId] => 499326000000061286
[sku] => CBBC-CEBT-9G
[title] => Courage Best Bitter - 4% Cask
[notes] =>
[quantity] => 1
[weightKg] => 51
[weightTotal] => 51
[priceTotal] => 109
[price] => 109
)
)
[deliveryName] => London Inn (Bedminster)
[deliveryStreet] => 1 Cannon Street
[deliveryCity] => Bedminster
[deliveryCounty] =>
[deliveryPostcode] => BS3 1BH
)
Does this order already exist?
No
Order data prepared for sync: Array
(
[contactPhone] => 07412708077
[contactEmail] =>
[contactName] => Mike .
[notes] =>
[externalOrderId] => 499326000048040472
[refId] => SO-00438
[externalCustomerId] => 499326000048038117
[externalLocationId] => 499326000048038123
[title] => London Inn (Bedminster)
[deliveryStart] => 2025-09-17
[deliveryEnd] => 2025-09-17
[totalValue] => 130.8
[totalWeight] => 51
[syncInCreated] => 2025-09-16T13:43:13+0100
[syncInUpdated] => 2025-09-16T13:43:13+0100
[syncInStatus] => draft
[deliveryName] => London Inn (Bedminster)
[deliveryStreet] => 1 Cannon Street
[deliveryCity] => Bedminster
[deliveryCounty] =>
[deliveryPostcode] => BS3 1BH
[syncOutUpdated] => 2025-09-16T13:43:29+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Mike .
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
New order
Marking order for sync with MaxOptra
Getting customer details
New customer 499326000048038117
Updating order contact details
Getting products
Creating product 499326000000061286
Creating new order product 499326000048040478
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00438
Processing order: t8wlzelhhmedhjd, ref SO-00438
Syncing SO-00438
Using default start and end times
Time window: 2025-09-17T06:00:00+01:00 - 2025-09-17T20:00:00+01:00
Found order in MaxOptra? no
Creating SO-00438
Done
Finished syncing to MaxOptra for order SO-00438
Done all.
Finished at 2025-09-16 13:43:31
Webhook - sourceUpdated script called at 2025-09-16 17:19:46
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000047690007","salesorder_no":"SO-00426","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000047690007","salesorder_no":"SO-00426","status":"invoiced"}}
EXT ID: 499326000047690007
REF: SO-00426
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000047690007 (REF SO-00426)
Source order details: Array
(
[contactPhone] => 07748118207
[contactEmail] => purchasing@backwellvillageclub.com
[contactName] => Jane Smith
[notes] => Gate Code 2468 with Key
[externalOrderId] => 499326000047690007
[refId] => SO-00426
[externalCustomerId] => 499326000046222022
[externalLocationId] => 499326000046222024
[title] => Backwell Village Club
[deliveryStart] => 2025-09-12
[deliveryEnd] => 2025-09-12
[totalValue] => 191.98
[totalWeight] => 51
[syncInCreated] => 2025-09-04T15:57:00+0100
[syncInUpdated] => 2025-09-04T16:39:46+0100
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000047690013
[externalProductId] => 499326000044145711
[sku] =>
[title] => Harding's Double Hopped (4.0%)
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 81.99
[price] => 81.99
)
[1] => Array
(
[externalOrderProductId] => 499326000047690015
[externalProductId] => 499326000021043786
[sku] => BB-HSBT-9G
[title] => Hardings Best 4.2% (9g)
[notes] =>
[quantity] => 1
[weightKg] => 51
[weightTotal] => 51
[priceTotal] => 77.99
[price] => 77.99
)
)
[deliveryName] => Backwell Village Club
[deliveryStreet] => 12 Backwell Hill
[deliveryCity] => Backwell
[deliveryCounty] =>
[deliveryPostcode] => BS48 3PL
)
Does this order already exist?
No
Order data prepared for sync: Array
(
[contactPhone] => 07748118207
[contactEmail] => purchasing@backwellvillageclub.com
[contactName] => Jane Smith
[notes] => Gate Code 2468 with Key
[externalOrderId] => 499326000047690007
[refId] => SO-00426
[externalCustomerId] => 499326000046222022
[externalLocationId] => 499326000046222024
[title] => Backwell Village Club
[deliveryStart] => 2025-09-12
[deliveryEnd] => 2025-09-12
[totalValue] => 191.98
[totalWeight] => 51
[syncInCreated] => 2025-09-04T15:57:00+0100
[syncInUpdated] => 2025-09-04T16:39:46+0100
[syncInStatus] => closed
[deliveryName] => Backwell Village Club
[deliveryStreet] => 12 Backwell Hill
[deliveryCity] => Backwell
[deliveryCounty] =>
[deliveryPostcode] => BS48 3PL
[syncOutUpdated] => 2025-09-16T17:19:47+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Jane Smith
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
New order
Marking order for sync with MaxOptra
Getting customer details
New customer 499326000046222022
Updating order contact details
Getting products
Updating product 499326000044145711
Creating new order product 499326000047690013
Updating product 499326000021043786
Creating new order product 499326000047690015
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00426
Processing order: 9jbejpnlijgufn0, ref SO-00426
Syncing SO-00426
Using default start and end times
Delivery start = 2025-09-12 00:00:00.000Z = 2025-09-12T06:00:00+01:00
Delivery end = 2025-09-12 00:00:00.000Z = 2025-09-12T20:00:00+01:00
Delivery is in the past. Skipping creation/update in MaxOptra.
Found order in MaxOptra? no
Done
Finished syncing to MaxOptra for order SO-00426
Done all.
Finished at 2025-09-16 17:19:47
Webhook - sourceUpdated script called at 2025-09-17 08:59:28
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048199109","salesorder_no":"SO-00439","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000048199109","salesorder_no":"SO-00439","status":"draft"}}
EXT ID: 499326000048199109
REF: SO-00439
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048199109 (REF SO-00439)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => bookings@tauntonvale.com
[contactName] => Steve Archer
[notes] =>
[externalOrderId] => 499326000048199109
[refId] => SO-00439
[externalCustomerId] => 499326000041924781
[externalLocationId] => 499326000041924783
[title] => Taunton Vale Sports Club
[deliveryStart] => 2025-09-17
[deliveryEnd] => 2025-09-17
[totalValue] => 1017.6
[totalWeight] => 434
[syncInCreated] => 2025-09-17T08:59:06+0100
[syncInUpdated] => 2025-09-17T08:59:06+0100
[syncInStatus] => draft
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048199115
[externalProductId] => 499326000000061367
[sku] => BBG-SNML-50LK
[title] => San Miguel 11G
[notes] =>
[quantity] => 2
[weightKg] => 62
[weightTotal] => 124
[priceTotal] => 258
[price] => 129
)
[1] => Array
(
[externalOrderProductId] => 499326000048199117
[externalProductId] => 499326000000061232
[sku] => HUK-AMST-50LK
[title] => Amstel Lager 11g
[notes] =>
[quantity] => 2
[weightKg] => 62
[weightTotal] => 124
[priceTotal] => 246
[price] => 123
)
[2] => Array
(
[externalOrderProductId] => 499326000048199119
[externalProductId] => 499326000000061574
[sku] => DIAG-GUIN-50LK
[title] => Draught Guinness 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 149
[price] => 149
)
[3] => Array
(
[externalOrderProductId] => 499326000048199121
[externalProductId] => 499326000000063014
[sku] => SHPY-200-50LK
[title] => Sheppy's 200 cider 11g
[notes] =>
[quantity] => 2
[weightKg] => 62
[weightTotal] => 124
[priceTotal] => 195
[price] => 97.5
)
)
[deliveryName] => Taunton Vale Sports Club
[deliveryStreet] => Gipsy Ln
[deliveryCity] => Taunton
[deliveryCounty] =>
[deliveryPostcode] => TA2 6LL
)
Does this order already exist?
No
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => bookings@tauntonvale.com
[contactName] => Steve Archer
[notes] =>
[externalOrderId] => 499326000048199109
[refId] => SO-00439
[externalCustomerId] => 499326000041924781
[externalLocationId] => 499326000041924783
[title] => Taunton Vale Sports Club
[deliveryStart] => 2025-09-17
[deliveryEnd] => 2025-09-17
[totalValue] => 1017.6
[totalWeight] => 434
[syncInCreated] => 2025-09-17T08:59:06+0100
[syncInUpdated] => 2025-09-17T08:59:06+0100
[syncInStatus] => draft
[deliveryName] => Taunton Vale Sports Club
[deliveryStreet] => Gipsy Ln
[deliveryCity] => Taunton
[deliveryCounty] =>
[deliveryPostcode] => TA2 6LL
[syncOutUpdated] => 2025-09-17T08:59:29+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Steve Archer
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
New order
Marking order for sync with MaxOptra
Getting customer details
2025-08-08 06:52:53.000Z != 2025-08-31T09:43:05+0100
Customer changed - updating 499326000041924781
Updating order contact details
Getting products
Updating product 499326000000061367
Creating new order product 499326000048199115
Updating product 499326000000061232
Creating new order product 499326000048199117
Updating product 499326000000061574
Creating new order product 499326000048199119
Updating product 499326000000063014
Creating new order product 499326000048199121
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00439
Processing order: if7vlyqclnawtxl, ref SO-00439
Syncing SO-00439
Using default start and end times
Time window: 2025-09-17T06:00:00+01:00 - 2025-09-17T20:00:00+01:00
Found order in MaxOptra? no
Creating SO-00439
Done
Finished syncing to MaxOptra for order SO-00439
Done all.
Finished at 2025-09-17 08:59:30
Webhook - sourceUpdated script called at 2025-09-17 10:55:07
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048199109","salesorder_no":"SO-00439","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048199109","salesorder_no":"SO-00439","status":"invoiced"}}
EXT ID: 499326000048199109
REF: SO-00439
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048199109 (REF SO-00439)
Local order updated = 2025-09-17 07:59:06.000Z,
source updated = 2025-09-17T10:54:48+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => bookings@tauntonvale.com
[contactName] => Steve Archer
[notes] =>
[externalOrderId] => 499326000048199109
[refId] => SO-00439
[externalCustomerId] => 499326000041924781
[externalLocationId] => 499326000041924783
[title] => Taunton Vale Sports Club
[deliveryStart] => 2025-09-17
[deliveryEnd] => 2025-09-17
[totalValue] => 1017.6
[totalWeight] => 434
[syncInCreated] => 2025-09-17T08:59:06+0100
[syncInUpdated] => 2025-09-17T10:54:48+0100
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048199115
[externalProductId] => 499326000000061367
[sku] => BBG-SNML-50LK
[title] => San Miguel 11G
[notes] =>
[quantity] => 2
[weightKg] => 62
[weightTotal] => 124
[priceTotal] => 258
[price] => 129
)
[1] => Array
(
[externalOrderProductId] => 499326000048199117
[externalProductId] => 499326000000061232
[sku] => HUK-AMST-50LK
[title] => Amstel Lager 11g
[notes] =>
[quantity] => 2
[weightKg] => 62
[weightTotal] => 124
[priceTotal] => 246
[price] => 123
)
[2] => Array
(
[externalOrderProductId] => 499326000048199119
[externalProductId] => 499326000000061574
[sku] => DIAG-GUIN-50LK
[title] => Draught Guinness 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 149
[price] => 149
)
[3] => Array
(
[externalOrderProductId] => 499326000048199121
[externalProductId] => 499326000000063014
[sku] => SHPY-200-50LK
[title] => Sheppy's 200 cider 11g
[notes] =>
[quantity] => 2
[weightKg] => 62
[weightTotal] => 124
[priceTotal] => 195
[price] => 97.5
)
)
[deliveryName] => Taunton Vale Sports Club
[deliveryStreet] => Gipsy Ln
[deliveryCity] => Taunton
[deliveryCounty] =>
[deliveryPostcode] => TA2 6LL
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => bookings@tauntonvale.com
[contactName] => Steve Archer
[notes] =>
[externalOrderId] => 499326000048199109
[refId] => SO-00439
[externalCustomerId] => 499326000041924781
[externalLocationId] => 499326000041924783
[title] => Taunton Vale Sports Club
[deliveryStart] => 2025-09-17
[deliveryEnd] => 2025-09-17
[totalValue] => 1017.6
[totalWeight] => 434
[syncInCreated] => 2025-09-17T08:59:06+0100
[syncInUpdated] => 2025-09-17T10:54:48+0100
[syncInStatus] => closed
[deliveryName] => Taunton Vale Sports Club
[deliveryStreet] => Gipsy Ln
[deliveryCity] => Taunton
[deliveryCounty] =>
[deliveryPostcode] => TA2 6LL
[syncOutUpdated] => 2025-09-17T10:55:08+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Steve Archer
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000041924781
Getting products
Updating product 499326000000061367
Updating order product 499326000048199115
Updated
Updating product 499326000000061232
Updating order product 499326000048199117
Updated
Updating product 499326000000061574
Updating order product 499326000048199119
Updated
Updating product 499326000000063014
Updating order product 499326000048199121
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00439
Processing order: if7vlyqclnawtxl, ref SO-00439
Syncing SO-00439
Using default start and end times
Time window: 2025-09-17T06:00:00+01:00 - 2025-09-17T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 17/09/2025 08:59 - Local updated: 2025-09-17 09:55:08.000Z - Source updated: 2025-09-17 09:54:48.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status:
Status changed - mark for sync back to source
Is allocated? no
Local updated: 2025-09-17 09:55:08.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000041924783
Array
(
[referenceNumber] => 499326000041924783
[name] => Taunton Vale Sports Club, Gipsy Ln, Taunton
[address] => TA2 6LL
)
499326000041924783
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00439
Done all.
Finished at 2025-09-17 10:55:09
Webhook - sourceUpdated script called at 2025-09-17 10:59:45
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048199109","salesorder_no":"SO-00439","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048199109","salesorder_no":"SO-00439","status":"open"}}
EXT ID: 499326000048199109
REF: SO-00439
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048199109 (REF SO-00439)
Updates pending to source for order: 499326000048199109
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-09-17 09:54:48.000Z,
source updated = 2025-09-17T10:54:48+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00439
Processing order: if7vlyqclnawtxl, ref SO-00439
Syncing SO-00439
Using default start and end times
Time window: 2025-09-17T06:00:00+01:00 - 2025-09-17T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 17/09/2025 10:55 - Local updated: 2025-09-17 07:59:00.000Z - Source updated: 2025-09-17 09:54:48.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-09-17 07:59:00.000Z
Pending updates to MaxOptra? no
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00439
Done all.
Finished at 2025-09-17 10:59:47
Webhook - sourceUpdated script called at 2025-09-17 10:59:54
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048199109","salesorder_no":"SO-00439","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048199109","salesorder_no":"SO-00439","status":"invoiced"}}
EXT ID: 499326000048199109
REF: SO-00439
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048199109 (REF SO-00439)
Local order updated = 2025-09-17 09:54:48.000Z,
source updated = 2025-09-17T10:59:45+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => bookings@tauntonvale.com
[contactName] => Steve Archer
[notes] =>
[externalOrderId] => 499326000048199109
[refId] => SO-00439
[externalCustomerId] => 499326000041924781
[externalLocationId] => 499326000041924783
[title] => Taunton Vale Sports Club
[deliveryStart] => 2025-09-17
[deliveryEnd] => 2025-09-17
[totalValue] => 1017.6
[totalWeight] => 434
[syncInCreated] => 2025-09-17T08:59:06+0100
[syncInUpdated] => 2025-09-17T10:59:45+0100
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048199115
[externalProductId] => 499326000000061367
[sku] => BBG-SNML-50LK
[title] => San Miguel 11G
[notes] =>
[quantity] => 2
[weightKg] => 62
[weightTotal] => 124
[priceTotal] => 258
[price] => 129
)
[1] => Array
(
[externalOrderProductId] => 499326000048199117
[externalProductId] => 499326000000061232
[sku] => HUK-AMST-50LK
[title] => Amstel Lager 11g
[notes] =>
[quantity] => 2
[weightKg] => 62
[weightTotal] => 124
[priceTotal] => 246
[price] => 123
)
[2] => Array
(
[externalOrderProductId] => 499326000048199119
[externalProductId] => 499326000000061574
[sku] => DIAG-GUIN-50LK
[title] => Draught Guinness 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 149
[price] => 149
)
[3] => Array
(
[externalOrderProductId] => 499326000048199121
[externalProductId] => 499326000000063014
[sku] => SHPY-200-50LK
[title] => Sheppy's 200 cider 11g
[notes] =>
[quantity] => 2
[weightKg] => 62
[weightTotal] => 124
[priceTotal] => 195
[price] => 97.5
)
)
[deliveryName] => Taunton Vale Sports Club
[deliveryStreet] => Gipsy Ln
[deliveryCity] => Taunton
[deliveryCounty] =>
[deliveryPostcode] => TA2 6LL
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => bookings@tauntonvale.com
[contactName] => Steve Archer
[notes] =>
[externalOrderId] => 499326000048199109
[refId] => SO-00439
[externalCustomerId] => 499326000041924781
[externalLocationId] => 499326000041924783
[title] => Taunton Vale Sports Club
[deliveryStart] => 2025-09-17
[deliveryEnd] => 2025-09-17
[totalValue] => 1017.6
[totalWeight] => 434
[syncInCreated] => 2025-09-17T08:59:06+0100
[syncInUpdated] => 2025-09-17T10:59:45+0100
[syncInStatus] => closed
[deliveryName] => Taunton Vale Sports Club
[deliveryStreet] => Gipsy Ln
[deliveryCity] => Taunton
[deliveryCounty] =>
[deliveryPostcode] => TA2 6LL
[syncOutUpdated] => 2025-09-17T10:59:55+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Steve Archer
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000041924781
Getting products
Updating product 499326000000061367
Updating order product 499326000048199115
Updated
Updating product 499326000000061232
Updating order product 499326000048199117
Updated
Updating product 499326000000061574
Updating order product 499326000048199119
Updated
Updating product 499326000000063014
Updating order product 499326000048199121
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00439
Processing order: if7vlyqclnawtxl, ref SO-00439
Syncing SO-00439
Using default start and end times
Time window: 2025-09-17T06:00:00+01:00 - 2025-09-17T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 17/09/2025 10:55 - Local updated: 2025-09-17 09:59:55.000Z - Source updated: 2025-09-17 09:59:45.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-09-17 09:59:55.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000041924783
Array
(
[referenceNumber] => 499326000041924783
[name] => Taunton Vale Sports Club, Gipsy Ln, Taunton
[address] => TA2 6LL
)
499326000041924783
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00439
Done all.
Finished at 2025-09-17 10:59:56
Webhook - sourceUpdated script called at 2025-09-17 11:00:13
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048199109","salesorder_no":"SO-00439","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048199109","salesorder_no":"SO-00439","status":"invoiced"}}
EXT ID: 499326000048199109
REF: SO-00439
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048199109 (REF SO-00439)
Local order updated = 2025-09-17 09:59:45.000Z,
source updated = 2025-09-17T10:59:45+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00439
Processing order: if7vlyqclnawtxl, ref SO-00439
Syncing SO-00439
Using default start and end times
Time window: 2025-09-17T06:00:00+01:00 - 2025-09-17T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 17/09/2025 10:59 - Local updated: 2025-09-17 09:55:00.000Z - Source updated: 2025-09-17 09:59:45.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-09-17 09:55:00.000Z
Pending updates to MaxOptra? no
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00439
Done all.
Finished at 2025-09-17 11:00:15
Webhook - sourceUpdated script called at 2025-09-18 08:21:02
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048040472","salesorder_no":"SO-00438","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048040472","salesorder_no":"SO-00438","status":"open"}}
EXT ID: 499326000048040472
REF: SO-00438
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048040472 (REF SO-00438)
Local order updated = 2025-09-16 12:43:13.000Z,
source updated = 2025-09-18T08:21:01+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] => 07412708077
[contactEmail] =>
[contactName] => Mike .
[notes] =>
[externalOrderId] => 499326000048040472
[refId] => SO-00438
[externalCustomerId] => 499326000048038117
[externalLocationId] => 499326000048038123
[title] => London Inn (Bedminster)
[deliveryStart] => 2025-09-18
[deliveryEnd] => 2025-09-18
[totalValue] => 130.8
[totalWeight] => 51
[syncInCreated] => 2025-09-16T13:43:13+0100
[syncInUpdated] => 2025-09-18T08:21:01+0100
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048040478
[externalProductId] => 499326000000061286
[sku] => CBBC-CEBT-9G
[title] => Courage Best Bitter - 4% Cask
[notes] =>
[quantity] => 1
[weightKg] => 51
[weightTotal] => 51
[priceTotal] => 109
[price] => 109
)
)
[deliveryName] => London Inn (Bedminster)
[deliveryStreet] => 1 Cannon Street
[deliveryCity] => Bedminster
[deliveryCounty] =>
[deliveryPostcode] => BS3 1BH
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] => 07412708077
[contactEmail] =>
[contactName] => Mike .
[notes] =>
[externalOrderId] => 499326000048040472
[refId] => SO-00438
[externalCustomerId] => 499326000048038117
[externalLocationId] => 499326000048038123
[title] => London Inn (Bedminster)
[deliveryStart] => 2025-09-18
[deliveryEnd] => 2025-09-18
[totalValue] => 130.8
[totalWeight] => 51
[syncInCreated] => 2025-09-16T13:43:13+0100
[syncInUpdated] => 2025-09-18T08:21:01+0100
[syncInStatus] => closed
[deliveryName] => London Inn (Bedminster)
[deliveryStreet] => 1 Cannon Street
[deliveryCity] => Bedminster
[deliveryCounty] =>
[deliveryPostcode] => BS3 1BH
[syncOutUpdated] => 2025-09-18T08:21:03+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Mike .
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000048038117
Getting products
Updating product 499326000000061286
Updating order product 499326000048040478
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00438
Processing order: t8wlzelhhmedhjd, ref SO-00438
Syncing SO-00438
Using default start and end times
Time window: 2025-09-18T06:00:00+01:00 - 2025-09-18T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 16/09/2025 13:43 - Local updated: 2025-09-18 07:21:03.000Z - Source updated: 2025-09-18 07:21:01.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status:
Status changed - mark for sync back to source
Is allocated? no
Local updated: 2025-09-18 07:21:03.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000048038123
Array
(
[referenceNumber] => 499326000048038123
[name] => London Inn (Bedminster), 1 Cannon Street, Bedminster
[address] => BS3 1BH
)
499326000048038123
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00438
Done all.
Finished at 2025-09-18 08:21:04
Webhook - sourceUpdated script called at 2025-09-18 08:21:33
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048040472","salesorder_no":"SO-00438","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048040472","salesorder_no":"SO-00438","status":"invoiced"}}
EXT ID: 499326000048040472
REF: SO-00438
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048040472 (REF SO-00438)
Updates pending to source for order: 499326000048040472
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-09-18 07:21:01.000Z,
source updated = 2025-09-18T08:21:01+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00438
Processing order: t8wlzelhhmedhjd, ref SO-00438
Syncing SO-00438
Using default start and end times
Time window: 2025-09-18T06:00:00+01:00 - 2025-09-18T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 18/09/2025 08:21 - Local updated: 2025-09-16 12:43:00.000Z - Source updated: 2025-09-18 07:21:01.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-09-16 12:43:00.000Z
Pending updates to MaxOptra? no
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00438
Done all.
Finished at 2025-09-18 08:21:34
Webhook - sourceUpdated script called at 2025-09-18 08:22:03
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048040472","salesorder_no":"SO-00438","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048040472","salesorder_no":"SO-00438","status":"invoiced"}}
EXT ID: 499326000048040472
REF: SO-00438
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048040472 (REF SO-00438)
Local order updated = 2025-09-18 07:21:01.000Z,
source updated = 2025-09-18T08:21:33+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00438
Processing order: t8wlzelhhmedhjd, ref SO-00438
Syncing SO-00438
Using default start and end times
Time window: 2025-09-18T06:00:00+01:00 - 2025-09-18T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 18/09/2025 08:21 - Local updated: 2025-09-18 07:21:00.000Z - Source updated: 2025-09-18 07:21:01.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00438
Done all.
Finished at 2025-09-18 08:22:04
Webhook - sourceUpdated script called at 2025-09-18 08:25:56
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048040472","salesorder_no":"SO-00438","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048040472","salesorder_no":"SO-00438","status":"open"}}
EXT ID: 499326000048040472
REF: SO-00438
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048040472 (REF SO-00438)
Local order updated = 2025-09-18 07:21:01.000Z,
source updated = 2025-09-18T08:21:33+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00438
Processing order: t8wlzelhhmedhjd, ref SO-00438
Syncing SO-00438
Using default start and end times
Time window: 2025-09-18T06:00:00+01:00 - 2025-09-18T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 18/09/2025 08:21 - Local updated: 2025-09-18 07:21:00.000Z - Source updated: 2025-09-18 07:21:01.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00438
Done all.
Finished at 2025-09-18 08:25:57
Webhook - sourceUpdated script called at 2025-09-18 08:26:02
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048040472","salesorder_no":"SO-00438","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048040472","salesorder_no":"SO-00438","status":"invoiced"}}
EXT ID: 499326000048040472
REF: SO-00438
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048040472 (REF SO-00438)
Local order updated = 2025-09-18 07:21:01.000Z,
source updated = 2025-09-18T08:21:33+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00438
Processing order: t8wlzelhhmedhjd, ref SO-00438
Syncing SO-00438
Using default start and end times
Time window: 2025-09-18T06:00:00+01:00 - 2025-09-18T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 18/09/2025 08:21 - Local updated: 2025-09-18 07:21:00.000Z - Source updated: 2025-09-18 07:21:01.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00438
Done all.
Finished at 2025-09-18 08:26:03
Webhook - destinationRunUpdated script called at 2025-09-18 09:23:13
Data: {"payload":{"runReference":"b2c4b0f1c76149e8a8abfd049ac74edc","status":"LOCKED","vehicleReference":"WD25HWY","shiftDate":"2025-09-18"},"timestamp":"2025-09-18T08:23:12Z"}
JSON: {"payload":{"runReference":"b2c4b0f1c76149e8a8abfd049ac74edc","status":"LOCKED","vehicleReference":"WD25HWY","shiftDate":"2025-09-18"},"timestamp":"2025-09-18T08:23:12Z"}
Vehicle: WD25HWY
date: 2025-09-18
Status: LOCKED
200 response code sent
Processing order: SO-00438
Looking for local order: SO-00438
Updating local order from MaxOptra - current local order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] =>
[contactName] => Mike .
[contactNotes] =>
[contactPhone] => 07412708077
[created] => 2025-09-16 12:43:29.814Z
[custom] => Array
(
)
[customer] => 2zvo861tfcnylm1
[deliveryCity] => Bedminster
[deliveryCounty] =>
[deliveryEnd] => 2025-09-18 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => London Inn (Bedminster)
[deliveryPostcode] => BS3 1BH
[deliveryStart] => 2025-09-18 00:00:00.000Z
[deliveryStreet] => 1 Cannon Street
[description] =>
[driverRef] =>
[externalCustomerId] => 499326000048038117
[externalLocationId] => 499326000048038123
[externalOrderId] => 499326000048040472
[id] => t8wlzelhhmedhjd
[isCancelled] =>
[isCollection] =>
[isReadyToSync] => 1
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] =>
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00438
[requestedDeliveryDays] =>
[seqNo] =>
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Pending
[syncInCreated] => 2025-09-16 12:43:13.000Z
[syncInStatus] => closed
[syncInUpdated] => 2025-09-18 07:21:01.000Z
[syncOutStatus] => UNALLOCATED
[syncOutUpdated] => 2025-09-18 07:21:00.000Z
[timeWindows] => Array
(
)
[title] => London Inn (Bedminster)
[totalValue] => 130.8
[totalWeight] => 51
[type] =>
[updated] => 2025-09-18 07:26:02.595Z
[vehicleRef] =>
[what3Words] =>
)
MaxOptra order details: Array
(
[0] => Array
(
[referenceNumber] => SO-00438
[consignmentReference] =>
[distributionCentreReference] => Head Office
[distributionCentreName] => Head Office
[task] => DELIVERY
[priority] => NORMAL
[vehicleRequirements] => Array
(
)
[additionalInstructions] =>
[clientName] =>
[contactPerson] => Mike .
[contactNumber] => 07412708077
[contactEmail] =>
[additionalContactEmails] =>
[notificationPreferences] => Array
(
[allowSMS] => 1
[allowEmail] => 1
)
[customerLocation] => Array
(
[referenceNumber] => 499326000048038123
[name] => London Inn (Bedminster), 1 Cannon Street, Bedminster
[address] => BS3 1BH
[w3wAddress] =>
[latitude] => 51.44116
[longitude] => -2.60124
)
[territoryReference] =>
[stopSequence] => ANY
[timeWindows] => Array
(
[0] => Array
(
[start] => 2025-09-18T06:00:00+01:00
[end] => 2025-09-18T20:00:00+01:00
)
)
[orderDate] =>
[capacity1] => 51
[capacity2] => 0
[price] =>
[operationDuration] => 376
[customFields] => Array
(
)
[orderItems] => Array
(
[0] => Array
(
[itemReferenceNumber] => 499326000000061286
[orderReferenceNumber] => SO-00438
[name] => Courage Best Bitter - 4% Cask
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 109
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 109
[height] => 0
[width] => 0
[length] => 0
[weight] => 51
[volume] => 0
)
)
[widgetTrackingDetails] =>
)
)
MaxOptra schedule details: Array
(
[orderReferenceNumber] => SO-00438
[assignedDriverReference] => Lewis Newman
[assignedDriverName] => Lewis Newman
[assignedVehicleReference] => WD25HWY
[assignedVehicleName] => WD25HWY
[plannedArrivalTime] => 2025-09-18T10:17:39+01:00
[plannedCompletionTime] => 2025-09-18T10:23:55+01:00
[stopNumber] => 1
[totalStopsInRun] => 1
[runNumber] => 1
[runReference] => b2c4b0f1c76149e8a8abfd049ac74edc
[eta] =>
[factArrivalTimeGPS] =>
[factCompletionTimeGPS] =>
[factArrivalTimeReported] =>
[factCompletionTimeReported] =>
[failReason] =>
[failComment] =>
[status] => LOCKED
[driver] => Lewis Newman
[arrival_planned] => 2025-09-18T10:17:39+01:00
[arrival_estimated] =>
[arrival_actual] =>
[totalStops] => 1
)
Updating order: SO-00438
Update ID t8wlzelhhmedhjd with: Array
(
[custom] => Array
(
)
[driverRef] => Lewis Newman
[vehicleRef] => WD25HWY
[seqNo] => 1
)
Updated order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] =>
[contactName] => Mike .
[contactNotes] =>
[contactPhone] => 07412708077
[created] => 2025-09-16 12:43:29.814Z
[custom] => Array
(
)
[customer] => 2zvo861tfcnylm1
[deliveryCity] => Bedminster
[deliveryCounty] =>
[deliveryEnd] => 2025-09-18 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => London Inn (Bedminster)
[deliveryPostcode] => BS3 1BH
[deliveryStart] => 2025-09-18 00:00:00.000Z
[deliveryStreet] => 1 Cannon Street
[description] =>
[driverRef] => Lewis Newman
[externalCustomerId] => 499326000048038117
[externalLocationId] => 499326000048038123
[externalOrderId] => 499326000048040472
[id] => t8wlzelhhmedhjd
[isCancelled] =>
[isCollection] =>
[isReadyToSync] => 1
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] =>
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00438
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Pending
[syncInCreated] => 2025-09-16 12:43:13.000Z
[syncInStatus] => closed
[syncInUpdated] => 2025-09-18 07:21:01.000Z
[syncOutStatus] => UNALLOCATED
[syncOutUpdated] => 2025-09-18 07:21:00.000Z
[timeWindows] => Array
(
)
[title] => London Inn (Bedminster)
[totalValue] => 130.8
[totalWeight] => 51
[type] =>
[updated] => 2025-09-18 08:23:13.839Z
[vehicleRef] => WD25HWY
[what3Words] =>
)
Updating source from local order
Getting custom fields
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-07-18 02:35:52.065Z
[id] => nc7sndad5bhvi5x
[inCollection] => orders
[inField] => paymentMethod
[mappedField] => 7DCPayment
[name] => Payment method
[sourceField] =>
[syncFromSource] => 1
[syncToSource] =>
[type] => text
[updated] => 2025-07-18 02:35:52.065Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Processing field
Mapped field: 7DCEmpties
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
Processing field
Mapped field: 7DCEmptiesGas
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:03:34.631Z
[id] => pcn96l3kgkps4az
[inCollection] => orders
[inField] => driverRef
[mappedField] =>
[name] => Delivery driver
[sourceField] => cf_delivery_driver
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:03:34.631Z
)
Processing field
driverRef...
Value: Lewis Newman
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-08 04:52:51.399Z
[id] => hhrzcmytzs8p3kw
[inCollection] => orders
[inField] => seqNo
[mappedField] =>
[name] => Run number
[sourceField] => cf_run_number
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-08 04:52:51.399Z
)
Processing field
seqNo...
Value: 1
Finished processing field
Continue
Updating source order: Array
(
[custom_fields] => Array
(
[0] => Array
(
[api_name] => cf_delivery_driver
[value] => Lewis Newman
)
[1] => Array
(
[api_name] => cf_run_number
[value] => 1
)
)
)
Webhook - destinationRunUpdated script called at 2025-09-18 09:23:14
Data: {"payload":{"runReference":"b2c4b0f1c76149e8a8abfd049ac74edc","status":"SENT","vehicleReference":"WD25HWY","shiftDate":"2025-09-18"},"timestamp":"2025-09-18T08:23:14Z"}
JSON: {"payload":{"runReference":"b2c4b0f1c76149e8a8abfd049ac74edc","status":"SENT","vehicleReference":"WD25HWY","shiftDate":"2025-09-18"},"timestamp":"2025-09-18T08:23:14Z"}
Vehicle: WD25HWY
date: 2025-09-18
Status: SENT
200 response code sent
Processing order: SO-00438
Looking for local order: SO-00438
Updating local order from MaxOptra - current local order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] =>
[contactName] => Mike .
[contactNotes] =>
[contactPhone] => 07412708077
[created] => 2025-09-16 12:43:29.814Z
[custom] => Array
(
)
[customer] => 2zvo861tfcnylm1
[deliveryCity] => Bedminster
[deliveryCounty] =>
[deliveryEnd] => 2025-09-18 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => London Inn (Bedminster)
[deliveryPostcode] => BS3 1BH
[deliveryStart] => 2025-09-18 00:00:00.000Z
[deliveryStreet] => 1 Cannon Street
[description] =>
[driverRef] => Lewis Newman
[externalCustomerId] => 499326000048038117
[externalLocationId] => 499326000048038123
[externalOrderId] => 499326000048040472
[id] => t8wlzelhhmedhjd
[isCancelled] =>
[isCollection] =>
[isReadyToSync] => 1
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] =>
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00438
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Pending
[syncInCreated] => 2025-09-16 12:43:13.000Z
[syncInStatus] => closed
[syncInUpdated] => 2025-09-18 07:21:01.000Z
[syncOutStatus] => UNALLOCATED
[syncOutUpdated] => 2025-09-18 07:21:00.000Z
[timeWindows] => Array
(
)
[title] => London Inn (Bedminster)
[totalValue] => 130.8
[totalWeight] => 51
[type] =>
[updated] => 2025-09-18 08:23:13.839Z
[vehicleRef] => WD25HWY
[what3Words] =>
)
Update result: Array
(
[code] => 0
[message] => Sales Order has been updated.
[salesorder] => Array
(
[salesorder_id] => 499326000048040472
[is_viewed_in_mail] =>
[mail_first_viewed_time] =>
[mail_last_viewed_time] =>
[documents] => Array
(
)
[zcrm_potential_id] =>
[zcrm_potential_name] =>
[salesorder_number] => SO-00438
[date] => 2025-09-18
[offline_created_date_with_time] =>
[tracking_url] =>
[has_discount] =>
[status] => confirmed
[color_code] =>
[current_sub_status_id] =>
[current_sub_status] => closed
[sub_statuses] => Array
(
)
[shipment_date] =>
[reference_number] =>
[customer_id] => 499326000048038117
[customer_name] => London Inn (Bedminster)
[contact_persons] => Array
(
)
[contact_persons_associated] => Array
(
)
[contact_person_details] => Array
(
[0] => Array
(
[phone] =>
[mobile] => 07412708077
[last_name] => .
[contact_person_id] => 499326000048038135
[first_name] => Mike
[email] =>
)
)
[source] => Api
[contact_category] => uk
[is_taxable] =>
[has_shipping_address] => 1
[currency_id] => 499326000000000065
[currency_code] => GBP
[currency_symbol] => £
[exchange_rate] => 1
[is_discount_before_tax] => 1
[discount_type] => item_level
[estimate_id] =>
[delivery_method] =>
[delivery_method_id] =>
[vat_treatment] => uk
[is_inclusive_tax] =>
[tax_rounding] => entity_level
[tax_override_preference] => no_override
[order_status] => closed
[invoiced_status] => invoiced
[paid_status] => unpaid
[shipped_status] => pending
[sales_channel] => direct_sales
[sales_channel_formatted] => Direct Sales
[account_identifier] =>
[integration_id] =>
[is_dropshipped] =>
[is_backordered] =>
[is_manually_fulfilled] =>
[can_manually_fulfill] => 1
[has_qty_cancelled] =>
[is_reverse_charge_applied] =>
[shipping_details] => Array
(
)
[created_by_email] => sophie@7daycellar.co.uk
[created_by_name] => Sophie Redman
[branch_id] => 499326000023111007
[branch_name] => Head Office
[location_id] => 499326000023111007
[location_name] => Head Office
[total_quantity] => 1
[line_items] => Array
(
[0] => Array
(
[line_item_id] => 499326000048040478
[variant_id] => 499326000000061286
[track_batch_number] =>
[item_id] => 499326000000061286
[is_returnable] =>
[product_id] => 499326000000061286
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] => CBBC-CEBT-9G
[name] => Courage Best Bitter - 4% Cask
[group_name] => Courage Best Bitter - 4% Cask
[description] =>
[item_order] => 1
[bcy_rate] => 109
[rate] => 109
[sales_rate] => 99.95
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 21.8
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 109
[item_sub_total] => 109
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] =>
[image_type] =>
[document_id] =>
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 1
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] => 51
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
)
[is_advanced_tracking_missing] =>
[entity_tags] =>
[submitter_id] =>
[approver_id] =>
[submitted_date] =>
[submitted_by] =>
[submitted_by_name] =>
[submitted_by_email] =>
[submitted_by_photo_url] =>
[price_precision] => 2
[is_emailed] =>
[has_unconfirmed_line_item] =>
[picklists] => Array
(
)
[purchaseorders] => Array
(
)
[locations] => Array
(
[0] => Array
(
[location_id] => 499326000023111007
[location_name] => Head Office
[status] => active
)
[1] => Array
(
[location_id] => 499326000041689155
[location_name] => Bason Bridge Brewery Duty Bonded Warehouse
[status] => active
)
)
[billing_address_id] => 499326000048038123
[billing_address] => Array
(
[address] => 1 Cannon Street
[street2] =>
[city] => Bedminster
[state] =>
[zip] => BS3 1BH
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[shipping_address_id] => 499326000048038125
[shipping_address] => Array
(
[company_name] =>
[address] =>
[street2] =>
[city] =>
[state] =>
[zip] =>
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[is_test_order] =>
[notes] => Account Name: 7 Day Cellar Ltd
Sort Code: 09-01-30
Account No: 10888924
[terms] =>
[payment_terms] => 0
[payment_terms_label] => Due On Receipt
[custom_fields] => Array
(
[0] => Array
(
[field_id] => 499326000042690007
[customfield_id] => 499326000042690007
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 1
[label] => Automation Required
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[is_color_code_supported] =>
[api_name] => cf__ulrql_automation_required
[show_in_all_pdf] =>
[selected_option_id] => 499326000042690011
[value_formatted] => Yes
[search_entity] => salesorder
[data_type] => dropdown
[placeholder] => cf__ulrql_automation_required
[value] => Yes
[is_dependent_field] =>
)
[1] => Array
(
[field_id] => 499326000046252173
[customfield_id] => 499326000046252173
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 2
[label] => Delivery Driver
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_driver
[show_in_all_pdf] =>
[value_formatted] => Lewis Newman
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_driver
[value] => Lewis Newman
[is_dependent_field] =>
)
[2] => Array
(
[field_id] => 499326000047922345
[customfield_id] => 499326000047922345
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 3
[label] => Run Number
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_run_number
[show_in_all_pdf] =>
[value_formatted] => 1
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_run_number
[value] => 1
[is_dependent_field] =>
)
)
[custom_field_hash] => Array
(
[cf__ulrql_automation_required] => Yes
[cf__ulrql_automation_required_unformatted] => Yes
[cf_delivery_driver] => Lewis Newman
[cf_delivery_driver_unformatted] => Lewis Newman
[cf_run_number] => 1
[cf_run_number_unformatted] => 1
)
[template_id] => 499326000000000111
[template_name] => Standard Template
[page_width] => 8.27in
[page_height] => 11.69in
[orientation] => portrait
[template_type] => standard
[created_time] => 2025-09-16T13:43:13+0100
[last_modified_time] => 2025-09-18T09:23:14+0100
[created_by_id] => 499326000044308001
[created_date] => 2025-09-16
[last_modified_by_id] => 499326000044410001
[attachment_name] =>
[can_send_in_mail] =>
[salesperson_id] => 499326000044620336
[salesperson_name] => Sophie Redman
[merchant_id] =>
[merchant_name] =>
[pickup_location_id] =>
[discount] => 0
[discount_applied_on_amount] => 0
[is_adv_tracking_in_package] =>
[shipping_charge_taxes] => Array
(
)
[lock_details] => Array
(
[can_lock] =>
)
[locked_actions] => Array
(
)
[shipping_charge_tax_id] =>
[shipping_charge_tax_name] =>
[shipping_charge_tax_type] =>
[shipping_charge_tax_percentage] =>
[shipping_charge_tax_exemption_id] =>
[shipping_charge_tax_exemption_code] =>
[shipping_charge_tax] =>
[bcy_shipping_charge_tax] =>
[shipping_charge_exclusive_of_tax] => 0
[shipping_charge_inclusive_of_tax] => 0
[shipping_charge_tax_formatted] =>
[shipping_charge_exclusive_of_tax_formatted] => £0.00
[shipping_charge_inclusive_of_tax_formatted] => £0.00
[shipping_charge] => 0
[bcy_shipping_charge] => 0
[adjustment] => 0
[bcy_adjustment] => 0
[adjustment_description] => Adjustment
[roundoff_value] => 0
[transaction_rounding_type] => no_rounding
[rounding_mode] => round_half_up
[bcy_rounding_mode] => round_half_up
[sub_total] => 109
[bcy_sub_total] => 109
[sub_total_inclusive_of_tax] => 0
[sub_total_exclusive_of_discount] => 109
[discount_total] => 0
[bcy_discount_total] => 0
[discount_percent] => 0
[tax_total] => 21.8
[bcy_tax_total] => 21.8
[total] => 130.8
[computation_type] => basic
[bcy_total] => 130.8
[reverse_charge_tax_total] => 0
[taxes] => Array
(
[0] => Array
(
[tax_amount] => 21.8
[tax_name] => Standard Rate
[tax_amount_formatted] => £21.80
)
)
[tds_calculation_type] => tds_item_level
[packages] => Array
(
)
[so_cycle_preference] => Array
(
[is_feature_enabled] => 1
[socycle_status] => not_triggered
[can_create_invoice] => 1
[can_create_package] =>
[can_create_shipment] =>
[shipment_preference] => Array
(
[default_carrier] =>
[send_notification] =>
[deliver_shipments] =>
)
[invoice_preference] => Array
(
[mark_as_sent] =>
[record_payment] =>
[payment_mode_id] => 499326000000000199
[payment_account_id] => 499326000000000349
)
)
[invoices] => Array
(
[0] => Array
(
[invoice_id] => 499326000048234981
[invoice_number] => INV-25863
[reference_number] => SO-00438
[status] => sent
[date] => 2025-09-18
[due_date] => 2025-09-18
[total] => 130.8
[balance] => 130.8
)
)
[can_show_kit_return] =>
[is_kit_partial_return] =>
[salesreturns] => Array
(
)
[payments] => Array
(
)
[creditnotes] => Array
(
)
[refunds] => Array
(
)
[contact] => Array
(
[customer_balance] => 130.8
[credit_limit] => 0
[unused_customer_credits] => 0
[is_credit_limit_migration_completed] => 1
)
[balance] => 130.8
[approvers_list] => Array
(
)
[is_scheduled_for_quick_shipment_create] =>
)
)
Finished at 2025-09-18 09:23:15
MaxOptra order details: Array
(
[0] => Array
(
[referenceNumber] => SO-00438
[consignmentReference] =>
[distributionCentreReference] => Head Office
[distributionCentreName] => Head Office
[task] => DELIVERY
[priority] => NORMAL
[vehicleRequirements] => Array
(
)
[additionalInstructions] =>
[clientName] =>
[contactPerson] => Mike .
[contactNumber] => 07412708077
[contactEmail] =>
[additionalContactEmails] =>
[notificationPreferences] => Array
(
[allowSMS] => 1
[allowEmail] => 1
)
[customerLocation] => Array
(
[referenceNumber] => 499326000048038123
[name] => London Inn (Bedminster), 1 Cannon Street, Bedminster
[address] => BS3 1BH
[w3wAddress] =>
[latitude] => 51.44116
[longitude] => -2.60124
)
[territoryReference] =>
[stopSequence] => ANY
[timeWindows] => Array
(
[0] => Array
(
[start] => 2025-09-18T06:00:00+01:00
[end] => 2025-09-18T20:00:00+01:00
)
)
[orderDate] =>
[capacity1] => 51
[capacity2] => 0
[price] =>
[operationDuration] => 376
[customFields] => Array
(
)
[orderItems] => Array
(
[0] => Array
(
[itemReferenceNumber] => 499326000000061286
[orderReferenceNumber] => SO-00438
[name] => Courage Best Bitter - 4% Cask
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 109
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 109
[height] => 0
[width] => 0
[length] => 0
[weight] => 51
[volume] => 0
)
)
[widgetTrackingDetails] =>
)
)
MaxOptra schedule details: Array
(
[orderReferenceNumber] => SO-00438
[assignedDriverReference] => Lewis Newman
[assignedDriverName] => Lewis Newman
[assignedVehicleReference] => WD25HWY
[assignedVehicleName] => WD25HWY
[plannedArrivalTime] => 2025-09-18T10:17:39+01:00
[plannedCompletionTime] => 2025-09-18T10:23:55+01:00
[stopNumber] => 1
[totalStopsInRun] => 1
[runNumber] => 1
[runReference] => b2c4b0f1c76149e8a8abfd049ac74edc
[eta] =>
[factArrivalTimeGPS] =>
[factCompletionTimeGPS] =>
[factArrivalTimeReported] =>
[factCompletionTimeReported] =>
[failReason] =>
[failComment] =>
[status] => ACCEPTED
[driver] => Lewis Newman
[arrival_planned] => 2025-09-18T10:17:39+01:00
[arrival_estimated] =>
[arrival_actual] =>
[totalStops] => 1
)
Updating order: SO-00438
Update ID t8wlzelhhmedhjd with: Array
(
[custom] => Array
(
)
[driverRef] => Lewis Newman
[vehicleRef] => WD25HWY
[seqNo] => 1
)
Updated order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] =>
[contactName] => Mike .
[contactNotes] =>
[contactPhone] => 07412708077
[created] => 2025-09-16 12:43:29.814Z
[custom] => Array
(
)
[customer] => 2zvo861tfcnylm1
[deliveryCity] => Bedminster
[deliveryCounty] =>
[deliveryEnd] => 2025-09-18 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => London Inn (Bedminster)
[deliveryPostcode] => BS3 1BH
[deliveryStart] => 2025-09-18 00:00:00.000Z
[deliveryStreet] => 1 Cannon Street
[description] =>
[driverRef] => Lewis Newman
[externalCustomerId] => 499326000048038117
[externalLocationId] => 499326000048038123
[externalOrderId] => 499326000048040472
[id] => t8wlzelhhmedhjd
[isCancelled] =>
[isCollection] =>
[isReadyToSync] => 1
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] =>
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00438
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Pending
[syncInCreated] => 2025-09-16 12:43:13.000Z
[syncInStatus] => closed
[syncInUpdated] => 2025-09-18 07:21:01.000Z
[syncOutStatus] => UNALLOCATED
[syncOutUpdated] => 2025-09-18 07:21:00.000Z
[timeWindows] => Array
(
)
[title] => London Inn (Bedminster)
[totalValue] => 130.8
[totalWeight] => 51
[type] =>
[updated] => 2025-09-18 08:23:15.289Z
[vehicleRef] => WD25HWY
[what3Words] =>
)
Updating source from local order
Getting custom fields
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-07-18 02:35:52.065Z
[id] => nc7sndad5bhvi5x
[inCollection] => orders
[inField] => paymentMethod
[mappedField] => 7DCPayment
[name] => Payment method
[sourceField] =>
[syncFromSource] => 1
[syncToSource] =>
[type] => text
[updated] => 2025-07-18 02:35:52.065Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Processing field
Mapped field: 7DCEmpties
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
Processing field
Mapped field: 7DCEmptiesGas
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:03:34.631Z
[id] => pcn96l3kgkps4az
[inCollection] => orders
[inField] => driverRef
[mappedField] =>
[name] => Delivery driver
[sourceField] => cf_delivery_driver
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:03:34.631Z
)
Processing field
driverRef...
Value: Lewis Newman
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-08 04:52:51.399Z
[id] => hhrzcmytzs8p3kw
[inCollection] => orders
[inField] => seqNo
[mappedField] =>
[name] => Run number
[sourceField] => cf_run_number
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-08 04:52:51.399Z
)
Processing field
seqNo...
Value: 1
Finished processing field
Continue
Updating source order: Array
(
[custom_fields] => Array
(
[0] => Array
(
[api_name] => cf_delivery_driver
[value] => Lewis Newman
)
[1] => Array
(
[api_name] => cf_run_number
[value] => 1
)
)
)
Update result: Array
(
[code] => 0
[message] => Sales Order has been updated.
[salesorder] => Array
(
[salesorder_id] => 499326000048040472
[is_viewed_in_mail] =>
[mail_first_viewed_time] =>
[mail_last_viewed_time] =>
[documents] => Array
(
)
[zcrm_potential_id] =>
[zcrm_potential_name] =>
[salesorder_number] => SO-00438
[date] => 2025-09-18
[offline_created_date_with_time] =>
[tracking_url] =>
[has_discount] =>
[status] => confirmed
[color_code] =>
[current_sub_status_id] =>
[current_sub_status] => closed
[sub_statuses] => Array
(
)
[shipment_date] =>
[reference_number] =>
[customer_id] => 499326000048038117
[customer_name] => London Inn (Bedminster)
[contact_persons] => Array
(
)
[contact_persons_associated] => Array
(
)
[contact_person_details] => Array
(
[0] => Array
(
[phone] =>
[mobile] => 07412708077
[last_name] => .
[contact_person_id] => 499326000048038135
[first_name] => Mike
[email] =>
)
)
[source] => Api
[contact_category] => uk
[is_taxable] =>
[has_shipping_address] => 1
[currency_id] => 499326000000000065
[currency_code] => GBP
[currency_symbol] => £
[exchange_rate] => 1
[is_discount_before_tax] => 1
[discount_type] => item_level
[estimate_id] =>
[delivery_method] =>
[delivery_method_id] =>
[vat_treatment] => uk
[is_inclusive_tax] =>
[tax_rounding] => entity_level
[tax_override_preference] => no_override
[order_status] => closed
[invoiced_status] => invoiced
[paid_status] => unpaid
[shipped_status] => pending
[sales_channel] => direct_sales
[sales_channel_formatted] => Direct Sales
[account_identifier] =>
[integration_id] =>
[is_dropshipped] =>
[is_backordered] =>
[is_manually_fulfilled] =>
[can_manually_fulfill] => 1
[has_qty_cancelled] =>
[is_reverse_charge_applied] =>
[shipping_details] => Array
(
)
[created_by_email] => sophie@7daycellar.co.uk
[created_by_name] => Sophie Redman
[branch_id] => 499326000023111007
[branch_name] => Head Office
[location_id] => 499326000023111007
[location_name] => Head Office
[total_quantity] => 1
[line_items] => Array
(
[0] => Array
(
[line_item_id] => 499326000048040478
[variant_id] => 499326000000061286
[track_batch_number] =>
[item_id] => 499326000000061286
[is_returnable] =>
[product_id] => 499326000000061286
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] => CBBC-CEBT-9G
[name] => Courage Best Bitter - 4% Cask
[group_name] => Courage Best Bitter - 4% Cask
[description] =>
[item_order] => 1
[bcy_rate] => 109
[rate] => 109
[sales_rate] => 99.95
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 21.8
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 109
[item_sub_total] => 109
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] =>
[image_type] =>
[document_id] =>
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 1
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] => 51
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
)
[is_advanced_tracking_missing] =>
[entity_tags] =>
[submitter_id] =>
[approver_id] =>
[submitted_date] =>
[submitted_by] =>
[submitted_by_name] =>
[submitted_by_email] =>
[submitted_by_photo_url] =>
[price_precision] => 2
[is_emailed] =>
[has_unconfirmed_line_item] =>
[picklists] => Array
(
)
[purchaseorders] => Array
(
)
[locations] => Array
(
[0] => Array
(
[location_id] => 499326000023111007
[location_name] => Head Office
[status] => active
)
[1] => Array
(
[location_id] => 499326000041689155
[location_name] => Bason Bridge Brewery Duty Bonded Warehouse
[status] => active
)
)
[billing_address_id] => 499326000048038123
[billing_address] => Array
(
[address] => 1 Cannon Street
[street2] =>
[city] => Bedminster
[state] =>
[zip] => BS3 1BH
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[shipping_address_id] => 499326000048038125
[shipping_address] => Array
(
[company_name] =>
[address] =>
[street2] =>
[city] =>
[state] =>
[zip] =>
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[is_test_order] =>
[notes] => Account Name: 7 Day Cellar Ltd
Sort Code: 09-01-30
Account No: 10888924
[terms] =>
[payment_terms] => 0
[payment_terms_label] => Due On Receipt
[custom_fields] => Array
(
[0] => Array
(
[field_id] => 499326000042690007
[customfield_id] => 499326000042690007
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 1
[label] => Automation Required
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[is_color_code_supported] =>
[api_name] => cf__ulrql_automation_required
[show_in_all_pdf] =>
[selected_option_id] => 499326000042690011
[value_formatted] => Yes
[search_entity] => salesorder
[data_type] => dropdown
[placeholder] => cf__ulrql_automation_required
[value] => Yes
[is_dependent_field] =>
)
[1] => Array
(
[field_id] => 499326000046252173
[customfield_id] => 499326000046252173
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 2
[label] => Delivery Driver
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_driver
[show_in_all_pdf] =>
[value_formatted] => Lewis Newman
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_driver
[value] => Lewis Newman
[is_dependent_field] =>
)
[2] => Array
(
[field_id] => 499326000047922345
[customfield_id] => 499326000047922345
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 3
[label] => Run Number
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_run_number
[show_in_all_pdf] =>
[value_formatted] => 1
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_run_number
[value] => 1
[is_dependent_field] =>
)
)
[custom_field_hash] => Array
(
[cf__ulrql_automation_required] => Yes
[cf__ulrql_automation_required_unformatted] => Yes
[cf_delivery_driver] => Lewis Newman
[cf_delivery_driver_unformatted] => Lewis Newman
[cf_run_number] => 1
[cf_run_number_unformatted] => 1
)
[template_id] => 499326000000000111
[template_name] => Standard Template
[page_width] => 8.27in
[page_height] => 11.69in
[orientation] => portrait
[template_type] => standard
[created_time] => 2025-09-16T13:43:13+0100
[last_modified_time] => 2025-09-18T09:23:15+0100
[created_by_id] => 499326000044308001
[created_date] => 2025-09-16
[last_modified_by_id] => 499326000044410001
[attachment_name] =>
[can_send_in_mail] =>
[salesperson_id] => 499326000044620336
[salesperson_name] => Sophie Redman
[merchant_id] =>
[merchant_name] =>
[pickup_location_id] =>
[discount] => 0
[discount_applied_on_amount] => 0
[is_adv_tracking_in_package] =>
[shipping_charge_taxes] => Array
(
)
[lock_details] => Array
(
[can_lock] =>
)
[locked_actions] => Array
(
)
[shipping_charge_tax_id] =>
[shipping_charge_tax_name] =>
[shipping_charge_tax_type] =>
[shipping_charge_tax_percentage] =>
[shipping_charge_tax_exemption_id] =>
[shipping_charge_tax_exemption_code] =>
[shipping_charge_tax] =>
[bcy_shipping_charge_tax] =>
[shipping_charge_exclusive_of_tax] => 0
[shipping_charge_inclusive_of_tax] => 0
[shipping_charge_tax_formatted] =>
[shipping_charge_exclusive_of_tax_formatted] => £0.00
[shipping_charge_inclusive_of_tax_formatted] => £0.00
[shipping_charge] => 0
[bcy_shipping_charge] => 0
[adjustment] => 0
[bcy_adjustment] => 0
[adjustment_description] => Adjustment
[roundoff_value] => 0
[transaction_rounding_type] => no_rounding
[rounding_mode] => round_half_up
[bcy_rounding_mode] => round_half_up
[sub_total] => 109
[bcy_sub_total] => 109
[sub_total_inclusive_of_tax] => 0
[sub_total_exclusive_of_discount] => 109
[discount_total] => 0
[bcy_discount_total] => 0
[discount_percent] => 0
[tax_total] => 21.8
[bcy_tax_total] => 21.8
[total] => 130.8
[computation_type] => basic
[bcy_total] => 130.8
[reverse_charge_tax_total] => 0
[taxes] => Array
(
[0] => Array
(
[tax_amount] => 21.8
[tax_name] => Standard Rate
[tax_amount_formatted] => £21.80
)
)
[tds_calculation_type] => tds_item_level
[packages] => Array
(
)
[so_cycle_preference] => Array
(
[is_feature_enabled] => 1
[socycle_status] => not_triggered
[can_create_invoice] => 1
[can_create_package] =>
[can_create_shipment] =>
[shipment_preference] => Array
(
[default_carrier] =>
[send_notification] =>
[deliver_shipments] =>
)
[invoice_preference] => Array
(
[mark_as_sent] =>
[record_payment] =>
[payment_mode_id] => 499326000000000199
[payment_account_id] => 499326000000000349
)
)
[invoices] => Array
(
[0] => Array
(
[invoice_id] => 499326000048234981
[invoice_number] => INV-25863
[reference_number] => SO-00438
[status] => sent
[date] => 2025-09-18
[due_date] => 2025-09-18
[total] => 130.8
[balance] => 130.8
)
)
[can_show_kit_return] =>
[is_kit_partial_return] =>
[salesreturns] => Array
(
)
[payments] => Array
(
)
[creditnotes] => Array
(
)
[refunds] => Array
(
)
[contact] => Array
(
[customer_balance] => 130.8
[credit_limit] => 0
[unused_customer_credits] => 0
[is_credit_limit_migration_completed] => 1
)
[balance] => 130.8
[approvers_list] => Array
(
)
[is_scheduled_for_quick_shipment_create] =>
)
)
Finished at 2025-09-18 09:23:15
Webhook - sourceUpdated script called at 2025-09-18 09:23:17
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048040472","salesorder_no":"SO-00438","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048040472","salesorder_no":"SO-00438","status":"invoiced"}}
EXT ID: 499326000048040472
REF: SO-00438
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048040472 (REF SO-00438)
Local order updated = 2025-09-18 07:21:01.000Z,
source updated = 2025-09-18T09:23:15+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] => 07412708077
[contactEmail] =>
[contactName] => Mike .
[notes] =>
[externalOrderId] => 499326000048040472
[refId] => SO-00438
[externalCustomerId] => 499326000048038117
[externalLocationId] => 499326000048038123
[title] => London Inn (Bedminster)
[deliveryStart] => 2025-09-18
[deliveryEnd] => 2025-09-18
[totalValue] => 130.8
[totalWeight] => 51
[syncInCreated] => 2025-09-16T13:43:13+0100
[syncInUpdated] => 2025-09-18T09:23:15+0100
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048040478
[externalProductId] => 499326000000061286
[sku] => CBBC-CEBT-9G
[title] => Courage Best Bitter - 4% Cask
[notes] =>
[quantity] => 1
[weightKg] => 51
[weightTotal] => 51
[priceTotal] => 109
[price] => 109
)
)
[deliveryName] => London Inn (Bedminster)
[deliveryStreet] => 1 Cannon Street
[deliveryCity] => Bedminster
[deliveryCounty] =>
[deliveryPostcode] => BS3 1BH
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] => 07412708077
[contactEmail] =>
[contactName] => Mike .
[notes] =>
[externalOrderId] => 499326000048040472
[refId] => SO-00438
[externalCustomerId] => 499326000048038117
[externalLocationId] => 499326000048038123
[title] => London Inn (Bedminster)
[deliveryStart] => 2025-09-18
[deliveryEnd] => 2025-09-18
[totalValue] => 130.8
[totalWeight] => 51
[syncInCreated] => 2025-09-16T13:43:13+0100
[syncInUpdated] => 2025-09-18T09:23:15+0100
[syncInStatus] => closed
[deliveryName] => London Inn (Bedminster)
[deliveryStreet] => 1 Cannon Street
[deliveryCity] => Bedminster
[deliveryCounty] =>
[deliveryPostcode] => BS3 1BH
[syncOutUpdated] => 2025-09-18T09:23:18+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Mike .
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000048038117
Getting products
Updating product 499326000000061286
Updating order product 499326000048040478
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00438
Processing order: t8wlzelhhmedhjd, ref SO-00438
Syncing SO-00438
Using default start and end times
Time window: 2025-09-18T06:00:00+01:00 - 2025-09-18T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 18/09/2025 09:23 - Local updated: 2025-09-18 08:23:18.000Z - Source updated: 2025-09-18 08:23:15.000Z
Changed? yes
Current MaxOptra status: ACCEPTED
Completed? no
Previous status: UNALLOCATED
Status changed - mark for sync back to source
Is allocated? yes
MO delivery date: 2025-09-18, Local delivery date: 2025-09-18
Local updated: 2025-09-18 08:23:18.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Communication error with MaxOptra (412)
orders/SO-00438
https://7daycellar.maxoptra.com/api/v6/orders/SO-00438
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000048038123
Array
(
[referenceNumber] => 499326000048038123
[name] => London Inn (Bedminster), 1 Cannon Street, Bedminster
[address] => BS3 1BH
)
499326000048038123
Error updating SO-00438
Remote order is locked. Skipping.
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00438
Done all.
Finished at 2025-09-18 09:23:19
Webhook - sourceUpdated script called at 2025-09-18 09:28:16
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048040472","salesorder_no":"SO-00438","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048040472","salesorder_no":"SO-00438","status":"invoiced"}}
EXT ID: 499326000048040472
REF: SO-00438
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048040472 (REF SO-00438)
Updates pending to source for order: 499326000048040472
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-09-18 08:23:15.000Z,
source updated = 2025-09-18T09:23:15+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00438
Processing order: t8wlzelhhmedhjd, ref SO-00438
Syncing SO-00438
Using default start and end times
Time window: 2025-09-18T06:00:00+01:00 - 2025-09-18T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 18/09/2025 09:23 - Local updated: 2025-09-18 08:23:00.000Z - Source updated: 2025-09-18 08:23:15.000Z
Changed? yes
Current MaxOptra status: ACCEPTED
Completed? no
Previous status: ACCEPTED
Is allocated? yes
MO delivery date: 2025-09-18, Local delivery date: 2025-09-18
Local updated: 2025-09-18 08:23:00.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Communication error with MaxOptra (412)
orders/SO-00438
https://7daycellar.maxoptra.com/api/v6/orders/SO-00438
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000048038123
Array
(
[referenceNumber] => 499326000048038123
[name] => London Inn (Bedminster), 1 Cannon Street, Bedminster
[address] => BS3 1BH
)
499326000048038123
Error updating SO-00438
Remote order is locked. Skipping.
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00438
Done all.
Finished at 2025-09-18 09:28:18
Webhook - sourceUpdated script called at 2025-09-18 09:28:21
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048040472","salesorder_no":"SO-00438","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048040472","salesorder_no":"SO-00438","status":"invoiced"}}
EXT ID: 499326000048040472
REF: SO-00438
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048040472 (REF SO-00438)
Local order updated = 2025-09-18 08:23:15.000Z,
source updated = 2025-09-18T09:28:16+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] => 07412708077
[contactEmail] =>
[contactName] => Mike .
[notes] =>
[externalOrderId] => 499326000048040472
[refId] => SO-00438
[externalCustomerId] => 499326000048038117
[externalLocationId] => 499326000048038123
[title] => London Inn (Bedminster)
[deliveryStart] => 2025-09-18
[deliveryEnd] => 2025-09-18
[totalValue] => 130.8
[totalWeight] => 51
[syncInCreated] => 2025-09-16T13:43:13+0100
[syncInUpdated] => 2025-09-18T09:28:16+0100
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048040478
[externalProductId] => 499326000000061286
[sku] => CBBC-CEBT-9G
[title] => Courage Best Bitter - 4% Cask
[notes] =>
[quantity] => 1
[weightKg] => 51
[weightTotal] => 51
[priceTotal] => 109
[price] => 109
)
)
[deliveryName] => London Inn (Bedminster)
[deliveryStreet] => 1 Cannon Street
[deliveryCity] => Bedminster
[deliveryCounty] =>
[deliveryPostcode] => BS3 1BH
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] => 07412708077
[contactEmail] =>
[contactName] => Mike .
[notes] =>
[externalOrderId] => 499326000048040472
[refId] => SO-00438
[externalCustomerId] => 499326000048038117
[externalLocationId] => 499326000048038123
[title] => London Inn (Bedminster)
[deliveryStart] => 2025-09-18
[deliveryEnd] => 2025-09-18
[totalValue] => 130.8
[totalWeight] => 51
[syncInCreated] => 2025-09-16T13:43:13+0100
[syncInUpdated] => 2025-09-18T09:28:16+0100
[syncInStatus] => closed
[deliveryName] => London Inn (Bedminster)
[deliveryStreet] => 1 Cannon Street
[deliveryCity] => Bedminster
[deliveryCounty] =>
[deliveryPostcode] => BS3 1BH
[syncOutUpdated] => 2025-09-18T09:28:22+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Mike .
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000048038117
Getting products
Updating product 499326000000061286
Updating order product 499326000048040478
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00438
Processing order: t8wlzelhhmedhjd, ref SO-00438
Syncing SO-00438
Using default start and end times
Time window: 2025-09-18T06:00:00+01:00 - 2025-09-18T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 18/09/2025 09:23 - Local updated: 2025-09-18 08:28:22.000Z - Source updated: 2025-09-18 08:28:16.000Z
Changed? yes
Current MaxOptra status: ACCEPTED
Completed? no
Previous status: ACCEPTED
Is allocated? yes
MO delivery date: 2025-09-18, Local delivery date: 2025-09-18
Local updated: 2025-09-18 08:28:22.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Communication error with MaxOptra (412)
orders/SO-00438
https://7daycellar.maxoptra.com/api/v6/orders/SO-00438
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000048038123
Array
(
[referenceNumber] => 499326000048038123
[name] => London Inn (Bedminster), 1 Cannon Street, Bedminster
[address] => BS3 1BH
)
499326000048038123
Error updating SO-00438
Remote order is locked. Skipping.
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00438
Done all.
Finished at 2025-09-18 09:28:23
Webhook - sourceUpdated script called at 2025-09-18 10:13:38
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048237928","salesorder_no":"SO-00440","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000048237928","salesorder_no":"SO-00440","status":"draft"}}
EXT ID: 499326000048237928
REF: SO-00440
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048237928 (REF SO-00440)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => haymaker_wadeford@outlook.com
[contactName] => Carrie .
[notes] =>
[externalOrderId] => 499326000048237928
[refId] => SO-00440
[externalCustomerId] => 499326000046509007
[externalLocationId] => 499326000046509009
[title] => The Haymaker Inn
[deliveryStart] => 2025-09-19
[deliveryEnd] => 2025-09-19
[totalValue] => 140.4
[totalWeight] => 56
[syncInCreated] => 2025-09-18T10:13:23+0100
[syncInUpdated] => 2025-09-18T10:13:23+0100
[syncInStatus] => draft
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048237934
[externalProductId] => 499326000044845196
[sku] =>
[title] => Harding's Golden Ale Pin 4.2%
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 39
[price] => 39
)
[1] => Array
(
[externalOrderProductId] => 499326000048237936
[externalProductId] => 499326000009952803
[sku] => BB-HSBT-4.5G
[title] => Hardings Best Pin 4.2%
[notes] =>
[quantity] => 2
[weightKg] => 28
[weightTotal] => 56
[priceTotal] => 78
[price] => 39
)
[2] => Array
(
[externalOrderProductId] => 499326000048237938
[externalProductId] => 499326000021043887
[sku] =>
[title] => Collection of empties
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
)
[deliveryName] => The Haymaker Inn
[deliveryStreet] => Wadeford
[deliveryCity] => Chard
[deliveryCounty] =>
[deliveryPostcode] => TA20 3AP
[paymentMethod] => Direct Debit
)
Does this order already exist?
No
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => haymaker_wadeford@outlook.com
[contactName] => Carrie .
[notes] =>
[externalOrderId] => 499326000048237928
[refId] => SO-00440
[externalCustomerId] => 499326000046509007
[externalLocationId] => 499326000046509009
[title] => The Haymaker Inn
[deliveryStart] => 2025-09-19
[deliveryEnd] => 2025-09-19
[totalValue] => 140.4
[totalWeight] => 56
[syncInCreated] => 2025-09-18T10:13:23+0100
[syncInUpdated] => 2025-09-18T10:13:23+0100
[syncInStatus] => draft
[deliveryName] => The Haymaker Inn
[deliveryStreet] => Wadeford
[deliveryCity] => Chard
[deliveryCounty] =>
[deliveryPostcode] => TA20 3AP
[paymentMethod] => Direct Debit
[syncOutUpdated] => 2025-09-18T10:13:39+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Carrie .
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => [{"id":"nc7sndad5bhvi5x","value":"Direct Debit"}]
)
New order
Marking order for sync with MaxOptra
Getting customer details
2025-08-21 08:48:34.000Z != 2025-08-26T01:44:42+0100
Customer changed - updating 499326000046509007
Updating order contact details
Getting products
Updating product 499326000044845196
Creating new order product 499326000048237934
Updating product 499326000009952803
Creating new order product 499326000048237936
Updating product 499326000021043887
Creating new order product 499326000048237938
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00440
Processing order: ey8rlzvdlxb1rib, ref SO-00440
Syncing SO-00440
Using default start and end times
Time window: 2025-09-19T06:00:00+01:00 - 2025-09-19T20:00:00+01:00
Found order in MaxOptra? no
Creating SO-00440
Done
Finished syncing to MaxOptra for order SO-00440
Done all.
Finished at 2025-09-18 10:13:40
Webhook - sourceUpdated script called at 2025-09-18 11:40:00
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048237958","salesorder_no":"SO-00441","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000048237958","salesorder_no":"SO-00441","status":"draft"}}
EXT ID: 499326000048237958
REF: SO-00441
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048237958 (REF SO-00441)
Source order details: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => The Foresters Arms Dunster
[notes] =>
[externalOrderId] => 499326000048237958
[refId] => SO-00441
[externalCustomerId] => 499326000048016003
[externalLocationId] => 499326000048016009
[title] => The Foresters Arms Dunster
[deliveryStart] => 2025-09-22
[deliveryEnd] => 2025-09-22
[totalValue] => 93
[totalWeight] => 56
[syncInCreated] => 2025-09-18T11:39:47+0100
[syncInUpdated] => 2025-09-18T11:39:47+0100
[syncInStatus] => draft
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048237964
[externalProductId] => 499326000023064198
[sku] => BB-HSAR-4.5G
[title] => Hardings Amber Ale Pin (4.5g)
[notes] =>
[quantity] => 1
[weightKg] => 28
[weightTotal] => 28
[priceTotal] => 37.5
[price] => 37.5
)
[1] => Array
(
[externalOrderProductId] => 499326000048237966
[externalProductId] => 499326000026429021
[sku] => BB-HSPE-4.5G
[title] => Harding's Double Hopped Pale Ale 4.2% Pin
[notes] =>
[quantity] => 1
[weightKg] => 28
[weightTotal] => 28
[priceTotal] => 40
[price] => 40
)
[2] => Array
(
[externalOrderProductId] => 499326000048237968
[externalProductId] => 499326000021043887
[sku] =>
[title] => Collection of empties
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
)
[deliveryName] => The Foresters Arms Dunster
[deliveryStreet] => 33 West St
[deliveryCity] => Dunster
[deliveryCounty] =>
[deliveryPostcode] => TA24 6SN
)
Does this order already exist?
No
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => The Foresters Arms Dunster
[notes] =>
[externalOrderId] => 499326000048237958
[refId] => SO-00441
[externalCustomerId] => 499326000048016003
[externalLocationId] => 499326000048016009
[title] => The Foresters Arms Dunster
[deliveryStart] => 2025-09-22
[deliveryEnd] => 2025-09-22
[totalValue] => 93
[totalWeight] => 56
[syncInCreated] => 2025-09-18T11:39:47+0100
[syncInUpdated] => 2025-09-18T11:39:47+0100
[syncInStatus] => draft
[deliveryName] => The Foresters Arms Dunster
[deliveryStreet] => 33 West St
[deliveryCity] => Dunster
[deliveryCounty] =>
[deliveryPostcode] => TA24 6SN
[syncOutUpdated] => 2025-09-18T11:40:01+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => The Foresters Arms Dunster
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
New order
Marking order for sync with MaxOptra
Getting customer details
Customer exists and has not changed (skipping): 499326000048016003
Updating order contact details
Getting products
Updating product 499326000023064198
Creating new order product 499326000048237964
Updating product 499326000026429021
Creating new order product 499326000048237966
Updating product 499326000021043887
Creating new order product 499326000048237968
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00441
Processing order: l5kg3zoo3gp74x3, ref SO-00441
Syncing SO-00441
Using default start and end times
Time window: 2025-09-22T06:00:00+01:00 - 2025-09-22T20:00:00+01:00
Found order in MaxOptra? no
Creating SO-00441
Done
Finished syncing to MaxOptra for order SO-00441
Done all.
Finished at 2025-09-18 11:40:01
Webhook - destinationUpdated script called at 2025-09-19 05:52:29
JSON:
REF:
Filter: refId=""
200 response code sent
Local item not found - cannot update
Webhook - sourceUpdated script called at 2025-09-19 05:54:38
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048304001","salesorder_no":"SO-00442","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000048304001","salesorder_no":"SO-00442","status":"draft"}}
EXT ID: 499326000048304001
REF: SO-00442
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048304001 (REF SO-00442)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => ianhitchman@fastmail.com
[contactName] => Ian Hitchman
[notes] =>
[externalOrderId] => 499326000048304001
[refId] => SO-00442
[externalCustomerId] => 499326000046148036
[externalLocationId] => 499326000046148042
[title] => Test Company
[deliveryStart] => 2025-09-20
[deliveryEnd] => 2025-09-20
[totalValue] => 7.2
[totalWeight] => 0
[syncInCreated] => 2025-09-19T05:54:23+0100
[syncInUpdated] => 2025-09-19T05:54:23+0100
[syncInStatus] => draft
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048304007
[externalProductId] => 499326000038717054
[sku] =>
[title] => 440ml x 24 Packaging Own Cans
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 6
[price] => 6
)
)
[deliveryName] => test
[deliveryStreet] => 21 Broadlands
[deliveryCity] => Benfleet
[deliveryCounty] =>
[deliveryPostcode] => SS7 3BD
)
Does this order already exist?
No
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => ianhitchman@fastmail.com
[contactName] => Ian Hitchman
[notes] =>
[externalOrderId] => 499326000048304001
[refId] => SO-00442
[externalCustomerId] => 499326000046148036
[externalLocationId] => 499326000046148042
[title] => Test Company
[deliveryStart] => 2025-09-20
[deliveryEnd] => 2025-09-20
[totalValue] => 7.2
[totalWeight] => 0
[syncInCreated] => 2025-09-19T05:54:23+0100
[syncInUpdated] => 2025-09-19T05:54:23+0100
[syncInStatus] => draft
[deliveryName] => test
[deliveryStreet] => 21 Broadlands
[deliveryCity] => Benfleet
[deliveryCounty] =>
[deliveryPostcode] => SS7 3BD
[syncOutUpdated] => 2025-09-19T05:54:38+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Ian Hitchman
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
New order
Marking order for sync with MaxOptra
Getting customer details
Customer exists and has not changed (skipping): 499326000046148036
Updating order contact details
Getting products
Updating product 499326000038717054
Creating new order product 499326000048304007
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00442
Processing order: ucpjs628i07ljgs, ref SO-00442
Syncing SO-00442
Using default start and end times
Time window: 2025-09-20T06:00:00+01:00 - 2025-09-20T20:00:00+01:00
Found order in MaxOptra? no
Creating SO-00442
Done
Finished syncing to MaxOptra for order SO-00442
Done all.
Finished at 2025-09-19 05:54:39
Webhook - sourceUpdated script called at 2025-09-19 05:55:07
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048304001","salesorder_no":"SO-00442","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048304001","salesorder_no":"SO-00442","status":"open"}}
EXT ID: 499326000048304001
REF: SO-00442
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048304001 (REF SO-00442)
Local order updated = 2025-09-19 04:54:23.000Z,
source updated = 2025-09-19T05:54:39+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00442
Processing order: ucpjs628i07ljgs, ref SO-00442
Syncing SO-00442
Using default start and end times
Time window: 2025-09-20T06:00:00+01:00 - 2025-09-20T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 19/09/2025 05:54 - Local updated: 2025-09-19 04:54:39.000Z - Source updated: 2025-09-19 04:54:23.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status:
Status changed - mark for sync back to source
Is allocated? no
Local updated: 2025-09-19 04:54:39.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000046148042
Array
(
[referenceNumber] => 499326000046148042
[name] => test, 21 Broadlands, Benfleet
[address] => SS7 3BD
)
499326000046148042
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00442
Done all.
Finished at 2025-09-19 05:55:09
Webhook - destinationUpdated script called at 2025-09-19 05:59:13
JSON: {"payload":{"orderReference":"SO-00442","status":"ALLOCATED"},"timestamp":"2025-09-19T04:59:13Z"}
REF:
Filter: refId=""
200 response code sent
Local item not found - cannot update
Webhook - destinationUpdated script called at 2025-09-19 06:02:41
JSON: {"payload":{"orderReference":"SO-00442","status":"UNALLOCATED"},"timestamp":"2025-09-19T05:02:40Z"}
REF: SO-00442
Filter: refId="SO-00442"
200 response code sent
Local item: {"addons":[],"attachments":[],"collectionEnd":"","collectionId":"s93ukjlitoinx2e","collectionInstructions":"","collectionName":"orders","collectionStart":"","company":"1kmltj8w8rnhbfx","contactEmail":"ianhitchman@fastmail.com","contactName":"Ian Hitchman","contactNotes":"","contactPhone":"","created":"2025-09-19 04:54:38.774Z","custom":[],"customer":"kbgli4rhh2bs7qd","deliveryCity":"Benfleet","deliveryCounty":"","deliveryEnd":"2025-09-20 00:00:00.000Z","deliveryInstructions":"","deliveryName":"test","deliveryPostcode":"SS7 3BD","deliveryStart":"2025-09-20 00:00:00.000Z","deliveryStreet":"21 Broadlands","description":"","driverRef":"","externalCustomerId":"499326000046148036","externalLocationId":"499326000046148042","externalOrderId":"499326000048304001","id":"ucpjs628i07ljgs","isCancelled":false,"isCollection":false,"isReadyToSync":false,"isScheduledCollection":false,"isScheduledDelivery":false,"isUntracked":false,"mergeRef":"","notes":"","orderedAt":"","overrideVolume":0,"overrideWeight":0,"paymentMethod":"","pendingSyncFromDestination":false,"pendingSyncFromSource":false,"pendingSyncToDestination":false,"pendingSyncToSource":true,"ref":"","refId":"SO-00442","requestedDeliveryDays":"","seqNo":"","signature":"","signatureName":"","signatureTime":"","statusCollection":"","statusDelivery":"Pending","syncInCreated":"2025-09-19 04:54:23.000Z","syncInStatus":"draft","syncInUpdated":"2025-09-19 04:54:23.000Z","syncOutStatus":"UNALLOCATED","syncOutUpdated":"2025-09-19 04:54:00.000Z","timeWindows":[],"title":"Test Company","totalValue":7.20000000000000017763568394002504646778106689453125,"totalWeight":0,"type":"","updated":"2025-09-19 04:55:09.722Z","vehicleRef":"","what3Words":""}
Updating source from local order
Getting custom fields
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-07-18 02:35:52.065Z
[id] => nc7sndad5bhvi5x
[inCollection] => orders
[inField] => paymentMethod
[mappedField] => 7DCPayment
[name] => Payment method
[sourceField] =>
[syncFromSource] => 1
[syncToSource] =>
[type] => text
[updated] => 2025-07-18 02:35:52.065Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Processing field
Mapped field: 7DCEmpties
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
Processing field
Mapped field: 7DCEmptiesGas
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:03:34.631Z
[id] => pcn96l3kgkps4az
[inCollection] => orders
[inField] => driverRef
[mappedField] =>
[name] => Delivery driver
[sourceField] => cf_delivery_driver
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:03:34.631Z
)
Processing field
driverRef...
Value:
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-08 04:52:51.399Z
[id] => hhrzcmytzs8p3kw
[inCollection] => orders
[inField] => seqNo
[mappedField] =>
[name] => Run number
[sourceField] => cf_run_number
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-08 04:52:51.399Z
)
Processing field
seqNo...
Value:
Finished processing field
Continue
Updating source order: Array
(
[custom_fields] => Array
(
)
)
Update result: Array
(
[code] => 0
[message] => Sales Order has been updated.
[salesorder] => Array
(
[salesorder_id] => 499326000048304001
[is_viewed_in_mail] =>
[mail_first_viewed_time] =>
[mail_last_viewed_time] =>
[documents] => Array
(
)
[zcrm_potential_id] =>
[zcrm_potential_name] =>
[salesorder_number] => SO-00442
[date] => 2025-09-20
[offline_created_date_with_time] =>
[tracking_url] =>
[has_discount] =>
[status] => confirmed
[color_code] =>
[current_sub_status_id] =>
[current_sub_status] => confirmed
[sub_statuses] => Array
(
)
[shipment_date] =>
[reference_number] =>
[customer_id] => 499326000046148036
[customer_name] => Test Company
[contact_persons] => Array
(
[0] => 499326000046148038
)
[contact_persons_associated] => Array
(
[0] => Array
(
[contact_person_id] => 499326000046148038
[contact_person_email] => ianhitchman@fastmail.com
[first_name] => Ian
[last_name] => Hitchman
[mobile] =>
[communication_preference] => Array
(
[is_email_enabled] => 1
)
)
)
[contact_person_details] => Array
(
[0] => Array
(
[phone] => +64-2041132636
[mobile] =>
[last_name] => Hitchman
[contact_person_id] => 499326000046148038
[first_name] => Ian
[email] => ianhitchman@fastmail.com
)
)
[source] => Client
[contact_category] => uk
[is_taxable] =>
[has_shipping_address] => 1
[currency_id] => 499326000000000065
[currency_code] => GBP
[currency_symbol] => £
[exchange_rate] => 1
[is_discount_before_tax] => 1
[discount_type] => item_level
[estimate_id] =>
[delivery_method] =>
[delivery_method_id] =>
[vat_treatment] => uk
[is_inclusive_tax] =>
[tax_rounding] => entity_level
[tax_override_preference] => no_override
[order_status] => confirmed
[invoiced_status] => not_invoiced
[paid_status] => unpaid
[shipped_status] => pending
[sales_channel] => direct_sales
[sales_channel_formatted] => Direct Sales
[account_identifier] =>
[integration_id] =>
[is_dropshipped] =>
[is_backordered] =>
[is_manually_fulfilled] =>
[can_manually_fulfill] => 1
[has_qty_cancelled] =>
[is_reverse_charge_applied] =>
[shipping_details] => Array
(
)
[created_by_email] => warehousing@7daycellar.co.uk
[created_by_name] => Admin Profile
[branch_id] => 499326000023111007
[branch_name] => Head Office
[location_id] => 499326000023111007
[location_name] => Head Office
[total_quantity] => 1
[line_items] => Array
(
[0] => Array
(
[line_item_id] => 499326000048304007
[variant_id] => 499326000038717054
[track_batch_number] =>
[item_id] => 499326000038717054
[is_returnable] =>
[product_id] => 499326000038717054
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] =>
[name] => 440ml x 24 Packaging Own Cans
[group_name] => 440ml x 24 Packaging Own Cans
[description] =>
[item_order] => 1
[bcy_rate] => 6
[rate] => 6
[sales_rate] => 6
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 1.2
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 6
[item_sub_total] => 6
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] =>
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] =>
[image_type] =>
[document_id] =>
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 0
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] =>
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
)
[is_advanced_tracking_missing] =>
[entity_tags] =>
[submitter_id] =>
[approver_id] =>
[submitted_date] =>
[submitted_by] =>
[submitted_by_name] =>
[submitted_by_email] =>
[submitted_by_photo_url] =>
[price_precision] => 2
[is_emailed] => 1
[has_unconfirmed_line_item] =>
[picklists] => Array
(
)
[purchaseorders] => Array
(
)
[locations] => Array
(
[0] => Array
(
[location_id] => 499326000023111007
[location_name] => Head Office
[status] => active
)
[1] => Array
(
[location_id] => 499326000041689155
[location_name] => Bason Bridge Brewery Duty Bonded Warehouse
[status] => active
)
)
[billing_address_id] => 499326000046148040
[billing_address] => Array
(
[address] => 200 Broadlands
[street2] =>
[city] => Benfleet
[state] => Essex
[zip] => SS7 3BD
[country] => United Kingdom
[country_code] => GB
[county] =>
[state_code] => ESS
[fax] =>
[phone] =>
[attention] =>
)
[shipping_address_id] => 499326000046148042
[shipping_address] => Array
(
[company_name] =>
[address] => 21 Broadlands
[street2] =>
[city] => Benfleet
[state] =>
[zip] => SS7 3BD
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] => 07764485844
[attention] => test
)
[is_test_order] =>
[notes] => Account Name: 7 Day Cellar Ltd
Sort Code: 09-01-30
Account No: 10888924
[terms] =>
[payment_terms] => 0
[payment_terms_label] => Due On Receipt
[custom_fields] => Array
(
[0] => Array
(
[field_id] => 499326000042690007
[customfield_id] => 499326000042690007
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 1
[label] => Automation Required
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[is_color_code_supported] =>
[api_name] => cf__ulrql_automation_required
[show_in_all_pdf] =>
[selected_option_id] => 499326000042690011
[value_formatted] => Yes
[search_entity] => salesorder
[data_type] => dropdown
[placeholder] => cf__ulrql_automation_required
[value] => Yes
[is_dependent_field] =>
)
[1] => Array
(
[field_id] => 499326000046717945
[customfield_id] => 499326000046717945
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 2
[label] => GoCardless Mandate
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_gocardless_mandate
[show_in_all_pdf] =>
[value_formatted] => False
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_gocardless_mandate
[value] => False
[is_dependent_field] =>
)
[2] => Array
(
[field_id] => 499326000047922345
[customfield_id] => 499326000047922345
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 3
[label] => Run Number
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_run_number
[show_in_all_pdf] =>
[value_formatted] => 1
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_run_number
[value] => 1
[is_dependent_field] =>
)
)
[custom_field_hash] => Array
(
[cf__ulrql_automation_required] => Yes
[cf__ulrql_automation_required_unformatted] => Yes
[cf_gocardless_mandate] => False
[cf_gocardless_mandate_unformatted] => False
[cf_run_number] => 1
[cf_run_number_unformatted] => 1
)
[template_id] => 499326000000000111
[template_name] => Standard Template
[page_width] => 8.27in
[page_height] => 11.69in
[orientation] => portrait
[template_type] => standard
[created_time] => 2025-09-19T05:54:23+0100
[last_modified_time] => 2025-09-19T06:02:41+0100
[created_by_id] => 499326000044410001
[created_date] => 2025-09-19
[last_modified_by_id] => 499326000044410001
[attachment_name] =>
[can_send_in_mail] =>
[salesperson_id] =>
[salesperson_name] =>
[merchant_id] =>
[merchant_name] =>
[pickup_location_id] =>
[discount] => 0
[discount_applied_on_amount] => 0
[is_adv_tracking_in_package] =>
[shipping_charge_taxes] => Array
(
)
[lock_details] => Array
(
[can_lock] =>
)
[locked_actions] => Array
(
)
[shipping_charge_tax_id] =>
[shipping_charge_tax_name] =>
[shipping_charge_tax_type] =>
[shipping_charge_tax_percentage] =>
[shipping_charge_tax_exemption_id] =>
[shipping_charge_tax_exemption_code] =>
[shipping_charge_tax] =>
[bcy_shipping_charge_tax] =>
[shipping_charge_exclusive_of_tax] => 0
[shipping_charge_inclusive_of_tax] => 0
[shipping_charge_tax_formatted] =>
[shipping_charge_exclusive_of_tax_formatted] => £0.00
[shipping_charge_inclusive_of_tax_formatted] => £0.00
[shipping_charge] => 0
[bcy_shipping_charge] => 0
[adjustment] => 0
[bcy_adjustment] => 0
[adjustment_description] => Adjustment
[roundoff_value] => 0
[transaction_rounding_type] => no_rounding
[rounding_mode] => round_half_up
[bcy_rounding_mode] => round_half_up
[sub_total] => 6
[bcy_sub_total] => 6
[sub_total_inclusive_of_tax] => 0
[sub_total_exclusive_of_discount] => 6
[discount_total] => 0
[bcy_discount_total] => 0
[discount_percent] => 0
[tax_total] => 1.2
[bcy_tax_total] => 1.2
[total] => 7.2
[computation_type] => basic
[bcy_total] => 7.2
[reverse_charge_tax_total] => 0
[taxes] => Array
(
[0] => Array
(
[tax_amount] => 1.2
[tax_name] => Standard Rate
[tax_amount_formatted] => £1.20
)
)
[tds_calculation_type] => tds_item_level
[packages] => Array
(
)
[so_cycle_preference] => Array
(
[is_feature_enabled] => 1
[socycle_status] => not_triggered
[can_create_invoice] => 1
[can_create_package] =>
[can_create_shipment] =>
[shipment_preference] => Array
(
[default_carrier] =>
[send_notification] =>
[deliver_shipments] =>
)
[invoice_preference] => Array
(
[mark_as_sent] =>
[record_payment] =>
[payment_mode_id] => 499326000000000199
[payment_account_id] => 499326000000000349
)
)
[invoices] => Array
(
)
[can_show_kit_return] =>
[is_kit_partial_return] =>
[salesreturns] => Array
(
)
[payments] => Array
(
)
[creditnotes] => Array
(
)
[refunds] => Array
(
)
[contact] => Array
(
[customer_balance] => 130.8
[credit_limit] => 0
[unused_customer_credits] => 0
[is_credit_limit_migration_completed] => 1
)
[balance] => 7.2
[approvers_list] => Array
(
)
[is_scheduled_for_quick_shipment_create] =>
)
)
Webhook - sourceUpdated script called at 2025-09-19 06:03:12
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048304001","salesorder_no":"SO-00442","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048304001","salesorder_no":"SO-00442","status":"open"}}
EXT ID: 499326000048304001
REF: SO-00442
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048304001 (REF SO-00442)
Updates pending to source for order: 499326000048304001
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-09-19 04:54:23.000Z,
source updated = 2025-09-19T06:02:41+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => ianhitchman@fastmail.com
[contactName] => Ian Hitchman
[notes] =>
[externalOrderId] => 499326000048304001
[refId] => SO-00442
[externalCustomerId] => 499326000046148036
[externalLocationId] => 499326000046148042
[title] => Test Company
[deliveryStart] => 2025-09-20
[deliveryEnd] => 2025-09-20
[totalValue] => 7.2
[totalWeight] => 0
[syncInCreated] => 2025-09-19T05:54:23+0100
[syncInUpdated] => 2025-09-19T06:02:41+0100
[syncInStatus] => confirmed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048304007
[externalProductId] => 499326000038717054
[sku] =>
[title] => 440ml x 24 Packaging Own Cans
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 6
[price] => 6
)
)
[deliveryName] => test
[deliveryStreet] => 21 Broadlands
[deliveryCity] => Benfleet
[deliveryCounty] =>
[deliveryPostcode] => SS7 3BD
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => ianhitchman@fastmail.com
[contactName] => Ian Hitchman
[notes] =>
[externalOrderId] => 499326000048304001
[refId] => SO-00442
[externalCustomerId] => 499326000046148036
[externalLocationId] => 499326000046148042
[title] => Test Company
[deliveryStart] => 2025-09-20
[deliveryEnd] => 2025-09-20
[totalValue] => 7.2
[totalWeight] => 0
[syncInCreated] => 2025-09-19T05:54:23+0100
[syncInUpdated] => 2025-09-19T06:02:41+0100
[syncInStatus] => confirmed
[deliveryName] => test
[deliveryStreet] => 21 Broadlands
[deliveryCity] => Benfleet
[deliveryCounty] =>
[deliveryPostcode] => SS7 3BD
[syncOutUpdated] => 2025-09-19T06:03:13+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Ian Hitchman
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000046148036
Getting products
Updating product 499326000038717054
Updating order product 499326000048304007
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00442
Processing order: ucpjs628i07ljgs, ref SO-00442
Syncing SO-00442
Using default start and end times
Time window: 2025-09-20T06:00:00+01:00 - 2025-09-20T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 19/09/2025 06:02 - Local updated: 2025-09-19 05:03:13.000Z - Source updated: 2025-09-19 05:02:41.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-09-19 05:03:13.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000046148042
Array
(
[referenceNumber] => 499326000046148042
[name] => test, 21 Broadlands, Benfleet
[address] => SS7 3BD
)
499326000046148042
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00442
Done all.
Finished at 2025-09-19 06:03:15
Webhook - sourceUpdated script called at 2025-09-19 06:03:42
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048304001","salesorder_no":"SO-00442","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048304001","salesorder_no":"SO-00442","status":"open"}}
EXT ID: 499326000048304001
REF: SO-00442
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048304001 (REF SO-00442)
Local order updated = 2025-09-19 05:02:41.000Z,
source updated = 2025-09-19T06:03:13+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00442
Processing order: ucpjs628i07ljgs, ref SO-00442
Syncing SO-00442
Using default start and end times
Time window: 2025-09-20T06:00:00+01:00 - 2025-09-20T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 19/09/2025 06:03 - Local updated: 2025-09-19 05:02:00.000Z - Source updated: 2025-09-19 05:02:41.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00442
Done all.
Finished at 2025-09-19 06:03:43
Webhook - destinationUpdated script called at 2025-09-19 06:07:09
JSON: {"payload":{"orderReference":"SO-00442","status":"ALLOCATED"},"timestamp":"2025-09-19T05:07:09Z"}
REF: SO-00442
Filter: refId="SO-00442"
200 response code sent
Local item: {"addons":[],"attachments":[],"collectionEnd":"","collectionId":"s93ukjlitoinx2e","collectionInstructions":"","collectionName":"orders","collectionStart":"","company":"1kmltj8w8rnhbfx","contactEmail":"ianhitchman@fastmail.com","contactName":"Ian Hitchman","contactNotes":"","contactPhone":"","created":"2025-09-19 04:54:38.774Z","custom":[],"customer":"kbgli4rhh2bs7qd","deliveryCity":"Benfleet","deliveryCounty":"","deliveryEnd":"2025-09-20 00:00:00.000Z","deliveryInstructions":"","deliveryName":"test","deliveryPostcode":"SS7 3BD","deliveryStart":"2025-09-20 00:00:00.000Z","deliveryStreet":"21 Broadlands","description":"","driverRef":"","externalCustomerId":"499326000046148036","externalLocationId":"499326000046148042","externalOrderId":"499326000048304001","id":"ucpjs628i07ljgs","isCancelled":false,"isCollection":false,"isReadyToSync":true,"isScheduledCollection":false,"isScheduledDelivery":false,"isUntracked":false,"mergeRef":"","notes":"","orderedAt":"","overrideVolume":0,"overrideWeight":0,"paymentMethod":"","pendingSyncFromDestination":false,"pendingSyncFromSource":false,"pendingSyncToDestination":false,"pendingSyncToSource":false,"ref":"","refId":"SO-00442","requestedDeliveryDays":"","seqNo":"","signature":"","signatureName":"","signatureTime":"","statusCollection":"","statusDelivery":"Pending","syncInCreated":"2025-09-19 04:54:23.000Z","syncInStatus":"confirmed","syncInUpdated":"2025-09-19 05:02:41.000Z","syncOutStatus":"UNALLOCATED","syncOutUpdated":"2025-09-19 05:02:00.000Z","timeWindows":[],"title":"Test Company","totalValue":7.20000000000000017763568394002504646778106689453125,"totalWeight":0,"type":"","updated":"2025-09-19 05:03:42.657Z","vehicleRef":"","what3Words":""}
Webhook - destinationUpdated script called at 2025-09-19 06:08:18
JSON: {"payload":{"orderReference":"SO-00442","status":"UNALLOCATED"},"timestamp":"2025-09-19T05:08:18Z"}
REF: SO-00442
Filter: refId="SO-00442"
200 response code sent
Local item: {"addons":[],"attachments":[],"collectionEnd":"","collectionId":"s93ukjlitoinx2e","collectionInstructions":"","collectionName":"orders","collectionStart":"","company":"1kmltj8w8rnhbfx","contactEmail":"ianhitchman@fastmail.com","contactName":"Ian Hitchman","contactNotes":"","contactPhone":"","created":"2025-09-19 04:54:38.774Z","custom":[],"customer":"kbgli4rhh2bs7qd","deliveryCity":"Benfleet","deliveryCounty":"","deliveryEnd":"2025-09-20 00:00:00.000Z","deliveryInstructions":"","deliveryName":"test","deliveryPostcode":"SS7 3BD","deliveryStart":"2025-09-20 00:00:00.000Z","deliveryStreet":"21 Broadlands","description":"","driverRef":"","externalCustomerId":"499326000046148036","externalLocationId":"499326000046148042","externalOrderId":"499326000048304001","id":"ucpjs628i07ljgs","isCancelled":false,"isCollection":false,"isReadyToSync":true,"isScheduledCollection":false,"isScheduledDelivery":false,"isUntracked":false,"mergeRef":"","notes":"","orderedAt":"","overrideVolume":0,"overrideWeight":0,"paymentMethod":"","pendingSyncFromDestination":false,"pendingSyncFromSource":false,"pendingSyncToDestination":false,"pendingSyncToSource":false,"ref":"","refId":"SO-00442","requestedDeliveryDays":"","seqNo":"","signature":"","signatureName":"","signatureTime":"","statusCollection":"","statusDelivery":"Pending","syncInCreated":"2025-09-19 04:54:23.000Z","syncInStatus":"confirmed","syncInUpdated":"2025-09-19 05:02:41.000Z","syncOutStatus":"UNALLOCATED","syncOutUpdated":"2025-09-19 05:02:00.000Z","timeWindows":[],"title":"Test Company","totalValue":7.20000000000000017763568394002504646778106689453125,"totalWeight":0,"type":"","updated":"2025-09-19 05:03:42.657Z","vehicleRef":"","what3Words":""}
Updating local order from MaxOptra - current local order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => ianhitchman@fastmail.com
[contactName] => Ian Hitchman
[contactNotes] =>
[contactPhone] =>
[created] => 2025-09-19 04:54:38.774Z
[custom] => Array
(
)
[customer] => kbgli4rhh2bs7qd
[deliveryCity] => Benfleet
[deliveryCounty] =>
[deliveryEnd] => 2025-09-20 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => test
[deliveryPostcode] => SS7 3BD
[deliveryStart] => 2025-09-20 00:00:00.000Z
[deliveryStreet] => 21 Broadlands
[description] =>
[driverRef] =>
[externalCustomerId] => 499326000046148036
[externalLocationId] => 499326000046148042
[externalOrderId] => 499326000048304001
[id] => ucpjs628i07ljgs
[isCancelled] =>
[isCollection] =>
[isReadyToSync] => 1
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] =>
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00442
[requestedDeliveryDays] =>
[seqNo] =>
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Pending
[syncInCreated] => 2025-09-19 04:54:23.000Z
[syncInStatus] => confirmed
[syncInUpdated] => 2025-09-19 05:02:41.000Z
[syncOutStatus] => UNALLOCATED
[syncOutUpdated] => 2025-09-19 05:02:00.000Z
[timeWindows] => Array
(
)
[title] => Test Company
[totalValue] => 7.2
[totalWeight] => 0
[type] =>
[updated] => 2025-09-19 05:03:42.657Z
[vehicleRef] =>
[what3Words] =>
)
MaxOptra order details: Array
(
[0] => Array
(
[referenceNumber] => SO-00442
[consignmentReference] =>
[distributionCentreReference] => Head Office
[distributionCentreName] => Head Office
[task] => DELIVERY
[priority] => NORMAL
[vehicleRequirements] => Array
(
)
[additionalInstructions] =>
[clientName] => Test Company
[contactPerson] => Ian Hitchman
[contactNumber] =>
[contactEmail] => ianhitchman@fastmail.com
[additionalContactEmails] =>
[notificationPreferences] => Array
(
[allowSMS] => 1
[allowEmail] => 1
)
[customerLocation] => Array
(
[referenceNumber] => 499326000046148042
[name] => test, 21 Broadlands, Benfleet
[address] => SS7 3BD
[w3wAddress] =>
[latitude] => 51.56741
[longitude] => 0.58135
)
[territoryReference] =>
[stopSequence] => ANY
[timeWindows] => Array
(
[0] => Array
(
[start] => 2025-09-20T06:00:00+01:00
[end] => 2025-09-20T20:00:00+01:00
)
)
[orderDate] =>
[capacity1] => 0
[capacity2] => 0
[price] =>
[operationDuration] => 300
[customFields] => Array
(
[7DCEmptiesGas] => 3
[7DCEmpties] => 3
)
[orderItems] => Array
(
[0] => Array
(
[itemReferenceNumber] => 499326000038717054
[orderReferenceNumber] => SO-00442
[name] => 440ml x 24 Packaging Own Cans
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 6
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 6
[height] => 0
[width] => 0
[length] => 0
[weight] => 0
[volume] => 0
)
)
[widgetTrackingDetails] =>
)
)
MaxOptra schedule details: Array
(
[orderReferenceNumber] => SO-00442
[assignedDriverReference] =>
[assignedDriverName] =>
[assignedVehicleReference] =>
[assignedVehicleName] =>
[plannedArrivalTime] =>
[plannedCompletionTime] =>
[stopNumber] =>
[totalStopsInRun] =>
[runNumber] =>
[runReference] =>
[eta] =>
[factArrivalTimeGPS] =>
[factCompletionTimeGPS] =>
[factArrivalTimeReported] =>
[factCompletionTimeReported] =>
[failReason] =>
[failComment] =>
[status] => UNALLOCATED
[driver] =>
[arrival_planned] =>
[arrival_estimated] =>
[arrival_actual] =>
[totalStops] =>
)
Updating order: SO-00442
Update ID ucpjs628i07ljgs with: Array
(
[custom] => Array
(
[0] => Array
(
[id] => yt2l2o3cacu43wf
[value] => 3
)
[1] => Array
(
[id] => j381owny56syys6
[value] => 3
)
)
[driverRef] =>
[vehicleRef] =>
[seqNo] =>
)
Updated order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => ianhitchman@fastmail.com
[contactName] => Ian Hitchman
[contactNotes] =>
[contactPhone] =>
[created] => 2025-09-19 04:54:38.774Z
[custom] => Array
(
[0] => stdClass Object
(
[id] => yt2l2o3cacu43wf
[value] => 3
)
[1] => stdClass Object
(
[id] => j381owny56syys6
[value] => 3
)
)
[customer] => kbgli4rhh2bs7qd
[deliveryCity] => Benfleet
[deliveryCounty] =>
[deliveryEnd] => 2025-09-20 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => test
[deliveryPostcode] => SS7 3BD
[deliveryStart] => 2025-09-20 00:00:00.000Z
[deliveryStreet] => 21 Broadlands
[description] =>
[driverRef] =>
[externalCustomerId] => 499326000046148036
[externalLocationId] => 499326000046148042
[externalOrderId] => 499326000048304001
[id] => ucpjs628i07ljgs
[isCancelled] =>
[isCollection] =>
[isReadyToSync] => 1
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] =>
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00442
[requestedDeliveryDays] =>
[seqNo] =>
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Pending
[syncInCreated] => 2025-09-19 04:54:23.000Z
[syncInStatus] => confirmed
[syncInUpdated] => 2025-09-19 05:02:41.000Z
[syncOutStatus] => UNALLOCATED
[syncOutUpdated] => 2025-09-19 05:02:00.000Z
[timeWindows] => Array
(
)
[title] => Test Company
[totalValue] => 7.2
[totalWeight] => 0
[type] =>
[updated] => 2025-09-19 05:08:19.272Z
[vehicleRef] =>
[what3Words] =>
)
Updating source from local order
Getting custom fields
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-07-18 02:35:52.065Z
[id] => nc7sndad5bhvi5x
[inCollection] => orders
[inField] => paymentMethod
[mappedField] => 7DCPayment
[name] => Payment method
[sourceField] =>
[syncFromSource] => 1
[syncToSource] =>
[type] => text
[updated] => 2025-07-18 02:35:52.065Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Processing field
Mapped field: 7DCEmpties
Custom fields: Array
(
[0] => Array
(
[id] => yt2l2o3cacu43wf
[value] => 3
)
[1] => Array
(
[id] => j381owny56syys6
[value] => 3
)
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Custom field: Array
(
[id] => yt2l2o3cacu43wf
[value] => 3
)
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
Processing field
Mapped field: 7DCEmptiesGas
Custom fields: Array
(
[0] => Array
(
[id] => yt2l2o3cacu43wf
[value] => 3
)
[1] => Array
(
[id] => j381owny56syys6
[value] => 3
)
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
Custom field: Array
(
[id] => j381owny56syys6
[value] => 3
)
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:03:34.631Z
[id] => pcn96l3kgkps4az
[inCollection] => orders
[inField] => driverRef
[mappedField] =>
[name] => Delivery driver
[sourceField] => cf_delivery_driver
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:03:34.631Z
)
Processing field
driverRef...
Value:
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-08 04:52:51.399Z
[id] => hhrzcmytzs8p3kw
[inCollection] => orders
[inField] => seqNo
[mappedField] =>
[name] => Run number
[sourceField] => cf_run_number
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-08 04:52:51.399Z
)
Processing field
seqNo...
Value:
Finished processing field
Continue
Updating source order: Array
(
[custom_fields] => Array
(
[0] => Array
(
[api_name] => cf_empties_collected
[value] => 3
)
[1] => Array
(
[api_name] => cf_gas_empties_collected
[value] => 3
)
)
)
Update result: Array
(
[code] => 0
[message] => Sales Order has been updated.
[salesorder] => Array
(
[salesorder_id] => 499326000048304001
[is_viewed_in_mail] =>
[mail_first_viewed_time] =>
[mail_last_viewed_time] =>
[documents] => Array
(
)
[zcrm_potential_id] =>
[zcrm_potential_name] =>
[salesorder_number] => SO-00442
[date] => 2025-09-20
[offline_created_date_with_time] =>
[tracking_url] =>
[has_discount] =>
[status] => confirmed
[color_code] =>
[current_sub_status_id] =>
[current_sub_status] => confirmed
[sub_statuses] => Array
(
)
[shipment_date] =>
[reference_number] =>
[customer_id] => 499326000046148036
[customer_name] => Test Company
[contact_persons] => Array
(
[0] => 499326000046148038
)
[contact_persons_associated] => Array
(
[0] => Array
(
[contact_person_id] => 499326000046148038
[contact_person_email] => ianhitchman@fastmail.com
[first_name] => Ian
[last_name] => Hitchman
[mobile] =>
[communication_preference] => Array
(
[is_email_enabled] => 1
)
)
)
[contact_person_details] => Array
(
[0] => Array
(
[phone] => +64-2041132636
[mobile] =>
[last_name] => Hitchman
[contact_person_id] => 499326000046148038
[first_name] => Ian
[email] => ianhitchman@fastmail.com
)
)
[source] => Client
[contact_category] => uk
[is_taxable] =>
[has_shipping_address] => 1
[currency_id] => 499326000000000065
[currency_code] => GBP
[currency_symbol] => £
[exchange_rate] => 1
[is_discount_before_tax] => 1
[discount_type] => item_level
[estimate_id] =>
[delivery_method] =>
[delivery_method_id] =>
[vat_treatment] => uk
[is_inclusive_tax] =>
[tax_rounding] => entity_level
[tax_override_preference] => no_override
[order_status] => confirmed
[invoiced_status] => not_invoiced
[paid_status] => unpaid
[shipped_status] => pending
[sales_channel] => direct_sales
[sales_channel_formatted] => Direct Sales
[account_identifier] =>
[integration_id] =>
[is_dropshipped] =>
[is_backordered] =>
[is_manually_fulfilled] =>
[can_manually_fulfill] => 1
[has_qty_cancelled] =>
[is_reverse_charge_applied] =>
[shipping_details] => Array
(
)
[created_by_email] => warehousing@7daycellar.co.uk
[created_by_name] => Admin Profile
[branch_id] => 499326000023111007
[branch_name] => Head Office
[location_id] => 499326000023111007
[location_name] => Head Office
[total_quantity] => 1
[line_items] => Array
(
[0] => Array
(
[line_item_id] => 499326000048304007
[variant_id] => 499326000038717054
[track_batch_number] =>
[item_id] => 499326000038717054
[is_returnable] =>
[product_id] => 499326000038717054
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] =>
[name] => 440ml x 24 Packaging Own Cans
[group_name] => 440ml x 24 Packaging Own Cans
[description] =>
[item_order] => 1
[bcy_rate] => 6
[rate] => 6
[sales_rate] => 6
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 1.2
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 6
[item_sub_total] => 6
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] =>
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] =>
[image_type] =>
[document_id] =>
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 0
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] =>
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
)
[is_advanced_tracking_missing] =>
[entity_tags] =>
[submitter_id] =>
[approver_id] =>
[submitted_date] =>
[submitted_by] =>
[submitted_by_name] =>
[submitted_by_email] =>
[submitted_by_photo_url] =>
[price_precision] => 2
[is_emailed] => 1
[has_unconfirmed_line_item] =>
[picklists] => Array
(
)
[purchaseorders] => Array
(
)
[locations] => Array
(
[0] => Array
(
[location_id] => 499326000023111007
[location_name] => Head Office
[status] => active
)
[1] => Array
(
[location_id] => 499326000041689155
[location_name] => Bason Bridge Brewery Duty Bonded Warehouse
[status] => active
)
)
[billing_address_id] => 499326000046148040
[billing_address] => Array
(
[address] => 200 Broadlands
[street2] =>
[city] => Benfleet
[state] => Essex
[zip] => SS7 3BD
[country] => United Kingdom
[country_code] => GB
[county] =>
[state_code] => ESS
[fax] =>
[phone] =>
[attention] =>
)
[shipping_address_id] => 499326000046148042
[shipping_address] => Array
(
[company_name] =>
[address] => 21 Broadlands
[street2] =>
[city] => Benfleet
[state] =>
[zip] => SS7 3BD
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] => 07764485844
[attention] => test
)
[is_test_order] =>
[notes] => Account Name: 7 Day Cellar Ltd
Sort Code: 09-01-30
Account No: 10888924
[terms] =>
[payment_terms] => 0
[payment_terms_label] => Due On Receipt
[custom_fields] => Array
(
[0] => Array
(
[field_id] => 499326000042690007
[customfield_id] => 499326000042690007
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 1
[label] => Automation Required
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[is_color_code_supported] =>
[api_name] => cf__ulrql_automation_required
[show_in_all_pdf] =>
[selected_option_id] => 499326000042690011
[value_formatted] => Yes
[search_entity] => salesorder
[data_type] => dropdown
[placeholder] => cf__ulrql_automation_required
[value] => Yes
[is_dependent_field] =>
)
[1] => Array
(
[field_id] => 499326000046047547
[customfield_id] => 499326000046047547
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 2
[label] => Keg Empties Collected
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_empties_collected
[show_in_all_pdf] =>
[value_formatted] => 3
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_empties_collected
[value] => 3
[is_dependent_field] =>
)
[2] => Array
(
[field_id] => 499326000046252153
[customfield_id] => 499326000046252153
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 3
[label] => Gas Empties Collected
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_gas_empties_collected
[show_in_all_pdf] =>
[value_formatted] => 3
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_gas_empties_collected
[value] => 3
[is_dependent_field] =>
)
[3] => Array
(
[field_id] => 499326000046717945
[customfield_id] => 499326000046717945
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 4
[label] => GoCardless Mandate
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_gocardless_mandate
[show_in_all_pdf] =>
[value_formatted] => False
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_gocardless_mandate
[value] => False
[is_dependent_field] =>
)
[4] => Array
(
[field_id] => 499326000047922345
[customfield_id] => 499326000047922345
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 5
[label] => Run Number
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_run_number
[show_in_all_pdf] =>
[value_formatted] => 1
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_run_number
[value] => 1
[is_dependent_field] =>
)
)
[custom_field_hash] => Array
(
[cf__ulrql_automation_required] => Yes
[cf__ulrql_automation_required_unformatted] => Yes
[cf_empties_collected] => 3
[cf_empties_collected_unformatted] => 3
[cf_gas_empties_collected] => 3
[cf_gas_empties_collected_unformatted] => 3
[cf_gocardless_mandate] => False
[cf_gocardless_mandate_unformatted] => False
[cf_run_number] => 1
[cf_run_number_unformatted] => 1
)
[template_id] => 499326000000000111
[template_name] => Standard Template
[page_width] => 8.27in
[page_height] => 11.69in
[orientation] => portrait
[template_type] => standard
[created_time] => 2025-09-19T05:54:23+0100
[last_modified_time] => 2025-09-19T06:08:19+0100
[created_by_id] => 499326000044410001
[created_date] => 2025-09-19
[last_modified_by_id] => 499326000044410001
[attachment_name] =>
[can_send_in_mail] =>
[salesperson_id] =>
[salesperson_name] =>
[merchant_id] =>
[merchant_name] =>
[pickup_location_id] =>
[discount] => 0
[discount_applied_on_amount] => 0
[is_adv_tracking_in_package] =>
[shipping_charge_taxes] => Array
(
)
[lock_details] => Array
(
[can_lock] =>
)
[locked_actions] => Array
(
)
[shipping_charge_tax_id] =>
[shipping_charge_tax_name] =>
[shipping_charge_tax_type] =>
[shipping_charge_tax_percentage] =>
[shipping_charge_tax_exemption_id] =>
[shipping_charge_tax_exemption_code] =>
[shipping_charge_tax] =>
[bcy_shipping_charge_tax] =>
[shipping_charge_exclusive_of_tax] => 0
[shipping_charge_inclusive_of_tax] => 0
[shipping_charge_tax_formatted] =>
[shipping_charge_exclusive_of_tax_formatted] => £0.00
[shipping_charge_inclusive_of_tax_formatted] => £0.00
[shipping_charge] => 0
[bcy_shipping_charge] => 0
[adjustment] => 0
[bcy_adjustment] => 0
[adjustment_description] => Adjustment
[roundoff_value] => 0
[transaction_rounding_type] => no_rounding
[rounding_mode] => round_half_up
[bcy_rounding_mode] => round_half_up
[sub_total] => 6
[bcy_sub_total] => 6
[sub_total_inclusive_of_tax] => 0
[sub_total_exclusive_of_discount] => 6
[discount_total] => 0
[bcy_discount_total] => 0
[discount_percent] => 0
[tax_total] => 1.2
[bcy_tax_total] => 1.2
[total] => 7.2
[computation_type] => basic
[bcy_total] => 7.2
[reverse_charge_tax_total] => 0
[taxes] => Array
(
[0] => Array
(
[tax_amount] => 1.2
[tax_name] => Standard Rate
[tax_amount_formatted] => £1.20
)
)
[tds_calculation_type] => tds_item_level
[packages] => Array
(
)
[so_cycle_preference] => Array
(
[is_feature_enabled] => 1
[socycle_status] => not_triggered
[can_create_invoice] => 1
[can_create_package] =>
[can_create_shipment] =>
[shipment_preference] => Array
(
[default_carrier] =>
[send_notification] =>
[deliver_shipments] =>
)
[invoice_preference] => Array
(
[mark_as_sent] =>
[record_payment] =>
[payment_mode_id] => 499326000000000199
[payment_account_id] => 499326000000000349
)
)
[invoices] => Array
(
)
[can_show_kit_return] =>
[is_kit_partial_return] =>
[salesreturns] => Array
(
)
[payments] => Array
(
)
[creditnotes] => Array
(
)
[refunds] => Array
(
)
[contact] => Array
(
[customer_balance] => 130.8
[credit_limit] => 0
[unused_customer_credits] => 0
[is_credit_limit_migration_completed] => 1
)
[balance] => 7.2
[approvers_list] => Array
(
)
[is_scheduled_for_quick_shipment_create] =>
)
)
Webhook - sourceUpdated script called at 2025-09-19 06:08:48
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048304001","salesorder_no":"SO-00442","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048304001","salesorder_no":"SO-00442","status":"open"}}
EXT ID: 499326000048304001
REF: SO-00442
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048304001 (REF SO-00442)
Local order updated = 2025-09-19 05:02:41.000Z,
source updated = 2025-09-19T06:08:19+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => ianhitchman@fastmail.com
[contactName] => Ian Hitchman
[notes] =>
[externalOrderId] => 499326000048304001
[refId] => SO-00442
[externalCustomerId] => 499326000046148036
[externalLocationId] => 499326000046148042
[title] => Test Company
[deliveryStart] => 2025-09-20
[deliveryEnd] => 2025-09-20
[totalValue] => 7.2
[totalWeight] => 0
[syncInCreated] => 2025-09-19T05:54:23+0100
[syncInUpdated] => 2025-09-19T06:08:19+0100
[syncInStatus] => confirmed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048304007
[externalProductId] => 499326000038717054
[sku] =>
[title] => 440ml x 24 Packaging Own Cans
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 6
[price] => 6
)
)
[deliveryName] => test
[deliveryStreet] => 21 Broadlands
[deliveryCity] => Benfleet
[deliveryCounty] =>
[deliveryPostcode] => SS7 3BD
)
Does this order already exist?
Yes
Existing custom fields: Array
(
[0] => Array
(
[id] => yt2l2o3cacu43wf
[value] => 3
)
[1] => Array
(
[id] => j381owny56syys6
[value] => 3
)
)
Is array
Merging custom fields...
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => ianhitchman@fastmail.com
[contactName] => Ian Hitchman
[notes] =>
[externalOrderId] => 499326000048304001
[refId] => SO-00442
[externalCustomerId] => 499326000046148036
[externalLocationId] => 499326000046148042
[title] => Test Company
[deliveryStart] => 2025-09-20
[deliveryEnd] => 2025-09-20
[totalValue] => 7.2
[totalWeight] => 0
[syncInCreated] => 2025-09-19T05:54:23+0100
[syncInUpdated] => 2025-09-19T06:08:19+0100
[syncInStatus] => confirmed
[deliveryName] => test
[deliveryStreet] => 21 Broadlands
[deliveryCity] => Benfleet
[deliveryCounty] =>
[deliveryPostcode] => SS7 3BD
[syncOutUpdated] => 2025-09-19T06:08:49+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Ian Hitchman
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => [{"id":"yt2l2o3cacu43wf","value":"3"},{"id":"j381owny56syys6","value":"3"}]
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000046148036
Getting products
Updating product 499326000038717054
Updating order product 499326000048304007
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00442
Processing order: ucpjs628i07ljgs, ref SO-00442
Syncing SO-00442
Using default start and end times
Time window: 2025-09-20T06:00:00+01:00 - 2025-09-20T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 19/09/2025 06:08 - Local updated: 2025-09-19 05:08:49.000Z - Source updated: 2025-09-19 05:08:19.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-09-19 05:08:49.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000046148042
Array
(
[referenceNumber] => 499326000046148042
[name] => test, 21 Broadlands, Benfleet
[address] => SS7 3BD
)
499326000046148042
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00442
Done all.
Finished at 2025-09-19 06:08:50
Webhook - sourceUpdated script called at 2025-09-19 10:01:08
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048237928","salesorder_no":"SO-00440","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048237928","salesorder_no":"SO-00440","status":"open"}}
EXT ID: 499326000048237928
REF: SO-00440
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048237928 (REF SO-00440)
Local order updated = 2025-09-18 09:13:23.000Z,
source updated = 2025-09-19T10:01:01+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => haymaker_wadeford@outlook.com
[contactName] => Carrie .
[notes] =>
[externalOrderId] => 499326000048237928
[refId] => SO-00440
[externalCustomerId] => 499326000046509007
[externalLocationId] => 499326000046509009
[title] => The Haymaker Inn
[deliveryStart] => 2025-09-19
[deliveryEnd] => 2025-09-19
[totalValue] => 140.4
[totalWeight] => 56
[syncInCreated] => 2025-09-18T10:13:23+0100
[syncInUpdated] => 2025-09-19T10:01:01+0100
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048237934
[externalProductId] => 499326000044845196
[sku] =>
[title] => Harding's Golden Ale Pin 4.2%
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 39
[price] => 39
)
[1] => Array
(
[externalOrderProductId] => 499326000048237936
[externalProductId] => 499326000009952803
[sku] => BB-HSBT-4.5G
[title] => Hardings Best Pin 4.2%
[notes] =>
[quantity] => 2
[weightKg] => 28
[weightTotal] => 56
[priceTotal] => 78
[price] => 39
)
[2] => Array
(
[externalOrderProductId] => 499326000048237938
[externalProductId] => 499326000021043887
[sku] =>
[title] => Collection of empties
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
)
[deliveryName] => The Haymaker Inn
[deliveryStreet] => Wadeford
[deliveryCity] => Chard
[deliveryCounty] =>
[deliveryPostcode] => TA20 3AP
[paymentMethod] => Direct Debit
)
Does this order already exist?
Yes
Existing custom fields: Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Direct Debit
)
)
Is array
Merging custom fields...
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => haymaker_wadeford@outlook.com
[contactName] => Carrie .
[notes] =>
[externalOrderId] => 499326000048237928
[refId] => SO-00440
[externalCustomerId] => 499326000046509007
[externalLocationId] => 499326000046509009
[title] => The Haymaker Inn
[deliveryStart] => 2025-09-19
[deliveryEnd] => 2025-09-19
[totalValue] => 140.4
[totalWeight] => 56
[syncInCreated] => 2025-09-18T10:13:23+0100
[syncInUpdated] => 2025-09-19T10:01:01+0100
[syncInStatus] => closed
[deliveryName] => The Haymaker Inn
[deliveryStreet] => Wadeford
[deliveryCity] => Chard
[deliveryCounty] =>
[deliveryPostcode] => TA20 3AP
[paymentMethod] => Direct Debit
[syncOutUpdated] => 2025-09-19T10:01:09+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Carrie .
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => [{"id":"nc7sndad5bhvi5x","value":"Direct Debit"},{"id":"nc7sndad5bhvi5x","value":"Direct Debit"}]
)
Updating order
Getting customer details
2025-08-26 00:44:42.000Z != 2025-09-18T10:25:42+0100
Customer changed - updating 499326000046509007
Updating order contact details
Getting products
Updating product 499326000044845196
Updating order product 499326000048237934
Updated
Updating product 499326000009952803
Updating order product 499326000048237936
Updated
Updating product 499326000021043887
Updating order product 499326000048237938
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00440
Processing order: ey8rlzvdlxb1rib, ref SO-00440
Syncing SO-00440
Using default start and end times
Time window: 2025-09-19T06:00:00+01:00 - 2025-09-19T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 18/09/2025 10:13 - Local updated: 2025-09-19 09:01:09.000Z - Source updated: 2025-09-19 09:01:01.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status:
Status changed - mark for sync back to source
Is allocated? no
Local updated: 2025-09-19 09:01:09.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000046509009
Array
(
[referenceNumber] => 499326000046509009
[name] => The Haymaker Inn, Wadeford, Chard
[address] => TA20 3AP
)
499326000046509009
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00440
Done all.
Finished at 2025-09-19 10:01:11
Webhook - sourceUpdated script called at 2025-09-19 10:01:39
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048237928","salesorder_no":"SO-00440","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048237928","salesorder_no":"SO-00440","status":"invoiced"}}
EXT ID: 499326000048237928
REF: SO-00440
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048237928 (REF SO-00440)
Updates pending to source for order: 499326000048237928
Updates found - pushing to source
Webhook - sourceUpdated script called at 2025-09-19 10:01:39
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048237958","salesorder_no":"SO-00441","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048237958","salesorder_no":"SO-00441","status":"invoiced"}}
EXT ID: 499326000048237958
REF: SO-00441
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048237958 (REF SO-00441)
Local order updated = 2025-09-18 10:39:47.000Z,
source updated = 2025-09-19T10:01:33+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => The Foresters Arms Dunster
[notes] =>
[externalOrderId] => 499326000048237958
[refId] => SO-00441
[externalCustomerId] => 499326000048016003
[externalLocationId] => 499326000048016009
[title] => The Foresters Arms Dunster
[deliveryStart] => 2025-09-22
[deliveryEnd] => 2025-09-22
[totalValue] => 93
[totalWeight] => 56
[syncInCreated] => 2025-09-18T11:39:47+0100
[syncInUpdated] => 2025-09-19T10:01:33+0100
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048237964
[externalProductId] => 499326000023064198
[sku] => BB-HSAR-4.5G
[title] => Hardings Amber Ale Pin (4.5g)
[notes] =>
[quantity] => 1
[weightKg] => 28
[weightTotal] => 28
[priceTotal] => 37.5
[price] => 37.5
)
[1] => Array
(
[externalOrderProductId] => 499326000048237966
[externalProductId] => 499326000026429021
[sku] => BB-HSPE-4.5G
[title] => Harding's Double Hopped Pale Ale 4.2% Pin
[notes] =>
[quantity] => 1
[weightKg] => 28
[weightTotal] => 28
[priceTotal] => 40
[price] => 40
)
[2] => Array
(
[externalOrderProductId] => 499326000048237968
[externalProductId] => 499326000021043887
[sku] =>
[title] => Collection of empties
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
)
[deliveryName] => The Foresters Arms Dunster
[deliveryStreet] => 33 West St
[deliveryCity] => Dunster
[deliveryCounty] =>
[deliveryPostcode] => TA24 6SN
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => The Foresters Arms Dunster
[notes] =>
[externalOrderId] => 499326000048237958
[refId] => SO-00441
[externalCustomerId] => 499326000048016003
[externalLocationId] => 499326000048016009
[title] => The Foresters Arms Dunster
[deliveryStart] => 2025-09-22
[deliveryEnd] => 2025-09-22
[totalValue] => 93
[totalWeight] => 56
[syncInCreated] => 2025-09-18T11:39:47+0100
[syncInUpdated] => 2025-09-19T10:01:33+0100
[syncInStatus] => closed
[deliveryName] => The Foresters Arms Dunster
[deliveryStreet] => 33 West St
[deliveryCity] => Dunster
[deliveryCounty] =>
[deliveryPostcode] => TA24 6SN
[syncOutUpdated] => 2025-09-19T10:01:40+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => The Foresters Arms Dunster
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Done updating. Proceeding to sync from source.
Local order updated = 2025-09-19 09:01:01.000Z,
source updated = 2025-09-19T10:01:01+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00440
Customer exists and has not changed (skipping): 499326000048016003
Getting products
Updating product 499326000023064198
Updating order product 499326000048237964
Updated
Updating product 499326000026429021
Updating order product 499326000048237966
Updated
Updating product 499326000021043887
Updating order product 499326000048237968
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00441
Processing order: ey8rlzvdlxb1rib, ref SO-00440
Syncing SO-00440
Using default start and end times
Time window: 2025-09-19T06:00:00+01:00 - 2025-09-19T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 19/09/2025 10:01 - Local updated: 2025-09-18 09:13:00.000Z - Source updated: 2025-09-19 09:01:01.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Processing order: l5kg3zoo3gp74x3, ref SO-00441
Syncing SO-00441
Using default start and end times
Time window: 2025-09-22T06:00:00+01:00 - 2025-09-22T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 18/09/2025 11:40 - Local updated: 2025-09-19 09:01:40.000Z - Source updated: 2025-09-19 09:01:33.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status:
Status changed - mark for sync back to source
Is allocated? no
Local updated: 2025-09-18 09:13:00.000Z
Pending updates to MaxOptra? no
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00440
Done all.
Finished at 2025-09-19 10:01:41
Is allocated? no
Local updated: 2025-09-19 09:01:40.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000048016009
Array
(
[referenceNumber] => 499326000048016009
[name] => The Foresters Arms Dunster, 33 West St, Dunster
[address] => TA24 6SN
)
499326000048016009
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00441
Done all.
Finished at 2025-09-19 10:01:41
Webhook - sourceUpdated script called at 2025-09-19 10:02:10
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048237958","salesorder_no":"SO-00441","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048237958","salesorder_no":"SO-00441","status":"invoiced"}}
EXT ID: 499326000048237958
REF: SO-00441
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048237958 (REF SO-00441)
Updates pending to source for order: 499326000048237958
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-09-19 09:01:33.000Z,
source updated = 2025-09-19T10:01:33+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00441
Processing order: l5kg3zoo3gp74x3, ref SO-00441
Syncing SO-00441
Using default start and end times
Time window: 2025-09-22T06:00:00+01:00 - 2025-09-22T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 19/09/2025 10:01 - Local updated: 2025-09-18 10:40:00.000Z - Source updated: 2025-09-19 09:01:33.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-09-18 10:40:00.000Z
Pending updates to MaxOptra? no
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00441
Done all.
Finished at 2025-09-19 10:02:12
Webhook - sourceUpdated script called at 2025-09-19 10:02:40
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048237958","salesorder_no":"SO-00441","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048237958","salesorder_no":"SO-00441","status":"invoiced"}}
EXT ID: 499326000048237958
REF: SO-00441
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048237958 (REF SO-00441)
Local order updated = 2025-09-19 09:01:33.000Z,
source updated = 2025-09-19T10:02:11+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00441
Processing order: l5kg3zoo3gp74x3, ref SO-00441
Syncing SO-00441
Using default start and end times
Time window: 2025-09-22T06:00:00+01:00 - 2025-09-22T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 19/09/2025 10:01 - Local updated: 2025-09-19 09:01:00.000Z - Source updated: 2025-09-19 09:01:33.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00441
Done all.
Finished at 2025-09-19 10:02:41
Webhook - sourceUpdated script called at 2025-09-19 10:06:02
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048237928","salesorder_no":"SO-00440","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048237928","salesorder_no":"SO-00440","status":"invoiced"}}
EXT ID: 499326000048237928
REF: SO-00440
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048237928 (REF SO-00440)
Local order updated = 2025-09-19 09:01:01.000Z,
source updated = 2025-09-19T10:01:40+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00440
Processing order: ey8rlzvdlxb1rib, ref SO-00440
Syncing SO-00440
Using default start and end times
Time window: 2025-09-19T06:00:00+01:00 - 2025-09-19T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 19/09/2025 10:01 - Local updated: 2025-09-19 09:01:00.000Z - Source updated: 2025-09-19 09:01:01.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00440
Done all.
Finished at 2025-09-19 10:06:03
Webhook - sourceUpdated script called at 2025-09-19 10:06:25
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048237958","salesorder_no":"SO-00441","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048237958","salesorder_no":"SO-00441","status":"open"}}
EXT ID: 499326000048237958
REF: SO-00441
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048237958 (REF SO-00441)
Local order updated = 2025-09-19 09:01:33.000Z,
source updated = 2025-09-19T10:02:11+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00441
Processing order: l5kg3zoo3gp74x3, ref SO-00441
Syncing SO-00441
Using default start and end times
Time window: 2025-09-22T06:00:00+01:00 - 2025-09-22T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 19/09/2025 10:01 - Local updated: 2025-09-19 09:01:00.000Z - Source updated: 2025-09-19 09:01:33.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00441
Done all.
Finished at 2025-09-19 10:06:27
Webhook - sourceUpdated script called at 2025-09-19 10:06:40
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048237928","salesorder_no":"SO-00440","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048237928","salesorder_no":"SO-00440","status":"invoiced"}}
EXT ID: 499326000048237928
REF: SO-00440
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048237928 (REF SO-00440)
Local order updated = 2025-09-19 09:01:01.000Z,
source updated = 2025-09-19T10:01:40+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00440
Processing order: ey8rlzvdlxb1rib, ref SO-00440
Syncing SO-00440
Using default start and end times
Time window: 2025-09-19T06:00:00+01:00 - 2025-09-19T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 19/09/2025 10:01 - Local updated: 2025-09-19 09:01:00.000Z - Source updated: 2025-09-19 09:01:01.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00440
Done all.
Finished at 2025-09-19 10:06:41
Webhook - sourceUpdated script called at 2025-09-19 14:01:53
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048306184","salesorder_no":"SO-00443","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000048306184","salesorder_no":"SO-00443","status":"draft"}}
EXT ID: 499326000048306184
REF: SO-00443
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048306184 (REF SO-00443)
Source order details: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => Airport Tavern
[notes] =>
[externalOrderId] => 499326000048306184
[refId] => SO-00443
[externalCustomerId] => 499326000047898079
[externalLocationId] => 499326000047898085
[title] => Airport Tavern
[deliveryStart] => 2025-09-20
[deliveryEnd] => 2025-09-20
[totalValue] => 1701.5
[totalWeight] => 744
[syncInCreated] => 2025-09-19T14:01:34+0100
[syncInUpdated] => 2025-09-19T14:01:34+0100
[syncInStatus] => draft
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048306190
[externalProductId] => 499326000022560365
[sku] => HUK-CRUZ-50LK
[title] => Cruzcampo 50L
[notes] =>
[quantity] => 3
[weightKg] => 62
[weightTotal] => 186
[priceTotal] => 416.97
[price] => 138.99
)
[1] => Array
(
[externalOrderProductId] => 499326000048306192
[externalProductId] => 499326000000062762
[sku] => HUK-FOST-50LK
[title] => Fosters Lager 11g
[notes] =>
[quantity] => 3
[weightKg] => 62
[weightTotal] => 186
[priceTotal] => 344.97
[price] => 114.99
)
[2] => Array
(
[externalOrderProductId] => 499326000048306194
[externalProductId] => 499326000000063923
[sku] => TTCG-GOLD-50LK
[title] => Thatcher's Gold Cider 11g
[notes] =>
[quantity] => 4
[weightKg] => 62
[weightTotal] => 248
[priceTotal] => 392
[price] => 98
)
[3] => Array
(
[externalOrderProductId] => 499326000048306196
[externalProductId] => 499326000000063068
[sku] => TTCG-HAZE-50LK
[title] => Thatcher's Haze Cider 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 103.99
[price] => 103.99
)
[4] => Array
(
[externalOrderProductId] => 499326000048306198
[externalProductId] => 499326000000061574
[sku] => DIAG-GUIN-50LK
[title] => Draught Guinness 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 159.99
[price] => 159.99
)
)
[deliveryName] => Airport Tavern
[deliveryStreet] => Bridgwater Road
[deliveryCity] => Lulsgate Bottom
[deliveryCounty] =>
[deliveryPostcode] => BS40 9XA
)
Does this order already exist?
No
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => Airport Tavern
[notes] =>
[externalOrderId] => 499326000048306184
[refId] => SO-00443
[externalCustomerId] => 499326000047898079
[externalLocationId] => 499326000047898085
[title] => Airport Tavern
[deliveryStart] => 2025-09-20
[deliveryEnd] => 2025-09-20
[totalValue] => 1701.5
[totalWeight] => 744
[syncInCreated] => 2025-09-19T14:01:34+0100
[syncInUpdated] => 2025-09-19T14:01:34+0100
[syncInStatus] => draft
[deliveryName] => Airport Tavern
[deliveryStreet] => Bridgwater Road
[deliveryCity] => Lulsgate Bottom
[deliveryCounty] =>
[deliveryPostcode] => BS40 9XA
[syncOutUpdated] => 2025-09-19T14:01:54+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Airport Tavern
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
New order
Marking order for sync with MaxOptra
Getting customer details
Customer exists and has not changed (skipping): 499326000047898079
Updating order contact details
Getting products
Updating product 499326000022560365
Creating new order product 499326000048306190
Updating product 499326000000062762
Creating new order product 499326000048306192
Updating product 499326000000063923
Creating new order product 499326000048306194
Updating product 499326000000063068
Creating new order product 499326000048306196
Updating product 499326000000061574
Creating new order product 499326000048306198
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00443
Processing order: ign1hku65ruuqr5, ref SO-00443
Syncing SO-00443
Using default start and end times
Time window: 2025-09-20T06:00:00+01:00 - 2025-09-20T20:00:00+01:00
Found order in MaxOptra? no
Creating SO-00443
Done
Finished syncing to MaxOptra for order SO-00443
Done all.
Finished at 2025-09-19 14:01:55
Webhook - sourceUpdated script called at 2025-09-19 18:35:20
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048306184","salesorder_no":"SO-00443","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048306184","salesorder_no":"SO-00443","status":"invoiced"}}
EXT ID: 499326000048306184
REF: SO-00443
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048306184 (REF SO-00443)
Local order updated = 2025-09-19 13:01:34.000Z,
source updated = 2025-09-19T18:35:15+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => Airport Tavern
[notes] =>
[externalOrderId] => 499326000048306184
[refId] => SO-00443
[externalCustomerId] => 499326000047898079
[externalLocationId] => 499326000047898085
[title] => Airport Tavern
[deliveryStart] => 2025-09-20
[deliveryEnd] => 2025-09-20
[totalValue] => 1701.5
[totalWeight] => 744
[syncInCreated] => 2025-09-19T14:01:34+0100
[syncInUpdated] => 2025-09-19T18:35:15+0100
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048306190
[externalProductId] => 499326000022560365
[sku] => HUK-CRUZ-50LK
[title] => Cruzcampo 50L
[notes] =>
[quantity] => 3
[weightKg] => 62
[weightTotal] => 186
[priceTotal] => 416.97
[price] => 138.99
)
[1] => Array
(
[externalOrderProductId] => 499326000048306192
[externalProductId] => 499326000000062762
[sku] => HUK-FOST-50LK
[title] => Fosters Lager 11g
[notes] =>
[quantity] => 3
[weightKg] => 62
[weightTotal] => 186
[priceTotal] => 344.97
[price] => 114.99
)
[2] => Array
(
[externalOrderProductId] => 499326000048306194
[externalProductId] => 499326000000063923
[sku] => TTCG-GOLD-50LK
[title] => Thatcher's Gold Cider 11g
[notes] =>
[quantity] => 4
[weightKg] => 62
[weightTotal] => 248
[priceTotal] => 392
[price] => 98
)
[3] => Array
(
[externalOrderProductId] => 499326000048306196
[externalProductId] => 499326000000063068
[sku] => TTCG-HAZE-50LK
[title] => Thatcher's Haze Cider 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 103.99
[price] => 103.99
)
[4] => Array
(
[externalOrderProductId] => 499326000048306198
[externalProductId] => 499326000000061574
[sku] => DIAG-GUIN-50LK
[title] => Draught Guinness 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 159.99
[price] => 159.99
)
)
[deliveryName] => Airport Tavern
[deliveryStreet] => Bridgwater Road
[deliveryCity] => Lulsgate Bottom
[deliveryCounty] =>
[deliveryPostcode] => BS40 9XA
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => Airport Tavern
[notes] =>
[externalOrderId] => 499326000048306184
[refId] => SO-00443
[externalCustomerId] => 499326000047898079
[externalLocationId] => 499326000047898085
[title] => Airport Tavern
[deliveryStart] => 2025-09-20
[deliveryEnd] => 2025-09-20
[totalValue] => 1701.5
[totalWeight] => 744
[syncInCreated] => 2025-09-19T14:01:34+0100
[syncInUpdated] => 2025-09-19T18:35:15+0100
[syncInStatus] => closed
[deliveryName] => Airport Tavern
[deliveryStreet] => Bridgwater Road
[deliveryCity] => Lulsgate Bottom
[deliveryCounty] =>
[deliveryPostcode] => BS40 9XA
[syncOutUpdated] => 2025-09-19T18:35:20+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Airport Tavern
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000047898079
Getting products
Updating product 499326000022560365
Updating order product 499326000048306190
Updated
Updating product 499326000000062762
Updating order product 499326000048306192
Updated
Updating product 499326000000063923
Updating order product 499326000048306194
Updated
Updating product 499326000000063068
Updating order product 499326000048306196
Updated
Updating product 499326000000061574
Updating order product 499326000048306198
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00443
Processing order: ign1hku65ruuqr5, ref SO-00443
Syncing SO-00443
Using default start and end times
Time window: 2025-09-20T06:00:00+01:00 - 2025-09-20T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 19/09/2025 14:01 - Local updated: 2025-09-19 17:35:20.000Z - Source updated: 2025-09-19 17:35:15.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status:
Status changed - mark for sync back to source
Is allocated? no
Local updated: 2025-09-19 17:35:20.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000047898085
Array
(
[referenceNumber] => 499326000047898085
[name] => Airport Tavern, Bridgwater Road, Lulsgate Bottom
[address] => BS40 9XA
)
499326000047898085
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00443
Done all.
Finished at 2025-09-19 18:35:22
Webhook - sourceUpdated script called at 2025-09-19 18:35:49
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048306184","salesorder_no":"SO-00443","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048306184","salesorder_no":"SO-00443","status":"invoiced"}}
EXT ID: 499326000048306184
REF: SO-00443
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048306184 (REF SO-00443)
Updates pending to source for order: 499326000048306184
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-09-19 17:35:15.000Z,
source updated = 2025-09-19T18:35:15+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00443
Processing order: ign1hku65ruuqr5, ref SO-00443
Syncing SO-00443
Using default start and end times
Time window: 2025-09-20T06:00:00+01:00 - 2025-09-20T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 19/09/2025 18:35 - Local updated: 2025-09-19 13:01:00.000Z - Source updated: 2025-09-19 17:35:15.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-09-19 13:01:00.000Z
Pending updates to MaxOptra? no
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00443
Done all.
Finished at 2025-09-19 18:35:51
Webhook - sourceUpdated script called at 2025-09-19 18:36:20
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048306184","salesorder_no":"SO-00443","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048306184","salesorder_no":"SO-00443","status":"invoiced"}}
EXT ID: 499326000048306184
REF: SO-00443
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048306184 (REF SO-00443)
Local order updated = 2025-09-19 17:35:15.000Z,
source updated = 2025-09-19T18:35:50+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00443
Processing order: ign1hku65ruuqr5, ref SO-00443
Syncing SO-00443
Using default start and end times
Time window: 2025-09-20T06:00:00+01:00 - 2025-09-20T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 19/09/2025 18:35 - Local updated: 2025-09-19 17:35:00.000Z - Source updated: 2025-09-19 17:35:15.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00443
Done all.
Finished at 2025-09-19 18:36:21
Webhook - sourceUpdated script called at 2025-09-19 18:39:21
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048306184","salesorder_no":"SO-00443","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048306184","salesorder_no":"SO-00443","status":"invoiced"}}
EXT ID: 499326000048306184
REF: SO-00443
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048306184 (REF SO-00443)
Local order updated = 2025-09-19 17:35:15.000Z,
source updated = 2025-09-19T18:35:50+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00443
Processing order: ign1hku65ruuqr5, ref SO-00443
Syncing SO-00443
Using default start and end times
Time window: 2025-09-20T06:00:00+01:00 - 2025-09-20T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 19/09/2025 18:35 - Local updated: 2025-09-19 17:35:00.000Z - Source updated: 2025-09-19 17:35:15.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00443
Done all.
Finished at 2025-09-19 18:39:22
Webhook - sourceUpdated script called at 2025-09-19 18:40:12
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048306184","salesorder_no":"SO-00443","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048306184","salesorder_no":"SO-00443","status":"open"}}
EXT ID: 499326000048306184
REF: SO-00443
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048306184 (REF SO-00443)
Local order updated = 2025-09-19 17:35:15.000Z,
source updated = 2025-09-19T18:35:50+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00443
Processing order: ign1hku65ruuqr5, ref SO-00443
Syncing SO-00443
Using default start and end times
Time window: 2025-09-20T06:00:00+01:00 - 2025-09-20T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 19/09/2025 18:35 - Local updated: 2025-09-19 17:35:00.000Z - Source updated: 2025-09-19 17:35:15.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00443
Done all.
Finished at 2025-09-19 18:40:13
Webhook - sourceUpdated script called at 2025-09-20 09:17:54
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048237958","salesorder_no":"SO-00441","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048237958","salesorder_no":"SO-00441","status":"invoiced"}}
EXT ID: 499326000048237958
REF: SO-00441
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048237958 (REF SO-00441)
Local order updated = 2025-09-19 09:01:33.000Z,
source updated = 2025-09-19T10:02:11+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00441
Processing order: l5kg3zoo3gp74x3, ref SO-00441
Syncing SO-00441
Using default start and end times
Time window: 2025-09-22T06:00:00+01:00 - 2025-09-22T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 19/09/2025 10:01 - Local updated: 2025-09-19 09:01:00.000Z - Source updated: 2025-09-19 09:01:33.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00441
Done all.
Finished at 2025-09-20 09:17:55
Webhook - sourceUpdated script called at 2025-09-21 13:51:56
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048366237","salesorder_no":"SO-00444","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048366237","salesorder_no":"SO-00444","status":"open"}}
EXT ID: 499326000048366237
REF: SO-00444
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048366237 (REF SO-00444)
Source order details: Array
(
[contactPhone] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[notes] =>
[externalOrderId] => 499326000048366237
[refId] => SO-00444
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[title] => Alex Cullum
[deliveryStart] => 2025-09-21
[deliveryEnd] => 2025-09-21
[totalValue] => 68.05
[totalWeight] => 39
[syncInCreated] => 2025-09-21T13:51:28+0100
[syncInUpdated] => 2025-09-21T13:51:31+0100
[syncInStatus] => confirmed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048366243
[externalProductId] => 499326000000061016
[sku] => BB-BERR-30LK
[title] => Brue river Lager 30ltr
[notes] =>
[quantity] => 1
[weightKg] => 39
[weightTotal] => 39
[priceTotal] => 56.71
[price] => 56.71
)
)
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
[paymentMethod] => Cash - Don't Leave
)
Does this order already exist?
No
Order data prepared for sync: Array
(
[contactPhone] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[notes] =>
[externalOrderId] => 499326000048366237
[refId] => SO-00444
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[title] => Alex Cullum
[deliveryStart] => 2025-09-21
[deliveryEnd] => 2025-09-21
[totalValue] => 68.05
[totalWeight] => 39
[syncInCreated] => 2025-09-21T13:51:28+0100
[syncInUpdated] => 2025-09-21T13:51:31+0100
[syncInStatus] => confirmed
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
[paymentMethod] => Cash - Don't Leave
[syncOutUpdated] => 2025-09-21T13:51:57+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Alex Cullum
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => [{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"}]
)
New order
Marking order for sync with MaxOptra
Getting customer details
Customer exists and has not changed (skipping): 499326000021060129
Updating order contact details
Getting products
Updating product 499326000000061016
Creating new order product 499326000048366243
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00444
Processing order: e07x02i943zvijz, ref SO-00444
Syncing SO-00444
Using default start and end times
Time window: 2025-09-21T06:00:00+01:00 - 2025-09-21T20:00:00+01:00
Found order in MaxOptra? no
Creating SO-00444
Done
Finished syncing to MaxOptra for order SO-00444
Done all.
Finished at 2025-09-21 13:51:58
Webhook - destinationUpdated script called at 2025-09-21 13:52:48
JSON: {"payload":{"orderReference":"SO-00444","status":"ALLOCATED"},"timestamp":"2025-09-21T12:52:48Z"}
REF: SO-00444
Filter: refId="SO-00444"
200 response code sent
Local item: {"addons":[],"attachments":[],"collectionEnd":"","collectionId":"s93ukjlitoinx2e","collectionInstructions":"","collectionName":"orders","collectionStart":"","company":"1kmltj8w8rnhbfx","contactEmail":"alex@7daycellar.co.uk","contactName":"Alex Cullum","contactNotes":"","contactPhone":"+447566237123","created":"2025-09-21 12:51:57.255Z","custom":[{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"}],"customer":"y5e589zvld1in2k","deliveryCity":"Bristol","deliveryCounty":"","deliveryEnd":"2025-09-21 00:00:00.000Z","deliveryInstructions":"","deliveryName":"Alex Cullum","deliveryPostcode":"BS26 2QP","deliveryStart":"2025-09-21 00:00:00.000Z","deliveryStreet":"The Old Rectory, Church Lane","description":"","driverRef":"","externalCustomerId":"499326000021060129","externalLocationId":"499326000021060132","externalOrderId":"499326000048366237","id":"e07x02i943zvijz","isCancelled":false,"isCollection":false,"isReadyToSync":false,"isScheduledCollection":false,"isScheduledDelivery":false,"isUntracked":false,"mergeRef":"","notes":"","orderedAt":"","overrideVolume":0,"overrideWeight":0,"paymentMethod":"Cash - Don't Leave","pendingSyncFromDestination":false,"pendingSyncFromSource":false,"pendingSyncToDestination":true,"pendingSyncToSource":false,"ref":"","refId":"SO-00444","requestedDeliveryDays":"","seqNo":"","signature":"","signatureName":"","signatureTime":"","statusCollection":"","statusDelivery":"","syncInCreated":"2025-09-21 12:51:28.000Z","syncInStatus":"confirmed","syncInUpdated":"2025-09-21 12:51:31.000Z","syncOutStatus":"","syncOutUpdated":"2025-09-21 12:51:58.000Z","timeWindows":[],"title":"Alex Cullum","totalValue":68.0499999999999971578290569595992565155029296875,"totalWeight":39,"type":"","updated":"2025-09-21 12:51:58.321Z","vehicleRef":"","what3Words":""}
Updating local order from MaxOptra - current local order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[contactNotes] =>
[contactPhone] => +447566237123
[created] => 2025-09-21 12:51:57.255Z
[custom] => Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
[customer] => y5e589zvld1in2k
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryEnd] => 2025-09-21 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Alex Cullum
[deliveryPostcode] => BS26 2QP
[deliveryStart] => 2025-09-21 00:00:00.000Z
[deliveryStreet] => The Old Rectory, Church Lane
[description] =>
[driverRef] =>
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[externalOrderId] => 499326000048366237
[id] => e07x02i943zvijz
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] => Cash - Don't Leave
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00444
[requestedDeliveryDays] =>
[seqNo] =>
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] =>
[syncInCreated] => 2025-09-21 12:51:28.000Z
[syncInStatus] => confirmed
[syncInUpdated] => 2025-09-21 12:51:31.000Z
[syncOutStatus] =>
[syncOutUpdated] => 2025-09-21 12:51:58.000Z
[timeWindows] => Array
(
)
[title] => Alex Cullum
[totalValue] => 68.05
[totalWeight] => 39
[type] =>
[updated] => 2025-09-21 12:51:58.321Z
[vehicleRef] =>
[what3Words] =>
)
MaxOptra order details: Array
(
[0] => Array
(
[referenceNumber] => SO-00444
[consignmentReference] =>
[distributionCentreReference] => Head Office
[distributionCentreName] => Head Office
[task] => DELIVERY
[priority] => NORMAL
[vehicleRequirements] => Array
(
)
[additionalInstructions] =>
[clientName] =>
[contactPerson] => Alex Cullum
[contactNumber] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[additionalContactEmails] =>
[notificationPreferences] => Array
(
[allowSMS] => 1
[allowEmail] => 1
)
[customerLocation] => Array
(
[referenceNumber] => 499326000021060132
[name] => Alex Cullum, The Old Rectory, Church Lane, Bristol
[address] => BS26 2QP
[w3wAddress] =>
[latitude] => 51.26857
[longitude] => -2.86747
)
[territoryReference] =>
[stopSequence] => ANY
[timeWindows] => Array
(
[0] => Array
(
[start] => 2025-09-21T06:00:00+01:00
[end] => 2025-09-21T20:00:00+01:00
)
)
[orderDate] =>
[capacity1] => 39
[capacity2] => 0
[price] =>
[operationDuration] => 358
[customFields] => Array
(
[7DCPayment] => Cash - Don't Leave
)
[orderItems] => Array
(
[0] => Array
(
[itemReferenceNumber] => 499326000000061016
[orderReferenceNumber] => SO-00444
[name] => Brue river Lager 30ltr
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 56.71
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 56.71
[height] => 0
[width] => 0
[length] => 0
[weight] => 39
[volume] => 0
)
)
[widgetTrackingDetails] =>
)
)
MaxOptra schedule details: Array
(
[orderReferenceNumber] => SO-00444
[assignedDriverReference] => Lewis Newman
[assignedDriverName] => Lewis Newman
[assignedVehicleReference] => WD25HWY
[assignedVehicleName] => WD25HWY
[plannedArrivalTime] => 2025-09-21T14:16:18+01:00
[plannedCompletionTime] => 2025-09-21T14:22:16+01:00
[stopNumber] => 1
[totalStopsInRun] => 1
[runNumber] => 1
[runReference] => 82f0fddcafbe469e92536ad2d142a2ef
[eta] =>
[factArrivalTimeGPS] =>
[factCompletionTimeGPS] =>
[factArrivalTimeReported] =>
[factCompletionTimeReported] =>
[failReason] =>
[failComment] =>
[status] => ALLOCATED
[driver] => Lewis Newman
[arrival_planned] => 2025-09-21T14:16:18+01:00
[arrival_estimated] =>
[arrival_actual] =>
[totalStops] => 1
)
Updating order: SO-00444
Update ID e07x02i943zvijz with: Array
(
[custom] => Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
[driverRef] => Lewis Newman
[vehicleRef] => WD25HWY
[seqNo] => 1
)
Updated order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[contactNotes] =>
[contactPhone] => +447566237123
[created] => 2025-09-21 12:51:57.255Z
[custom] => Array
(
[0] => stdClass Object
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
[customer] => y5e589zvld1in2k
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryEnd] => 2025-09-21 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Alex Cullum
[deliveryPostcode] => BS26 2QP
[deliveryStart] => 2025-09-21 00:00:00.000Z
[deliveryStreet] => The Old Rectory, Church Lane
[description] =>
[driverRef] => Lewis Newman
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[externalOrderId] => 499326000048366237
[id] => e07x02i943zvijz
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] => Cash - Don't Leave
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00444
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] =>
[syncInCreated] => 2025-09-21 12:51:28.000Z
[syncInStatus] => confirmed
[syncInUpdated] => 2025-09-21 12:51:31.000Z
[syncOutStatus] =>
[syncOutUpdated] => 2025-09-21 12:51:58.000Z
[timeWindows] => Array
(
)
[title] => Alex Cullum
[totalValue] => 68.05
[totalWeight] => 39
[type] =>
[updated] => 2025-09-21 12:52:49.311Z
[vehicleRef] => WD25HWY
[what3Words] =>
)
Updating source from local order
Getting custom fields
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-07-18 02:35:52.065Z
[id] => nc7sndad5bhvi5x
[inCollection] => orders
[inField] => paymentMethod
[mappedField] => 7DCPayment
[name] => Payment method
[sourceField] =>
[syncFromSource] => 1
[syncToSource] =>
[type] => text
[updated] => 2025-07-18 02:35:52.065Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Processing field
Mapped field: 7DCEmpties
Custom fields: Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
Processing field
Mapped field: 7DCEmptiesGas
Custom fields: Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:03:34.631Z
[id] => pcn96l3kgkps4az
[inCollection] => orders
[inField] => driverRef
[mappedField] =>
[name] => Delivery driver
[sourceField] => cf_delivery_driver
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:03:34.631Z
)
Processing field
driverRef...
Value: Lewis Newman
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-08 04:52:51.399Z
[id] => hhrzcmytzs8p3kw
[inCollection] => orders
[inField] => seqNo
[mappedField] =>
[name] => Run number
[sourceField] => cf_run_number
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-08 04:52:51.399Z
)
Processing field
seqNo...
Value: 1
Finished processing field
Continue
Updating source order: Array
(
[custom_fields] => Array
(
[0] => Array
(
[api_name] => cf_delivery_driver
[value] => Lewis Newman
)
[1] => Array
(
[api_name] => cf_run_number
[value] => 1
)
)
)
Update result: Array
(
[code] => 0
[message] => Sales Order has been updated.
[salesorder] => Array
(
[salesorder_id] => 499326000048366237
[is_viewed_in_mail] =>
[mail_first_viewed_time] =>
[mail_last_viewed_time] =>
[documents] => Array
(
)
[zcrm_potential_id] =>
[zcrm_potential_name] =>
[salesorder_number] => SO-00444
[date] => 2025-09-21
[offline_created_date_with_time] =>
[tracking_url] =>
[has_discount] =>
[status] => confirmed
[color_code] =>
[current_sub_status_id] =>
[current_sub_status] => confirmed
[sub_statuses] => Array
(
)
[shipment_date] =>
[reference_number] =>
[customer_id] => 499326000021060129
[customer_name] => Alex Cullum
[contact_persons] => Array
(
[0] => 499326000021060131
)
[contact_persons_associated] => Array
(
[0] => Array
(
[contact_person_id] => 499326000021060131
[contact_person_email] => alex@7daycellar.co.uk
[first_name] => Alex
[last_name] => Cullum
[mobile] => +447566237123
[communication_preference] => Array
(
[is_email_enabled] => 1
)
)
)
[contact_person_details] => Array
(
[0] => Array
(
[phone] =>
[mobile] => +447566237123
[last_name] => Cullum
[contact_person_id] => 499326000021060131
[first_name] => Alex
[email] => alex@7daycellar.co.uk
)
)
[source] => Client
[contact_category] => uk
[is_taxable] =>
[has_shipping_address] => 1
[currency_id] => 499326000000000065
[currency_code] => GBP
[currency_symbol] => £
[exchange_rate] => 1
[is_discount_before_tax] => 1
[discount_type] => item_level
[estimate_id] =>
[delivery_method] =>
[delivery_method_id] =>
[vat_treatment] => uk
[is_inclusive_tax] =>
[tax_rounding] => entity_level
[tax_override_preference] => no_override
[order_status] => confirmed
[invoiced_status] => not_invoiced
[paid_status] => unpaid
[shipped_status] => pending
[sales_channel] => direct_sales
[sales_channel_formatted] => Direct Sales
[account_identifier] =>
[integration_id] =>
[is_dropshipped] =>
[is_backordered] =>
[is_manually_fulfilled] =>
[can_manually_fulfill] => 1
[has_qty_cancelled] =>
[is_reverse_charge_applied] =>
[shipping_details] => Array
(
)
[created_by_email] => alex@7daycellar.co.uk
[created_by_name] => Alex C
[branch_id] => 499326000023111007
[branch_name] => Head Office
[location_id] => 499326000023111007
[location_name] => Head Office
[total_quantity] => 1
[line_items] => Array
(
[0] => Array
(
[line_item_id] => 499326000048366243
[variant_id] => 499326000000061016
[track_batch_number] =>
[item_id] => 499326000000061016
[is_returnable] =>
[product_id] => 499326000000061016
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] => BB-BERR-30LK
[name] => Brue river Lager 30ltr
[group_name] => Brue river Lager 30ltr
[description] => Brue river Lager 30ltr
[item_order] => 1
[bcy_rate] => 56.71
[rate] => 56.71
[sales_rate] => 56.71
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 11.34
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 56.71
[item_sub_total] => 56.71
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] =>
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] => Brue River Logo.png
[image_type] => png
[document_id] => 499326000044988177
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 0
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] => 39
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
)
[is_advanced_tracking_missing] =>
[entity_tags] =>
[submitter_id] =>
[approver_id] =>
[submitted_date] =>
[submitted_by] =>
[submitted_by_name] =>
[submitted_by_email] =>
[submitted_by_photo_url] =>
[price_precision] => 2
[is_emailed] =>
[has_unconfirmed_line_item] =>
[picklists] => Array
(
)
[purchaseorders] => Array
(
)
[locations] => Array
(
[0] => Array
(
[location_id] => 499326000023111007
[location_name] => Head Office
[status] => active
)
[1] => Array
(
[location_id] => 499326000041689155
[location_name] => Bason Bridge Brewery Duty Bonded Warehouse
[status] => active
)
)
[billing_address_id] => 499326000021060132
[billing_address] => Array
(
[address] => The Old Rectory, Church Lane
[street2] => Bason Bridge
[city] => Bristol
[state] => Somerset
[zip] => BS26 2QP
[country] => United Kingdom
[country_code] => GB
[county] =>
[state_code] => SOM
[fax] =>
[phone] =>
[attention] =>
)
[shipping_address_id] => 499326000021060134
[shipping_address] => Array
(
[company_name] =>
[address] =>
[street2] =>
[city] =>
[state] =>
[zip] =>
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[is_test_order] =>
[notes] => Account Name: 7 Day Cellar Ltd
Sort Code: 09-01-30
Account No: 10888924
[terms] =>
[payment_terms] => 14
[payment_terms_label] => Net 14
[custom_fields] => Array
(
[0] => Array
(
[field_id] => 499326000042690007
[customfield_id] => 499326000042690007
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 1
[label] => Automation Required
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[is_color_code_supported] =>
[api_name] => cf__ulrql_automation_required
[show_in_all_pdf] =>
[selected_option_id] => 499326000042690011
[value_formatted] => Yes
[search_entity] => salesorder
[data_type] => dropdown
[placeholder] => cf__ulrql_automation_required
[value] => Yes
[is_dependent_field] =>
)
[1] => Array
(
[field_id] => 499326000045601987
[customfield_id] => 499326000045601987
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 2
[label] => Payment Method
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_payment_method
[show_in_all_pdf] =>
[value_formatted] => Cash - Don't Leave
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_payment_method
[value] => Cash - Don't Leave
[is_dependent_field] =>
)
[2] => Array
(
[field_id] => 499326000046252173
[customfield_id] => 499326000046252173
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 3
[label] => Delivery Driver
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_driver
[show_in_all_pdf] =>
[value_formatted] => Lewis Newman
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_driver
[value] => Lewis Newman
[is_dependent_field] =>
)
[3] => Array
(
[field_id] => 499326000047922345
[customfield_id] => 499326000047922345
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 4
[label] => Run Number
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_run_number
[show_in_all_pdf] =>
[value_formatted] => 1
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_run_number
[value] => 1
[is_dependent_field] =>
)
)
[custom_field_hash] => Array
(
[cf__ulrql_automation_required] => Yes
[cf__ulrql_automation_required_unformatted] => Yes
[cf_payment_method] => Cash - Don't Leave
[cf_payment_method_unformatted] => Cash - Don't Leave
[cf_delivery_driver] => Lewis Newman
[cf_delivery_driver_unformatted] => Lewis Newman
[cf_run_number] => 1
[cf_run_number_unformatted] => 1
)
[template_id] => 499326000000000111
[template_name] => Standard Template
[page_width] => 8.27in
[page_height] => 11.69in
[orientation] => portrait
[template_type] => standard
[created_time] => 2025-09-21T13:51:28+0100
[last_modified_time] => 2025-09-21T13:52:49+0100
[created_by_id] => 499326000000047001
[created_date] => 2025-09-21
[last_modified_by_id] => 499326000044410001
[attachment_name] =>
[can_send_in_mail] =>
[salesperson_id] => 499326000026596043
[salesperson_name] => Alex Cullum
[merchant_id] =>
[merchant_name] =>
[pickup_location_id] =>
[discount] => 0
[discount_applied_on_amount] => 0
[is_adv_tracking_in_package] =>
[shipping_charge_taxes] => Array
(
)
[lock_details] => Array
(
[can_lock] =>
)
[locked_actions] => Array
(
)
[shipping_charge_tax_id] =>
[shipping_charge_tax_name] =>
[shipping_charge_tax_type] =>
[shipping_charge_tax_percentage] =>
[shipping_charge_tax_exemption_id] =>
[shipping_charge_tax_exemption_code] =>
[shipping_charge_tax] =>
[bcy_shipping_charge_tax] =>
[shipping_charge_exclusive_of_tax] => 0
[shipping_charge_inclusive_of_tax] => 0
[shipping_charge_tax_formatted] =>
[shipping_charge_exclusive_of_tax_formatted] => £0.00
[shipping_charge_inclusive_of_tax_formatted] => £0.00
[shipping_charge] => 0
[bcy_shipping_charge] => 0
[adjustment] => 0
[bcy_adjustment] => 0
[adjustment_description] => Adjustment
[roundoff_value] => 0
[transaction_rounding_type] => no_rounding
[rounding_mode] => round_half_up
[bcy_rounding_mode] => round_half_up
[sub_total] => 56.71
[bcy_sub_total] => 56.71
[sub_total_inclusive_of_tax] => 0
[sub_total_exclusive_of_discount] => 56.71
[discount_total] => 0
[bcy_discount_total] => 0
[discount_percent] => 0
[tax_total] => 11.34
[bcy_tax_total] => 11.34
[total] => 68.05
[computation_type] => basic
[bcy_total] => 68.05
[reverse_charge_tax_total] => 0
[taxes] => Array
(
[0] => Array
(
[tax_amount] => 11.34
[tax_name] => Standard Rate
[tax_amount_formatted] => £11.34
)
)
[tds_calculation_type] => tds_item_level
[packages] => Array
(
)
[so_cycle_preference] => Array
(
[is_feature_enabled] => 1
[socycle_status] => not_triggered
[can_create_invoice] => 1
[can_create_package] =>
[can_create_shipment] =>
[shipment_preference] => Array
(
[default_carrier] =>
[send_notification] =>
[deliver_shipments] =>
)
[invoice_preference] => Array
(
[mark_as_sent] =>
[record_payment] =>
[payment_mode_id] => 499326000000000199
[payment_account_id] => 499326000000000349
)
)
[invoices] => Array
(
)
[can_show_kit_return] =>
[is_kit_partial_return] =>
[salesreturns] => Array
(
)
[payments] => Array
(
)
[creditnotes] => Array
(
)
[refunds] => Array
(
)
[contact] => Array
(
[customer_balance] => 0
[credit_limit] => 0
[unused_customer_credits] => 120
[is_credit_limit_migration_completed] => 1
)
[balance] => 68.05
[approvers_list] => Array
(
)
[is_scheduled_for_quick_shipment_create] =>
)
)
Webhook - sourceUpdated script called at 2025-09-21 13:52:56
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048366237","salesorder_no":"SO-00444","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048366237","salesorder_no":"SO-00444","status":"open"}}
EXT ID: 499326000048366237
REF: SO-00444
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048366237 (REF SO-00444)
Local order updated = 2025-09-21 12:51:31.000Z,
source updated = 2025-09-21T13:52:49+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[notes] =>
[externalOrderId] => 499326000048366237
[refId] => SO-00444
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[title] => Alex Cullum
[deliveryStart] => 2025-09-21
[deliveryEnd] => 2025-09-21
[totalValue] => 68.05
[totalWeight] => 39
[syncInCreated] => 2025-09-21T13:51:28+0100
[syncInUpdated] => 2025-09-21T13:52:49+0100
[syncInStatus] => confirmed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048366243
[externalProductId] => 499326000000061016
[sku] => BB-BERR-30LK
[title] => Brue river Lager 30ltr
[notes] =>
[quantity] => 1
[weightKg] => 39
[weightTotal] => 39
[priceTotal] => 56.71
[price] => 56.71
)
)
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
[paymentMethod] => Cash - Don't Leave
)
Does this order already exist?
Yes
Existing custom fields: Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
Is array
Merging custom fields...
Order data prepared for sync: Array
(
[contactPhone] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[notes] =>
[externalOrderId] => 499326000048366237
[refId] => SO-00444
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[title] => Alex Cullum
[deliveryStart] => 2025-09-21
[deliveryEnd] => 2025-09-21
[totalValue] => 68.05
[totalWeight] => 39
[syncInCreated] => 2025-09-21T13:51:28+0100
[syncInUpdated] => 2025-09-21T13:52:49+0100
[syncInStatus] => confirmed
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
[paymentMethod] => Cash - Don't Leave
[syncOutUpdated] => 2025-09-21T13:52:57+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Alex Cullum
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => [{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"},{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"}]
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000021060129
Getting products
Updating product 499326000000061016
Updating order product 499326000048366243
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00444
Processing order: e07x02i943zvijz, ref SO-00444
Syncing SO-00444
Using default start and end times
Time window: 2025-09-21T06:00:00+01:00 - 2025-09-21T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 21/09/2025 13:52 - Local updated: 2025-09-21 12:52:57.000Z - Source updated: 2025-09-21 12:52:49.000Z
Changed? yes
Current MaxOptra status: ALLOCATED
Completed? no
Previous status:
Status changed - mark for sync back to source
Is allocated? yes
MO delivery date: 2025-09-21, Local delivery date: 2025-09-21
Local updated: 2025-09-21 12:52:57.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000021060132
Array
(
[referenceNumber] => 499326000021060132
[name] => Alex Cullum, The Old Rectory, Church Lane, Bristol
[address] => BS26 2QP
)
499326000021060132
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00444
Done all.
Finished at 2025-09-21 13:52:59
Webhook - destinationUpdated script called at 2025-09-21 13:52:59
JSON: {"payload":{"orderReference":"SO-00444","status":"UNALLOCATED"},"timestamp":"2025-09-21T12:52:59Z"}
REF: SO-00444
Filter: refId="SO-00444"
200 response code sent
Local item: {"addons":[],"attachments":[],"collectionEnd":"","collectionId":"s93ukjlitoinx2e","collectionInstructions":"","collectionName":"orders","collectionStart":"","company":"1kmltj8w8rnhbfx","contactEmail":"alex@7daycellar.co.uk","contactName":"Alex Cullum","contactNotes":"","contactPhone":"+447566237123","created":"2025-09-21 12:51:57.255Z","custom":[{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"},{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"}],"customer":"y5e589zvld1in2k","deliveryCity":"Bristol","deliveryCounty":"","deliveryEnd":"2025-09-21 00:00:00.000Z","deliveryInstructions":"","deliveryName":"Alex Cullum","deliveryPostcode":"BS26 2QP","deliveryStart":"2025-09-21 00:00:00.000Z","deliveryStreet":"The Old Rectory, Church Lane","description":"","driverRef":"Lewis Newman","externalCustomerId":"499326000021060129","externalLocationId":"499326000021060132","externalOrderId":"499326000048366237","id":"e07x02i943zvijz","isCancelled":false,"isCollection":false,"isReadyToSync":false,"isScheduledCollection":false,"isScheduledDelivery":false,"isUntracked":false,"mergeRef":"","notes":"","orderedAt":"","overrideVolume":0,"overrideWeight":0,"paymentMethod":"Cash - Don't Leave","pendingSyncFromDestination":false,"pendingSyncFromSource":false,"pendingSyncToDestination":true,"pendingSyncToSource":true,"ref":"","refId":"SO-00444","requestedDeliveryDays":"","seqNo":"1","signature":"","signatureName":"","signatureTime":"","statusCollection":"","statusDelivery":"Scheduled","syncInCreated":"2025-09-21 12:51:28.000Z","syncInStatus":"confirmed","syncInUpdated":"2025-09-21 12:52:49.000Z","syncOutStatus":"ALLOCATED","syncOutUpdated":"2025-09-21 12:52:00.000Z","timeWindows":[],"title":"Alex Cullum","totalValue":68.0499999999999971578290569595992565155029296875,"totalWeight":39,"type":"","updated":"2025-09-21 12:52:59.338Z","vehicleRef":"WD25HWY","what3Words":""}
Updating local order from MaxOptra - current local order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[contactNotes] =>
[contactPhone] => +447566237123
[created] => 2025-09-21 12:51:57.255Z
[custom] => Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
[1] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
[customer] => y5e589zvld1in2k
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryEnd] => 2025-09-21 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Alex Cullum
[deliveryPostcode] => BS26 2QP
[deliveryStart] => 2025-09-21 00:00:00.000Z
[deliveryStreet] => The Old Rectory, Church Lane
[description] =>
[driverRef] => Lewis Newman
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[externalOrderId] => 499326000048366237
[id] => e07x02i943zvijz
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] => Cash - Don't Leave
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] => 1
[ref] =>
[refId] => SO-00444
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Scheduled
[syncInCreated] => 2025-09-21 12:51:28.000Z
[syncInStatus] => confirmed
[syncInUpdated] => 2025-09-21 12:52:49.000Z
[syncOutStatus] => ALLOCATED
[syncOutUpdated] => 2025-09-21 12:52:00.000Z
[timeWindows] => Array
(
)
[title] => Alex Cullum
[totalValue] => 68.05
[totalWeight] => 39
[type] =>
[updated] => 2025-09-21 12:52:59.338Z
[vehicleRef] => WD25HWY
[what3Words] =>
)
MaxOptra order details: Array
(
[0] => Array
(
[referenceNumber] => SO-00444
[consignmentReference] =>
[distributionCentreReference] => Head Office
[distributionCentreName] => Head Office
[task] => DELIVERY
[priority] => NORMAL
[vehicleRequirements] => Array
(
)
[additionalInstructions] =>
[clientName] =>
[contactPerson] => Alex Cullum
[contactNumber] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[additionalContactEmails] =>
[notificationPreferences] => Array
(
[allowSMS] => 1
[allowEmail] => 1
)
[customerLocation] => Array
(
[referenceNumber] => 499326000021060132
[name] => Alex Cullum, The Old Rectory, Church Lane, Bristol
[address] => BS26 2QP
[w3wAddress] =>
[latitude] => 51.26857
[longitude] => -2.86747
)
[territoryReference] =>
[stopSequence] => ANY
[timeWindows] => Array
(
[0] => Array
(
[start] => 2025-09-21T06:00:00+01:00
[end] => 2025-09-21T20:00:00+01:00
)
)
[orderDate] =>
[capacity1] => 39
[capacity2] => 0
[price] =>
[operationDuration] => 358
[customFields] => Array
(
[7DCPayment] => Cash - Don't Leave
)
[orderItems] => Array
(
[0] => Array
(
[itemReferenceNumber] => 499326000000061016
[orderReferenceNumber] => SO-00444
[name] => Brue river Lager 30ltr
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 56.71
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 56.71
[height] => 0
[width] => 0
[length] => 0
[weight] => 39
[volume] => 0
)
)
[widgetTrackingDetails] =>
)
)
MaxOptra schedule details: Array
(
[orderReferenceNumber] => SO-00444
[assignedDriverReference] =>
[assignedDriverName] =>
[assignedVehicleReference] =>
[assignedVehicleName] =>
[plannedArrivalTime] =>
[plannedCompletionTime] =>
[stopNumber] =>
[totalStopsInRun] =>
[runNumber] =>
[runReference] =>
[eta] =>
[factArrivalTimeGPS] =>
[factCompletionTimeGPS] =>
[factArrivalTimeReported] =>
[factCompletionTimeReported] =>
[failReason] =>
[failComment] =>
[status] => UNALLOCATED
[driver] =>
[arrival_planned] =>
[arrival_estimated] =>
[arrival_actual] =>
[totalStops] =>
)
Updating order: SO-00444
Update ID e07x02i943zvijz with: Array
(
[custom] => Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
[driverRef] =>
[vehicleRef] =>
[seqNo] =>
)
Updated order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[contactNotes] =>
[contactPhone] => +447566237123
[created] => 2025-09-21 12:51:57.255Z
[custom] => Array
(
[0] => stdClass Object
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
[customer] => y5e589zvld1in2k
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryEnd] => 2025-09-21 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Alex Cullum
[deliveryPostcode] => BS26 2QP
[deliveryStart] => 2025-09-21 00:00:00.000Z
[deliveryStreet] => The Old Rectory, Church Lane
[description] =>
[driverRef] =>
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[externalOrderId] => 499326000048366237
[id] => e07x02i943zvijz
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] => Cash - Don't Leave
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] => 1
[ref] =>
[refId] => SO-00444
[requestedDeliveryDays] =>
[seqNo] =>
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Scheduled
[syncInCreated] => 2025-09-21 12:51:28.000Z
[syncInStatus] => confirmed
[syncInUpdated] => 2025-09-21 12:52:49.000Z
[syncOutStatus] => ALLOCATED
[syncOutUpdated] => 2025-09-21 12:52:00.000Z
[timeWindows] => Array
(
)
[title] => Alex Cullum
[totalValue] => 68.05
[totalWeight] => 39
[type] =>
[updated] => 2025-09-21 12:52:59.720Z
[vehicleRef] =>
[what3Words] =>
)
Updating source from local order
Getting custom fields
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-07-18 02:35:52.065Z
[id] => nc7sndad5bhvi5x
[inCollection] => orders
[inField] => paymentMethod
[mappedField] => 7DCPayment
[name] => Payment method
[sourceField] =>
[syncFromSource] => 1
[syncToSource] =>
[type] => text
[updated] => 2025-07-18 02:35:52.065Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Processing field
Mapped field: 7DCEmpties
Custom fields: Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
Processing field
Mapped field: 7DCEmptiesGas
Custom fields: Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:03:34.631Z
[id] => pcn96l3kgkps4az
[inCollection] => orders
[inField] => driverRef
[mappedField] =>
[name] => Delivery driver
[sourceField] => cf_delivery_driver
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:03:34.631Z
)
Processing field
driverRef...
Value:
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-08 04:52:51.399Z
[id] => hhrzcmytzs8p3kw
[inCollection] => orders
[inField] => seqNo
[mappedField] =>
[name] => Run number
[sourceField] => cf_run_number
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-08 04:52:51.399Z
)
Processing field
seqNo...
Value:
Finished processing field
Continue
Updating source order: Array
(
[custom_fields] => Array
(
)
)
Update result: Array
(
[code] => 0
[message] => Sales Order has been updated.
[salesorder] => Array
(
[salesorder_id] => 499326000048366237
[is_viewed_in_mail] =>
[mail_first_viewed_time] =>
[mail_last_viewed_time] =>
[documents] => Array
(
)
[zcrm_potential_id] =>
[zcrm_potential_name] =>
[salesorder_number] => SO-00444
[date] => 2025-09-21
[offline_created_date_with_time] =>
[tracking_url] =>
[has_discount] =>
[status] => confirmed
[color_code] =>
[current_sub_status_id] =>
[current_sub_status] => confirmed
[sub_statuses] => Array
(
)
[shipment_date] =>
[reference_number] =>
[customer_id] => 499326000021060129
[customer_name] => Alex Cullum
[contact_persons] => Array
(
[0] => 499326000021060131
)
[contact_persons_associated] => Array
(
[0] => Array
(
[contact_person_id] => 499326000021060131
[contact_person_email] => alex@7daycellar.co.uk
[first_name] => Alex
[last_name] => Cullum
[mobile] => +447566237123
[communication_preference] => Array
(
[is_email_enabled] => 1
)
)
)
[contact_person_details] => Array
(
[0] => Array
(
[phone] =>
[mobile] => +447566237123
[last_name] => Cullum
[contact_person_id] => 499326000021060131
[first_name] => Alex
[email] => alex@7daycellar.co.uk
)
)
[source] => Client
[contact_category] => uk
[is_taxable] =>
[has_shipping_address] => 1
[currency_id] => 499326000000000065
[currency_code] => GBP
[currency_symbol] => £
[exchange_rate] => 1
[is_discount_before_tax] => 1
[discount_type] => item_level
[estimate_id] =>
[delivery_method] =>
[delivery_method_id] =>
[vat_treatment] => uk
[is_inclusive_tax] =>
[tax_rounding] => entity_level
[tax_override_preference] => no_override
[order_status] => confirmed
[invoiced_status] => not_invoiced
[paid_status] => unpaid
[shipped_status] => pending
[sales_channel] => direct_sales
[sales_channel_formatted] => Direct Sales
[account_identifier] =>
[integration_id] =>
[is_dropshipped] =>
[is_backordered] =>
[is_manually_fulfilled] =>
[can_manually_fulfill] => 1
[has_qty_cancelled] =>
[is_reverse_charge_applied] =>
[shipping_details] => Array
(
)
[created_by_email] => alex@7daycellar.co.uk
[created_by_name] => Alex C
[branch_id] => 499326000023111007
[branch_name] => Head Office
[location_id] => 499326000023111007
[location_name] => Head Office
[total_quantity] => 1
[line_items] => Array
(
[0] => Array
(
[line_item_id] => 499326000048366243
[variant_id] => 499326000000061016
[track_batch_number] =>
[item_id] => 499326000000061016
[is_returnable] =>
[product_id] => 499326000000061016
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] => BB-BERR-30LK
[name] => Brue river Lager 30ltr
[group_name] => Brue river Lager 30ltr
[description] => Brue river Lager 30ltr
[item_order] => 1
[bcy_rate] => 56.71
[rate] => 56.71
[sales_rate] => 56.71
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 11.34
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 56.71
[item_sub_total] => 56.71
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] =>
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] => Brue River Logo.png
[image_type] => png
[document_id] => 499326000044988177
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 0
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] => 39
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
)
[is_advanced_tracking_missing] =>
[entity_tags] =>
[submitter_id] =>
[approver_id] =>
[submitted_date] =>
[submitted_by] =>
[submitted_by_name] =>
[submitted_by_email] =>
[submitted_by_photo_url] =>
[price_precision] => 2
[is_emailed] =>
[has_unconfirmed_line_item] =>
[picklists] => Array
(
)
[purchaseorders] => Array
(
)
[locations] => Array
(
[0] => Array
(
[location_id] => 499326000023111007
[location_name] => Head Office
[status] => active
)
[1] => Array
(
[location_id] => 499326000041689155
[location_name] => Bason Bridge Brewery Duty Bonded Warehouse
[status] => active
)
)
[billing_address_id] => 499326000021060132
[billing_address] => Array
(
[address] => The Old Rectory, Church Lane
[street2] => Bason Bridge
[city] => Bristol
[state] => Somerset
[zip] => BS26 2QP
[country] => United Kingdom
[country_code] => GB
[county] =>
[state_code] => SOM
[fax] =>
[phone] =>
[attention] =>
)
[shipping_address_id] => 499326000021060134
[shipping_address] => Array
(
[company_name] =>
[address] =>
[street2] =>
[city] =>
[state] =>
[zip] =>
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[is_test_order] =>
[notes] => Account Name: 7 Day Cellar Ltd
Sort Code: 09-01-30
Account No: 10888924
[terms] =>
[payment_terms] => 14
[payment_terms_label] => Net 14
[custom_fields] => Array
(
[0] => Array
(
[field_id] => 499326000042690007
[customfield_id] => 499326000042690007
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 1
[label] => Automation Required
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[is_color_code_supported] =>
[api_name] => cf__ulrql_automation_required
[show_in_all_pdf] =>
[selected_option_id] => 499326000042690011
[value_formatted] => Yes
[search_entity] => salesorder
[data_type] => dropdown
[placeholder] => cf__ulrql_automation_required
[value] => Yes
[is_dependent_field] =>
)
[1] => Array
(
[field_id] => 499326000045601987
[customfield_id] => 499326000045601987
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 2
[label] => Payment Method
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_payment_method
[show_in_all_pdf] =>
[value_formatted] => Cash - Don't Leave
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_payment_method
[value] => Cash - Don't Leave
[is_dependent_field] =>
)
[2] => Array
(
[field_id] => 499326000046252173
[customfield_id] => 499326000046252173
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 3
[label] => Delivery Driver
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_driver
[show_in_all_pdf] =>
[value_formatted] => Lewis Newman
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_driver
[value] => Lewis Newman
[is_dependent_field] =>
)
[3] => Array
(
[field_id] => 499326000047922345
[customfield_id] => 499326000047922345
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 4
[label] => Run Number
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_run_number
[show_in_all_pdf] =>
[value_formatted] => 1
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_run_number
[value] => 1
[is_dependent_field] =>
)
)
[custom_field_hash] => Array
(
[cf__ulrql_automation_required] => Yes
[cf__ulrql_automation_required_unformatted] => Yes
[cf_payment_method] => Cash - Don't Leave
[cf_payment_method_unformatted] => Cash - Don't Leave
[cf_delivery_driver] => Lewis Newman
[cf_delivery_driver_unformatted] => Lewis Newman
[cf_run_number] => 1
[cf_run_number_unformatted] => 1
)
[template_id] => 499326000000000111
[template_name] => Standard Template
[page_width] => 8.27in
[page_height] => 11.69in
[orientation] => portrait
[template_type] => standard
[created_time] => 2025-09-21T13:51:28+0100
[last_modified_time] => 2025-09-21T13:53:00+0100
[created_by_id] => 499326000000047001
[created_date] => 2025-09-21
[last_modified_by_id] => 499326000044410001
[attachment_name] =>
[can_send_in_mail] =>
[salesperson_id] => 499326000026596043
[salesperson_name] => Alex Cullum
[merchant_id] =>
[merchant_name] =>
[pickup_location_id] =>
[discount] => 0
[discount_applied_on_amount] => 0
[is_adv_tracking_in_package] =>
[shipping_charge_taxes] => Array
(
)
[lock_details] => Array
(
[can_lock] =>
)
[locked_actions] => Array
(
)
[shipping_charge_tax_id] =>
[shipping_charge_tax_name] =>
[shipping_charge_tax_type] =>
[shipping_charge_tax_percentage] =>
[shipping_charge_tax_exemption_id] =>
[shipping_charge_tax_exemption_code] =>
[shipping_charge_tax] =>
[bcy_shipping_charge_tax] =>
[shipping_charge_exclusive_of_tax] => 0
[shipping_charge_inclusive_of_tax] => 0
[shipping_charge_tax_formatted] =>
[shipping_charge_exclusive_of_tax_formatted] => £0.00
[shipping_charge_inclusive_of_tax_formatted] => £0.00
[shipping_charge] => 0
[bcy_shipping_charge] => 0
[adjustment] => 0
[bcy_adjustment] => 0
[adjustment_description] => Adjustment
[roundoff_value] => 0
[transaction_rounding_type] => no_rounding
[rounding_mode] => round_half_up
[bcy_rounding_mode] => round_half_up
[sub_total] => 56.71
[bcy_sub_total] => 56.71
[sub_total_inclusive_of_tax] => 0
[sub_total_exclusive_of_discount] => 56.71
[discount_total] => 0
[bcy_discount_total] => 0
[discount_percent] => 0
[tax_total] => 11.34
[bcy_tax_total] => 11.34
[total] => 68.05
[computation_type] => basic
[bcy_total] => 68.05
[reverse_charge_tax_total] => 0
[taxes] => Array
(
[0] => Array
(
[tax_amount] => 11.34
[tax_name] => Standard Rate
[tax_amount_formatted] => £11.34
)
)
[tds_calculation_type] => tds_item_level
[packages] => Array
(
)
[so_cycle_preference] => Array
(
[is_feature_enabled] => 1
[socycle_status] => not_triggered
[can_create_invoice] => 1
[can_create_package] =>
[can_create_shipment] =>
[shipment_preference] => Array
(
[default_carrier] =>
[send_notification] =>
[deliver_shipments] =>
)
[invoice_preference] => Array
(
[mark_as_sent] =>
[record_payment] =>
[payment_mode_id] => 499326000000000199
[payment_account_id] => 499326000000000349
)
)
[invoices] => Array
(
)
[can_show_kit_return] =>
[is_kit_partial_return] =>
[salesreturns] => Array
(
)
[payments] => Array
(
)
[creditnotes] => Array
(
)
[refunds] => Array
(
)
[contact] => Array
(
[customer_balance] => 0
[credit_limit] => 0
[unused_customer_credits] => 120
[is_credit_limit_migration_completed] => 1
)
[balance] => 68.05
[approvers_list] => Array
(
)
[is_scheduled_for_quick_shipment_create] =>
)
)
Webhook - destinationUpdated script called at 2025-09-21 13:53:18
JSON: {"payload":{"orderReference":"SO-00444","status":"ALLOCATED"},"timestamp":"2025-09-21T12:53:17Z"}
REF: SO-00444
Filter: refId="SO-00444"
200 response code sent
Local item: {"addons":[],"attachments":[],"collectionEnd":"","collectionId":"s93ukjlitoinx2e","collectionInstructions":"","collectionName":"orders","collectionStart":"","company":"1kmltj8w8rnhbfx","contactEmail":"alex@7daycellar.co.uk","contactName":"Alex Cullum","contactNotes":"","contactPhone":"+447566237123","created":"2025-09-21 12:51:57.255Z","custom":[{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"}],"customer":"y5e589zvld1in2k","deliveryCity":"Bristol","deliveryCounty":"","deliveryEnd":"2025-09-21 00:00:00.000Z","deliveryInstructions":"","deliveryName":"Alex Cullum","deliveryPostcode":"BS26 2QP","deliveryStart":"2025-09-21 00:00:00.000Z","deliveryStreet":"The Old Rectory, Church Lane","description":"","driverRef":"","externalCustomerId":"499326000021060129","externalLocationId":"499326000021060132","externalOrderId":"499326000048366237","id":"e07x02i943zvijz","isCancelled":false,"isCollection":false,"isReadyToSync":false,"isScheduledCollection":false,"isScheduledDelivery":false,"isUntracked":false,"mergeRef":"","notes":"","orderedAt":"","overrideVolume":0,"overrideWeight":0,"paymentMethod":"Cash - Don't Leave","pendingSyncFromDestination":false,"pendingSyncFromSource":false,"pendingSyncToDestination":true,"pendingSyncToSource":true,"ref":"","refId":"SO-00444","requestedDeliveryDays":"","seqNo":"","signature":"","signatureName":"","signatureTime":"","statusCollection":"","statusDelivery":"Scheduled","syncInCreated":"2025-09-21 12:51:28.000Z","syncInStatus":"confirmed","syncInUpdated":"2025-09-21 12:52:49.000Z","syncOutStatus":"ALLOCATED","syncOutUpdated":"2025-09-21 12:52:00.000Z","timeWindows":[],"title":"Alex Cullum","totalValue":68.0499999999999971578290569595992565155029296875,"totalWeight":39,"type":"","updated":"2025-09-21 12:52:59.720Z","vehicleRef":"","what3Words":""}
Updating local order from MaxOptra - current local order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[contactNotes] =>
[contactPhone] => +447566237123
[created] => 2025-09-21 12:51:57.255Z
[custom] => Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
[customer] => y5e589zvld1in2k
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryEnd] => 2025-09-21 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Alex Cullum
[deliveryPostcode] => BS26 2QP
[deliveryStart] => 2025-09-21 00:00:00.000Z
[deliveryStreet] => The Old Rectory, Church Lane
[description] =>
[driverRef] =>
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[externalOrderId] => 499326000048366237
[id] => e07x02i943zvijz
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] => Cash - Don't Leave
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] => 1
[ref] =>
[refId] => SO-00444
[requestedDeliveryDays] =>
[seqNo] =>
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Scheduled
[syncInCreated] => 2025-09-21 12:51:28.000Z
[syncInStatus] => confirmed
[syncInUpdated] => 2025-09-21 12:52:49.000Z
[syncOutStatus] => ALLOCATED
[syncOutUpdated] => 2025-09-21 12:52:00.000Z
[timeWindows] => Array
(
)
[title] => Alex Cullum
[totalValue] => 68.05
[totalWeight] => 39
[type] =>
[updated] => 2025-09-21 12:52:59.720Z
[vehicleRef] =>
[what3Words] =>
)
MaxOptra order details: Array
(
[0] => Array
(
[referenceNumber] => SO-00444
[consignmentReference] =>
[distributionCentreReference] => Head Office
[distributionCentreName] => Head Office
[task] => DELIVERY
[priority] => NORMAL
[vehicleRequirements] => Array
(
)
[additionalInstructions] =>
[clientName] =>
[contactPerson] => Alex Cullum
[contactNumber] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[additionalContactEmails] =>
[notificationPreferences] => Array
(
[allowSMS] => 1
[allowEmail] => 1
)
[customerLocation] => Array
(
[referenceNumber] => 499326000021060132
[name] => Alex Cullum, The Old Rectory, Church Lane, Bristol
[address] => BS26 2QP
[w3wAddress] =>
[latitude] => 51.26857
[longitude] => -2.86747
)
[territoryReference] =>
[stopSequence] => ANY
[timeWindows] => Array
(
[0] => Array
(
[start] => 2025-09-21T06:00:00+01:00
[end] => 2025-09-21T20:00:00+01:00
)
)
[orderDate] =>
[capacity1] => 39
[capacity2] => 0
[price] =>
[operationDuration] => 358
[customFields] => Array
(
[7DCPayment] => Cash - Don't Leave
)
[orderItems] => Array
(
[0] => Array
(
[itemReferenceNumber] => 499326000000061016
[orderReferenceNumber] => SO-00444
[name] => Brue river Lager 30ltr
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 56.71
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 56.71
[height] => 0
[width] => 0
[length] => 0
[weight] => 39
[volume] => 0
)
)
[widgetTrackingDetails] =>
)
)
MaxOptra schedule details: Array
(
[orderReferenceNumber] => SO-00444
[assignedDriverReference] => Lewis Newman
[assignedDriverName] => Lewis Newman
[assignedVehicleReference] => WD25HWY
[assignedVehicleName] => WD25HWY
[plannedArrivalTime] => 2025-09-21T14:16:47+01:00
[plannedCompletionTime] => 2025-09-21T14:22:45+01:00
[stopNumber] => 1
[totalStopsInRun] => 1
[runNumber] => 1
[runReference] => 09a73bf100254b0ba4c5e28baeca6f23
[eta] =>
[factArrivalTimeGPS] =>
[factCompletionTimeGPS] =>
[factArrivalTimeReported] =>
[factCompletionTimeReported] =>
[failReason] =>
[failComment] =>
[status] => ALLOCATED
[driver] => Lewis Newman
[arrival_planned] => 2025-09-21T14:16:47+01:00
[arrival_estimated] =>
[arrival_actual] =>
[totalStops] => 1
)
Updating order: SO-00444
Update ID e07x02i943zvijz with: Array
(
[custom] => Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
[driverRef] => Lewis Newman
[vehicleRef] => WD25HWY
[seqNo] => 1
)
Updated order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[contactNotes] =>
[contactPhone] => +447566237123
[created] => 2025-09-21 12:51:57.255Z
[custom] => Array
(
[0] => stdClass Object
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
[customer] => y5e589zvld1in2k
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryEnd] => 2025-09-21 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Alex Cullum
[deliveryPostcode] => BS26 2QP
[deliveryStart] => 2025-09-21 00:00:00.000Z
[deliveryStreet] => The Old Rectory, Church Lane
[description] =>
[driverRef] => Lewis Newman
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[externalOrderId] => 499326000048366237
[id] => e07x02i943zvijz
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] => Cash - Don't Leave
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] => 1
[ref] =>
[refId] => SO-00444
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Scheduled
[syncInCreated] => 2025-09-21 12:51:28.000Z
[syncInStatus] => confirmed
[syncInUpdated] => 2025-09-21 12:52:49.000Z
[syncOutStatus] => ALLOCATED
[syncOutUpdated] => 2025-09-21 12:52:00.000Z
[timeWindows] => Array
(
)
[title] => Alex Cullum
[totalValue] => 68.05
[totalWeight] => 39
[type] =>
[updated] => 2025-09-21 12:53:18.623Z
[vehicleRef] => WD25HWY
[what3Words] =>
)
Updating source from local order
Getting custom fields
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-07-18 02:35:52.065Z
[id] => nc7sndad5bhvi5x
[inCollection] => orders
[inField] => paymentMethod
[mappedField] => 7DCPayment
[name] => Payment method
[sourceField] =>
[syncFromSource] => 1
[syncToSource] =>
[type] => text
[updated] => 2025-07-18 02:35:52.065Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Processing field
Mapped field: 7DCEmpties
Custom fields: Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
Processing field
Mapped field: 7DCEmptiesGas
Custom fields: Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:03:34.631Z
[id] => pcn96l3kgkps4az
[inCollection] => orders
[inField] => driverRef
[mappedField] =>
[name] => Delivery driver
[sourceField] => cf_delivery_driver
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:03:34.631Z
)
Processing field
driverRef...
Value: Lewis Newman
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-08 04:52:51.399Z
[id] => hhrzcmytzs8p3kw
[inCollection] => orders
[inField] => seqNo
[mappedField] =>
[name] => Run number
[sourceField] => cf_run_number
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-08 04:52:51.399Z
)
Processing field
seqNo...
Value: 1
Finished processing field
Continue
Updating source order: Array
(
[custom_fields] => Array
(
[0] => Array
(
[api_name] => cf_delivery_driver
[value] => Lewis Newman
)
[1] => Array
(
[api_name] => cf_run_number
[value] => 1
)
)
)
Update result: Array
(
[code] => 0
[message] => Sales Order has been updated.
[salesorder] => Array
(
[salesorder_id] => 499326000048366237
[is_viewed_in_mail] =>
[mail_first_viewed_time] =>
[mail_last_viewed_time] =>
[documents] => Array
(
)
[zcrm_potential_id] =>
[zcrm_potential_name] =>
[salesorder_number] => SO-00444
[date] => 2025-09-21
[offline_created_date_with_time] =>
[tracking_url] =>
[has_discount] =>
[status] => confirmed
[color_code] =>
[current_sub_status_id] =>
[current_sub_status] => confirmed
[sub_statuses] => Array
(
)
[shipment_date] =>
[reference_number] =>
[customer_id] => 499326000021060129
[customer_name] => Alex Cullum
[contact_persons] => Array
(
[0] => 499326000021060131
)
[contact_persons_associated] => Array
(
[0] => Array
(
[contact_person_id] => 499326000021060131
[contact_person_email] => alex@7daycellar.co.uk
[first_name] => Alex
[last_name] => Cullum
[mobile] => +447566237123
[communication_preference] => Array
(
[is_email_enabled] => 1
)
)
)
[contact_person_details] => Array
(
[0] => Array
(
[phone] =>
[mobile] => +447566237123
[last_name] => Cullum
[contact_person_id] => 499326000021060131
[first_name] => Alex
[email] => alex@7daycellar.co.uk
)
)
[source] => Client
[contact_category] => uk
[is_taxable] =>
[has_shipping_address] => 1
[currency_id] => 499326000000000065
[currency_code] => GBP
[currency_symbol] => £
[exchange_rate] => 1
[is_discount_before_tax] => 1
[discount_type] => item_level
[estimate_id] =>
[delivery_method] =>
[delivery_method_id] =>
[vat_treatment] => uk
[is_inclusive_tax] =>
[tax_rounding] => entity_level
[tax_override_preference] => no_override
[order_status] => confirmed
[invoiced_status] => not_invoiced
[paid_status] => unpaid
[shipped_status] => pending
[sales_channel] => direct_sales
[sales_channel_formatted] => Direct Sales
[account_identifier] =>
[integration_id] =>
[is_dropshipped] =>
[is_backordered] =>
[is_manually_fulfilled] =>
[can_manually_fulfill] => 1
[has_qty_cancelled] =>
[is_reverse_charge_applied] =>
[shipping_details] => Array
(
)
[created_by_email] => alex@7daycellar.co.uk
[created_by_name] => Alex C
[branch_id] => 499326000023111007
[branch_name] => Head Office
[location_id] => 499326000023111007
[location_name] => Head Office
[total_quantity] => 1
[line_items] => Array
(
[0] => Array
(
[line_item_id] => 499326000048366243
[variant_id] => 499326000000061016
[track_batch_number] =>
[item_id] => 499326000000061016
[is_returnable] =>
[product_id] => 499326000000061016
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] => BB-BERR-30LK
[name] => Brue river Lager 30ltr
[group_name] => Brue river Lager 30ltr
[description] => Brue river Lager 30ltr
[item_order] => 1
[bcy_rate] => 56.71
[rate] => 56.71
[sales_rate] => 56.71
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 11.34
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 56.71
[item_sub_total] => 56.71
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] =>
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] => Brue River Logo.png
[image_type] => png
[document_id] => 499326000044988177
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 0
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] => 39
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
)
[is_advanced_tracking_missing] =>
[entity_tags] =>
[submitter_id] =>
[approver_id] =>
[submitted_date] =>
[submitted_by] =>
[submitted_by_name] =>
[submitted_by_email] =>
[submitted_by_photo_url] =>
[price_precision] => 2
[is_emailed] =>
[has_unconfirmed_line_item] =>
[picklists] => Array
(
)
[purchaseorders] => Array
(
)
[locations] => Array
(
[0] => Array
(
[location_id] => 499326000023111007
[location_name] => Head Office
[status] => active
)
[1] => Array
(
[location_id] => 499326000041689155
[location_name] => Bason Bridge Brewery Duty Bonded Warehouse
[status] => active
)
)
[billing_address_id] => 499326000021060132
[billing_address] => Array
(
[address] => The Old Rectory, Church Lane
[street2] => Bason Bridge
[city] => Bristol
[state] => Somerset
[zip] => BS26 2QP
[country] => United Kingdom
[country_code] => GB
[county] =>
[state_code] => SOM
[fax] =>
[phone] =>
[attention] =>
)
[shipping_address_id] => 499326000021060134
[shipping_address] => Array
(
[company_name] =>
[address] =>
[street2] =>
[city] =>
[state] =>
[zip] =>
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[is_test_order] =>
[notes] => Account Name: 7 Day Cellar Ltd
Sort Code: 09-01-30
Account No: 10888924
[terms] =>
[payment_terms] => 14
[payment_terms_label] => Net 14
[custom_fields] => Array
(
[0] => Array
(
[field_id] => 499326000042690007
[customfield_id] => 499326000042690007
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 1
[label] => Automation Required
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[is_color_code_supported] =>
[api_name] => cf__ulrql_automation_required
[show_in_all_pdf] =>
[selected_option_id] => 499326000042690011
[value_formatted] => Yes
[search_entity] => salesorder
[data_type] => dropdown
[placeholder] => cf__ulrql_automation_required
[value] => Yes
[is_dependent_field] =>
)
[1] => Array
(
[field_id] => 499326000045601987
[customfield_id] => 499326000045601987
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 2
[label] => Payment Method
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_payment_method
[show_in_all_pdf] =>
[value_formatted] => Cash - Don't Leave
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_payment_method
[value] => Cash - Don't Leave
[is_dependent_field] =>
)
[2] => Array
(
[field_id] => 499326000046252173
[customfield_id] => 499326000046252173
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 3
[label] => Delivery Driver
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_driver
[show_in_all_pdf] =>
[value_formatted] => Lewis Newman
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_driver
[value] => Lewis Newman
[is_dependent_field] =>
)
[3] => Array
(
[field_id] => 499326000047922345
[customfield_id] => 499326000047922345
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 4
[label] => Run Number
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_run_number
[show_in_all_pdf] =>
[value_formatted] => 1
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_run_number
[value] => 1
[is_dependent_field] =>
)
)
[custom_field_hash] => Array
(
[cf__ulrql_automation_required] => Yes
[cf__ulrql_automation_required_unformatted] => Yes
[cf_payment_method] => Cash - Don't Leave
[cf_payment_method_unformatted] => Cash - Don't Leave
[cf_delivery_driver] => Lewis Newman
[cf_delivery_driver_unformatted] => Lewis Newman
[cf_run_number] => 1
[cf_run_number_unformatted] => 1
)
[template_id] => 499326000000000111
[template_name] => Standard Template
[page_width] => 8.27in
[page_height] => 11.69in
[orientation] => portrait
[template_type] => standard
[created_time] => 2025-09-21T13:51:28+0100
[last_modified_time] => 2025-09-21T13:53:18+0100
[created_by_id] => 499326000000047001
[created_date] => 2025-09-21
[last_modified_by_id] => 499326000044410001
[attachment_name] =>
[can_send_in_mail] =>
[salesperson_id] => 499326000026596043
[salesperson_name] => Alex Cullum
[merchant_id] =>
[merchant_name] =>
[pickup_location_id] =>
[discount] => 0
[discount_applied_on_amount] => 0
[is_adv_tracking_in_package] =>
[shipping_charge_taxes] => Array
(
)
[lock_details] => Array
(
[can_lock] =>
)
[locked_actions] => Array
(
)
[shipping_charge_tax_id] =>
[shipping_charge_tax_name] =>
[shipping_charge_tax_type] =>
[shipping_charge_tax_percentage] =>
[shipping_charge_tax_exemption_id] =>
[shipping_charge_tax_exemption_code] =>
[shipping_charge_tax] =>
[bcy_shipping_charge_tax] =>
[shipping_charge_exclusive_of_tax] => 0
[shipping_charge_inclusive_of_tax] => 0
[shipping_charge_tax_formatted] =>
[shipping_charge_exclusive_of_tax_formatted] => £0.00
[shipping_charge_inclusive_of_tax_formatted] => £0.00
[shipping_charge] => 0
[bcy_shipping_charge] => 0
[adjustment] => 0
[bcy_adjustment] => 0
[adjustment_description] => Adjustment
[roundoff_value] => 0
[transaction_rounding_type] => no_rounding
[rounding_mode] => round_half_up
[bcy_rounding_mode] => round_half_up
[sub_total] => 56.71
[bcy_sub_total] => 56.71
[sub_total_inclusive_of_tax] => 0
[sub_total_exclusive_of_discount] => 56.71
[discount_total] => 0
[bcy_discount_total] => 0
[discount_percent] => 0
[tax_total] => 11.34
[bcy_tax_total] => 11.34
[total] => 68.05
[computation_type] => basic
[bcy_total] => 68.05
[reverse_charge_tax_total] => 0
[taxes] => Array
(
[0] => Array
(
[tax_amount] => 11.34
[tax_name] => Standard Rate
[tax_amount_formatted] => £11.34
)
)
[tds_calculation_type] => tds_item_level
[packages] => Array
(
)
[so_cycle_preference] => Array
(
[is_feature_enabled] => 1
[socycle_status] => not_triggered
[can_create_invoice] => 1
[can_create_package] =>
[can_create_shipment] =>
[shipment_preference] => Array
(
[default_carrier] =>
[send_notification] =>
[deliver_shipments] =>
)
[invoice_preference] => Array
(
[mark_as_sent] =>
[record_payment] =>
[payment_mode_id] => 499326000000000199
[payment_account_id] => 499326000000000349
)
)
[invoices] => Array
(
)
[can_show_kit_return] =>
[is_kit_partial_return] =>
[salesreturns] => Array
(
)
[payments] => Array
(
)
[creditnotes] => Array
(
)
[refunds] => Array
(
)
[contact] => Array
(
[customer_balance] => 0
[credit_limit] => 0
[unused_customer_credits] => 120
[is_credit_limit_migration_completed] => 1
)
[balance] => 68.05
[approvers_list] => Array
(
)
[is_scheduled_for_quick_shipment_create] =>
)
)
Webhook - destinationUpdated script called at 2025-09-21 13:53:23
JSON: {"payload":{"orderReference":"SO-00444","status":"LOCKED"},"timestamp":"2025-09-21T12:53:23Z"}
REF: SO-00444
Filter: refId="SO-00444"
200 response code sent
Local item: {"addons":[],"attachments":[],"collectionEnd":"","collectionId":"s93ukjlitoinx2e","collectionInstructions":"","collectionName":"orders","collectionStart":"","company":"1kmltj8w8rnhbfx","contactEmail":"alex@7daycellar.co.uk","contactName":"Alex Cullum","contactNotes":"","contactPhone":"+447566237123","created":"2025-09-21 12:51:57.255Z","custom":[{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"}],"customer":"y5e589zvld1in2k","deliveryCity":"Bristol","deliveryCounty":"","deliveryEnd":"2025-09-21 00:00:00.000Z","deliveryInstructions":"","deliveryName":"Alex Cullum","deliveryPostcode":"BS26 2QP","deliveryStart":"2025-09-21 00:00:00.000Z","deliveryStreet":"The Old Rectory, Church Lane","description":"","driverRef":"Lewis Newman","externalCustomerId":"499326000021060129","externalLocationId":"499326000021060132","externalOrderId":"499326000048366237","id":"e07x02i943zvijz","isCancelled":false,"isCollection":false,"isReadyToSync":false,"isScheduledCollection":false,"isScheduledDelivery":false,"isUntracked":false,"mergeRef":"","notes":"","orderedAt":"","overrideVolume":0,"overrideWeight":0,"paymentMethod":"Cash - Don't Leave","pendingSyncFromDestination":false,"pendingSyncFromSource":false,"pendingSyncToDestination":true,"pendingSyncToSource":true,"ref":"","refId":"SO-00444","requestedDeliveryDays":"","seqNo":"1","signature":"","signatureName":"","signatureTime":"","statusCollection":"","statusDelivery":"Scheduled","syncInCreated":"2025-09-21 12:51:28.000Z","syncInStatus":"confirmed","syncInUpdated":"2025-09-21 12:52:49.000Z","syncOutStatus":"ALLOCATED","syncOutUpdated":"2025-09-21 12:52:00.000Z","timeWindows":[],"title":"Alex Cullum","totalValue":68.0499999999999971578290569595992565155029296875,"totalWeight":39,"type":"","updated":"2025-09-21 12:53:18.623Z","vehicleRef":"WD25HWY","what3Words":""}
Updating local order from MaxOptra - current local order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[contactNotes] =>
[contactPhone] => +447566237123
[created] => 2025-09-21 12:51:57.255Z
[custom] => Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
[customer] => y5e589zvld1in2k
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryEnd] => 2025-09-21 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Alex Cullum
[deliveryPostcode] => BS26 2QP
[deliveryStart] => 2025-09-21 00:00:00.000Z
[deliveryStreet] => The Old Rectory, Church Lane
[description] =>
[driverRef] => Lewis Newman
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[externalOrderId] => 499326000048366237
[id] => e07x02i943zvijz
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] => Cash - Don't Leave
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] => 1
[ref] =>
[refId] => SO-00444
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Scheduled
[syncInCreated] => 2025-09-21 12:51:28.000Z
[syncInStatus] => confirmed
[syncInUpdated] => 2025-09-21 12:52:49.000Z
[syncOutStatus] => ALLOCATED
[syncOutUpdated] => 2025-09-21 12:52:00.000Z
[timeWindows] => Array
(
)
[title] => Alex Cullum
[totalValue] => 68.05
[totalWeight] => 39
[type] =>
[updated] => 2025-09-21 12:53:18.623Z
[vehicleRef] => WD25HWY
[what3Words] =>
)
MaxOptra order details: Array
(
[0] => Array
(
[referenceNumber] => SO-00444
[consignmentReference] =>
[distributionCentreReference] => Head Office
[distributionCentreName] => Head Office
[task] => DELIVERY
[priority] => NORMAL
[vehicleRequirements] => Array
(
)
[additionalInstructions] =>
[clientName] =>
[contactPerson] => Alex Cullum
[contactNumber] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[additionalContactEmails] =>
[notificationPreferences] => Array
(
[allowSMS] => 1
[allowEmail] => 1
)
[customerLocation] => Array
(
[referenceNumber] => 499326000021060132
[name] => Alex Cullum, The Old Rectory, Church Lane, Bristol
[address] => BS26 2QP
[w3wAddress] =>
[latitude] => 51.26857
[longitude] => -2.86747
)
[territoryReference] =>
[stopSequence] => ANY
[timeWindows] => Array
(
[0] => Array
(
[start] => 2025-09-21T06:00:00+01:00
[end] => 2025-09-21T20:00:00+01:00
)
)
[orderDate] =>
[capacity1] => 39
[capacity2] => 0
[price] =>
[operationDuration] => 358
[customFields] => Array
(
[7DCPayment] => Cash - Don't Leave
)
[orderItems] => Array
(
[0] => Array
(
[itemReferenceNumber] => 499326000000061016
[orderReferenceNumber] => SO-00444
[name] => Brue river Lager 30ltr
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 56.71
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 56.71
[height] => 0
[width] => 0
[length] => 0
[weight] => 39
[volume] => 0
)
)
[widgetTrackingDetails] =>
)
)
MaxOptra schedule details: Array
(
[orderReferenceNumber] => SO-00444
[assignedDriverReference] => Lewis Newman
[assignedDriverName] => Lewis Newman
[assignedVehicleReference] => WD25HWY
[assignedVehicleName] => WD25HWY
[plannedArrivalTime] => 2025-09-21T14:16:47+01:00
[plannedCompletionTime] => 2025-09-21T14:22:45+01:00
[stopNumber] => 1
[totalStopsInRun] => 1
[runNumber] => 1
[runReference] => 09a73bf100254b0ba4c5e28baeca6f23
[eta] =>
[factArrivalTimeGPS] =>
[factCompletionTimeGPS] =>
[factArrivalTimeReported] =>
[factCompletionTimeReported] =>
[failReason] =>
[failComment] =>
[status] => LOCKED
[driver] => Lewis Newman
[arrival_planned] => 2025-09-21T14:16:47+01:00
[arrival_estimated] =>
[arrival_actual] =>
[totalStops] => 1
)
Updating order: SO-00444
Update ID e07x02i943zvijz with: Array
(
[custom] => Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
[driverRef] => Lewis Newman
[vehicleRef] => WD25HWY
[seqNo] => 1
)
Updated order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[contactNotes] =>
[contactPhone] => +447566237123
[created] => 2025-09-21 12:51:57.255Z
[custom] => Array
(
[0] => stdClass Object
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
[customer] => y5e589zvld1in2k
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryEnd] => 2025-09-21 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Alex Cullum
[deliveryPostcode] => BS26 2QP
[deliveryStart] => 2025-09-21 00:00:00.000Z
[deliveryStreet] => The Old Rectory, Church Lane
[description] =>
[driverRef] => Lewis Newman
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[externalOrderId] => 499326000048366237
[id] => e07x02i943zvijz
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] => Cash - Don't Leave
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] => 1
[ref] =>
[refId] => SO-00444
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Scheduled
[syncInCreated] => 2025-09-21 12:51:28.000Z
[syncInStatus] => confirmed
[syncInUpdated] => 2025-09-21 12:52:49.000Z
[syncOutStatus] => ALLOCATED
[syncOutUpdated] => 2025-09-21 12:52:00.000Z
[timeWindows] => Array
(
)
[title] => Alex Cullum
[totalValue] => 68.05
[totalWeight] => 39
[type] =>
[updated] => 2025-09-21 12:53:24.129Z
[vehicleRef] => WD25HWY
[what3Words] =>
)
Updating source from local order
Getting custom fields
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-07-18 02:35:52.065Z
[id] => nc7sndad5bhvi5x
[inCollection] => orders
[inField] => paymentMethod
[mappedField] => 7DCPayment
[name] => Payment method
[sourceField] =>
[syncFromSource] => 1
[syncToSource] =>
[type] => text
[updated] => 2025-07-18 02:35:52.065Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Processing field
Mapped field: 7DCEmpties
Custom fields: Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
Processing field
Mapped field: 7DCEmptiesGas
Custom fields: Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:03:34.631Z
[id] => pcn96l3kgkps4az
[inCollection] => orders
[inField] => driverRef
[mappedField] =>
[name] => Delivery driver
[sourceField] => cf_delivery_driver
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:03:34.631Z
)
Processing field
driverRef...
Value: Lewis Newman
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-08 04:52:51.399Z
[id] => hhrzcmytzs8p3kw
[inCollection] => orders
[inField] => seqNo
[mappedField] =>
[name] => Run number
[sourceField] => cf_run_number
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-08 04:52:51.399Z
)
Processing field
seqNo...
Value: 1
Finished processing field
Continue
Updating source order: Array
(
[custom_fields] => Array
(
[0] => Array
(
[api_name] => cf_delivery_driver
[value] => Lewis Newman
)
[1] => Array
(
[api_name] => cf_run_number
[value] => 1
)
)
)
Update result: Array
(
[code] => 0
[message] => Sales Order has been updated.
[salesorder] => Array
(
[salesorder_id] => 499326000048366237
[is_viewed_in_mail] =>
[mail_first_viewed_time] =>
[mail_last_viewed_time] =>
[documents] => Array
(
)
[zcrm_potential_id] =>
[zcrm_potential_name] =>
[salesorder_number] => SO-00444
[date] => 2025-09-21
[offline_created_date_with_time] =>
[tracking_url] =>
[has_discount] =>
[status] => confirmed
[color_code] =>
[current_sub_status_id] =>
[current_sub_status] => confirmed
[sub_statuses] => Array
(
)
[shipment_date] =>
[reference_number] =>
[customer_id] => 499326000021060129
[customer_name] => Alex Cullum
[contact_persons] => Array
(
[0] => 499326000021060131
)
[contact_persons_associated] => Array
(
[0] => Array
(
[contact_person_id] => 499326000021060131
[contact_person_email] => alex@7daycellar.co.uk
[first_name] => Alex
[last_name] => Cullum
[mobile] => +447566237123
[communication_preference] => Array
(
[is_email_enabled] => 1
)
)
)
[contact_person_details] => Array
(
[0] => Array
(
[phone] =>
[mobile] => +447566237123
[last_name] => Cullum
[contact_person_id] => 499326000021060131
[first_name] => Alex
[email] => alex@7daycellar.co.uk
)
)
[source] => Client
[contact_category] => uk
[is_taxable] =>
[has_shipping_address] => 1
[currency_id] => 499326000000000065
[currency_code] => GBP
[currency_symbol] => £
[exchange_rate] => 1
[is_discount_before_tax] => 1
[discount_type] => item_level
[estimate_id] =>
[delivery_method] =>
[delivery_method_id] =>
[vat_treatment] => uk
[is_inclusive_tax] =>
[tax_rounding] => entity_level
[tax_override_preference] => no_override
[order_status] => confirmed
[invoiced_status] => not_invoiced
[paid_status] => unpaid
[shipped_status] => pending
[sales_channel] => direct_sales
[sales_channel_formatted] => Direct Sales
[account_identifier] =>
[integration_id] =>
[is_dropshipped] =>
[is_backordered] =>
[is_manually_fulfilled] =>
[can_manually_fulfill] => 1
[has_qty_cancelled] =>
[is_reverse_charge_applied] =>
[shipping_details] => Array
(
)
[created_by_email] => alex@7daycellar.co.uk
[created_by_name] => Alex C
[branch_id] => 499326000023111007
[branch_name] => Head Office
[location_id] => 499326000023111007
[location_name] => Head Office
[total_quantity] => 1
[line_items] => Array
(
[0] => Array
(
[line_item_id] => 499326000048366243
[variant_id] => 499326000000061016
[track_batch_number] =>
[item_id] => 499326000000061016
[is_returnable] =>
[product_id] => 499326000000061016
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] => BB-BERR-30LK
[name] => Brue river Lager 30ltr
[group_name] => Brue river Lager 30ltr
[description] => Brue river Lager 30ltr
[item_order] => 1
[bcy_rate] => 56.71
[rate] => 56.71
[sales_rate] => 56.71
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 11.34
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 56.71
[item_sub_total] => 56.71
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] =>
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] => Brue River Logo.png
[image_type] => png
[document_id] => 499326000044988177
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 0
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] => 39
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
)
[is_advanced_tracking_missing] =>
[entity_tags] =>
[submitter_id] =>
[approver_id] =>
[submitted_date] =>
[submitted_by] =>
[submitted_by_name] =>
[submitted_by_email] =>
[submitted_by_photo_url] =>
[price_precision] => 2
[is_emailed] =>
[has_unconfirmed_line_item] =>
[picklists] => Array
(
)
[purchaseorders] => Array
(
)
[locations] => Array
(
[0] => Array
(
[location_id] => 499326000023111007
[location_name] => Head Office
[status] => active
)
[1] => Array
(
[location_id] => 499326000041689155
[location_name] => Bason Bridge Brewery Duty Bonded Warehouse
[status] => active
)
)
[billing_address_id] => 499326000021060132
[billing_address] => Array
(
[address] => The Old Rectory, Church Lane
[street2] => Bason Bridge
[city] => Bristol
[state] => Somerset
[zip] => BS26 2QP
[country] => United Kingdom
[country_code] => GB
[county] =>
[state_code] => SOM
[fax] =>
[phone] =>
[attention] =>
)
[shipping_address_id] => 499326000021060134
[shipping_address] => Array
(
[company_name] =>
[address] =>
[street2] =>
[city] =>
[state] =>
[zip] =>
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[is_test_order] =>
[notes] => Account Name: 7 Day Cellar Ltd
Sort Code: 09-01-30
Account No: 10888924
[terms] =>
[payment_terms] => 14
[payment_terms_label] => Net 14
[custom_fields] => Array
(
[0] => Array
(
[field_id] => 499326000042690007
[customfield_id] => 499326000042690007
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 1
[label] => Automation Required
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[is_color_code_supported] =>
[api_name] => cf__ulrql_automation_required
[show_in_all_pdf] =>
[selected_option_id] => 499326000042690011
[value_formatted] => Yes
[search_entity] => salesorder
[data_type] => dropdown
[placeholder] => cf__ulrql_automation_required
[value] => Yes
[is_dependent_field] =>
)
[1] => Array
(
[field_id] => 499326000045601987
[customfield_id] => 499326000045601987
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 2
[label] => Payment Method
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_payment_method
[show_in_all_pdf] =>
[value_formatted] => Cash - Don't Leave
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_payment_method
[value] => Cash - Don't Leave
[is_dependent_field] =>
)
[2] => Array
(
[field_id] => 499326000046252173
[customfield_id] => 499326000046252173
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 3
[label] => Delivery Driver
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_driver
[show_in_all_pdf] =>
[value_formatted] => Lewis Newman
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_driver
[value] => Lewis Newman
[is_dependent_field] =>
)
[3] => Array
(
[field_id] => 499326000047922345
[customfield_id] => 499326000047922345
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 4
[label] => Run Number
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_run_number
[show_in_all_pdf] =>
[value_formatted] => 1
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_run_number
[value] => 1
[is_dependent_field] =>
)
)
[custom_field_hash] => Array
(
[cf__ulrql_automation_required] => Yes
[cf__ulrql_automation_required_unformatted] => Yes
[cf_payment_method] => Cash - Don't Leave
[cf_payment_method_unformatted] => Cash - Don't Leave
[cf_delivery_driver] => Lewis Newman
[cf_delivery_driver_unformatted] => Lewis Newman
[cf_run_number] => 1
[cf_run_number_unformatted] => 1
)
[template_id] => 499326000000000111
[template_name] => Standard Template
[page_width] => 8.27in
[page_height] => 11.69in
[orientation] => portrait
[template_type] => standard
[created_time] => 2025-09-21T13:51:28+0100
[last_modified_time] => 2025-09-21T13:53:24+0100
[created_by_id] => 499326000000047001
[created_date] => 2025-09-21
[last_modified_by_id] => 499326000044410001
[attachment_name] =>
[can_send_in_mail] =>
[salesperson_id] => 499326000026596043
[salesperson_name] => Alex Cullum
[merchant_id] =>
[merchant_name] =>
[pickup_location_id] =>
[discount] => 0
[discount_applied_on_amount] => 0
[is_adv_tracking_in_package] =>
[shipping_charge_taxes] => Array
(
)
[lock_details] => Array
(
[can_lock] =>
)
[locked_actions] => Array
(
)
[shipping_charge_tax_id] =>
[shipping_charge_tax_name] =>
[shipping_charge_tax_type] =>
[shipping_charge_tax_percentage] =>
[shipping_charge_tax_exemption_id] =>
[shipping_charge_tax_exemption_code] =>
[shipping_charge_tax] =>
[bcy_shipping_charge_tax] =>
[shipping_charge_exclusive_of_tax] => 0
[shipping_charge_inclusive_of_tax] => 0
[shipping_charge_tax_formatted] =>
[shipping_charge_exclusive_of_tax_formatted] => £0.00
[shipping_charge_inclusive_of_tax_formatted] => £0.00
[shipping_charge] => 0
[bcy_shipping_charge] => 0
[adjustment] => 0
[bcy_adjustment] => 0
[adjustment_description] => Adjustment
[roundoff_value] => 0
[transaction_rounding_type] => no_rounding
[rounding_mode] => round_half_up
[bcy_rounding_mode] => round_half_up
[sub_total] => 56.71
[bcy_sub_total] => 56.71
[sub_total_inclusive_of_tax] => 0
[sub_total_exclusive_of_discount] => 56.71
[discount_total] => 0
[bcy_discount_total] => 0
[discount_percent] => 0
[tax_total] => 11.34
[bcy_tax_total] => 11.34
[total] => 68.05
[computation_type] => basic
[bcy_total] => 68.05
[reverse_charge_tax_total] => 0
[taxes] => Array
(
[0] => Array
(
[tax_amount] => 11.34
[tax_name] => Standard Rate
[tax_amount_formatted] => £11.34
)
)
[tds_calculation_type] => tds_item_level
[packages] => Array
(
)
[so_cycle_preference] => Array
(
[is_feature_enabled] => 1
[socycle_status] => not_triggered
[can_create_invoice] => 1
[can_create_package] =>
[can_create_shipment] =>
[shipment_preference] => Array
(
[default_carrier] =>
[send_notification] =>
[deliver_shipments] =>
)
[invoice_preference] => Array
(
[mark_as_sent] =>
[record_payment] =>
[payment_mode_id] => 499326000000000199
[payment_account_id] => 499326000000000349
)
)
[invoices] => Array
(
)
[can_show_kit_return] =>
[is_kit_partial_return] =>
[salesreturns] => Array
(
)
[payments] => Array
(
)
[creditnotes] => Array
(
)
[refunds] => Array
(
)
[contact] => Array
(
[customer_balance] => 0
[credit_limit] => 0
[unused_customer_credits] => 120
[is_credit_limit_migration_completed] => 1
)
[balance] => 68.05
[approvers_list] => Array
(
)
[is_scheduled_for_quick_shipment_create] =>
)
)
Webhook - destinationUpdated script called at 2025-09-21 13:53:25
JSON: {"payload":{"orderReference":"SO-00444","status":"ACCEPTED"},"timestamp":"2025-09-21T12:53:24Z"}
REF: SO-00444
Filter: refId="SO-00444"
200 response code sent
Local item: {"addons":[],"attachments":[],"collectionEnd":"","collectionId":"s93ukjlitoinx2e","collectionInstructions":"","collectionName":"orders","collectionStart":"","company":"1kmltj8w8rnhbfx","contactEmail":"alex@7daycellar.co.uk","contactName":"Alex Cullum","contactNotes":"","contactPhone":"+447566237123","created":"2025-09-21 12:51:57.255Z","custom":[{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"}],"customer":"y5e589zvld1in2k","deliveryCity":"Bristol","deliveryCounty":"","deliveryEnd":"2025-09-21 00:00:00.000Z","deliveryInstructions":"","deliveryName":"Alex Cullum","deliveryPostcode":"BS26 2QP","deliveryStart":"2025-09-21 00:00:00.000Z","deliveryStreet":"The Old Rectory, Church Lane","description":"","driverRef":"Lewis Newman","externalCustomerId":"499326000021060129","externalLocationId":"499326000021060132","externalOrderId":"499326000048366237","id":"e07x02i943zvijz","isCancelled":false,"isCollection":false,"isReadyToSync":false,"isScheduledCollection":false,"isScheduledDelivery":false,"isUntracked":false,"mergeRef":"","notes":"","orderedAt":"","overrideVolume":0,"overrideWeight":0,"paymentMethod":"Cash - Don't Leave","pendingSyncFromDestination":false,"pendingSyncFromSource":false,"pendingSyncToDestination":true,"pendingSyncToSource":true,"ref":"","refId":"SO-00444","requestedDeliveryDays":"","seqNo":"1","signature":"","signatureName":"","signatureTime":"","statusCollection":"","statusDelivery":"Scheduled","syncInCreated":"2025-09-21 12:51:28.000Z","syncInStatus":"confirmed","syncInUpdated":"2025-09-21 12:52:49.000Z","syncOutStatus":"ALLOCATED","syncOutUpdated":"2025-09-21 12:52:00.000Z","timeWindows":[],"title":"Alex Cullum","totalValue":68.0499999999999971578290569595992565155029296875,"totalWeight":39,"type":"","updated":"2025-09-21 12:53:24.129Z","vehicleRef":"WD25HWY","what3Words":""}
Updating local order from MaxOptra - current local order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[contactNotes] =>
[contactPhone] => +447566237123
[created] => 2025-09-21 12:51:57.255Z
[custom] => Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
[customer] => y5e589zvld1in2k
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryEnd] => 2025-09-21 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Alex Cullum
[deliveryPostcode] => BS26 2QP
[deliveryStart] => 2025-09-21 00:00:00.000Z
[deliveryStreet] => The Old Rectory, Church Lane
[description] =>
[driverRef] => Lewis Newman
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[externalOrderId] => 499326000048366237
[id] => e07x02i943zvijz
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] => Cash - Don't Leave
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] => 1
[ref] =>
[refId] => SO-00444
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Scheduled
[syncInCreated] => 2025-09-21 12:51:28.000Z
[syncInStatus] => confirmed
[syncInUpdated] => 2025-09-21 12:52:49.000Z
[syncOutStatus] => ALLOCATED
[syncOutUpdated] => 2025-09-21 12:52:00.000Z
[timeWindows] => Array
(
)
[title] => Alex Cullum
[totalValue] => 68.05
[totalWeight] => 39
[type] =>
[updated] => 2025-09-21 12:53:24.129Z
[vehicleRef] => WD25HWY
[what3Words] =>
)
MaxOptra order details: Array
(
[0] => Array
(
[referenceNumber] => SO-00444
[consignmentReference] =>
[distributionCentreReference] => Head Office
[distributionCentreName] => Head Office
[task] => DELIVERY
[priority] => NORMAL
[vehicleRequirements] => Array
(
)
[additionalInstructions] =>
[clientName] =>
[contactPerson] => Alex Cullum
[contactNumber] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[additionalContactEmails] =>
[notificationPreferences] => Array
(
[allowSMS] => 1
[allowEmail] => 1
)
[customerLocation] => Array
(
[referenceNumber] => 499326000021060132
[name] => Alex Cullum, The Old Rectory, Church Lane, Bristol
[address] => BS26 2QP
[w3wAddress] =>
[latitude] => 51.26857
[longitude] => -2.86747
)
[territoryReference] =>
[stopSequence] => ANY
[timeWindows] => Array
(
[0] => Array
(
[start] => 2025-09-21T06:00:00+01:00
[end] => 2025-09-21T20:00:00+01:00
)
)
[orderDate] =>
[capacity1] => 39
[capacity2] => 0
[price] =>
[operationDuration] => 358
[customFields] => Array
(
[7DCPayment] => Cash - Don't Leave
)
[orderItems] => Array
(
[0] => Array
(
[itemReferenceNumber] => 499326000000061016
[orderReferenceNumber] => SO-00444
[name] => Brue river Lager 30ltr
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 56.71
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 56.71
[height] => 0
[width] => 0
[length] => 0
[weight] => 39
[volume] => 0
)
)
[widgetTrackingDetails] =>
)
)
MaxOptra schedule details: Array
(
[orderReferenceNumber] => SO-00444
[assignedDriverReference] => Lewis Newman
[assignedDriverName] => Lewis Newman
[assignedVehicleReference] => WD25HWY
[assignedVehicleName] => WD25HWY
[plannedArrivalTime] => 2025-09-21T14:16:47+01:00
[plannedCompletionTime] => 2025-09-21T14:22:45+01:00
[stopNumber] => 1
[totalStopsInRun] => 1
[runNumber] => 1
[runReference] => 09a73bf100254b0ba4c5e28baeca6f23
[eta] =>
[factArrivalTimeGPS] =>
[factCompletionTimeGPS] =>
[factArrivalTimeReported] =>
[factCompletionTimeReported] =>
[failReason] =>
[failComment] =>
[status] => ACCEPTED
[driver] => Lewis Newman
[arrival_planned] => 2025-09-21T14:16:47+01:00
[arrival_estimated] =>
[arrival_actual] =>
[totalStops] => 1
)
Updating order: SO-00444
Update ID e07x02i943zvijz with: Array
(
[custom] => Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
[driverRef] => Lewis Newman
[vehicleRef] => WD25HWY
[seqNo] => 1
)
Updated order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[contactNotes] =>
[contactPhone] => +447566237123
[created] => 2025-09-21 12:51:57.255Z
[custom] => Array
(
[0] => stdClass Object
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
[customer] => y5e589zvld1in2k
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryEnd] => 2025-09-21 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Alex Cullum
[deliveryPostcode] => BS26 2QP
[deliveryStart] => 2025-09-21 00:00:00.000Z
[deliveryStreet] => The Old Rectory, Church Lane
[description] =>
[driverRef] => Lewis Newman
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[externalOrderId] => 499326000048366237
[id] => e07x02i943zvijz
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] => Cash - Don't Leave
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] => 1
[ref] =>
[refId] => SO-00444
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Scheduled
[syncInCreated] => 2025-09-21 12:51:28.000Z
[syncInStatus] => confirmed
[syncInUpdated] => 2025-09-21 12:52:49.000Z
[syncOutStatus] => ALLOCATED
[syncOutUpdated] => 2025-09-21 12:52:00.000Z
[timeWindows] => Array
(
)
[title] => Alex Cullum
[totalValue] => 68.05
[totalWeight] => 39
[type] =>
[updated] => 2025-09-21 12:53:25.555Z
[vehicleRef] => WD25HWY
[what3Words] =>
)
Updating source from local order
Getting custom fields
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-07-18 02:35:52.065Z
[id] => nc7sndad5bhvi5x
[inCollection] => orders
[inField] => paymentMethod
[mappedField] => 7DCPayment
[name] => Payment method
[sourceField] =>
[syncFromSource] => 1
[syncToSource] =>
[type] => text
[updated] => 2025-07-18 02:35:52.065Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Processing field
Mapped field: 7DCEmpties
Custom fields: Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
Processing field
Mapped field: 7DCEmptiesGas
Custom fields: Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:03:34.631Z
[id] => pcn96l3kgkps4az
[inCollection] => orders
[inField] => driverRef
[mappedField] =>
[name] => Delivery driver
[sourceField] => cf_delivery_driver
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:03:34.631Z
)
Processing field
driverRef...
Value: Lewis Newman
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-08 04:52:51.399Z
[id] => hhrzcmytzs8p3kw
[inCollection] => orders
[inField] => seqNo
[mappedField] =>
[name] => Run number
[sourceField] => cf_run_number
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-08 04:52:51.399Z
)
Processing field
seqNo...
Value: 1
Finished processing field
Continue
Updating source order: Array
(
[custom_fields] => Array
(
[0] => Array
(
[api_name] => cf_delivery_driver
[value] => Lewis Newman
)
[1] => Array
(
[api_name] => cf_run_number
[value] => 1
)
)
)
Update result: Array
(
[code] => 0
[message] => Sales Order has been updated.
[salesorder] => Array
(
[salesorder_id] => 499326000048366237
[is_viewed_in_mail] =>
[mail_first_viewed_time] =>
[mail_last_viewed_time] =>
[documents] => Array
(
)
[zcrm_potential_id] =>
[zcrm_potential_name] =>
[salesorder_number] => SO-00444
[date] => 2025-09-21
[offline_created_date_with_time] =>
[tracking_url] =>
[has_discount] =>
[status] => confirmed
[color_code] =>
[current_sub_status_id] =>
[current_sub_status] => confirmed
[sub_statuses] => Array
(
)
[shipment_date] =>
[reference_number] =>
[customer_id] => 499326000021060129
[customer_name] => Alex Cullum
[contact_persons] => Array
(
[0] => 499326000021060131
)
[contact_persons_associated] => Array
(
[0] => Array
(
[contact_person_id] => 499326000021060131
[contact_person_email] => alex@7daycellar.co.uk
[first_name] => Alex
[last_name] => Cullum
[mobile] => +447566237123
[communication_preference] => Array
(
[is_email_enabled] => 1
)
)
)
[contact_person_details] => Array
(
[0] => Array
(
[phone] =>
[mobile] => +447566237123
[last_name] => Cullum
[contact_person_id] => 499326000021060131
[first_name] => Alex
[email] => alex@7daycellar.co.uk
)
)
[source] => Client
[contact_category] => uk
[is_taxable] =>
[has_shipping_address] => 1
[currency_id] => 499326000000000065
[currency_code] => GBP
[currency_symbol] => £
[exchange_rate] => 1
[is_discount_before_tax] => 1
[discount_type] => item_level
[estimate_id] =>
[delivery_method] =>
[delivery_method_id] =>
[vat_treatment] => uk
[is_inclusive_tax] =>
[tax_rounding] => entity_level
[tax_override_preference] => no_override
[order_status] => confirmed
[invoiced_status] => not_invoiced
[paid_status] => unpaid
[shipped_status] => pending
[sales_channel] => direct_sales
[sales_channel_formatted] => Direct Sales
[account_identifier] =>
[integration_id] =>
[is_dropshipped] =>
[is_backordered] =>
[is_manually_fulfilled] =>
[can_manually_fulfill] => 1
[has_qty_cancelled] =>
[is_reverse_charge_applied] =>
[shipping_details] => Array
(
)
[created_by_email] => alex@7daycellar.co.uk
[created_by_name] => Alex C
[branch_id] => 499326000023111007
[branch_name] => Head Office
[location_id] => 499326000023111007
[location_name] => Head Office
[total_quantity] => 1
[line_items] => Array
(
[0] => Array
(
[line_item_id] => 499326000048366243
[variant_id] => 499326000000061016
[track_batch_number] =>
[item_id] => 499326000000061016
[is_returnable] =>
[product_id] => 499326000000061016
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] => BB-BERR-30LK
[name] => Brue river Lager 30ltr
[group_name] => Brue river Lager 30ltr
[description] => Brue river Lager 30ltr
[item_order] => 1
[bcy_rate] => 56.71
[rate] => 56.71
[sales_rate] => 56.71
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 11.34
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 56.71
[item_sub_total] => 56.71
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] =>
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] => Brue River Logo.png
[image_type] => png
[document_id] => 499326000044988177
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 0
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] => 39
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
)
[is_advanced_tracking_missing] =>
[entity_tags] =>
[submitter_id] =>
[approver_id] =>
[submitted_date] =>
[submitted_by] =>
[submitted_by_name] =>
[submitted_by_email] =>
[submitted_by_photo_url] =>
[price_precision] => 2
[is_emailed] =>
[has_unconfirmed_line_item] =>
[picklists] => Array
(
)
[purchaseorders] => Array
(
)
[locations] => Array
(
[0] => Array
(
[location_id] => 499326000023111007
[location_name] => Head Office
[status] => active
)
[1] => Array
(
[location_id] => 499326000041689155
[location_name] => Bason Bridge Brewery Duty Bonded Warehouse
[status] => active
)
)
[billing_address_id] => 499326000021060132
[billing_address] => Array
(
[address] => The Old Rectory, Church Lane
[street2] => Bason Bridge
[city] => Bristol
[state] => Somerset
[zip] => BS26 2QP
[country] => United Kingdom
[country_code] => GB
[county] =>
[state_code] => SOM
[fax] =>
[phone] =>
[attention] =>
)
[shipping_address_id] => 499326000021060134
[shipping_address] => Array
(
[company_name] =>
[address] =>
[street2] =>
[city] =>
[state] =>
[zip] =>
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[is_test_order] =>
[notes] => Account Name: 7 Day Cellar Ltd
Sort Code: 09-01-30
Account No: 10888924
[terms] =>
[payment_terms] => 14
[payment_terms_label] => Net 14
[custom_fields] => Array
(
[0] => Array
(
[field_id] => 499326000042690007
[customfield_id] => 499326000042690007
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 1
[label] => Automation Required
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[is_color_code_supported] =>
[api_name] => cf__ulrql_automation_required
[show_in_all_pdf] =>
[selected_option_id] => 499326000042690011
[value_formatted] => Yes
[search_entity] => salesorder
[data_type] => dropdown
[placeholder] => cf__ulrql_automation_required
[value] => Yes
[is_dependent_field] =>
)
[1] => Array
(
[field_id] => 499326000045601987
[customfield_id] => 499326000045601987
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 2
[label] => Payment Method
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_payment_method
[show_in_all_pdf] =>
[value_formatted] => Cash - Don't Leave
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_payment_method
[value] => Cash - Don't Leave
[is_dependent_field] =>
)
[2] => Array
(
[field_id] => 499326000046252173
[customfield_id] => 499326000046252173
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 3
[label] => Delivery Driver
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_driver
[show_in_all_pdf] =>
[value_formatted] => Lewis Newman
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_driver
[value] => Lewis Newman
[is_dependent_field] =>
)
[3] => Array
(
[field_id] => 499326000047922345
[customfield_id] => 499326000047922345
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 4
[label] => Run Number
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_run_number
[show_in_all_pdf] =>
[value_formatted] => 1
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_run_number
[value] => 1
[is_dependent_field] =>
)
)
[custom_field_hash] => Array
(
[cf__ulrql_automation_required] => Yes
[cf__ulrql_automation_required_unformatted] => Yes
[cf_payment_method] => Cash - Don't Leave
[cf_payment_method_unformatted] => Cash - Don't Leave
[cf_delivery_driver] => Lewis Newman
[cf_delivery_driver_unformatted] => Lewis Newman
[cf_run_number] => 1
[cf_run_number_unformatted] => 1
)
[template_id] => 499326000000000111
[template_name] => Standard Template
[page_width] => 8.27in
[page_height] => 11.69in
[orientation] => portrait
[template_type] => standard
[created_time] => 2025-09-21T13:51:28+0100
[last_modified_time] => 2025-09-21T13:53:25+0100
[created_by_id] => 499326000000047001
[created_date] => 2025-09-21
[last_modified_by_id] => 499326000044410001
[attachment_name] =>
[can_send_in_mail] =>
[salesperson_id] => 499326000026596043
[salesperson_name] => Alex Cullum
[merchant_id] =>
[merchant_name] =>
[pickup_location_id] =>
[discount] => 0
[discount_applied_on_amount] => 0
[is_adv_tracking_in_package] =>
[shipping_charge_taxes] => Array
(
)
[lock_details] => Array
(
[can_lock] =>
)
[locked_actions] => Array
(
)
[shipping_charge_tax_id] =>
[shipping_charge_tax_name] =>
[shipping_charge_tax_type] =>
[shipping_charge_tax_percentage] =>
[shipping_charge_tax_exemption_id] =>
[shipping_charge_tax_exemption_code] =>
[shipping_charge_tax] =>
[bcy_shipping_charge_tax] =>
[shipping_charge_exclusive_of_tax] => 0
[shipping_charge_inclusive_of_tax] => 0
[shipping_charge_tax_formatted] =>
[shipping_charge_exclusive_of_tax_formatted] => £0.00
[shipping_charge_inclusive_of_tax_formatted] => £0.00
[shipping_charge] => 0
[bcy_shipping_charge] => 0
[adjustment] => 0
[bcy_adjustment] => 0
[adjustment_description] => Adjustment
[roundoff_value] => 0
[transaction_rounding_type] => no_rounding
[rounding_mode] => round_half_up
[bcy_rounding_mode] => round_half_up
[sub_total] => 56.71
[bcy_sub_total] => 56.71
[sub_total_inclusive_of_tax] => 0
[sub_total_exclusive_of_discount] => 56.71
[discount_total] => 0
[bcy_discount_total] => 0
[discount_percent] => 0
[tax_total] => 11.34
[bcy_tax_total] => 11.34
[total] => 68.05
[computation_type] => basic
[bcy_total] => 68.05
[reverse_charge_tax_total] => 0
[taxes] => Array
(
[0] => Array
(
[tax_amount] => 11.34
[tax_name] => Standard Rate
[tax_amount_formatted] => £11.34
)
)
[tds_calculation_type] => tds_item_level
[packages] => Array
(
)
[so_cycle_preference] => Array
(
[is_feature_enabled] => 1
[socycle_status] => not_triggered
[can_create_invoice] => 1
[can_create_package] =>
[can_create_shipment] =>
[shipment_preference] => Array
(
[default_carrier] =>
[send_notification] =>
[deliver_shipments] =>
)
[invoice_preference] => Array
(
[mark_as_sent] =>
[record_payment] =>
[payment_mode_id] => 499326000000000199
[payment_account_id] => 499326000000000349
)
)
[invoices] => Array
(
)
[can_show_kit_return] =>
[is_kit_partial_return] =>
[salesreturns] => Array
(
)
[payments] => Array
(
)
[creditnotes] => Array
(
)
[refunds] => Array
(
)
[contact] => Array
(
[customer_balance] => 0
[credit_limit] => 0
[unused_customer_credits] => 120
[is_credit_limit_migration_completed] => 1
)
[balance] => 68.05
[approvers_list] => Array
(
)
[is_scheduled_for_quick_shipment_create] =>
)
)
Webhook - sourceUpdated script called at 2025-09-21 13:53:26
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048366237","salesorder_no":"SO-00444","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048366237","salesorder_no":"SO-00444","status":"open"}}
EXT ID: 499326000048366237
REF: SO-00444
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048366237 (REF SO-00444)
Updates pending to source for order: 499326000048366237
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-09-21 12:52:49.000Z,
source updated = 2025-09-21T13:53:25+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00444
Processing order: e07x02i943zvijz, ref SO-00444
Syncing SO-00444
Using default start and end times
Time window: 2025-09-21T06:00:00+01:00 - 2025-09-21T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 21/09/2025 13:53 - Local updated: 2025-09-21 12:52:00.000Z - Source updated: 2025-09-21 12:52:49.000Z
Changed? yes
Current MaxOptra status: ACCEPTED
Completed? no
Previous status: ALLOCATED
Status changed - mark for sync back to source
Is allocated? yes
MO delivery date: 2025-09-21, Local delivery date: 2025-09-21
Local updated: 2025-09-21 12:52:00.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Communication error with MaxOptra (412)
orders/SO-00444
https://7daycellar.maxoptra.com/api/v6/orders/SO-00444
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000021060132
Array
(
[referenceNumber] => 499326000021060132
[name] => Alex Cullum, The Old Rectory, Church Lane, Bristol
[address] => BS26 2QP
)
499326000021060132
Error updating SO-00444
Remote order is locked. Skipping.
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00444
Done all.
Finished at 2025-09-21 13:53:29
Webhook - sourceUpdated script called at 2025-09-21 13:53:57
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048366237","salesorder_no":"SO-00444","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048366237","salesorder_no":"SO-00444","status":"open"}}
EXT ID: 499326000048366237
REF: SO-00444
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048366237 (REF SO-00444)
Updates pending to source for order: 499326000048366237
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-09-21 12:52:49.000Z,
source updated = 2025-09-21T13:53:27+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00444
Processing order: e07x02i943zvijz, ref SO-00444
Syncing SO-00444
Using default start and end times
Time window: 2025-09-21T06:00:00+01:00 - 2025-09-21T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 21/09/2025 13:53 - Local updated: 2025-09-21 12:53:00.000Z - Source updated: 2025-09-21 12:52:49.000Z
Changed? yes
Current MaxOptra status: DRIVING
Completed? no
Previous status: ACCEPTED
Status changed - mark for sync back to source
Is allocated? yes
MO delivery date: 2025-09-21, Local delivery date: 2025-09-21
Local updated: 2025-09-21 12:53:00.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Communication error with MaxOptra (412)
orders/SO-00444
https://7daycellar.maxoptra.com/api/v6/orders/SO-00444
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000021060132
Array
(
[referenceNumber] => 499326000021060132
[name] => Alex Cullum, The Old Rectory, Church Lane, Bristol
[address] => BS26 2QP
)
499326000021060132
Error updating SO-00444
Remote order is locked. Skipping.
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00444
Done all.
Finished at 2025-09-21 13:53:59
Webhook - sourceUpdated script called at 2025-09-21 13:54:27
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048366237","salesorder_no":"SO-00444","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048366237","salesorder_no":"SO-00444","status":"open"}}
EXT ID: 499326000048366237
REF: SO-00444
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048366237 (REF SO-00444)
Updates pending to source for order: 499326000048366237
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-09-21 12:52:49.000Z,
source updated = 2025-09-21T13:53:57+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[notes] =>
[externalOrderId] => 499326000048366237
[refId] => SO-00444
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[title] => Alex Cullum
[deliveryStart] => 2025-09-21
[deliveryEnd] => 2025-09-21
[totalValue] => 68.05
[totalWeight] => 39
[syncInCreated] => 2025-09-21T13:51:28+0100
[syncInUpdated] => 2025-09-21T13:53:57+0100
[syncInStatus] => confirmed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048366243
[externalProductId] => 499326000000061016
[sku] => BB-BERR-30LK
[title] => Brue river Lager 30ltr
[notes] =>
[quantity] => 1
[weightKg] => 39
[weightTotal] => 39
[priceTotal] => 56.71
[price] => 56.71
)
)
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
[paymentMethod] => Cash - Don't Leave
)
Does this order already exist?
Yes
Existing custom fields: Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
Is array
Merging custom fields...
Order data prepared for sync: Array
(
[contactPhone] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[notes] =>
[externalOrderId] => 499326000048366237
[refId] => SO-00444
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[title] => Alex Cullum
[deliveryStart] => 2025-09-21
[deliveryEnd] => 2025-09-21
[totalValue] => 68.05
[totalWeight] => 39
[syncInCreated] => 2025-09-21T13:51:28+0100
[syncInUpdated] => 2025-09-21T13:53:57+0100
[syncInStatus] => confirmed
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
[paymentMethod] => Cash - Don't Leave
[syncOutUpdated] => 2025-09-21T13:54:28+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Alex Cullum
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => [{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"},{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"}]
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000021060129
Getting products
Updating product 499326000000061016
Updating order product 499326000048366243
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00444
Processing order: e07x02i943zvijz, ref SO-00444
Syncing SO-00444
Using default start and end times
Time window: 2025-09-21T06:00:00+01:00 - 2025-09-21T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 21/09/2025 13:54 - Local updated: 2025-09-21 12:54:28.000Z - Source updated: 2025-09-21 12:53:57.000Z
Changed? yes
Current MaxOptra status: COMPLETED
Completed? yes
Previous status: DRIVING
Status changed - mark for sync back to source
Updating local order POD and attachments...
Don't have local POD - fetching...
Updated POD
Getting attachments for SO-00444...
No new attachments found
Is allocated? yes
Local updated: 2025-09-21 12:54:28.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Communication error with MaxOptra (412)
orders/SO-00444
https://7daycellar.maxoptra.com/api/v6/orders/SO-00444
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000021060132
Array
(
[referenceNumber] => 499326000021060132
[name] => Alex Cullum, The Old Rectory, Church Lane, Bristol
[address] => BS26 2QP
)
499326000021060132
Error updating SO-00444
Remote order is locked. Skipping.
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00444
Done all.
Finished at 2025-09-21 13:54:29
Webhook - sourceUpdated script called at 2025-09-21 13:54:57
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048366237","salesorder_no":"SO-00444","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048366237","salesorder_no":"SO-00444","status":"open"}}
EXT ID: 499326000048366237
REF: SO-00444
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048366237 (REF SO-00444)
Updates pending to source for order: 499326000048366237
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-09-21 12:53:57.000Z,
source updated = 2025-09-21T13:54:27+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00444
Processing order: e07x02i943zvijz, ref SO-00444
Syncing SO-00444
Using default start and end times
Time window: 2025-09-21T06:00:00+01:00 - 2025-09-21T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 21/09/2025 13:54 - Local updated: 2025-09-21 12:54:00.000Z - Source updated: 2025-09-21 12:53:57.000Z
Changed? yes
Current MaxOptra status: COMPLETED
Completed? yes
Previous status: COMPLETED
Updating local order POD and attachments...
Already have POD
Getting attachments for SO-00444...
No new attachments found
Is allocated? yes
Local updated: 2025-09-21 12:54:00.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Communication error with MaxOptra (412)
orders/SO-00444
https://7daycellar.maxoptra.com/api/v6/orders/SO-00444
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000021060132
Array
(
[referenceNumber] => 499326000021060132
[name] => Alex Cullum, The Old Rectory, Church Lane, Bristol
[address] => BS26 2QP
)
499326000021060132
Error updating SO-00444
Remote order is locked. Skipping.
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00444
Done all.
Finished at 2025-09-21 13:54:59
Webhook - sourceUpdated script called at 2025-09-21 13:55:27
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048366237","salesorder_no":"SO-00444","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048366237","salesorder_no":"SO-00444","status":"open"}}
EXT ID: 499326000048366237
REF: SO-00444
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048366237 (REF SO-00444)
Local order updated = 2025-09-21 12:53:57.000Z,
source updated = 2025-09-21T13:54:57+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00444
Processing order: e07x02i943zvijz, ref SO-00444
Syncing SO-00444
Using default start and end times
Time window: 2025-09-21T06:00:00+01:00 - 2025-09-21T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 21/09/2025 13:54 - Local updated: 2025-09-21 12:54:00.000Z - Source updated: 2025-09-21 12:53:57.000Z
Changed? yes
Current MaxOptra status: COMPLETED
Completed? yes
Previous status: COMPLETED
Updating local order POD and attachments...
Already have POD
Getting attachments for SO-00444...
No new attachments found
Is allocated? yes
Local updated: 2025-09-21 12:54:00.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Communication error with MaxOptra (412)
orders/SO-00444
https://7daycellar.maxoptra.com/api/v6/orders/SO-00444
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000021060132
Array
(
[referenceNumber] => 499326000021060132
[name] => Alex Cullum, The Old Rectory, Church Lane, Bristol
[address] => BS26 2QP
)
499326000021060132
Error updating SO-00444
Remote order is locked. Skipping.
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00444
Done all.
Finished at 2025-09-21 13:55:29
Webhook - sourceUpdated script called at 2025-09-21 13:56:29
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048366237","salesorder_no":"SO-00444","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000048366237","salesorder_no":"SO-00444","status":"draft"}}
EXT ID: 499326000048366237
REF: SO-00444
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048366237 (REF SO-00444)
Local order updated = 2025-09-21 12:53:57.000Z,
source updated = 2025-09-21T13:54:57+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00444
Processing order: e07x02i943zvijz, ref SO-00444
Syncing SO-00444
Using default start and end times
Time window: 2025-09-21T06:00:00+01:00 - 2025-09-21T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 21/09/2025 13:54 - Local updated: 2025-09-21 12:54:00.000Z - Source updated: 2025-09-21 12:53:57.000Z
Changed? yes
Current MaxOptra status: COMPLETED
Completed? yes
Previous status: COMPLETED
Updating local order POD and attachments...
Already have POD
Getting attachments for SO-00444...
No new attachments found
Is allocated? yes
Local updated: 2025-09-21 12:54:00.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Communication error with MaxOptra (412)
orders/SO-00444
https://7daycellar.maxoptra.com/api/v6/orders/SO-00444
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000021060132
Array
(
[referenceNumber] => 499326000021060132
[name] => Alex Cullum, The Old Rectory, Church Lane, Bristol
[address] => BS26 2QP
)
499326000021060132
Error updating SO-00444
Remote order is locked. Skipping.
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00444
Done all.
Finished at 2025-09-21 13:56:31
Webhook - sourceUpdated script called at 2025-09-21 13:58:19
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048366237","salesorder_no":"SO-00444","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048366237","salesorder_no":"SO-00444","status":"open"}}
EXT ID: 499326000048366237
REF: SO-00444
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048366237 (REF SO-00444)
Local order updated = 2025-09-21 12:53:57.000Z,
source updated = 2025-09-21T13:54:57+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00444
Processing order: e07x02i943zvijz, ref SO-00444
Syncing SO-00444
Using default start and end times
Time window: 2025-09-21T06:00:00+01:00 - 2025-09-21T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 21/09/2025 13:54 - Local updated: 2025-09-21 12:54:00.000Z - Source updated: 2025-09-21 12:53:57.000Z
Changed? yes
Current MaxOptra status: COMPLETED
Completed? yes
Previous status: COMPLETED
Updating local order POD and attachments...
Already have POD
Getting attachments for SO-00444...
No new attachments found
Is allocated? yes
Local updated: 2025-09-21 12:54:00.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Communication error with MaxOptra (412)
orders/SO-00444
https://7daycellar.maxoptra.com/api/v6/orders/SO-00444
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000021060132
Array
(
[referenceNumber] => 499326000021060132
[name] => Alex Cullum, The Old Rectory, Church Lane, Bristol
[address] => BS26 2QP
)
499326000021060132
Error updating SO-00444
Remote order is locked. Skipping.
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00444
Done all.
Finished at 2025-09-21 13:58:21
Webhook - sourceUpdated script called at 2025-09-21 13:58:25
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048366237","salesorder_no":"SO-00444","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048366237","salesorder_no":"SO-00444","status":"open"}}
EXT ID: 499326000048366237
REF: SO-00444
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048366237 (REF SO-00444)
Local order updated = 2025-09-21 12:53:57.000Z,
source updated = 2025-09-21T13:54:57+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00444
Processing order: e07x02i943zvijz, ref SO-00444
Syncing SO-00444
Using default start and end times
Time window: 2025-09-21T06:00:00+01:00 - 2025-09-21T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 21/09/2025 13:54 - Local updated: 2025-09-21 12:54:00.000Z - Source updated: 2025-09-21 12:53:57.000Z
Changed? yes
Current MaxOptra status: COMPLETED
Completed? yes
Previous status: COMPLETED
Updating local order POD and attachments...
Already have POD
Getting attachments for SO-00444...
No new attachments found
Is allocated? yes
Local updated: 2025-09-21 12:54:00.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Webhook - sourceUpdated script called at 2025-09-21 13:58:26
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048366237","salesorder_no":"SO-00444","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048366237","salesorder_no":"SO-00444","status":"open"}}
EXT ID: 499326000048366237
REF: SO-00444
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Communication error with MaxOptra (412)
orders/SO-00444
https://7daycellar.maxoptra.com/api/v6/orders/SO-00444
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000021060132
Array
(
[referenceNumber] => 499326000021060132
[name] => Alex Cullum, The Old Rectory, Church Lane, Bristol
[address] => BS26 2QP
)
499326000021060132
Getting local orders...
Error updating SO-00444
Remote order is locked. Skipping.
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00444
Done all.
Finished at 2025-09-21 13:58:26
------------------------
Processing order 499326000048366237 (REF SO-00444)
Local order updated = 2025-09-21 12:53:57.000Z,
source updated = 2025-09-21T13:54:57+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00444
Processing order: e07x02i943zvijz, ref SO-00444
Syncing SO-00444
Using default start and end times
Time window: 2025-09-21T06:00:00+01:00 - 2025-09-21T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 21/09/2025 13:54 - Local updated: 2025-09-21 12:54:00.000Z - Source updated: 2025-09-21 12:53:57.000Z
Changed? yes
Current MaxOptra status: COMPLETED
Completed? yes
Previous status: COMPLETED
Updating local order POD and attachments...
Already have POD
Getting attachments for SO-00444...
No new attachments found
Is allocated? yes
Local updated: 2025-09-21 12:54:00.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Communication error with MaxOptra (412)
orders/SO-00444
https://7daycellar.maxoptra.com/api/v6/orders/SO-00444
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000021060132
Array
(
[referenceNumber] => 499326000021060132
[name] => Alex Cullum, The Old Rectory, Church Lane, Bristol
[address] => BS26 2QP
)
499326000021060132
Error updating SO-00444
Remote order is locked. Skipping.
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00444
Done all.
Finished at 2025-09-21 13:58:28
Webhook - sourceUpdated script called at 2025-09-21 18:19:52
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048306475","salesorder_no":"SO-00445","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000048306475","salesorder_no":"SO-00445","status":"draft"}}
EXT ID: 499326000048306475
REF: SO-00445
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048306475 (REF SO-00445)
Source order details: Array
(
[contactPhone] => 07811444718
[contactEmail] =>
[contactName] => Gina .
[notes] =>
[externalOrderId] => 499326000048306475
[refId] => SO-00445
[externalCustomerId] => 499326000046596019
[externalLocationId] => 499326000046596025
[title] => Bessell Scotts Barber Lounge
[deliveryStart] => 2025-09-22
[deliveryEnd] => 2025-09-22
[totalValue] => 680.38
[totalWeight] => 248
[syncInCreated] => 2025-09-21T18:19:40+0100
[syncInUpdated] => 2025-09-21T18:19:40+0100
[syncInStatus] => draft
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048306481
[externalProductId] => 499326000000062501
[sku] => ASHI-ASAH-50LK
[title] => Asahi 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 159.99
[price] => 159.99
)
[1] => Array
(
[externalOrderProductId] => 499326000048306483
[externalProductId] => 499326000000062762
[sku] => HUK-FOST-50LK
[title] => Fosters Lager 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 107
[price] => 107
)
[2] => Array
(
[externalOrderProductId] => 499326000048306485
[externalProductId] => 499326000000061313
[sku] => HUK-HEIN-50LK
[title] => Heineken Lager 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 140
[price] => 140
)
[3] => Array
(
[externalOrderProductId] => 499326000048306487
[externalProductId] => 499326000000061574
[sku] => DIAG-GUIN-50LK
[title] => Draught Guinness 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 159.99
[price] => 159.99
)
)
[deliveryName] => Bessell Scotts Barber Lounge
[deliveryStreet] => Unit 5, Long
[deliveryCity] => Cheswick
[deliveryCounty] =>
[deliveryPostcode] => BS16 1GU
)
Does this order already exist?
No
Order data prepared for sync: Array
(
[contactPhone] => 07811444718
[contactEmail] =>
[contactName] => Gina .
[notes] =>
[externalOrderId] => 499326000048306475
[refId] => SO-00445
[externalCustomerId] => 499326000046596019
[externalLocationId] => 499326000046596025
[title] => Bessell Scotts Barber Lounge
[deliveryStart] => 2025-09-22
[deliveryEnd] => 2025-09-22
[totalValue] => 680.38
[totalWeight] => 248
[syncInCreated] => 2025-09-21T18:19:40+0100
[syncInUpdated] => 2025-09-21T18:19:40+0100
[syncInStatus] => draft
[deliveryName] => Bessell Scotts Barber Lounge
[deliveryStreet] => Unit 5, Long
[deliveryCity] => Cheswick
[deliveryCounty] =>
[deliveryPostcode] => BS16 1GU
[syncOutUpdated] => 2025-09-21T18:19:52+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Gina .
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
New order
Marking order for sync with MaxOptra
Getting customer details
New customer 499326000046596019
Updating order contact details
Getting products
Creating product 499326000000062501
Creating new order product 499326000048306481
Updating product 499326000000062762
Creating new order product 499326000048306483
Creating product 499326000000061313
Creating new order product 499326000048306485
Updating product 499326000000061574
Creating new order product 499326000048306487
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00445
Processing order: isuim0o5pt0zyjp, ref SO-00445
Syncing SO-00445
Using default start and end times
Time window: 2025-09-22T06:00:00+01:00 - 2025-09-22T20:00:00+01:00
Found order in MaxOptra? no
Creating SO-00445
Done
Finished syncing to MaxOptra for order SO-00445
Done all.
Finished at 2025-09-21 18:19:54
Webhook - sourceUpdated script called at 2025-09-22 07:18:21
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048306475","salesorder_no":"SO-00445","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048306475","salesorder_no":"SO-00445","status":"invoiced"}}
EXT ID: 499326000048306475
REF: SO-00445
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048306475 (REF SO-00445)
Local order updated = 2025-09-21 17:19:40.000Z,
source updated = 2025-09-22T07:18:18+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] => 07811444718
[contactEmail] =>
[contactName] => Gina .
[notes] =>
[externalOrderId] => 499326000048306475
[refId] => SO-00445
[externalCustomerId] => 499326000046596019
[externalLocationId] => 499326000046596025
[title] => Bessell Scotts Barber Lounge
[deliveryStart] => 2025-09-22
[deliveryEnd] => 2025-09-22
[totalValue] => 680.38
[totalWeight] => 248
[syncInCreated] => 2025-09-21T18:19:40+0100
[syncInUpdated] => 2025-09-22T07:18:18+0100
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048306481
[externalProductId] => 499326000000062501
[sku] => ASHI-ASAH-50LK
[title] => Asahi 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 159.99
[price] => 159.99
)
[1] => Array
(
[externalOrderProductId] => 499326000048306483
[externalProductId] => 499326000000062762
[sku] => HUK-FOST-50LK
[title] => Fosters Lager 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 107
[price] => 107
)
[2] => Array
(
[externalOrderProductId] => 499326000048306485
[externalProductId] => 499326000000061313
[sku] => HUK-HEIN-50LK
[title] => Heineken Lager 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 140
[price] => 140
)
[3] => Array
(
[externalOrderProductId] => 499326000048306487
[externalProductId] => 499326000000061574
[sku] => DIAG-GUIN-50LK
[title] => Draught Guinness 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 159.99
[price] => 159.99
)
)
[deliveryName] => Bessell Scotts Barber Lounge
[deliveryStreet] => Unit 5, Long
[deliveryCity] => Cheswick
[deliveryCounty] =>
[deliveryPostcode] => BS16 1GU
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] => 07811444718
[contactEmail] =>
[contactName] => Gina .
[notes] =>
[externalOrderId] => 499326000048306475
[refId] => SO-00445
[externalCustomerId] => 499326000046596019
[externalLocationId] => 499326000046596025
[title] => Bessell Scotts Barber Lounge
[deliveryStart] => 2025-09-22
[deliveryEnd] => 2025-09-22
[totalValue] => 680.38
[totalWeight] => 248
[syncInCreated] => 2025-09-21T18:19:40+0100
[syncInUpdated] => 2025-09-22T07:18:18+0100
[syncInStatus] => closed
[deliveryName] => Bessell Scotts Barber Lounge
[deliveryStreet] => Unit 5, Long
[deliveryCity] => Cheswick
[deliveryCounty] =>
[deliveryPostcode] => BS16 1GU
[syncOutUpdated] => 2025-09-22T07:18:22+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Gina .
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
2025-08-11 11:45:43.000Z != 2025-09-21T18:39:55+0100
Customer changed - updating 499326000046596019
Updating order contact details
Getting products
Updating product 499326000000062501
Updating order product 499326000048306481
Updated
Updating product 499326000000062762
Updating order product 499326000048306483
Updated
Updating product 499326000000061313
Updating order product 499326000048306485
Updated
Updating product 499326000000061574
Updating order product 499326000048306487
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00445
Processing order: isuim0o5pt0zyjp, ref SO-00445
Syncing SO-00445
Using default start and end times
Time window: 2025-09-22T06:00:00+01:00 - 2025-09-22T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 21/09/2025 18:19 - Local updated: 2025-09-22 06:18:22.000Z - Source updated: 2025-09-22 06:18:18.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status:
Status changed - mark for sync back to source
Is allocated? no
Local updated: 2025-09-22 06:18:22.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000046596025
Array
(
[referenceNumber] => 499326000046596025
[name] => Bessell Scotts Barber Lounge, Unit 5, Long, Cheswick
[address] => BS16 1GU
)
499326000046596025
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00445
Done all.
Finished at 2025-09-22 07:18:23
Webhook - sourceUpdated script called at 2025-09-22 07:18:52
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048306475","salesorder_no":"SO-00445","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048306475","salesorder_no":"SO-00445","status":"invoiced"}}
EXT ID: 499326000048306475
REF: SO-00445
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048306475 (REF SO-00445)
Updates pending to source for order: 499326000048306475
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-09-22 06:18:18.000Z,
source updated = 2025-09-22T07:18:18+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00445
Processing order: isuim0o5pt0zyjp, ref SO-00445
Syncing SO-00445
Using default start and end times
Time window: 2025-09-22T06:00:00+01:00 - 2025-09-22T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 22/09/2025 07:18 - Local updated: 2025-09-21 17:19:00.000Z - Source updated: 2025-09-22 06:18:18.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-09-21 17:19:00.000Z
Pending updates to MaxOptra? no
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00445
Done all.
Finished at 2025-09-22 07:18:54
Webhook - sourceUpdated script called at 2025-09-22 07:19:24
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048306475","salesorder_no":"SO-00445","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048306475","salesorder_no":"SO-00445","status":"invoiced"}}
EXT ID: 499326000048306475
REF: SO-00445
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048306475 (REF SO-00445)
Local order updated = 2025-09-22 06:18:18.000Z,
source updated = 2025-09-22T07:18:53+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00445
Processing order: isuim0o5pt0zyjp, ref SO-00445
Syncing SO-00445
Using default start and end times
Time window: 2025-09-22T06:00:00+01:00 - 2025-09-22T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 22/09/2025 07:18 - Local updated: 2025-09-22 06:18:00.000Z - Source updated: 2025-09-22 06:18:18.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00445
Done all.
Finished at 2025-09-22 07:19:25
Webhook - sourceUpdated script called at 2025-09-22 07:23:14
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048306475","salesorder_no":"SO-00445","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048306475","salesorder_no":"SO-00445","status":"open"}}
EXT ID: 499326000048306475
REF: SO-00445
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048306475 (REF SO-00445)
Local order updated = 2025-09-22 06:18:18.000Z,
source updated = 2025-09-22T07:18:53+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00445
Processing order: isuim0o5pt0zyjp, ref SO-00445
Syncing SO-00445
Using default start and end times
Time window: 2025-09-22T06:00:00+01:00 - 2025-09-22T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 22/09/2025 07:18 - Local updated: 2025-09-22 06:18:00.000Z - Source updated: 2025-09-22 06:18:18.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00445
Done all.
Finished at 2025-09-22 07:23:15
Webhook - sourceUpdated script called at 2025-09-22 16:12:37
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048366404","salesorder_no":"SO-00446","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000048366404","salesorder_no":"SO-00446","status":"draft"}}
EXT ID: 499326000048366404
REF: SO-00446
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048366404 (REF SO-00446)
Source order details: Array
(
[contactPhone] => 07966066702
[contactEmail] => a.bidmead@yahoo.com
[contactName] => Andrew Bidmead
[notes] =>
[externalOrderId] => 499326000048366404
[refId] => SO-00446
[externalCustomerId] => 499326000000418845
[externalLocationId] => 499326000000418848
[title] => Fork 'N' Ale Taproom (WSM)
[deliveryStart] => 2025-09-24
[deliveryEnd] => 2025-09-24
[totalValue] => 191.98
[totalWeight] => 102
[syncInCreated] => 2025-09-22T16:12:27+0100
[syncInUpdated] => 2025-09-22T16:12:27+0100
[syncInStatus] => draft
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048366410
[externalProductId] => 499326000045856070
[sku] =>
[title] => Harding's POS Package
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
[1] => Array
(
[externalOrderProductId] => 499326000048366412
[externalProductId] => 499326000021043786
[sku] => BB-HSBT-9G
[title] => Hardings Best 4.2% (9g)
[notes] =>
[quantity] => 2
[weightKg] => 51
[weightTotal] => 102
[priceTotal] => 159.98
[price] => 79.99
)
)
[deliveryName] => Fork 'N' Ale Taproom (WSM)
[deliveryStreet] => 18 Walliscote Rd
[deliveryCity] => Somerset
[deliveryCounty] =>
[deliveryPostcode] => BS23 1UG
)
Does this order already exist?
No
Order data prepared for sync: Array
(
[contactPhone] => 07966066702
[contactEmail] => a.bidmead@yahoo.com
[contactName] => Andrew Bidmead
[notes] =>
[externalOrderId] => 499326000048366404
[refId] => SO-00446
[externalCustomerId] => 499326000000418845
[externalLocationId] => 499326000000418848
[title] => Fork 'N' Ale Taproom (WSM)
[deliveryStart] => 2025-09-24
[deliveryEnd] => 2025-09-24
[totalValue] => 191.98
[totalWeight] => 102
[syncInCreated] => 2025-09-22T16:12:27+0100
[syncInUpdated] => 2025-09-22T16:12:27+0100
[syncInStatus] => draft
[deliveryName] => Fork 'N' Ale Taproom (WSM)
[deliveryStreet] => 18 Walliscote Rd
[deliveryCity] => Somerset
[deliveryCounty] =>
[deliveryPostcode] => BS23 1UG
[syncOutUpdated] => 2025-09-22T16:12:39+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Andrew Bidmead
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
New order
Marking order for sync with MaxOptra
Getting customer details
New customer 499326000000418845
Updating order contact details
Getting products
Creating product 499326000045856070
Creating new order product 499326000048366410
Updating product 499326000021043786
Creating new order product 499326000048366412
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00446
Processing order: q95nsbovefnbwcs, ref SO-00446
Syncing SO-00446
Using default start and end times
Time window: 2025-09-24T06:00:00+01:00 - 2025-09-24T20:00:00+01:00
Found order in MaxOptra? no
Creating SO-00446
Done
Finished syncing to MaxOptra for order SO-00446
Done all.
Finished at 2025-09-22 16:12:40
Webhook - sourceUpdated script called at 2025-09-23 08:51:05
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048366404","salesorder_no":"SO-00446","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048366404","salesorder_no":"SO-00446","status":"open"}}
EXT ID: 499326000048366404
REF: SO-00446
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048366404 (REF SO-00446)
Local order updated = 2025-09-22 15:12:27.000Z,
source updated = 2025-09-23T08:50:43+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] => 07966066702
[contactEmail] => a.bidmead@yahoo.com
[contactName] => Andrew Bidmead
[notes] =>
[externalOrderId] => 499326000048366404
[refId] => SO-00446
[externalCustomerId] => 499326000000418845
[externalLocationId] => 499326000000418848
[title] => Fork 'N' Ale Taproom (WSM)
[deliveryStart] => 2025-09-24
[deliveryEnd] => 2025-09-24
[totalValue] => 191.98
[totalWeight] => 102
[syncInCreated] => 2025-09-22T16:12:27+0100
[syncInUpdated] => 2025-09-23T08:50:43+0100
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048366410
[externalProductId] => 499326000045856070
[sku] =>
[title] => Harding's POS Package
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
[1] => Array
(
[externalOrderProductId] => 499326000048366412
[externalProductId] => 499326000021043786
[sku] => BB-HSBT-9G
[title] => Hardings Best 4.2% (9g)
[notes] =>
[quantity] => 2
[weightKg] => 51
[weightTotal] => 102
[priceTotal] => 159.98
[price] => 79.99
)
)
[deliveryName] => Fork 'N' Ale Taproom (WSM)
[deliveryStreet] => 18 Walliscote Rd
[deliveryCity] => Somerset
[deliveryCounty] =>
[deliveryPostcode] => BS23 1UG
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] => 07966066702
[contactEmail] => a.bidmead@yahoo.com
[contactName] => Andrew Bidmead
[notes] =>
[externalOrderId] => 499326000048366404
[refId] => SO-00446
[externalCustomerId] => 499326000000418845
[externalLocationId] => 499326000000418848
[title] => Fork 'N' Ale Taproom (WSM)
[deliveryStart] => 2025-09-24
[deliveryEnd] => 2025-09-24
[totalValue] => 191.98
[totalWeight] => 102
[syncInCreated] => 2025-09-22T16:12:27+0100
[syncInUpdated] => 2025-09-23T08:50:43+0100
[syncInStatus] => closed
[deliveryName] => Fork 'N' Ale Taproom (WSM)
[deliveryStreet] => 18 Walliscote Rd
[deliveryCity] => Somerset
[deliveryCounty] =>
[deliveryPostcode] => BS23 1UG
[syncOutUpdated] => 2025-09-23T08:51:06+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Andrew Bidmead
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000000418845
Getting products
Updating product 499326000045856070
Updating order product 499326000048366410
Updated
Updating product 499326000021043786
Updating order product 499326000048366412
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00446
Processing order: q95nsbovefnbwcs, ref SO-00446
Syncing SO-00446
Using default start and end times
Time window: 2025-09-24T06:00:00+01:00 - 2025-09-24T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 22/09/2025 16:12 - Local updated: 2025-09-23 07:51:06.000Z - Source updated: 2025-09-23 07:50:43.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status:
Status changed - mark for sync back to source
Is allocated? no
Local updated: 2025-09-23 07:51:06.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000000418848
Array
(
[referenceNumber] => 499326000000418848
[name] => Fork 'N' Ale Taproom (WSM), 18 Walliscote Rd, Somerset
[address] => BS23 1UG
)
499326000000418848
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00446
Done all.
Finished at 2025-09-23 08:51:07
Webhook - sourceUpdated script called at 2025-09-23 08:51:35
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048366404","salesorder_no":"SO-00446","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048366404","salesorder_no":"SO-00446","status":"invoiced"}}
EXT ID: 499326000048366404
REF: SO-00446
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048366404 (REF SO-00446)
Updates pending to source for order: 499326000048366404
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-09-23 07:50:43.000Z,
source updated = 2025-09-23T08:50:43+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00446
Processing order: q95nsbovefnbwcs, ref SO-00446
Syncing SO-00446
Using default start and end times
Time window: 2025-09-24T06:00:00+01:00 - 2025-09-24T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 23/09/2025 08:51 - Local updated: 2025-09-22 15:12:00.000Z - Source updated: 2025-09-23 07:50:43.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-09-22 15:12:00.000Z
Pending updates to MaxOptra? no
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00446
Done all.
Finished at 2025-09-23 08:51:37
Webhook - sourceUpdated script called at 2025-09-23 08:52:06
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048366404","salesorder_no":"SO-00446","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048366404","salesorder_no":"SO-00446","status":"invoiced"}}
EXT ID: 499326000048366404
REF: SO-00446
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048366404 (REF SO-00446)
Local order updated = 2025-09-23 07:50:43.000Z,
source updated = 2025-09-23T08:51:36+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00446
Processing order: q95nsbovefnbwcs, ref SO-00446
Syncing SO-00446
Using default start and end times
Time window: 2025-09-24T06:00:00+01:00 - 2025-09-24T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 23/09/2025 08:51 - Local updated: 2025-09-23 07:51:00.000Z - Source updated: 2025-09-23 07:50:43.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00446
Done all.
Finished at 2025-09-23 08:52:07
Webhook - sourceUpdated script called at 2025-09-23 08:52:37
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048366404","salesorder_no":"SO-00446","status":"partially_invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048366404","salesorder_no":"SO-00446","status":"partially_invoiced"}}
EXT ID: 499326000048366404
REF: SO-00446
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048366404 (REF SO-00446)
Local order updated = 2025-09-23 07:50:43.000Z,
source updated = 2025-09-23T08:52:06+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] => 07966066702
[contactEmail] => a.bidmead@yahoo.com
[contactName] => Andrew Bidmead
[notes] =>
[externalOrderId] => 499326000048366404
[refId] => SO-00446
[externalCustomerId] => 499326000000418845
[externalLocationId] => 499326000000418848
[title] => Fork 'N' Ale Taproom (WSM)
[deliveryStart] => 2025-09-24
[deliveryEnd] => 2025-09-24
[totalValue] => 191.98
[totalWeight] => 102
[syncInCreated] => 2025-09-22T16:12:27+0100
[syncInUpdated] => 2025-09-23T08:52:06+0100
[syncInStatus] => confirmed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048366410
[externalProductId] => 499326000045856070
[sku] =>
[title] => Harding's POS Package
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
[1] => Array
(
[externalOrderProductId] => 499326000048366412
[externalProductId] => 499326000021043786
[sku] => BB-HSBT-9G
[title] => Hardings Best 4.2% (9g)
[notes] =>
[quantity] => 2
[weightKg] => 51
[weightTotal] => 102
[priceTotal] => 159.98
[price] => 79.99
)
)
[deliveryName] => Fork 'N' Ale Taproom (WSM)
[deliveryStreet] => 18 Walliscote Rd
[deliveryCity] => Somerset
[deliveryCounty] =>
[deliveryPostcode] => BS23 1UG
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] => 07966066702
[contactEmail] => a.bidmead@yahoo.com
[contactName] => Andrew Bidmead
[notes] =>
[externalOrderId] => 499326000048366404
[refId] => SO-00446
[externalCustomerId] => 499326000000418845
[externalLocationId] => 499326000000418848
[title] => Fork 'N' Ale Taproom (WSM)
[deliveryStart] => 2025-09-24
[deliveryEnd] => 2025-09-24
[totalValue] => 191.98
[totalWeight] => 102
[syncInCreated] => 2025-09-22T16:12:27+0100
[syncInUpdated] => 2025-09-23T08:52:06+0100
[syncInStatus] => confirmed
[deliveryName] => Fork 'N' Ale Taproom (WSM)
[deliveryStreet] => 18 Walliscote Rd
[deliveryCity] => Somerset
[deliveryCounty] =>
[deliveryPostcode] => BS23 1UG
[syncOutUpdated] => 2025-09-23T08:52:37+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Andrew Bidmead
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000000418845
Getting products
Updating product 499326000045856070
Updating order product 499326000048366410
Updated
Updating product 499326000021043786
Updating order product 499326000048366412
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00446
Processing order: q95nsbovefnbwcs, ref SO-00446
Syncing SO-00446
Using default start and end times
Time window: 2025-09-24T06:00:00+01:00 - 2025-09-24T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 23/09/2025 08:51 - Local updated: 2025-09-23 07:52:37.000Z - Source updated: 2025-09-23 07:52:06.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-09-23 07:52:37.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000000418848
Array
(
[referenceNumber] => 499326000000418848
[name] => Fork 'N' Ale Taproom (WSM), 18 Walliscote Rd, Somerset
[address] => BS23 1UG
)
499326000000418848
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00446
Done all.
Finished at 2025-09-23 08:52:39
Webhook - sourceUpdated script called at 2025-09-23 08:55:44
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048366404","salesorder_no":"SO-00446","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048366404","salesorder_no":"SO-00446","status":"invoiced"}}
EXT ID: 499326000048366404
REF: SO-00446
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048366404 (REF SO-00446)
Local order updated = 2025-09-23 07:52:06.000Z,
source updated = 2025-09-23T08:52:06+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00446
Processing order: q95nsbovefnbwcs, ref SO-00446
Syncing SO-00446
Using default start and end times
Time window: 2025-09-24T06:00:00+01:00 - 2025-09-24T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 23/09/2025 08:52 - Local updated: 2025-09-23 07:51:00.000Z - Source updated: 2025-09-23 07:52:06.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00446
Done all.
Finished at 2025-09-23 08:55:45
Webhook - sourceUpdated script called at 2025-09-23 09:43:15
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048447009","salesorder_no":"SO-00447","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000048447009","salesorder_no":"SO-00447","status":"draft"}}
EXT ID: 499326000048447009
REF: SO-00447
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048447009 (REF SO-00447)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[contactName] => Wayne Hadley
[notes] =>
[externalOrderId] => 499326000048447009
[refId] => SO-00447
[externalCustomerId] => 499326000046966136
[externalLocationId] => 499326000046966140
[title] => Concierge Events
[deliveryStart] => 2025-09-23
[deliveryEnd] => 2025-09-23
[totalValue] => 156
[totalWeight] => 62
[syncInCreated] => 2025-09-23T09:42:59+0100
[syncInUpdated] => 2025-09-23T09:42:59+0100
[syncInStatus] => draft
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048447015
[externalProductId] => 499326000000061367
[sku] => BBG-SNML-50LK
[title] => San Miguel 11G
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 130
[price] => 130
)
)
[deliveryName] => Concierge Events
[deliveryStreet] => Worle Football Club
[deliveryCity] => Worle
[deliveryCounty] =>
[deliveryPostcode] => BS22 6AH
)
Does this order already exist?
No
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[contactName] => Wayne Hadley
[notes] =>
[externalOrderId] => 499326000048447009
[refId] => SO-00447
[externalCustomerId] => 499326000046966136
[externalLocationId] => 499326000046966140
[title] => Concierge Events
[deliveryStart] => 2025-09-23
[deliveryEnd] => 2025-09-23
[totalValue] => 156
[totalWeight] => 62
[syncInCreated] => 2025-09-23T09:42:59+0100
[syncInUpdated] => 2025-09-23T09:42:59+0100
[syncInStatus] => draft
[deliveryName] => Concierge Events
[deliveryStreet] => Worle Football Club
[deliveryCity] => Worle
[deliveryCounty] =>
[deliveryPostcode] => BS22 6AH
[syncOutUpdated] => 2025-09-23T09:43:15+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Wayne Hadley
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
New order
Marking order for sync with MaxOptra
Getting customer details
2025-09-08 07:44:30.000Z != 2025-09-11T11:12:10+0100
Customer changed - updating 499326000046966136
Updating order contact details
Getting products
Updating product 499326000000061367
Creating new order product 499326000048447015
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00447
Processing order: bgsh19d9x095gfv, ref SO-00447
Syncing SO-00447
Using default start and end times
Time window: 2025-09-23T06:00:00+01:00 - 2025-09-23T20:00:00+01:00
Found order in MaxOptra? no
Creating SO-00447
Done
Finished syncing to MaxOptra for order SO-00447
Done all.
Finished at 2025-09-23 09:43:16
Webhook - sourceUpdated script called at 2025-09-23 09:49:54
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048443014","salesorder_no":"SO-00448","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000048443014","salesorder_no":"SO-00448","status":"draft"}}
EXT ID: 499326000048443014
REF: SO-00448
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048443014 (REF SO-00448)
Source order details: Array
(
[contactPhone] => 07412708077
[contactEmail] =>
[contactName] => Mike .
[notes] =>
[externalOrderId] => 499326000048443014
[refId] => SO-00448
[externalCustomerId] => 499326000048038117
[externalLocationId] => 499326000048038123
[title] => London Inn (Bedminster)
[deliveryStart] => 2025-09-23
[deliveryEnd] => 2025-09-23
[totalValue] => 536.4
[totalWeight] => 242
[syncInCreated] => 2025-09-23T09:49:36+0100
[syncInUpdated] => 2025-09-23T09:49:36+0100
[syncInStatus] => draft
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048443020
[externalProductId] => 499326000000062762
[sku] => HUK-FOST-50LK
[title] => Fosters Lager 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 105
[price] => 105
)
[1] => Array
(
[externalOrderProductId] => 499326000048443022
[externalProductId] => 499326000000061736
[sku] => MCBC-CARL-50LK
[title] => Carling lager 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 124
[price] => 124
)
[2] => Array
(
[externalOrderProductId] => 499326000048443024
[externalProductId] => 499326000000061385
[sku] => BBG-SAAS-10GK
[title] => Stella Artois 4.6% 10g
[notes] =>
[quantity] => 1
[weightKg] => 56
[weightTotal] => 56
[priceTotal] => 109
[price] => 109
)
[3] => Array
(
[externalOrderProductId] => 499326000048443026
[externalProductId] => 499326000000061295
[sku] => CBBC-CEBT-50LK
[title] => Courage Best Bitter 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 109
[price] => 109
)
)
[deliveryName] => London Inn (Bedminster)
[deliveryStreet] => 1 Cannon Street
[deliveryCity] => Bedminster
[deliveryCounty] =>
[deliveryPostcode] => BS3 1BH
)
Does this order already exist?
No
Order data prepared for sync: Array
(
[contactPhone] => 07412708077
[contactEmail] =>
[contactName] => Mike .
[notes] =>
[externalOrderId] => 499326000048443014
[refId] => SO-00448
[externalCustomerId] => 499326000048038117
[externalLocationId] => 499326000048038123
[title] => London Inn (Bedminster)
[deliveryStart] => 2025-09-23
[deliveryEnd] => 2025-09-23
[totalValue] => 536.4
[totalWeight] => 242
[syncInCreated] => 2025-09-23T09:49:36+0100
[syncInUpdated] => 2025-09-23T09:49:36+0100
[syncInStatus] => draft
[deliveryName] => London Inn (Bedminster)
[deliveryStreet] => 1 Cannon Street
[deliveryCity] => Bedminster
[deliveryCounty] =>
[deliveryPostcode] => BS3 1BH
[syncOutUpdated] => 2025-09-23T09:49:54+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Mike .
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
New order
Marking order for sync with MaxOptra
Getting customer details
Customer exists and has not changed (skipping): 499326000048038117
Updating order contact details
Getting products
Updating product 499326000000062762
Creating new order product 499326000048443020
Updating product 499326000000061736
Creating new order product 499326000048443022
Updating product 499326000000061385
Creating new order product 499326000048443024
Creating product 499326000000061295
Creating new order product 499326000048443026
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00448
Processing order: 5w9woivkvpoeh7m, ref SO-00448
Syncing SO-00448
Using default start and end times
Time window: 2025-09-23T06:00:00+01:00 - 2025-09-23T20:00:00+01:00
Found order in MaxOptra? no
Creating SO-00448
Done
Finished syncing to MaxOptra for order SO-00448
Done all.
Finished at 2025-09-23 09:49:55
Webhook - sourceUpdated script called at 2025-09-23 10:53:18
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048462031","salesorder_no":"SO-00449","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000048462031","salesorder_no":"SO-00449","status":"draft"}}
EXT ID: 499326000048462031
REF: SO-00449
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048462031 (REF SO-00449)
Source order details: Array
(
[contactPhone] => 07738212829
[contactEmail] => john@thenewmartlet.co.uk
[contactName] => John Sprackman
[notes] =>
[externalOrderId] => 499326000048462031
[refId] => SO-00449
[externalCustomerId] => 499326000046734150
[externalLocationId] => 499326000046734152
[title] => Martlet Inn
[deliveryStart] => 2025-09-24
[deliveryEnd] => 2025-09-24
[totalValue] => 789.34
[totalWeight] => 186
[syncInCreated] => 2025-09-23T10:53:14+0100
[syncInUpdated] => 2025-09-23T10:53:14+0100
[syncInStatus] => draft
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048462037
[externalProductId] => 499326000047238112
[sku] =>
[title] => Mahou 4.8% 50L
[notes] =>
[quantity] => 2
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 290
[price] => 145
)
[1] => Array
(
[externalOrderProductId] => 499326000048462039
[externalProductId] => 499326000000061277
[sku] => CBBC-CARL-50LK
[title] => Carlsberg lager 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 74.97
[price] => 74.97
)
[2] => Array
(
[externalOrderProductId] => 499326000048462041
[externalProductId] => 499326000000061367
[sku] => BBG-SNML-50LK
[title] => San Miguel 11G
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 120
[price] => 120
)
[3] => Array
(
[externalOrderProductId] => 499326000048462043
[externalProductId] => 499326000000063923
[sku] => TTCG-GOLD-50LK
[title] => Thatcher's Gold Cider 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 94.81
[price] => 94.81
)
[4] => Array
(
[externalOrderProductId] => 499326000048462045
[externalProductId] => 499326000043516456
[sku] =>
[title] => Harding's Golden Ale 4.2%
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 78
[price] => 78
)
[5] => Array
(
[externalOrderProductId] => 499326000048462047
[externalProductId] => 499326000045233771
[sku] =>
[title] => POS Hardings Golden Ale Pump Clip
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
[6] => Array
(
[externalOrderProductId] => 499326000048462049
[externalProductId] => 499326000045856040
[sku] =>
[title] => POS Hardings Glasses x 6
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
[7] => Array
(
[externalOrderProductId] => 499326000048462051
[externalProductId] => 499326000039264191
[sku] =>
[title] => POS Carlsberg Half Pint Glasses - 12
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
)
[deliveryName] => Martlet Inn
[deliveryStreet] => Langford Budville
[deliveryCity] => Wellington
[deliveryCounty] =>
[deliveryPostcode] => TA21 0QZ
)
Does this order already exist?
No
Order data prepared for sync: Array
(
[contactPhone] => 07738212829
[contactEmail] => john@thenewmartlet.co.uk
[contactName] => John Sprackman
[notes] =>
[externalOrderId] => 499326000048462031
[refId] => SO-00449
[externalCustomerId] => 499326000046734150
[externalLocationId] => 499326000046734152
[title] => Martlet Inn
[deliveryStart] => 2025-09-24
[deliveryEnd] => 2025-09-24
[totalValue] => 789.34
[totalWeight] => 186
[syncInCreated] => 2025-09-23T10:53:14+0100
[syncInUpdated] => 2025-09-23T10:53:14+0100
[syncInStatus] => draft
[deliveryName] => Martlet Inn
[deliveryStreet] => Langford Budville
[deliveryCity] => Wellington
[deliveryCounty] =>
[deliveryPostcode] => TA21 0QZ
[syncOutUpdated] => 2025-09-23T10:53:19+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => John Sprackman
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
New order
Marking order for sync with MaxOptra
Getting customer details
New customer 499326000046734150
Updating order contact details
Getting products
Creating product 499326000047238112
Creating new order product 499326000048462037
Updating product 499326000000061277
Creating new order product 499326000048462039
Updating product 499326000000061367
Creating new order product 499326000048462041
Updating product 499326000000063923
Creating new order product 499326000048462043
Updating product 499326000043516456
Creating new order product 499326000048462045
Updating product 499326000045233771
Creating new order product 499326000048462047
Updating product 499326000045856040
Creating new order product 499326000048462049
Creating product 499326000039264191
Creating new order product 499326000048462051
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00449
Processing order: poyqw8ro1dci47n, ref SO-00449
Syncing SO-00449
Using default start and end times
Time window: 2025-09-24T06:00:00+01:00 - 2025-09-24T20:00:00+01:00
Found order in MaxOptra? no
Creating SO-00449
Done
Finished syncing to MaxOptra for order SO-00449
Done all.
Finished at 2025-09-23 10:53:21
Webhook - sourceUpdated script called at 2025-09-23 11:11:53
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048460069","salesorder_no":"SO-00450","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000048460069","salesorder_no":"SO-00450","status":"draft"}}
EXT ID: 499326000048460069
REF: SO-00450
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048460069 (REF SO-00450)
Source order details: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => Serena Cheryl
[notes] =>
[externalOrderId] => 499326000048460069
[refId] => SO-00450
[externalCustomerId] => 499326000047000146
[externalLocationId] => 499326000047000152
[title] => New Inn (Taunton)
[deliveryStart] => 2025-09-23
[deliveryEnd] => 2025-09-23
[totalValue] => 93.6
[totalWeight] => 0
[syncInCreated] => 2025-09-23T11:11:46+0100
[syncInUpdated] => 2025-09-23T11:11:46+0100
[syncInStatus] => draft
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048460075
[externalProductId] => 499326000043516456
[sku] =>
[title] => Harding's Golden Ale 4.2%
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 78
[price] => 78
)
[1] => Array
(
[externalOrderProductId] => 499326000048460077
[externalProductId] => 499326000021043887
[sku] =>
[title] => Collection of empties
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
)
[deliveryName] => New Inn (Taunton)
[deliveryStreet] => Halse
[deliveryCity] =>
[deliveryCounty] =>
[deliveryPostcode] => TA4 3AF
)
Does this order already exist?
No
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => Serena Cheryl
[notes] =>
[externalOrderId] => 499326000048460069
[refId] => SO-00450
[externalCustomerId] => 499326000047000146
[externalLocationId] => 499326000047000152
[title] => New Inn (Taunton)
[deliveryStart] => 2025-09-23
[deliveryEnd] => 2025-09-23
[totalValue] => 93.6
[totalWeight] => 0
[syncInCreated] => 2025-09-23T11:11:46+0100
[syncInUpdated] => 2025-09-23T11:11:46+0100
[syncInStatus] => draft
[deliveryName] => New Inn (Taunton)
[deliveryStreet] => Halse
[deliveryCity] =>
[deliveryCounty] =>
[deliveryPostcode] => TA4 3AF
[syncOutUpdated] => 2025-09-23T11:11:54+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Serena Cheryl
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
New order
Marking order for sync with MaxOptra
Getting customer details
2025-08-20 12:43:08.000Z != 2025-08-26T01:45:43+0100
Customer changed - updating 499326000047000146
Updating order contact details
Getting products
Updating product 499326000043516456
Creating new order product 499326000048460075
Updating product 499326000021043887
Creating new order product 499326000048460077
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00450
Processing order: 3fbo4wtjk5vfnp3, ref SO-00450
Syncing SO-00450
Using default start and end times
Time window: 2025-09-23T06:00:00+01:00 - 2025-09-23T20:00:00+01:00
Found order in MaxOptra? no
Creating SO-00450
Done
Finished syncing to MaxOptra for order SO-00450
Done all.
Finished at 2025-09-23 11:11:55
Webhook - sourceUpdated script called at 2025-09-23 11:12:23
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048460069","salesorder_no":"SO-00450","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000048460069","salesorder_no":"SO-00450","status":"draft"}}
EXT ID: 499326000048460069
REF: SO-00450
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048460069 (REF SO-00450)
Local order updated = 2025-09-23 10:11:46.000Z,
source updated = 2025-09-23T11:12:07+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00450
Processing order: 3fbo4wtjk5vfnp3, ref SO-00450
Syncing SO-00450
Using default start and end times
Time window: 2025-09-23T06:00:00+01:00 - 2025-09-23T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 23/09/2025 11:11 - Local updated: 2025-09-23 10:11:55.000Z - Source updated: 2025-09-23 10:11:46.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status:
Status changed - mark for sync back to source
Is allocated? no
Local updated: 2025-09-23 10:11:55.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000047000152
Array
(
[referenceNumber] => 499326000047000152
[name] => New Inn (Taunton), Halse
[address] => TA4 3AF
)
499326000047000152
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00450
Done all.
Finished at 2025-09-23 11:12:25
Webhook - sourceUpdated script called at 2025-09-23 11:44:25
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048443014","salesorder_no":"SO-00448","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000048443014","salesorder_no":"SO-00448","status":"draft"}}
EXT ID: 499326000048443014
REF: SO-00448
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048443014 (REF SO-00448)
Local order updated = 2025-09-23 08:49:36.000Z,
source updated = 2025-09-23T11:44:20+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] => 07412708077
[contactEmail] =>
[contactName] => Mike .
[notes] =>
[externalOrderId] => 499326000048443014
[refId] => SO-00448
[externalCustomerId] => 499326000048038117
[externalLocationId] => 499326000048038123
[title] => London Inn (Bedminster)
[deliveryStart] => 2025-09-25
[deliveryEnd] => 2025-09-25
[totalValue] => 405.6
[totalWeight] => 180
[syncInCreated] => 2025-09-23T09:49:36+0100
[syncInUpdated] => 2025-09-23T11:44:20+0100
[syncInStatus] => confirmed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048443020
[externalProductId] => 499326000000062762
[sku] => HUK-FOST-50LK
[title] => Fosters Lager 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 105
[price] => 105
)
[1] => Array
(
[externalOrderProductId] => 499326000048443022
[externalProductId] => 499326000000061736
[sku] => MCBC-CARL-50LK
[title] => Carling lager 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 124
[price] => 124
)
[2] => Array
(
[externalOrderProductId] => 499326000048443024
[externalProductId] => 499326000000061385
[sku] => BBG-SAAS-10GK
[title] => Stella Artois 4.6% 10g
[notes] =>
[quantity] => 1
[weightKg] => 56
[weightTotal] => 56
[priceTotal] => 109
[price] => 109
)
)
[deliveryName] => London Inn (Bedminster)
[deliveryStreet] => 1 Cannon Street
[deliveryCity] => Bedminster
[deliveryCounty] =>
[deliveryPostcode] => BS3 1BH
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] => 07412708077
[contactEmail] =>
[contactName] => Mike .
[notes] =>
[externalOrderId] => 499326000048443014
[refId] => SO-00448
[externalCustomerId] => 499326000048038117
[externalLocationId] => 499326000048038123
[title] => London Inn (Bedminster)
[deliveryStart] => 2025-09-25
[deliveryEnd] => 2025-09-25
[totalValue] => 405.6
[totalWeight] => 180
[syncInCreated] => 2025-09-23T09:49:36+0100
[syncInUpdated] => 2025-09-23T11:44:20+0100
[syncInStatus] => confirmed
[deliveryName] => London Inn (Bedminster)
[deliveryStreet] => 1 Cannon Street
[deliveryCity] => Bedminster
[deliveryCounty] =>
[deliveryPostcode] => BS3 1BH
[syncOutUpdated] => 2025-09-23T11:44:25+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Mike .
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000048038117
Getting products
Updating product 499326000000062762
Updating order product 499326000048443020
Updated
Updating product 499326000000061736
Updating order product 499326000048443022
Updated
Updating product 499326000000061385
Updating order product 499326000048443024
Updated
Removing deleted order items
Removing order item 499326000048443026
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00448
Processing order: 5w9woivkvpoeh7m, ref SO-00448
Syncing SO-00448
Using default start and end times
Time window: 2025-09-25T06:00:00+01:00 - 2025-09-25T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 23/09/2025 09:49 - Local updated: 2025-09-23 10:44:25.000Z - Source updated: 2025-09-23 10:44:20.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status:
Status changed - mark for sync back to source
Is allocated? no
Local updated: 2025-09-23 10:44:25.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000048038123
Array
(
[referenceNumber] => 499326000048038123
[name] => London Inn (Bedminster), 1 Cannon Street, Bedminster
[address] => BS3 1BH
)
499326000048038123
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00448
Done all.
Finished at 2025-09-23 11:44:27
Webhook - sourceUpdated script called at 2025-09-23 11:44:55
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048443014","salesorder_no":"SO-00448","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048443014","salesorder_no":"SO-00448","status":"invoiced"}}
EXT ID: 499326000048443014
REF: SO-00448
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048443014 (REF SO-00448)
Updates pending to source for order: 499326000048443014
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-09-23 10:44:20.000Z,
source updated = 2025-09-23T11:44:28+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00448
Processing order: 5w9woivkvpoeh7m, ref SO-00448
Syncing SO-00448
Using default start and end times
Time window: 2025-09-25T06:00:00+01:00 - 2025-09-25T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 23/09/2025 11:44 - Local updated: 2025-09-23 08:49:00.000Z - Source updated: 2025-09-23 10:44:20.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-09-23 08:49:00.000Z
Pending updates to MaxOptra? no
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00448
Done all.
Finished at 2025-09-23 11:44:57
Webhook - sourceUpdated script called at 2025-09-23 11:45:25
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048443014","salesorder_no":"SO-00448","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048443014","salesorder_no":"SO-00448","status":"invoiced"}}
EXT ID: 499326000048443014
REF: SO-00448
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048443014 (REF SO-00448)
Local order updated = 2025-09-23 10:44:20.000Z,
source updated = 2025-09-23T11:44:56+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00448
Processing order: 5w9woivkvpoeh7m, ref SO-00448
Syncing SO-00448
Using default start and end times
Time window: 2025-09-25T06:00:00+01:00 - 2025-09-25T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 23/09/2025 11:44 - Local updated: 2025-09-23 10:44:00.000Z - Source updated: 2025-09-23 10:44:20.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00448
Done all.
Finished at 2025-09-23 11:45:26
Webhook - sourceUpdated script called at 2025-09-23 11:49:12
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048443014","salesorder_no":"SO-00448","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048443014","salesorder_no":"SO-00448","status":"open"}}
EXT ID: 499326000048443014
REF: SO-00448
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048443014 (REF SO-00448)
Local order updated = 2025-09-23 10:44:20.000Z,
source updated = 2025-09-23T11:44:56+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00448
Processing order: 5w9woivkvpoeh7m, ref SO-00448
Syncing SO-00448
Using default start and end times
Time window: 2025-09-25T06:00:00+01:00 - 2025-09-25T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 23/09/2025 11:44 - Local updated: 2025-09-23 10:44:00.000Z - Source updated: 2025-09-23 10:44:20.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00448
Done all.
Finished at 2025-09-23 11:49:13
Webhook - sourceUpdated script called at 2025-09-23 11:49:20
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048443014","salesorder_no":"SO-00448","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048443014","salesorder_no":"SO-00448","status":"open"}}
EXT ID: 499326000048443014
REF: SO-00448
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048443014 (REF SO-00448)
Local order updated = 2025-09-23 10:44:20.000Z,
source updated = 2025-09-23T11:44:56+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00448
Processing order: 5w9woivkvpoeh7m, ref SO-00448
Syncing SO-00448
Using default start and end times
Time window: 2025-09-25T06:00:00+01:00 - 2025-09-25T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 23/09/2025 11:44 - Local updated: 2025-09-23 10:44:00.000Z - Source updated: 2025-09-23 10:44:20.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00448
Done all.
Finished at 2025-09-23 11:49:21
Webhook - sourceUpdated script called at 2025-09-23 11:49:56
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048443014","salesorder_no":"SO-00448","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048443014","salesorder_no":"SO-00448","status":"invoiced"}}
EXT ID: 499326000048443014
REF: SO-00448
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048443014 (REF SO-00448)
Local order updated = 2025-09-23 10:44:20.000Z,
source updated = 2025-09-23T11:44:56+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00448
Processing order: 5w9woivkvpoeh7m, ref SO-00448
Syncing SO-00448
Using default start and end times
Time window: 2025-09-25T06:00:00+01:00 - 2025-09-25T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 23/09/2025 11:44 - Local updated: 2025-09-23 10:44:00.000Z - Source updated: 2025-09-23 10:44:20.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00448
Done all.
Finished at 2025-09-23 11:49:57
Webhook - sourceUpdated script called at 2025-09-23 15:56:36
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048485027","salesorder_no":"SO-00451","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000048485027","salesorder_no":"SO-00451","status":"draft"}}
EXT ID: 499326000048485027
REF: SO-00451
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048485027 (REF SO-00451)
Source order details: Array
(
[contactPhone] => 07879003621
[contactEmail] => clubmanager@hornetsrfc.co.uk
[contactName] => Katie .
[notes] =>
[externalOrderId] => 499326000048485027
[refId] => SO-00451
[externalCustomerId] => 499326000000419461
[externalLocationId] => 499326000000419464
[title] => Hornets RFC (WSM)
[deliveryStart] => 2025-09-25
[deliveryEnd] => 2025-09-25
[totalValue] => 182.28
[totalWeight] => 0
[syncInCreated] => 2025-09-23T15:56:26+0100
[syncInUpdated] => 2025-09-23T15:56:26+0100
[syncInStatus] => draft
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048485033
[externalProductId] => 499326000043516456
[sku] =>
[title] => Harding's Golden Ale 4.2%
[notes] =>
[quantity] => 2
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 151.9
[price] => 75.95
)
[1] => Array
(
[externalOrderProductId] => 499326000048485035
[externalProductId] => 499326000045856070
[sku] =>
[title] => Harding's POS Package
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
)
[deliveryName] => Hornets RFC (WSM)
[deliveryStreet] => Hutton Moor Road
[deliveryCity] => Weston-Super-Mare
[deliveryCounty] =>
[deliveryPostcode] => BS22 8LY
)
Does this order already exist?
No
Order data prepared for sync: Array
(
[contactPhone] => 07879003621
[contactEmail] => clubmanager@hornetsrfc.co.uk
[contactName] => Katie .
[notes] =>
[externalOrderId] => 499326000048485027
[refId] => SO-00451
[externalCustomerId] => 499326000000419461
[externalLocationId] => 499326000000419464
[title] => Hornets RFC (WSM)
[deliveryStart] => 2025-09-25
[deliveryEnd] => 2025-09-25
[totalValue] => 182.28
[totalWeight] => 0
[syncInCreated] => 2025-09-23T15:56:26+0100
[syncInUpdated] => 2025-09-23T15:56:26+0100
[syncInStatus] => draft
[deliveryName] => Hornets RFC (WSM)
[deliveryStreet] => Hutton Moor Road
[deliveryCity] => Weston-Super-Mare
[deliveryCounty] =>
[deliveryPostcode] => BS22 8LY
[syncOutUpdated] => 2025-09-23T15:56:37+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Katie .
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
New order
Marking order for sync with MaxOptra
Getting customer details
New customer 499326000000419461
Updating order contact details
Getting products
Updating product 499326000043516456
Creating new order product 499326000048485033
Updating product 499326000045856070
Creating new order product 499326000048485035
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00451
Processing order: rh8v2grldx5v7bm, ref SO-00451
Syncing SO-00451
Using default start and end times
Time window: 2025-09-25T06:00:00+01:00 - 2025-09-25T20:00:00+01:00
Found order in MaxOptra? no
Creating SO-00451
Done
Finished syncing to MaxOptra for order SO-00451
Done all.
Finished at 2025-09-23 15:56:38
Webhook - sourceUpdated script called at 2025-09-23 18:11:12
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048460069","salesorder_no":"SO-00450","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048460069","salesorder_no":"SO-00450","status":"open"}}
EXT ID: 499326000048460069
REF: SO-00450
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048460069 (REF SO-00450)
Updates pending to source for order: 499326000048460069
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-09-23 10:11:46.000Z,
source updated = 2025-09-23T18:11:06+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => Serena Cheryl
[notes] =>
[externalOrderId] => 499326000048460069
[refId] => SO-00450
[externalCustomerId] => 499326000047000146
[externalLocationId] => 499326000047000152
[title] => New Inn (Taunton)
[deliveryStart] => 2025-09-24
[deliveryEnd] => 2025-09-24
[totalValue] => 93.6
[totalWeight] => 0
[syncInCreated] => 2025-09-23T11:11:46+0100
[syncInUpdated] => 2025-09-23T18:11:06+0100
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048460075
[externalProductId] => 499326000043516456
[sku] =>
[title] => Harding's Golden Ale 4.2%
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 78
[price] => 78
)
[1] => Array
(
[externalOrderProductId] => 499326000048460077
[externalProductId] => 499326000021043887
[sku] =>
[title] => Collection of empties
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
)
[deliveryName] => New Inn (Taunton)
[deliveryStreet] => Halse
[deliveryCity] =>
[deliveryCounty] =>
[deliveryPostcode] => TA4 3AF
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => Serena Cheryl
[notes] =>
[externalOrderId] => 499326000048460069
[refId] => SO-00450
[externalCustomerId] => 499326000047000146
[externalLocationId] => 499326000047000152
[title] => New Inn (Taunton)
[deliveryStart] => 2025-09-24
[deliveryEnd] => 2025-09-24
[totalValue] => 93.6
[totalWeight] => 0
[syncInCreated] => 2025-09-23T11:11:46+0100
[syncInUpdated] => 2025-09-23T18:11:06+0100
[syncInStatus] => closed
[deliveryName] => New Inn (Taunton)
[deliveryStreet] => Halse
[deliveryCity] =>
[deliveryCounty] =>
[deliveryPostcode] => TA4 3AF
[syncOutUpdated] => 2025-09-23T18:11:14+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Serena Cheryl
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000047000146
Getting products
Updating product 499326000043516456
Updating order product 499326000048460075
Updated
Updating product 499326000021043887
Updating order product 499326000048460077
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00450
Processing order: 3fbo4wtjk5vfnp3, ref SO-00450
Syncing SO-00450
Using default start and end times
Time window: 2025-09-24T06:00:00+01:00 - 2025-09-24T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 23/09/2025 11:12 - Local updated: 2025-09-23 17:11:14.000Z - Source updated: 2025-09-23 17:11:06.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-09-23 17:11:14.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000047000152
Array
(
[referenceNumber] => 499326000047000152
[name] => New Inn (Taunton), Halse
[address] => TA4 3AF
)
499326000047000152
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00450
Done all.
Finished at 2025-09-23 18:11:15
Webhook - sourceUpdated script called at 2025-09-23 18:11:42
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048460069","salesorder_no":"SO-00450","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048460069","salesorder_no":"SO-00450","status":"invoiced"}}
EXT ID: 499326000048460069
REF: SO-00450
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048460069 (REF SO-00450)
Local order updated = 2025-09-23 17:11:06.000Z,
source updated = 2025-09-23T18:11:13+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00450
Processing order: 3fbo4wtjk5vfnp3, ref SO-00450
Syncing SO-00450
Using default start and end times
Time window: 2025-09-24T06:00:00+01:00 - 2025-09-24T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 23/09/2025 18:11 - Local updated: 2025-09-23 10:12:00.000Z - Source updated: 2025-09-23 17:11:06.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-09-23 10:12:00.000Z
Pending updates to MaxOptra? no
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00450
Done all.
Finished at 2025-09-23 18:11:44
Webhook - sourceUpdated script called at 2025-09-23 18:16:07
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048460069","salesorder_no":"SO-00450","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048460069","salesorder_no":"SO-00450","status":"invoiced"}}
EXT ID: 499326000048460069
REF: SO-00450
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048460069 (REF SO-00450)
Local order updated = 2025-09-23 17:11:06.000Z,
source updated = 2025-09-23T18:11:13+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00450
Processing order: 3fbo4wtjk5vfnp3, ref SO-00450
Syncing SO-00450
Using default start and end times
Time window: 2025-09-24T06:00:00+01:00 - 2025-09-24T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 23/09/2025 18:11 - Local updated: 2025-09-23 17:11:00.000Z - Source updated: 2025-09-23 17:11:06.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00450
Done all.
Finished at 2025-09-23 18:16:08
Webhook - sourceUpdated script called at 2025-09-23 18:16:24
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048460069","salesorder_no":"SO-00450","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048460069","salesorder_no":"SO-00450","status":"invoiced"}}
EXT ID: 499326000048460069
REF: SO-00450
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048460069 (REF SO-00450)
Local order updated = 2025-09-23 17:11:06.000Z,
source updated = 2025-09-23T18:11:13+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00450
Processing order: 3fbo4wtjk5vfnp3, ref SO-00450
Syncing SO-00450
Using default start and end times
Time window: 2025-09-24T06:00:00+01:00 - 2025-09-24T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 23/09/2025 18:11 - Local updated: 2025-09-23 17:11:00.000Z - Source updated: 2025-09-23 17:11:06.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00450
Done all.
Finished at 2025-09-23 18:16:25
Webhook - sourceUpdated script called at 2025-09-23 18:17:45
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048447009","salesorder_no":"SO-00447","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048447009","salesorder_no":"SO-00447","status":"invoiced"}}
EXT ID: 499326000048447009
REF: SO-00447
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048447009 (REF SO-00447)
Local order updated = 2025-09-23 08:42:59.000Z,
source updated = 2025-09-23T18:17:31+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[contactName] => Wayne Hadley
[notes] =>
[externalOrderId] => 499326000048447009
[refId] => SO-00447
[externalCustomerId] => 499326000046966136
[externalLocationId] => 499326000046966140
[title] => Concierge Events
[deliveryStart] => 2025-09-23
[deliveryEnd] => 2025-09-23
[totalValue] => 156
[totalWeight] => 62
[syncInCreated] => 2025-09-23T09:42:59+0100
[syncInUpdated] => 2025-09-23T18:17:31+0100
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048447015
[externalProductId] => 499326000000061367
[sku] => BBG-SNML-50LK
[title] => San Miguel 11G
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 130
[price] => 130
)
)
[deliveryName] => Concierge Events
[deliveryStreet] => Worle Football Club
[deliveryCity] => Worle
[deliveryCounty] =>
[deliveryPostcode] => BS22 6AH
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[contactName] => Wayne Hadley
[notes] =>
[externalOrderId] => 499326000048447009
[refId] => SO-00447
[externalCustomerId] => 499326000046966136
[externalLocationId] => 499326000046966140
[title] => Concierge Events
[deliveryStart] => 2025-09-23
[deliveryEnd] => 2025-09-23
[totalValue] => 156
[totalWeight] => 62
[syncInCreated] => 2025-09-23T09:42:59+0100
[syncInUpdated] => 2025-09-23T18:17:31+0100
[syncInStatus] => closed
[deliveryName] => Concierge Events
[deliveryStreet] => Worle Football Club
[deliveryCity] => Worle
[deliveryCounty] =>
[deliveryPostcode] => BS22 6AH
[syncOutUpdated] => 2025-09-23T18:17:46+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Wayne Hadley
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000046966136
Getting products
Updating product 499326000000061367
Updating order product 499326000048447015
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00447
Processing order: bgsh19d9x095gfv, ref SO-00447
Syncing SO-00447
Using default start and end times
Time window: 2025-09-23T06:00:00+01:00 - 2025-09-23T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 23/09/2025 09:43 - Local updated: 2025-09-23 17:17:46.000Z - Source updated: 2025-09-23 17:17:31.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status:
Status changed - mark for sync back to source
Is allocated? no
Local updated: 2025-09-23 17:17:46.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000046966140
Array
(
[referenceNumber] => 499326000046966140
[name] => Concierge Events, Worle Football Club, Worle
[address] => BS22 6AH
)
499326000046966140
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00447
Done all.
Finished at 2025-09-23 18:17:47
Webhook - sourceUpdated script called at 2025-09-23 18:18:15
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048447009","salesorder_no":"SO-00447","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048447009","salesorder_no":"SO-00447","status":"invoiced"}}
EXT ID: 499326000048447009
REF: SO-00447
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048447009 (REF SO-00447)
Updates pending to source for order: 499326000048447009
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-09-23 17:17:31.000Z,
source updated = 2025-09-23T18:17:31+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00447
Processing order: bgsh19d9x095gfv, ref SO-00447
Syncing SO-00447
Using default start and end times
Time window: 2025-09-23T06:00:00+01:00 - 2025-09-23T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 23/09/2025 18:17 - Local updated: 2025-09-23 08:43:00.000Z - Source updated: 2025-09-23 17:17:31.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-09-23 08:43:00.000Z
Pending updates to MaxOptra? no
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00447
Done all.
Finished at 2025-09-23 18:18:17
Webhook - sourceUpdated script called at 2025-09-23 18:18:46
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048447009","salesorder_no":"SO-00447","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048447009","salesorder_no":"SO-00447","status":"invoiced"}}
EXT ID: 499326000048447009
REF: SO-00447
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048447009 (REF SO-00447)
Local order updated = 2025-09-23 17:17:31.000Z,
source updated = 2025-09-23T18:18:16+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00447
Processing order: bgsh19d9x095gfv, ref SO-00447
Syncing SO-00447
Using default start and end times
Time window: 2025-09-23T06:00:00+01:00 - 2025-09-23T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 23/09/2025 18:17 - Local updated: 2025-09-23 17:17:00.000Z - Source updated: 2025-09-23 17:17:31.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00447
Done all.
Finished at 2025-09-23 18:18:47
Webhook - sourceUpdated script called at 2025-09-23 18:19:46
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048485027","salesorder_no":"SO-00451","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048485027","salesorder_no":"SO-00451","status":"open"}}
EXT ID: 499326000048485027
REF: SO-00451
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048485027 (REF SO-00451)
Local order updated = 2025-09-23 14:56:26.000Z,
source updated = 2025-09-23T18:19:28+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] => 07879003621
[contactEmail] => clubmanager@hornetsrfc.co.uk
[contactName] => Katie .
[notes] =>
[externalOrderId] => 499326000048485027
[refId] => SO-00451
[externalCustomerId] => 499326000000419461
[externalLocationId] => 499326000000419464
[title] => Hornets RFC (WSM)
[deliveryStart] => 2025-09-25
[deliveryEnd] => 2025-09-25
[totalValue] => 182.28
[totalWeight] => 0
[syncInCreated] => 2025-09-23T15:56:26+0100
[syncInUpdated] => 2025-09-23T18:19:28+0100
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048485033
[externalProductId] => 499326000043516456
[sku] =>
[title] => Harding's Golden Ale 4.2%
[notes] =>
[quantity] => 2
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 151.9
[price] => 75.95
)
[1] => Array
(
[externalOrderProductId] => 499326000048485035
[externalProductId] => 499326000045856070
[sku] =>
[title] => Harding's POS Package
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
)
[deliveryName] => Hornets RFC (WSM)
[deliveryStreet] => Hutton Moor Road
[deliveryCity] => Weston-Super-Mare
[deliveryCounty] =>
[deliveryPostcode] => BS22 8LY
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] => 07879003621
[contactEmail] => clubmanager@hornetsrfc.co.uk
[contactName] => Katie .
[notes] =>
[externalOrderId] => 499326000048485027
[refId] => SO-00451
[externalCustomerId] => 499326000000419461
[externalLocationId] => 499326000000419464
[title] => Hornets RFC (WSM)
[deliveryStart] => 2025-09-25
[deliveryEnd] => 2025-09-25
[totalValue] => 182.28
[totalWeight] => 0
[syncInCreated] => 2025-09-23T15:56:26+0100
[syncInUpdated] => 2025-09-23T18:19:28+0100
[syncInStatus] => closed
[deliveryName] => Hornets RFC (WSM)
[deliveryStreet] => Hutton Moor Road
[deliveryCity] => Weston-Super-Mare
[deliveryCounty] =>
[deliveryPostcode] => BS22 8LY
[syncOutUpdated] => 2025-09-23T18:19:47+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Katie .
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000000419461
Getting products
Updating product 499326000043516456
Updating order product 499326000048485033
Updated
Updating product 499326000045856070
Updating order product 499326000048485035
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00451
Processing order: rh8v2grldx5v7bm, ref SO-00451
Syncing SO-00451
Using default start and end times
Time window: 2025-09-25T06:00:00+01:00 - 2025-09-25T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 23/09/2025 15:56 - Local updated: 2025-09-23 17:19:47.000Z - Source updated: 2025-09-23 17:19:28.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status:
Status changed - mark for sync back to source
Is allocated? no
Local updated: 2025-09-23 17:19:47.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000000419464
Array
(
[referenceNumber] => 499326000000419464
[name] => Hornets RFC (WSM), Hutton Moor Road, Weston-Super-Mare
[address] => BS22 8LY
)
499326000000419464
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00451
Done all.
Finished at 2025-09-23 18:19:48
Webhook - sourceUpdated script called at 2025-09-23 18:20:16
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048485027","salesorder_no":"SO-00451","status":"partially_invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048485027","salesorder_no":"SO-00451","status":"partially_invoiced"}}
EXT ID: 499326000048485027
REF: SO-00451
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048485027 (REF SO-00451)
Updates pending to source for order: 499326000048485027
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-09-23 17:19:28.000Z,
source updated = 2025-09-23T18:20:10+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00451
Processing order: rh8v2grldx5v7bm, ref SO-00451
Syncing SO-00451
Using default start and end times
Time window: 2025-09-25T06:00:00+01:00 - 2025-09-25T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 23/09/2025 18:19 - Local updated: 2025-09-23 14:56:00.000Z - Source updated: 2025-09-23 17:19:28.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-09-23 14:56:00.000Z
Pending updates to MaxOptra? no
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00451
Done all.
Finished at 2025-09-23 18:20:18
Webhook - sourceUpdated script called at 2025-09-23 18:20:46
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048485027","salesorder_no":"SO-00451","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048485027","salesorder_no":"SO-00451","status":"invoiced"}}
EXT ID: 499326000048485027
REF: SO-00451
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048485027 (REF SO-00451)
Local order updated = 2025-09-23 17:19:28.000Z,
source updated = 2025-09-23T18:20:37+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] => 07879003621
[contactEmail] => clubmanager@hornetsrfc.co.uk
[contactName] => Katie .
[notes] =>
[externalOrderId] => 499326000048485027
[refId] => SO-00451
[externalCustomerId] => 499326000000419461
[externalLocationId] => 499326000000419464
[title] => Hornets RFC (WSM)
[deliveryStart] => 2025-09-25
[deliveryEnd] => 2025-09-25
[totalValue] => 182.28
[totalWeight] => 0
[syncInCreated] => 2025-09-23T15:56:26+0100
[syncInUpdated] => 2025-09-23T18:20:37+0100
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048485033
[externalProductId] => 499326000043516456
[sku] =>
[title] => Harding's Golden Ale 4.2%
[notes] =>
[quantity] => 2
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 151.9
[price] => 75.95
)
)
[deliveryName] => Hornets RFC (WSM)
[deliveryStreet] => Hutton Moor Road
[deliveryCity] => Weston-Super-Mare
[deliveryCounty] =>
[deliveryPostcode] => BS22 8LY
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] => 07879003621
[contactEmail] => clubmanager@hornetsrfc.co.uk
[contactName] => Katie .
[notes] =>
[externalOrderId] => 499326000048485027
[refId] => SO-00451
[externalCustomerId] => 499326000000419461
[externalLocationId] => 499326000000419464
[title] => Hornets RFC (WSM)
[deliveryStart] => 2025-09-25
[deliveryEnd] => 2025-09-25
[totalValue] => 182.28
[totalWeight] => 0
[syncInCreated] => 2025-09-23T15:56:26+0100
[syncInUpdated] => 2025-09-23T18:20:37+0100
[syncInStatus] => closed
[deliveryName] => Hornets RFC (WSM)
[deliveryStreet] => Hutton Moor Road
[deliveryCity] => Weston-Super-Mare
[deliveryCounty] =>
[deliveryPostcode] => BS22 8LY
[syncOutUpdated] => 2025-09-23T18:20:47+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Katie .
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000000419461
Getting products
Updating product 499326000043516456
Updating order product 499326000048485033
Updated
Removing deleted order items
Removing order item 499326000048485035
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00451
Processing order: rh8v2grldx5v7bm, ref SO-00451
Syncing SO-00451
Using default start and end times
Time window: 2025-09-25T06:00:00+01:00 - 2025-09-25T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 23/09/2025 18:19 - Local updated: 2025-09-23 17:20:47.000Z - Source updated: 2025-09-23 17:20:37.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-09-23 17:20:47.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000000419464
Array
(
[referenceNumber] => 499326000000419464
[name] => Hornets RFC (WSM), Hutton Moor Road, Weston-Super-Mare
[address] => BS22 8LY
)
499326000000419464
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00451
Done all.
Finished at 2025-09-23 18:20:48
Webhook - sourceUpdated script called at 2025-09-23 18:22:27
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048447009","salesorder_no":"SO-00447","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048447009","salesorder_no":"SO-00447","status":"open"}}
EXT ID: 499326000048447009
REF: SO-00447
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048447009 (REF SO-00447)
Local order updated = 2025-09-23 17:17:31.000Z,
source updated = 2025-09-23T18:18:16+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00447
Processing order: bgsh19d9x095gfv, ref SO-00447
Syncing SO-00447
Using default start and end times
Time window: 2025-09-23T06:00:00+01:00 - 2025-09-23T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 23/09/2025 18:17 - Local updated: 2025-09-23 17:17:00.000Z - Source updated: 2025-09-23 17:17:31.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00447
Done all.
Finished at 2025-09-23 18:22:28
Webhook - sourceUpdated script called at 2025-09-23 18:22:40
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048447009","salesorder_no":"SO-00447","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048447009","salesorder_no":"SO-00447","status":"invoiced"}}
EXT ID: 499326000048447009
REF: SO-00447
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048447009 (REF SO-00447)
Local order updated = 2025-09-23 17:17:31.000Z,
source updated = 2025-09-23T18:18:16+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00447
Processing order: bgsh19d9x095gfv, ref SO-00447
Syncing SO-00447
Using default start and end times
Time window: 2025-09-23T06:00:00+01:00 - 2025-09-23T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 23/09/2025 18:17 - Local updated: 2025-09-23 17:17:00.000Z - Source updated: 2025-09-23 17:17:31.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00447
Done all.
Finished at 2025-09-23 18:22:41
Webhook - sourceUpdated script called at 2025-09-23 18:24:29
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048485027","salesorder_no":"SO-00451","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048485027","salesorder_no":"SO-00451","status":"invoiced"}}
EXT ID: 499326000048485027
REF: SO-00451
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048485027 (REF SO-00451)
Local order updated = 2025-09-23 17:20:37.000Z,
source updated = 2025-09-23T18:20:37+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00451
Processing order: rh8v2grldx5v7bm, ref SO-00451
Syncing SO-00451
Using default start and end times
Time window: 2025-09-25T06:00:00+01:00 - 2025-09-25T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 23/09/2025 18:20 - Local updated: 2025-09-23 17:19:00.000Z - Source updated: 2025-09-23 17:20:37.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00451
Done all.
Finished at 2025-09-23 18:24:30
Webhook - sourceUpdated script called at 2025-09-23 18:24:56
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048485027","salesorder_no":"SO-00451","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048485027","salesorder_no":"SO-00451","status":"invoiced"}}
EXT ID: 499326000048485027
REF: SO-00451
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048485027 (REF SO-00451)
Local order updated = 2025-09-23 17:20:37.000Z,
source updated = 2025-09-23T18:20:37+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00451
Processing order: rh8v2grldx5v7bm, ref SO-00451
Syncing SO-00451
Using default start and end times
Time window: 2025-09-25T06:00:00+01:00 - 2025-09-25T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 23/09/2025 18:20 - Local updated: 2025-09-23 17:19:00.000Z - Source updated: 2025-09-23 17:20:37.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00451
Done all.
Finished at 2025-09-23 18:24:57
Webhook - sourceUpdated script called at 2025-09-23 18:25:18
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048485027","salesorder_no":"SO-00451","status":"partially_invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048485027","salesorder_no":"SO-00451","status":"partially_invoiced"}}
EXT ID: 499326000048485027
REF: SO-00451
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048485027 (REF SO-00451)
Local order updated = 2025-09-23 17:20:37.000Z,
source updated = 2025-09-23T18:20:37+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00451
Processing order: rh8v2grldx5v7bm, ref SO-00451
Syncing SO-00451
Using default start and end times
Time window: 2025-09-25T06:00:00+01:00 - 2025-09-25T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 23/09/2025 18:20 - Local updated: 2025-09-23 17:19:00.000Z - Source updated: 2025-09-23 17:20:37.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00451
Done all.
Finished at 2025-09-23 18:25:19
Webhook - sourceUpdated script called at 2025-09-24 16:41:53
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048549582","salesorder_no":"SO-00452","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000048549582","salesorder_no":"SO-00452","status":"draft"}}
EXT ID: 499326000048549582
REF: SO-00452
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048549582 (REF SO-00452)
Source order details: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => The Horseshoe (Chipping Sodbury)
[notes] => Front door open from 10am
[externalOrderId] => 499326000048549582
[refId] => SO-00452
[externalCustomerId] => 499326000047045175
[externalLocationId] => 499326000047045177
[title] => The Horseshoe (Chipping Sodbury)
[deliveryStart] => 2025-10-03
[deliveryEnd] => 2025-10-03
[totalValue] => 287.92
[totalWeight] => 102
[syncInCreated] => 2025-09-24T16:41:46+0100
[syncInUpdated] => 2025-09-24T16:41:46+0100
[syncInStatus] => draft
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048549588
[externalProductId] => 499326000044145711
[sku] =>
[title] => Harding's Double Hopped (4.0%)
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 79.99
[price] => 79.99
)
[1] => Array
(
[externalOrderProductId] => 499326000048549590
[externalProductId] => 499326000021043799
[sku] => BB-HSAR-9G
[title] => Hardings Amber Ale 3.9% (9g)
[notes] =>
[quantity] => 1
[weightKg] => 51
[weightTotal] => 51
[priceTotal] => 79.95
[price] => 79.95
)
[2] => Array
(
[externalOrderProductId] => 499326000048549592
[externalProductId] => 499326000021043786
[sku] => BB-HSBT-9G
[title] => Hardings Best 4.2% (9g)
[notes] =>
[quantity] => 1
[weightKg] => 51
[weightTotal] => 51
[priceTotal] => 79.99
[price] => 79.99
)
[3] => Array
(
[externalOrderProductId] => 499326000048549594
[externalProductId] => 499326000045856070
[sku] =>
[title] => Harding's POS Package
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
)
[deliveryName] => The Horseshoe (Chipping Sodbury)
[deliveryStreet] => 2 High Street
[deliveryCity] => Chipping Sodbury
[deliveryCounty] =>
[deliveryPostcode] => BS37 6AH
)
Does this order already exist?
No
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => The Horseshoe (Chipping Sodbury)
[notes] => Front door open from 10am
[externalOrderId] => 499326000048549582
[refId] => SO-00452
[externalCustomerId] => 499326000047045175
[externalLocationId] => 499326000047045177
[title] => The Horseshoe (Chipping Sodbury)
[deliveryStart] => 2025-10-03
[deliveryEnd] => 2025-10-03
[totalValue] => 287.92
[totalWeight] => 102
[syncInCreated] => 2025-09-24T16:41:46+0100
[syncInUpdated] => 2025-09-24T16:41:46+0100
[syncInStatus] => draft
[deliveryName] => The Horseshoe (Chipping Sodbury)
[deliveryStreet] => 2 High Street
[deliveryCity] => Chipping Sodbury
[deliveryCounty] =>
[deliveryPostcode] => BS37 6AH
[syncOutUpdated] => 2025-09-24T16:41:54+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => The Horseshoe (Chipping Sodbury)
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
New order
Marking order for sync with MaxOptra
Getting customer details
New customer 499326000047045175
Updating order contact details
Getting products
Updating product 499326000044145711
Creating new order product 499326000048549588
Updating product 499326000021043799
Creating new order product 499326000048549590
Updating product 499326000021043786
Creating new order product 499326000048549592
Updating product 499326000045856070
Creating new order product 499326000048549594
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00452
Processing order: 3fhoq4qcndsfans, ref SO-00452
Syncing SO-00452
Using default start and end times
Time window: 2025-10-03T06:00:00+01:00 - 2025-10-03T20:00:00+01:00
Found order in MaxOptra? no
Creating SO-00452
Done
Finished syncing to MaxOptra for order SO-00452
Done all.
Finished at 2025-09-24 16:41:55
Webhook - sourceDeleted script called at 2025-09-25 09:38:46
Source: Zoho
Data: {"salesorder":{"salesorder_no":"SO-00449"}}
JSON: {"salesorder":{"salesorder_no":"SO-00449"}}
REF: SO-00449
200 response code sent
Deleting order: SO-00449
Deleting from MaxOptra
Deleted order SO-00449. Deleting from local database.
Finished at 2025-09-25 09:38:46
Webhook - sourceUpdated script called at 2025-09-28 13:58:06
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048811346","salesorder_no":"SO-00453","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000048811346","salesorder_no":"SO-00453","status":"draft"}}
EXT ID: 499326000048811346
REF: SO-00453
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048811346 (REF SO-00453)
Source order details: Array
(
[contactPhone] => 07811444718
[contactEmail] =>
[contactName] => Gina .
[notes] =>
[externalOrderId] => 499326000048811346
[refId] => SO-00453
[externalCustomerId] => 499326000046596019
[externalLocationId] => 499326000046596025
[title] => Bessell Scotts Barber Lounge
[deliveryStart] => 2025-09-30
[deliveryEnd] => 2025-09-30
[totalValue] => 309.89
[totalWeight] => 101
[syncInCreated] => 2025-09-28T13:58:04+0100
[syncInUpdated] => 2025-09-28T13:58:04+0100
[syncInStatus] => draft
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048811352
[externalProductId] => 499326000000062501
[sku] => ASHI-ASAH-50LK
[title] => Asahi 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 159.9
[price] => 159.9
)
[1] => Array
(
[externalOrderProductId] => 499326000048811354
[externalProductId] => 499326000000060944
[sku] => HUK-NKOL-30LK
[title] => Beavertown Neck Oil IPA 4.3% (30L)
[notes] =>
[quantity] => 1
[weightKg] => 39
[weightTotal] => 39
[priceTotal] => 98.34
[price] => 98.34
)
)
[deliveryName] => Bessell Scotts Barber Lounge
[deliveryStreet] => Unit 5, Long
[deliveryCity] => Cheswick
[deliveryCounty] =>
[deliveryPostcode] => BS16 1GU
)
Does this order already exist?
No
Order data prepared for sync: Array
(
[contactPhone] => 07811444718
[contactEmail] =>
[contactName] => Gina .
[notes] =>
[externalOrderId] => 499326000048811346
[refId] => SO-00453
[externalCustomerId] => 499326000046596019
[externalLocationId] => 499326000046596025
[title] => Bessell Scotts Barber Lounge
[deliveryStart] => 2025-09-30
[deliveryEnd] => 2025-09-30
[totalValue] => 309.89
[totalWeight] => 101
[syncInCreated] => 2025-09-28T13:58:04+0100
[syncInUpdated] => 2025-09-28T13:58:04+0100
[syncInStatus] => draft
[deliveryName] => Bessell Scotts Barber Lounge
[deliveryStreet] => Unit 5, Long
[deliveryCity] => Cheswick
[deliveryCounty] =>
[deliveryPostcode] => BS16 1GU
[syncOutUpdated] => 2025-09-28T13:58:06+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Gina .
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
New order
Marking order for sync with MaxOptra
Getting customer details
Customer exists and has not changed (skipping): 499326000046596019
Updating order contact details
Getting products
Updating product 499326000000062501
Creating new order product 499326000048811352
Creating product 499326000000060944
Creating new order product 499326000048811354
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00453
Processing order: oh2mfvwf9o8tq4r, ref SO-00453
Syncing SO-00453
Using default start and end times
Time window: 2025-09-30T06:00:00+01:00 - 2025-09-30T20:00:00+01:00
Found order in MaxOptra? no
Creating SO-00453
Done
Finished syncing to MaxOptra for order SO-00453
Done all.
Finished at 2025-09-28 13:58:08
Webhook - sourceUpdated script called at 2025-09-29 09:43:51
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048829025","salesorder_no":"SO-00454","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000048829025","salesorder_no":"SO-00454","status":"draft"}}
EXT ID: 499326000048829025
REF: SO-00454
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048829025 (REF SO-00454)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => enquiries@ritzsocialclub.co.uk
[contactName] => Sean Lithgrow
[notes] =>
[externalOrderId] => 499326000048829025
[refId] => SO-00454
[externalCustomerId] => 499326000000422615
[externalLocationId] => 499326000000422618
[title] => Ritz Social Club (Burnham)
[deliveryStart] => 2025-09-30
[deliveryEnd] => 2025-09-30
[totalValue] => 676.52
[totalWeight] => 408
[syncInCreated] => 2025-09-29T09:43:24+0100
[syncInUpdated] => 2025-09-29T09:43:24+0100
[syncInStatus] => draft
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048829031
[externalProductId] => 499326000021043799
[sku] => BB-HSAR-9G
[title] => Hardings Amber Ale 3.9% (9g)
[notes] =>
[quantity] => 4
[weightKg] => 51
[weightTotal] => 204
[priceTotal] => 303.8
[price] => 75.95
)
[1] => Array
(
[externalOrderProductId] => 499326000048829033
[externalProductId] => 499326000021043786
[sku] => BB-HSBT-9G
[title] => Hardings Best Bitter 4.2% (9g)
[notes] =>
[quantity] => 1
[weightKg] => 51
[weightTotal] => 51
[priceTotal] => 79.99
[price] => 79.99
)
[2] => Array
(
[externalOrderProductId] => 499326000048829035
[externalProductId] => 499326000021043786
[sku] => BB-HSBT-9G
[title] => Hardings Best Bitter 4.2% (9g)
[notes] =>
[quantity] => 1
[weightKg] => 51
[weightTotal] => 51
[priceTotal] => 0
[price] => 0
)
[3] => Array
(
[externalOrderProductId] => 499326000048829037
[externalProductId] => 499326000000061205
[sku] => BCMB-ORIG-9G
[title] => Butcombe Original - 9g
[notes] =>
[quantity] => 2
[weightKg] => 51
[weightTotal] => 102
[priceTotal] => 179.98
[price] => 89.99
)
)
[deliveryName] => Ritz Social Club (Burnham)
[deliveryStreet] => 24 Victoria St
[deliveryCity] => Somerset
[deliveryCounty] =>
[deliveryPostcode] => TA8 1AN
)
Does this order already exist?
No
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => enquiries@ritzsocialclub.co.uk
[contactName] => Sean Lithgrow
[notes] =>
[externalOrderId] => 499326000048829025
[refId] => SO-00454
[externalCustomerId] => 499326000000422615
[externalLocationId] => 499326000000422618
[title] => Ritz Social Club (Burnham)
[deliveryStart] => 2025-09-30
[deliveryEnd] => 2025-09-30
[totalValue] => 676.52
[totalWeight] => 408
[syncInCreated] => 2025-09-29T09:43:24+0100
[syncInUpdated] => 2025-09-29T09:43:24+0100
[syncInStatus] => draft
[deliveryName] => Ritz Social Club (Burnham)
[deliveryStreet] => 24 Victoria St
[deliveryCity] => Somerset
[deliveryCounty] =>
[deliveryPostcode] => TA8 1AN
[syncOutUpdated] => 2025-09-29T09:43:51+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Sean Lithgrow
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
New order
Marking order for sync with MaxOptra
Getting customer details
2025-09-03 15:56:15.000Z != 2025-09-29T08:58:13+0100
Customer changed - updating 499326000000422615
Updating order contact details
Getting products
Updating product 499326000021043799
Creating new order product 499326000048829031
Updating product 499326000021043786
Creating new order product 499326000048829033
Updating product 499326000021043786
Creating new order product 499326000048829035
Updating product 499326000000061205
Creating new order product 499326000048829037
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00454
Processing order: ojhz4pxpw9r51yi, ref SO-00454
Syncing SO-00454
Using default start and end times
Time window: 2025-09-30T06:00:00+01:00 - 2025-09-30T20:00:00+01:00
Found order in MaxOptra? no
Creating SO-00454
Done
Finished syncing to MaxOptra for order SO-00454
Done all.
Finished at 2025-09-29 09:43:53
Webhook - sourceUpdated script called at 2025-09-29 09:53:01
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048829025","salesorder_no":"SO-00454","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000048829025","salesorder_no":"SO-00454","status":"draft"}}
EXT ID: 499326000048829025
REF: SO-00454
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048829025 (REF SO-00454)
Local order updated = 2025-09-29 08:43:24.000Z,
source updated = 2025-09-29T09:52:46+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => enquiries@ritzsocialclub.co.uk
[contactName] => Sean Lithgrow
[notes] =>
[externalOrderId] => 499326000048829025
[refId] => SO-00454
[externalCustomerId] => 499326000000422615
[externalLocationId] => 499326000000422618
[title] => Ritz Social Club (Burnham)
[deliveryStart] => 2025-09-29
[deliveryEnd] => 2025-09-29
[totalValue] => 676.52
[totalWeight] => 408
[syncInCreated] => 2025-09-29T09:43:24+0100
[syncInUpdated] => 2025-09-29T09:52:46+0100
[syncInStatus] => draft
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048829031
[externalProductId] => 499326000021043799
[sku] => BB-HSAR-9G
[title] => Hardings Amber Ale 3.9% (9g)
[notes] =>
[quantity] => 4
[weightKg] => 51
[weightTotal] => 204
[priceTotal] => 303.8
[price] => 75.95
)
[1] => Array
(
[externalOrderProductId] => 499326000048829033
[externalProductId] => 499326000021043786
[sku] => BB-HSBT-9G
[title] => Hardings Best Bitter 4.2% (9g)
[notes] =>
[quantity] => 1
[weightKg] => 51
[weightTotal] => 51
[priceTotal] => 79.99
[price] => 79.99
)
[2] => Array
(
[externalOrderProductId] => 499326000048829035
[externalProductId] => 499326000021043786
[sku] => BB-HSBT-9G
[title] => Hardings Best Bitter 4.2% (9g)
[notes] =>
[quantity] => 1
[weightKg] => 51
[weightTotal] => 51
[priceTotal] => 0
[price] => 0
)
[3] => Array
(
[externalOrderProductId] => 499326000048829037
[externalProductId] => 499326000000061205
[sku] => BCMB-ORIG-9G
[title] => Butcombe Original - 9g
[notes] =>
[quantity] => 2
[weightKg] => 51
[weightTotal] => 102
[priceTotal] => 179.98
[price] => 89.99
)
)
[deliveryName] => Ritz Social Club (Burnham)
[deliveryStreet] => 24 Victoria St
[deliveryCity] => Somerset
[deliveryCounty] =>
[deliveryPostcode] => TA8 1AN
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => enquiries@ritzsocialclub.co.uk
[contactName] => Sean Lithgrow
[notes] =>
[externalOrderId] => 499326000048829025
[refId] => SO-00454
[externalCustomerId] => 499326000000422615
[externalLocationId] => 499326000000422618
[title] => Ritz Social Club (Burnham)
[deliveryStart] => 2025-09-29
[deliveryEnd] => 2025-09-29
[totalValue] => 676.52
[totalWeight] => 408
[syncInCreated] => 2025-09-29T09:43:24+0100
[syncInUpdated] => 2025-09-29T09:52:46+0100
[syncInStatus] => draft
[deliveryName] => Ritz Social Club (Burnham)
[deliveryStreet] => 24 Victoria St
[deliveryCity] => Somerset
[deliveryCounty] =>
[deliveryPostcode] => TA8 1AN
[syncOutUpdated] => 2025-09-29T09:53:02+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Sean Lithgrow
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000000422615
Getting products
Updating product 499326000021043799
Updating order product 499326000048829031
Updated
Updating product 499326000021043786
Updating order product 499326000048829033
Updated
Updating product 499326000021043786
Updating order product 499326000048829035
Updated
Updating product 499326000000061205
Updating order product 499326000048829037
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00454
Processing order: ojhz4pxpw9r51yi, ref SO-00454
Syncing SO-00454
Using default start and end times
Time window: 2025-09-29T06:00:00+01:00 - 2025-09-29T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 29/09/2025 09:43 - Local updated: 2025-09-29 08:53:02.000Z - Source updated: 2025-09-29 08:52:46.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status:
Status changed - mark for sync back to source
Is allocated? no
Local updated: 2025-09-29 08:53:02.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000000422618
Array
(
[referenceNumber] => 499326000000422618
[name] => Ritz Social Club (Burnham), 24 Victoria St, Somerset
[address] => TA8 1AN
)
499326000000422618
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00454
Done all.
Finished at 2025-09-29 09:53:03
Webhook - sourceUpdated script called at 2025-09-29 10:11:28
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048829025","salesorder_no":"SO-00454","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048829025","salesorder_no":"SO-00454","status":"invoiced"}}
EXT ID: 499326000048829025
REF: SO-00454
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048829025 (REF SO-00454)
Updates pending to source for order: 499326000048829025
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-09-29 08:52:46.000Z,
source updated = 2025-09-29T10:11:14+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => enquiries@ritzsocialclub.co.uk
[contactName] => Sean Lithgrow
[notes] =>
[externalOrderId] => 499326000048829025
[refId] => SO-00454
[externalCustomerId] => 499326000000422615
[externalLocationId] => 499326000000422618
[title] => Ritz Social Club (Burnham)
[deliveryStart] => 2025-09-29
[deliveryEnd] => 2025-09-29
[totalValue] => 676.52
[totalWeight] => 408
[syncInCreated] => 2025-09-29T09:43:24+0100
[syncInUpdated] => 2025-09-29T10:11:14+0100
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048829031
[externalProductId] => 499326000021043799
[sku] => BB-HSAR-9G
[title] => Hardings Amber Ale 3.9% (9g)
[notes] =>
[quantity] => 4
[weightKg] => 51
[weightTotal] => 204
[priceTotal] => 303.8
[price] => 75.95
)
[1] => Array
(
[externalOrderProductId] => 499326000048829033
[externalProductId] => 499326000021043786
[sku] => BB-HSBT-9G
[title] => Hardings Best Bitter 4.2% (9g)
[notes] =>
[quantity] => 1
[weightKg] => 51
[weightTotal] => 51
[priceTotal] => 79.99
[price] => 79.99
)
[2] => Array
(
[externalOrderProductId] => 499326000048829035
[externalProductId] => 499326000021043786
[sku] => BB-HSBT-9G
[title] => Hardings Best Bitter 4.2% (9g)
[notes] =>
[quantity] => 1
[weightKg] => 51
[weightTotal] => 51
[priceTotal] => 0
[price] => 0
)
[3] => Array
(
[externalOrderProductId] => 499326000048829037
[externalProductId] => 499326000000061205
[sku] => BCMB-ORIG-9G
[title] => Butcombe Original - 9g
[notes] =>
[quantity] => 2
[weightKg] => 51
[weightTotal] => 102
[priceTotal] => 179.98
[price] => 89.99
)
)
[deliveryName] => Ritz Social Club (Burnham)
[deliveryStreet] => 24 Victoria St
[deliveryCity] => Somerset
[deliveryCounty] =>
[deliveryPostcode] => TA8 1AN
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => enquiries@ritzsocialclub.co.uk
[contactName] => Sean Lithgrow
[notes] =>
[externalOrderId] => 499326000048829025
[refId] => SO-00454
[externalCustomerId] => 499326000000422615
[externalLocationId] => 499326000000422618
[title] => Ritz Social Club (Burnham)
[deliveryStart] => 2025-09-29
[deliveryEnd] => 2025-09-29
[totalValue] => 676.52
[totalWeight] => 408
[syncInCreated] => 2025-09-29T09:43:24+0100
[syncInUpdated] => 2025-09-29T10:11:14+0100
[syncInStatus] => closed
[deliveryName] => Ritz Social Club (Burnham)
[deliveryStreet] => 24 Victoria St
[deliveryCity] => Somerset
[deliveryCounty] =>
[deliveryPostcode] => TA8 1AN
[syncOutUpdated] => 2025-09-29T10:11:30+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Sean Lithgrow
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
2025-09-29 07:58:13.000Z != 2025-09-29T10:08:20+0100
Customer changed - updating 499326000000422615
Updating order contact details
Getting products
Updating product 499326000021043799
Updating order product 499326000048829031
Updated
Updating product 499326000021043786
Updating order product 499326000048829033
Updated
Updating product 499326000021043786
Updating order product 499326000048829035
Updated
Updating product 499326000000061205
Updating order product 499326000048829037
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00454
Processing order: ojhz4pxpw9r51yi, ref SO-00454
Syncing SO-00454
Using default start and end times
Time window: 2025-09-29T06:00:00+01:00 - 2025-09-29T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 29/09/2025 09:53 - Local updated: 2025-09-29 09:11:30.000Z - Source updated: 2025-09-29 09:11:14.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-09-29 09:11:30.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000000422618
Array
(
[referenceNumber] => 499326000000422618
[name] => Ritz Social Club (Burnham), 24 Victoria St, Somerset
[address] => TA8 1AN
)
499326000000422618
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00454
Done all.
Finished at 2025-09-29 10:11:31
Webhook - sourceUpdated script called at 2025-09-29 10:11:58
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048829025","salesorder_no":"SO-00454","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048829025","salesorder_no":"SO-00454","status":"invoiced"}}
EXT ID: 499326000048829025
REF: SO-00454
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048829025 (REF SO-00454)
Local order updated = 2025-09-29 09:11:14.000Z,
source updated = 2025-09-29T10:11:29+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00454
Processing order: ojhz4pxpw9r51yi, ref SO-00454
Syncing SO-00454
Using default start and end times
Time window: 2025-09-29T06:00:00+01:00 - 2025-09-29T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 29/09/2025 10:11 - Local updated: 2025-09-29 08:53:00.000Z - Source updated: 2025-09-29 09:11:14.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-09-29 08:53:00.000Z
Pending updates to MaxOptra? no
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00454
Done all.
Finished at 2025-09-29 10:11:59
Webhook - sourceUpdated script called at 2025-09-29 10:16:08
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048829025","salesorder_no":"SO-00454","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048829025","salesorder_no":"SO-00454","status":"open"}}
EXT ID: 499326000048829025
REF: SO-00454
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048829025 (REF SO-00454)
Local order updated = 2025-09-29 09:11:14.000Z,
source updated = 2025-09-29T10:11:29+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00454
Processing order: ojhz4pxpw9r51yi, ref SO-00454
Syncing SO-00454
Using default start and end times
Time window: 2025-09-29T06:00:00+01:00 - 2025-09-29T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 29/09/2025 10:11 - Local updated: 2025-09-29 09:11:00.000Z - Source updated: 2025-09-29 09:11:14.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00454
Done all.
Finished at 2025-09-29 10:16:09
Webhook - sourceUpdated script called at 2025-09-29 10:16:24
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048829025","salesorder_no":"SO-00454","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048829025","salesorder_no":"SO-00454","status":"invoiced"}}
EXT ID: 499326000048829025
REF: SO-00454
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048829025 (REF SO-00454)
Local order updated = 2025-09-29 09:11:14.000Z,
source updated = 2025-09-29T10:11:29+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00454
Processing order: ojhz4pxpw9r51yi, ref SO-00454
Syncing SO-00454
Using default start and end times
Time window: 2025-09-29T06:00:00+01:00 - 2025-09-29T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 29/09/2025 10:11 - Local updated: 2025-09-29 09:11:00.000Z - Source updated: 2025-09-29 09:11:14.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00454
Done all.
Finished at 2025-09-29 10:16:25
Webhook - sourceUpdated script called at 2025-09-29 11:13:09
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048811346","salesorder_no":"SO-00453","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048811346","salesorder_no":"SO-00453","status":"open"}}
EXT ID: 499326000048811346
REF: SO-00453
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048811346 (REF SO-00453)
Local order updated = 2025-09-28 12:58:04.000Z,
source updated = 2025-09-29T11:13:06+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] => 07811444718
[contactEmail] =>
[contactName] => Gina .
[notes] =>
[externalOrderId] => 499326000048811346
[refId] => SO-00453
[externalCustomerId] => 499326000046596019
[externalLocationId] => 499326000046596025
[title] => Bessell Scotts Barber Lounge
[deliveryStart] => 2025-09-30
[deliveryEnd] => 2025-09-30
[totalValue] => 309.89
[totalWeight] => 101
[syncInCreated] => 2025-09-28T13:58:04+0100
[syncInUpdated] => 2025-09-29T11:13:06+0100
[syncInStatus] => confirmed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048811352
[externalProductId] => 499326000000062501
[sku] => ASHI-ASAH-50LK
[title] => Asahi 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 159.9
[price] => 159.9
)
[1] => Array
(
[externalOrderProductId] => 499326000048811354
[externalProductId] => 499326000000060944
[sku] => HUK-NKOL-30LK
[title] => Beavertown Neck Oil IPA 4.3% (30L)
[notes] =>
[quantity] => 1
[weightKg] => 39
[weightTotal] => 39
[priceTotal] => 98.34
[price] => 98.34
)
)
[deliveryName] => Bessell Scotts Barber Lounge
[deliveryStreet] => Unit 5, Long
[deliveryCity] => Cheswick
[deliveryCounty] =>
[deliveryPostcode] => BS16 1GU
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] => 07811444718
[contactEmail] =>
[contactName] => Gina .
[notes] =>
[externalOrderId] => 499326000048811346
[refId] => SO-00453
[externalCustomerId] => 499326000046596019
[externalLocationId] => 499326000046596025
[title] => Bessell Scotts Barber Lounge
[deliveryStart] => 2025-09-30
[deliveryEnd] => 2025-09-30
[totalValue] => 309.89
[totalWeight] => 101
[syncInCreated] => 2025-09-28T13:58:04+0100
[syncInUpdated] => 2025-09-29T11:13:06+0100
[syncInStatus] => confirmed
[deliveryName] => Bessell Scotts Barber Lounge
[deliveryStreet] => Unit 5, Long
[deliveryCity] => Cheswick
[deliveryCounty] =>
[deliveryPostcode] => BS16 1GU
[syncOutUpdated] => 2025-09-29T11:13:10+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Gina .
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000046596019
Getting products
Updating product 499326000000062501
Updating order product 499326000048811352
Updated
Updating product 499326000000060944
Updating order product 499326000048811354
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00453
Processing order: oh2mfvwf9o8tq4r, ref SO-00453
Syncing SO-00453
Using default start and end times
Time window: 2025-09-30T06:00:00+01:00 - 2025-09-30T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 28/09/2025 13:58 - Local updated: 2025-09-29 10:13:10.000Z - Source updated: 2025-09-29 10:13:06.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status:
Status changed - mark for sync back to source
Is allocated? no
Local updated: 2025-09-29 10:13:10.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000046596025
Array
(
[referenceNumber] => 499326000046596025
[name] => Bessell Scotts Barber Lounge, Unit 5, Long, Cheswick
[address] => BS16 1GU
)
499326000046596025
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00453
Done all.
Finished at 2025-09-29 11:13:11
Webhook - sourceUpdated script called at 2025-09-29 11:14:09
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048811346","salesorder_no":"SO-00453","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048811346","salesorder_no":"SO-00453","status":"invoiced"}}
EXT ID: 499326000048811346
REF: SO-00453
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048811346 (REF SO-00453)
Updates pending to source for order: 499326000048811346
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-09-29 10:13:06.000Z,
source updated = 2025-09-29T11:13:40+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00453
Processing order: oh2mfvwf9o8tq4r, ref SO-00453
Syncing SO-00453
Using default start and end times
Time window: 2025-09-30T06:00:00+01:00 - 2025-09-30T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 29/09/2025 11:13 - Local updated: 2025-09-28 12:58:00.000Z - Source updated: 2025-09-29 10:13:06.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-09-28 12:58:00.000Z
Pending updates to MaxOptra? no
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00453
Done all.
Finished at 2025-09-29 11:14:11
Webhook - sourceUpdated script called at 2025-09-29 11:14:39
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048811346","salesorder_no":"SO-00453","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048811346","salesorder_no":"SO-00453","status":"invoiced"}}
EXT ID: 499326000048811346
REF: SO-00453
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048811346 (REF SO-00453)
Local order updated = 2025-09-29 10:13:06.000Z,
source updated = 2025-09-29T11:14:10+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] => 07811444718
[contactEmail] =>
[contactName] => Gina .
[notes] =>
[externalOrderId] => 499326000048811346
[refId] => SO-00453
[externalCustomerId] => 499326000046596019
[externalLocationId] => 499326000046596025
[title] => Bessell Scotts Barber Lounge
[deliveryStart] => 2025-09-30
[deliveryEnd] => 2025-09-30
[totalValue] => 309.89
[totalWeight] => 101
[syncInCreated] => 2025-09-28T13:58:04+0100
[syncInUpdated] => 2025-09-29T11:14:10+0100
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048811352
[externalProductId] => 499326000000062501
[sku] => ASHI-ASAH-50LK
[title] => Asahi 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 159.9
[price] => 159.9
)
[1] => Array
(
[externalOrderProductId] => 499326000048811354
[externalProductId] => 499326000000060944
[sku] => HUK-NKOL-30LK
[title] => Beavertown Neck Oil IPA 4.3% (30L)
[notes] =>
[quantity] => 1
[weightKg] => 39
[weightTotal] => 39
[priceTotal] => 98.34
[price] => 98.34
)
)
[deliveryName] => Bessell Scotts Barber Lounge
[deliveryStreet] => Unit 5, Long
[deliveryCity] => Cheswick
[deliveryCounty] =>
[deliveryPostcode] => BS16 1GU
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] => 07811444718
[contactEmail] =>
[contactName] => Gina .
[notes] =>
[externalOrderId] => 499326000048811346
[refId] => SO-00453
[externalCustomerId] => 499326000046596019
[externalLocationId] => 499326000046596025
[title] => Bessell Scotts Barber Lounge
[deliveryStart] => 2025-09-30
[deliveryEnd] => 2025-09-30
[totalValue] => 309.89
[totalWeight] => 101
[syncInCreated] => 2025-09-28T13:58:04+0100
[syncInUpdated] => 2025-09-29T11:14:10+0100
[syncInStatus] => closed
[deliveryName] => Bessell Scotts Barber Lounge
[deliveryStreet] => Unit 5, Long
[deliveryCity] => Cheswick
[deliveryCounty] =>
[deliveryPostcode] => BS16 1GU
[syncOutUpdated] => 2025-09-29T11:14:40+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Gina .
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000046596019
Getting products
Updating product 499326000000062501
Updating order product 499326000048811352
Updated
Updating product 499326000000060944
Updating order product 499326000048811354
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00453
Processing order: oh2mfvwf9o8tq4r, ref SO-00453
Syncing SO-00453
Using default start and end times
Time window: 2025-09-30T06:00:00+01:00 - 2025-09-30T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 29/09/2025 11:13 - Local updated: 2025-09-29 10:14:40.000Z - Source updated: 2025-09-29 10:14:10.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-09-29 10:14:40.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000046596025
Array
(
[referenceNumber] => 499326000046596025
[name] => Bessell Scotts Barber Lounge, Unit 5, Long, Cheswick
[address] => BS16 1GU
)
499326000046596025
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00453
Done all.
Finished at 2025-09-29 11:14:41
Webhook - sourceUpdated script called at 2025-09-29 11:18:41
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048811346","salesorder_no":"SO-00453","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048811346","salesorder_no":"SO-00453","status":"invoiced"}}
EXT ID: 499326000048811346
REF: SO-00453
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048811346 (REF SO-00453)
Local order updated = 2025-09-29 10:14:10.000Z,
source updated = 2025-09-29T11:14:10+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00453
Processing order: oh2mfvwf9o8tq4r, ref SO-00453
Syncing SO-00453
Using default start and end times
Time window: 2025-09-30T06:00:00+01:00 - 2025-09-30T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 29/09/2025 11:14 - Local updated: 2025-09-29 10:13:00.000Z - Source updated: 2025-09-29 10:14:10.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00453
Done all.
Finished at 2025-09-29 11:18:42
Webhook - sourceUpdated script called at 2025-09-29 13:23:38
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048825178","salesorder_no":"SO-00455","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000048825178","salesorder_no":"SO-00455","status":"draft"}}
EXT ID: 499326000048825178
REF: SO-00455
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048825178 (REF SO-00455)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[contactName] => Wayne Hadley
[notes] => Collect 1 x Brue Keg and empties
[externalOrderId] => 499326000048825178
[refId] => SO-00455
[externalCustomerId] => 499326000046966136
[externalLocationId] => 499326000046966140
[title] => Concierge Events
[deliveryStart] => 2025-09-29
[deliveryEnd] => 2025-09-29
[totalValue] => 270
[totalWeight] => 124
[syncInCreated] => 2025-09-29T13:23:18+0100
[syncInUpdated] => 2025-09-29T13:23:18+0100
[syncInStatus] => draft
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048825184
[externalProductId] => 499326000000061367
[sku] => BBG-SNML-50LK
[title] => San Miguel 11G
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 130
[price] => 130
)
[1] => Array
(
[externalOrderProductId] => 499326000048825186
[externalProductId] => 499326000000063923
[sku] => TTCG-GOLD-50LK
[title] => Thatcher's Gold Cider 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 95
[price] => 95
)
)
[deliveryName] => Concierge Events
[deliveryStreet] => Worle Football Club
[deliveryCity] => Worle
[deliveryCounty] =>
[deliveryPostcode] => BS22 6AH
)
Does this order already exist?
No
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[contactName] => Wayne Hadley
[notes] => Collect 1 x Brue Keg and empties
[externalOrderId] => 499326000048825178
[refId] => SO-00455
[externalCustomerId] => 499326000046966136
[externalLocationId] => 499326000046966140
[title] => Concierge Events
[deliveryStart] => 2025-09-29
[deliveryEnd] => 2025-09-29
[totalValue] => 270
[totalWeight] => 124
[syncInCreated] => 2025-09-29T13:23:18+0100
[syncInUpdated] => 2025-09-29T13:23:18+0100
[syncInStatus] => draft
[deliveryName] => Concierge Events
[deliveryStreet] => Worle Football Club
[deliveryCity] => Worle
[deliveryCounty] =>
[deliveryPostcode] => BS22 6AH
[syncOutUpdated] => 2025-09-29T13:23:39+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Wayne Hadley
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
New order
Marking order for sync with MaxOptra
Getting customer details
Customer exists and has not changed (skipping): 499326000046966136
Updating order contact details
Getting products
Updating product 499326000000061367
Creating new order product 499326000048825184
Updating product 499326000000063923
Creating new order product 499326000048825186
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00455
Processing order: qv5hgbux769xpa4, ref SO-00455
Syncing SO-00455
Using default start and end times
Time window: 2025-09-29T06:00:00+01:00 - 2025-09-29T20:00:00+01:00
Found order in MaxOptra? no
Creating SO-00455
Done
Finished syncing to MaxOptra for order SO-00455
Done all.
Finished at 2025-09-29 13:23:40
Webhook - sourceUpdated script called at 2025-09-29 13:24:09
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048825178","salesorder_no":"SO-00455","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000048825178","salesorder_no":"SO-00455","status":"draft"}}
EXT ID: 499326000048825178
REF: SO-00455
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048825178 (REF SO-00455)
Local order updated = 2025-09-29 12:23:18.000Z,
source updated = 2025-09-29T13:23:50+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00455
Processing order: qv5hgbux769xpa4, ref SO-00455
Syncing SO-00455
Using default start and end times
Time window: 2025-09-29T06:00:00+01:00 - 2025-09-29T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 29/09/2025 13:23 - Local updated: 2025-09-29 12:23:40.000Z - Source updated: 2025-09-29 12:23:18.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status:
Status changed - mark for sync back to source
Is allocated? no
Local updated: 2025-09-29 12:23:40.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000046966140
Array
(
[referenceNumber] => 499326000046966140
[name] => Concierge Events, Worle Football Club, Worle
[address] => BS22 6AH
)
499326000046966140
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00455
Done all.
Finished at 2025-09-29 13:24:10
Webhook - sourceUpdated script called at 2025-09-30 09:42:13
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048908281","salesorder_no":"SO-00456","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048908281","salesorder_no":"SO-00456","status":"open"}}
EXT ID: 499326000048908281
REF: SO-00456
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048908281 (REF SO-00456)
Source order details: Array
(
[contactPhone] => 07780441517
[contactEmail] => theeasywaytoeat@aol.com
[contactName] => Sylvia Robbins
[notes] =>
[externalOrderId] => 499326000048908281
[refId] => SO-00456
[externalCustomerId] => 499326000022442351
[externalLocationId] => 499326000022442356
[title] => The Venue (Wells)
[deliveryStart] => 2025-09-30
[deliveryEnd] => 2025-09-30
[totalValue] => 301.79
[totalWeight] => 113
[syncInCreated] => 2025-09-30T09:41:58+0100
[syncInUpdated] => 2025-09-30T09:42:00+0100
[syncInStatus] => confirmed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048908287
[externalProductId] => 499326000000060899
[sku] => FULL-LNPE-9G
[title] => London Pride (9g)
[notes] =>
[quantity] => 1
[weightKg] => 51
[weightTotal] => 51
[priceTotal] => 113.99
[price] => 113.99
)
[1] => Array
(
[externalOrderProductId] => 499326000048908289
[externalProductId] => 499326000000061736
[sku] => MCBC-CARL-50LK
[title] => Carling lager 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 137.5
[price] => 137.5
)
)
[deliveryName] => The Venue (Wells)
[deliveryStreet] => 42 South Street
[deliveryCity] => Wells
[deliveryCounty] =>
[deliveryPostcode] => BA5 1SL
)
Does this order already exist?
No
Order data prepared for sync: Array
(
[contactPhone] => 07780441517
[contactEmail] => theeasywaytoeat@aol.com
[contactName] => Sylvia Robbins
[notes] =>
[externalOrderId] => 499326000048908281
[refId] => SO-00456
[externalCustomerId] => 499326000022442351
[externalLocationId] => 499326000022442356
[title] => The Venue (Wells)
[deliveryStart] => 2025-09-30
[deliveryEnd] => 2025-09-30
[totalValue] => 301.79
[totalWeight] => 113
[syncInCreated] => 2025-09-30T09:41:58+0100
[syncInUpdated] => 2025-09-30T09:42:00+0100
[syncInStatus] => confirmed
[deliveryName] => The Venue (Wells)
[deliveryStreet] => 42 South Street
[deliveryCity] => Wells
[deliveryCounty] =>
[deliveryPostcode] => BA5 1SL
[syncOutUpdated] => 2025-09-30T09:42:14+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Sylvia Robbins
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
New order
Marking order for sync with MaxOptra
Getting customer details
New customer 499326000022442351
Updating order contact details
Getting products
Updating product 499326000000060899
Creating new order product 499326000048908287
Updating product 499326000000061736
Creating new order product 499326000048908289
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00456
Processing order: mkhkkn7tmj816ai, ref SO-00456
Syncing SO-00456
Using default start and end times
Time window: 2025-09-30T06:00:00+01:00 - 2025-09-30T20:00:00+01:00
Found order in MaxOptra? no
Creating SO-00456
Done
Finished syncing to MaxOptra for order SO-00456
Done all.
Finished at 2025-09-30 09:42:15
Webhook - sourceUpdated script called at 2025-09-30 09:42:44
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048908281","salesorder_no":"SO-00456","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048908281","salesorder_no":"SO-00456","status":"invoiced"}}
EXT ID: 499326000048908281
REF: SO-00456
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048908281 (REF SO-00456)
Local order updated = 2025-09-30 08:42:00.000Z,
source updated = 2025-09-30T09:42:24+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00456
Webhook - sourceUpdated script called at 2025-09-30 09:42:45
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048908281","salesorder_no":"SO-00456","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048908281","salesorder_no":"SO-00456","status":"invoiced"}}
EXT ID: 499326000048908281
REF: SO-00456
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Processing order: mkhkkn7tmj816ai, ref SO-00456
Syncing SO-00456
Using default start and end times
Time window: 2025-09-30T06:00:00+01:00 - 2025-09-30T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 30/09/2025 09:42 - Local updated: 2025-09-30 08:42:15.000Z - Source updated: 2025-09-30 08:42:00.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status:
Status changed - mark for sync back to source
Getting local orders...
Is allocated? no
Local updated: 2025-09-30 08:42:15.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
------------------------
Processing order 499326000048908281 (REF SO-00456)
Updates pending to source for order: 499326000048908281
Updates found - pushing to source
Updated
Replacing location address in MaxOptra: 499326000022442356
Array
(
[referenceNumber] => 499326000022442356
[name] => The Venue (Wells), 42 South Street, Wells
[address] => BA5 1SL
)
499326000022442356
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00456
Done all.
Finished at 2025-09-30 09:42:46
Done updating. Proceeding to sync from source.
Local order updated = 2025-09-30 08:42:00.000Z,
source updated = 2025-09-30T09:42:24+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00456
Processing order: mkhkkn7tmj816ai, ref SO-00456
Syncing SO-00456
Using default start and end times
Time window: 2025-09-30T06:00:00+01:00 - 2025-09-30T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 30/09/2025 09:42 - Local updated: 2025-09-30 08:42:00.000Z - Source updated: 2025-09-30 08:42:00.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00456
Done all.
Finished at 2025-09-30 09:42:46
Webhook - sourceUpdated script called at 2025-09-30 09:43:15
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048908281","salesorder_no":"SO-00456","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048908281","salesorder_no":"SO-00456","status":"invoiced"}}
EXT ID: 499326000048908281
REF: SO-00456
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048908281 (REF SO-00456)
Local order updated = 2025-09-30 08:42:00.000Z,
source updated = 2025-09-30T09:42:45+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00456
Processing order: mkhkkn7tmj816ai, ref SO-00456
Syncing SO-00456
Using default start and end times
Time window: 2025-09-30T06:00:00+01:00 - 2025-09-30T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 30/09/2025 09:42 - Local updated: 2025-09-30 08:42:00.000Z - Source updated: 2025-09-30 08:42:00.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00456
Done all.
Finished at 2025-09-30 09:43:16
Webhook - sourceUpdated script called at 2025-09-30 09:46:59
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048908281","salesorder_no":"SO-00456","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000048908281","salesorder_no":"SO-00456","status":"draft"}}
EXT ID: 499326000048908281
REF: SO-00456
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048908281 (REF SO-00456)
Local order updated = 2025-09-30 08:42:00.000Z,
source updated = 2025-09-30T09:42:45+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00456
Processing order: mkhkkn7tmj816ai, ref SO-00456
Syncing SO-00456
Using default start and end times
Time window: 2025-09-30T06:00:00+01:00 - 2025-09-30T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 30/09/2025 09:42 - Local updated: 2025-09-30 08:42:00.000Z - Source updated: 2025-09-30 08:42:00.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00456
Done all.
Finished at 2025-09-30 09:47:00
Webhook - sourceUpdated script called at 2025-09-30 09:50:30
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048908404","salesorder_no":"SO-00457","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000048908404","salesorder_no":"SO-00457","status":"draft"}}
EXT ID: 499326000048908404
REF: SO-00457
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048908404 (REF SO-00457)
Source order details: Array
(
[contactPhone] => 07947 578267
[contactEmail] => info@theredtileinn.co.uk
[contactName] => Rachel McKenzie
[notes] =>
[externalOrderId] => 499326000048908404
[refId] => SO-00457
[externalCustomerId] => 499326000000963900
[externalLocationId] => 499326000000963902
[title] => The Red Tile inn (Cossington)
[deliveryStart] => 2025-09-30
[deliveryEnd] => 2025-09-30
[totalValue] => 107.99
[totalWeight] => 51
[syncInCreated] => 2025-09-30T09:50:27+0100
[syncInUpdated] => 2025-09-30T09:50:30+0100
[syncInStatus] => confirmed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048908410
[externalProductId] => 499326000000061205
[sku] => BCMB-ORIG-9G
[title] => Butcombe Original - 9g
[notes] =>
[quantity] => 1
[weightKg] => 51
[weightTotal] => 51
[priceTotal] => 89.99
[price] => 89.99
)
)
[deliveryName] => The Red Tile inn (Cossington)
[deliveryStreet] => Billing Address
Middle Road
[deliveryCity] => Cossington
[deliveryCounty] =>
[deliveryPostcode] => TA7 8LN
)
Does this order already exist?
No
Order data prepared for sync: Array
(
[contactPhone] => 07947 578267
[contactEmail] => info@theredtileinn.co.uk
[contactName] => Rachel McKenzie
[notes] =>
[externalOrderId] => 499326000048908404
[refId] => SO-00457
[externalCustomerId] => 499326000000963900
[externalLocationId] => 499326000000963902
[title] => The Red Tile inn (Cossington)
[deliveryStart] => 2025-09-30
[deliveryEnd] => 2025-09-30
[totalValue] => 107.99
[totalWeight] => 51
[syncInCreated] => 2025-09-30T09:50:27+0100
[syncInUpdated] => 2025-09-30T09:50:30+0100
[syncInStatus] => confirmed
[deliveryName] => The Red Tile inn (Cossington)
[deliveryStreet] => Billing Address
Middle Road
[deliveryCity] => Cossington
[deliveryCounty] =>
[deliveryPostcode] => TA7 8LN
[syncOutUpdated] => 2025-09-30T09:50:30+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Rachel McKenzie
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
New order
Marking order for sync with MaxOptra
Getting customer details
2025-07-09 08:33:13.000Z != 2025-09-29T19:53:02+0100
Customer changed - updating 499326000000963900
Updating order contact details
Getting products
Updating product 499326000000061205
Creating new order product 499326000048908410
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00457
Processing order: 299iija3yl7ynkf, ref SO-00457
Syncing SO-00457
Using default start and end times
Time window: 2025-09-30T06:00:00+01:00 - 2025-09-30T20:00:00+01:00
Found order in MaxOptra? no
Creating SO-00457
Done
Finished syncing to MaxOptra for order SO-00457
Done all.
Finished at 2025-09-30 09:50:32
Webhook - sourceUpdated script called at 2025-09-30 09:51:00
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048908404","salesorder_no":"SO-00457","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048908404","salesorder_no":"SO-00457","status":"invoiced"}}
EXT ID: 499326000048908404
REF: SO-00457
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048908404 (REF SO-00457)
Local order updated = 2025-09-30 08:50:30.000Z,
source updated = 2025-09-30T09:50:35+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00457
Processing order: 299iija3yl7ynkf, ref SO-00457
Syncing SO-00457
Using default start and end times
Time window: 2025-09-30T06:00:00+01:00 - 2025-09-30T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 30/09/2025 09:50 - Local updated: 2025-09-30 08:50:31.000Z - Source updated: 2025-09-30 08:50:30.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status:
Status changed - mark for sync back to source
Webhook - sourceUpdated script called at 2025-09-30 09:51:01
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048908404","salesorder_no":"SO-00457","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048908404","salesorder_no":"SO-00457","status":"invoiced"}}
EXT ID: 499326000048908404
REF: SO-00457
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Is allocated? no
Local updated: 2025-09-30 08:50:31.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Getting local orders...
Updated
Replacing location address in MaxOptra: 499326000000963902
Array
(
[referenceNumber] => 499326000000963902
[name] => The Red Tile inn (Cossington), Billing Address
Middle Road, Cossington
[address] => TA7 8LN
)
499326000000963902
------------------------
Processing order 499326000048908404 (REF SO-00457)
Updates pending to source for order: 499326000048908404
Updates found - pushing to source
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00457
Done all.
Finished at 2025-09-30 09:51:01
Done updating. Proceeding to sync from source.
Local order updated = 2025-09-30 08:50:30.000Z,
source updated = 2025-09-30T09:50:35+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00457
Processing order: 299iija3yl7ynkf, ref SO-00457
Syncing SO-00457
Using default start and end times
Time window: 2025-09-30T06:00:00+01:00 - 2025-09-30T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 30/09/2025 09:51 - Local updated: 2025-09-30 08:50:00.000Z - Source updated: 2025-09-30 08:50:30.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00457
Done all.
Finished at 2025-09-30 09:51:02
Webhook - sourceUpdated script called at 2025-09-30 09:51:32
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048908569","salesorder_no":"SO-00458","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000048908569","salesorder_no":"SO-00458","status":"draft"}}
EXT ID: 499326000048908569
REF: SO-00458
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048908569 (REF SO-00458)
Source order details: Array
(
[contactPhone] => 07399894940
[contactEmail] => alexherriott73@hotmail.com
[contactName] => Alex Herriott
[notes] =>
[externalOrderId] => 499326000048908569
[refId] => SO-00458
[externalCustomerId] => 499326000000421053
[externalLocationId] => 499326000000421056
[title] => New Inn (Wedmore)
[deliveryStart] => 2025-09-30
[deliveryEnd] => 2025-09-30
[totalValue] => 94.5
[totalWeight] => 39
[syncInCreated] => 2025-09-30T09:51:18+0100
[syncInUpdated] => 2025-09-30T09:51:25+0100
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048908575
[externalProductId] => 499326000021043185
[sku] =>
[title] => Bridge Double Hopped Pale Ale 4.2% 30L Keg
[notes] =>
[quantity] => 1
[weightKg] => 39
[weightTotal] => 39
[priceTotal] => 78.75
[price] => 78.75
)
)
[deliveryName] => New Inn (Wedmore)
[deliveryStreet] => Coombe Batch
[deliveryCity] => Wedmore
[deliveryCounty] =>
[deliveryPostcode] => BS28 4DU
)
Does this order already exist?
No
Order data prepared for sync: Array
(
[contactPhone] => 07399894940
[contactEmail] => alexherriott73@hotmail.com
[contactName] => Alex Herriott
[notes] =>
[externalOrderId] => 499326000048908569
[refId] => SO-00458
[externalCustomerId] => 499326000000421053
[externalLocationId] => 499326000000421056
[title] => New Inn (Wedmore)
[deliveryStart] => 2025-09-30
[deliveryEnd] => 2025-09-30
[totalValue] => 94.5
[totalWeight] => 39
[syncInCreated] => 2025-09-30T09:51:18+0100
[syncInUpdated] => 2025-09-30T09:51:25+0100
[syncInStatus] => closed
[deliveryName] => New Inn (Wedmore)
[deliveryStreet] => Coombe Batch
[deliveryCity] => Wedmore
[deliveryCounty] =>
[deliveryPostcode] => BS28 4DU
[syncOutUpdated] => 2025-09-30T09:51:32+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Alex Herriott
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
New order
Marking order for sync with MaxOptra
Getting customer details
2025-06-04 22:00:54.000Z != 2025-09-29T19:53:46+0100
Customer changed - updating 499326000000421053
Updating order contact details
Getting products
Updating product 499326000021043185
Creating new order product 499326000048908575
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00458
Webhook - sourceUpdated script called at 2025-09-30 09:51:33
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048908569","salesorder_no":"SO-00458","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048908569","salesorder_no":"SO-00458","status":"invoiced"}}
EXT ID: 499326000048908569
REF: SO-00458
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Processing order: qt1iayxgzo35ij0, ref SO-00458
Syncing SO-00458
Using default start and end times
Time window: 2025-09-30T06:00:00+01:00 - 2025-09-30T20:00:00+01:00
Found order in MaxOptra? no
Creating SO-00458
Getting local orders...
Done
Finished syncing to MaxOptra for order SO-00458
Done all.
Finished at 2025-09-30 09:51:33
------------------------
Processing order 499326000048908569 (REF SO-00458)
Local order updated = 2025-09-30 08:51:25.000Z,
source updated = 2025-09-30T09:51:25+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00458
Processing order: qt1iayxgzo35ij0, ref SO-00458
Syncing SO-00458
Using default start and end times
Time window: 2025-09-30T06:00:00+01:00 - 2025-09-30T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 30/09/2025 09:51 - Local updated: 2025-09-30 08:51:33.000Z - Source updated: 2025-09-30 08:51:25.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status:
Status changed - mark for sync back to source
Is allocated? no
Local updated: 2025-09-30 08:51:33.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000000421056
Array
(
[referenceNumber] => 499326000000421056
[name] => New Inn (Wedmore), Coombe Batch, Wedmore
[address] => BS28 4DU
)
499326000000421056
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00458
Done all.
Finished at 2025-09-30 09:51:35
Webhook - sourceUpdated script called at 2025-09-30 09:52:03
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048908569","salesorder_no":"SO-00458","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048908569","salesorder_no":"SO-00458","status":"invoiced"}}
EXT ID: 499326000048908569
REF: SO-00458
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048908569 (REF SO-00458)
Updates pending to source for order: 499326000048908569
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-09-30 08:51:25.000Z,
source updated = 2025-09-30T09:51:25+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00458
Processing order: qt1iayxgzo35ij0, ref SO-00458
Syncing SO-00458
Using default start and end times
Time window: 2025-09-30T06:00:00+01:00 - 2025-09-30T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 30/09/2025 09:51 - Local updated: 2025-09-30 08:51:00.000Z - Source updated: 2025-09-30 08:51:25.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00458
Done all.
Finished at 2025-09-30 09:52:04
Webhook - sourceUpdated script called at 2025-09-30 09:52:33
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048908569","salesorder_no":"SO-00458","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048908569","salesorder_no":"SO-00458","status":"invoiced"}}
EXT ID: 499326000048908569
REF: SO-00458
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048908569 (REF SO-00458)
Local order updated = 2025-09-30 08:51:25.000Z,
source updated = 2025-09-30T09:52:03+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00458
Processing order: qt1iayxgzo35ij0, ref SO-00458
Syncing SO-00458
Using default start and end times
Time window: 2025-09-30T06:00:00+01:00 - 2025-09-30T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 30/09/2025 09:51 - Local updated: 2025-09-30 08:51:00.000Z - Source updated: 2025-09-30 08:51:25.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00458
Done all.
Finished at 2025-09-30 09:52:34
Webhook - sourceUpdated script called at 2025-09-30 09:55:30
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048908404","salesorder_no":"SO-00457","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048908404","salesorder_no":"SO-00457","status":"open"}}
EXT ID: 499326000048908404
REF: SO-00457
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048908404 (REF SO-00457)
Local order updated = 2025-09-30 08:50:30.000Z,
source updated = 2025-09-30T09:51:01+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00457
Processing order: 299iija3yl7ynkf, ref SO-00457
Syncing SO-00457
Using default start and end times
Time window: 2025-09-30T06:00:00+01:00 - 2025-09-30T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 30/09/2025 09:51 - Local updated: 2025-09-30 08:50:00.000Z - Source updated: 2025-09-30 08:50:30.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00457
Done all.
Finished at 2025-09-30 09:55:31
Webhook - sourceUpdated script called at 2025-09-30 09:56:02
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048908404","salesorder_no":"SO-00457","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048908404","salesorder_no":"SO-00457","status":"invoiced"}}
EXT ID: 499326000048908404
REF: SO-00457
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048908404 (REF SO-00457)
Local order updated = 2025-09-30 08:50:30.000Z,
source updated = 2025-09-30T09:51:01+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00457
Processing order: 299iija3yl7ynkf, ref SO-00457
Syncing SO-00457
Using default start and end times
Time window: 2025-09-30T06:00:00+01:00 - 2025-09-30T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 30/09/2025 09:51 - Local updated: 2025-09-30 08:50:00.000Z - Source updated: 2025-09-30 08:50:30.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00457
Done all.
Finished at 2025-09-30 09:56:03
Webhook - sourceUpdated script called at 2025-09-30 09:56:23
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048908569","salesorder_no":"SO-00458","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048908569","salesorder_no":"SO-00458","status":"open"}}
EXT ID: 499326000048908569
REF: SO-00458
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048908569 (REF SO-00458)
Local order updated = 2025-09-30 08:51:25.000Z,
source updated = 2025-09-30T09:52:03+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00458
Processing order: qt1iayxgzo35ij0, ref SO-00458
Syncing SO-00458
Using default start and end times
Time window: 2025-09-30T06:00:00+01:00 - 2025-09-30T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 30/09/2025 09:51 - Local updated: 2025-09-30 08:51:00.000Z - Source updated: 2025-09-30 08:51:25.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00458
Done all.
Finished at 2025-09-30 09:56:24
Webhook - sourceUpdated script called at 2025-09-30 10:03:51
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048549582","salesorder_no":"SO-00452","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048549582","salesorder_no":"SO-00452","status":"open"}}
EXT ID: 499326000048549582
REF: SO-00452
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048549582 (REF SO-00452)
Local order updated = 2025-09-24 15:41:46.000Z,
source updated = 2025-09-30T10:03:50+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => The Horseshoe (Chipping Sodbury)
[notes] => Front door open from 10am
[externalOrderId] => 499326000048549582
[refId] => SO-00452
[externalCustomerId] => 499326000047045175
[externalLocationId] => 499326000047045177
[title] => The Horseshoe (Chipping Sodbury)
[deliveryStart] => 2025-10-03
[deliveryEnd] => 2025-10-03
[totalValue] => 287.92
[totalWeight] => 102
[syncInCreated] => 2025-09-24T16:41:46+0100
[syncInUpdated] => 2025-09-30T10:03:50+0100
[syncInStatus] => confirmed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048549588
[externalProductId] => 499326000044145711
[sku] =>
[title] => Harding's Double Hopped (4.0%)
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 79.99
[price] => 79.99
)
[1] => Array
(
[externalOrderProductId] => 499326000048549590
[externalProductId] => 499326000021043799
[sku] => BB-HSAR-9G
[title] => Hardings Amber Ale 3.9% (9g)
[notes] =>
[quantity] => 1
[weightKg] => 51
[weightTotal] => 51
[priceTotal] => 79.95
[price] => 79.95
)
[2] => Array
(
[externalOrderProductId] => 499326000048549592
[externalProductId] => 499326000021043786
[sku] => BB-HSBT-9G
[title] => Hardings Best 4.2% (9g)
[notes] =>
[quantity] => 1
[weightKg] => 51
[weightTotal] => 51
[priceTotal] => 79.99
[price] => 79.99
)
[3] => Array
(
[externalOrderProductId] => 499326000048549594
[externalProductId] => 499326000045856070
[sku] =>
[title] => Harding's POS Package
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
)
[deliveryName] => The Horseshoe (Chipping Sodbury)
[deliveryStreet] => 2 High Street
[deliveryCity] => Chipping Sodbury
[deliveryCounty] =>
[deliveryPostcode] => BS37 6AH
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => The Horseshoe (Chipping Sodbury)
[notes] => Front door open from 10am
[externalOrderId] => 499326000048549582
[refId] => SO-00452
[externalCustomerId] => 499326000047045175
[externalLocationId] => 499326000047045177
[title] => The Horseshoe (Chipping Sodbury)
[deliveryStart] => 2025-10-03
[deliveryEnd] => 2025-10-03
[totalValue] => 287.92
[totalWeight] => 102
[syncInCreated] => 2025-09-24T16:41:46+0100
[syncInUpdated] => 2025-09-30T10:03:50+0100
[syncInStatus] => confirmed
[deliveryName] => The Horseshoe (Chipping Sodbury)
[deliveryStreet] => 2 High Street
[deliveryCity] => Chipping Sodbury
[deliveryCounty] =>
[deliveryPostcode] => BS37 6AH
[syncOutUpdated] => 2025-09-30T10:03:52+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => The Horseshoe (Chipping Sodbury)
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
2025-09-15 08:14:07.000Z != 2025-09-29T19:54:28+0100
Customer changed - updating 499326000047045175
Updating order contact details
Getting products
Updating product 499326000044145711
Updating order product 499326000048549588
Updated
Updating product 499326000021043799
Updating order product 499326000048549590
Updated
Updating product 499326000021043786
Updating order product 499326000048549592
Updated
Updating product 499326000045856070
Updating order product 499326000048549594
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00452
Processing order: 3fhoq4qcndsfans, ref SO-00452
Syncing SO-00452
Using default start and end times
Time window: 2025-10-03T06:00:00+01:00 - 2025-10-03T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 24/09/2025 16:41 - Local updated: 2025-09-30 09:03:52.000Z - Source updated: 2025-09-30 09:03:50.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status:
Status changed - mark for sync back to source
Is allocated? no
Local updated: 2025-09-30 09:03:52.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000047045177
Array
(
[referenceNumber] => 499326000047045177
[name] => The Horseshoe (Chipping Sodbury), 2 High Street, Chipping Sodbury
[address] => BS37 6AH
)
499326000047045177
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00452
Done all.
Finished at 2025-09-30 10:03:54
Webhook - sourceUpdated script called at 2025-09-30 10:04:21
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048549582","salesorder_no":"SO-00452","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048549582","salesorder_no":"SO-00452","status":"invoiced"}}
EXT ID: 499326000048549582
REF: SO-00452
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048549582 (REF SO-00452)
Updates pending to source for order: 499326000048549582
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-09-30 09:03:50.000Z,
source updated = 2025-09-30T10:04:11+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00452
Processing order: 3fhoq4qcndsfans, ref SO-00452
Syncing SO-00452
Using default start and end times
Time window: 2025-10-03T06:00:00+01:00 - 2025-10-03T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 30/09/2025 10:03 - Local updated: 2025-09-24 15:41:00.000Z - Source updated: 2025-09-30 09:03:50.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-09-24 15:41:00.000Z
Pending updates to MaxOptra? no
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00452
Done all.
Finished at 2025-09-30 10:04:24
Webhook - sourceUpdated script called at 2025-09-30 10:04:53
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048549582","salesorder_no":"SO-00452","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048549582","salesorder_no":"SO-00452","status":"invoiced"}}
EXT ID: 499326000048549582
REF: SO-00452
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048549582 (REF SO-00452)
Local order updated = 2025-09-30 09:03:50.000Z,
source updated = 2025-09-30T10:04:22+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00452
Processing order: 3fhoq4qcndsfans, ref SO-00452
Syncing SO-00452
Using default start and end times
Time window: 2025-10-03T06:00:00+01:00 - 2025-10-03T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 30/09/2025 10:03 - Local updated: 2025-09-30 09:03:00.000Z - Source updated: 2025-09-30 09:03:50.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00452
Done all.
Finished at 2025-09-30 10:04:54
Webhook - sourceUpdated script called at 2025-09-30 10:08:35
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048549582","salesorder_no":"SO-00452","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048549582","salesorder_no":"SO-00452","status":"invoiced"}}
EXT ID: 499326000048549582
REF: SO-00452
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048549582 (REF SO-00452)
Local order updated = 2025-09-30 09:03:50.000Z,
source updated = 2025-09-30T10:04:22+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00452
Processing order: 3fhoq4qcndsfans, ref SO-00452
Syncing SO-00452
Using default start and end times
Time window: 2025-10-03T06:00:00+01:00 - 2025-10-03T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 30/09/2025 10:03 - Local updated: 2025-09-30 09:03:00.000Z - Source updated: 2025-09-30 09:03:50.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00452
Done all.
Finished at 2025-09-30 10:08:37
Webhook - sourceUpdated script called at 2025-09-30 10:08:42
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048549582","salesorder_no":"SO-00452","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048549582","salesorder_no":"SO-00452","status":"invoiced"}}
EXT ID: 499326000048549582
REF: SO-00452
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048549582 (REF SO-00452)
Local order updated = 2025-09-30 09:03:50.000Z,
source updated = 2025-09-30T10:04:22+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00452
Processing order: 3fhoq4qcndsfans, ref SO-00452
Syncing SO-00452
Using default start and end times
Time window: 2025-10-03T06:00:00+01:00 - 2025-10-03T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 30/09/2025 10:03 - Local updated: 2025-09-30 09:03:00.000Z - Source updated: 2025-09-30 09:03:50.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00452
Done all.
Finished at 2025-09-30 10:08:43
Webhook - sourceUpdated script called at 2025-09-30 10:08:51
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048549582","salesorder_no":"SO-00452","status":"partially_invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048549582","salesorder_no":"SO-00452","status":"partially_invoiced"}}
EXT ID: 499326000048549582
REF: SO-00452
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048549582 (REF SO-00452)
Local order updated = 2025-09-30 09:03:50.000Z,
source updated = 2025-09-30T10:04:22+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00452
Processing order: 3fhoq4qcndsfans, ref SO-00452
Syncing SO-00452
Using default start and end times
Time window: 2025-10-03T06:00:00+01:00 - 2025-10-03T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 30/09/2025 10:03 - Local updated: 2025-09-30 09:03:00.000Z - Source updated: 2025-09-30 09:03:50.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00452
Done all.
Finished at 2025-09-30 10:08:52
Webhook - sourceUpdated script called at 2025-09-30 12:16:19
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048875146","salesorder_no":"SO-00459","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000048875146","salesorder_no":"SO-00459","status":"draft"}}
EXT ID: 499326000048875146
REF: SO-00459
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048875146 (REF SO-00459)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => info@lambandflag1705.co.uk
[contactName] => Pat Carrol
[notes] =>
[externalOrderId] => 499326000048875146
[refId] => SO-00459
[externalCustomerId] => 499326000009949812
[externalLocationId] => 499326000009949814
[title] => Lamb & Flag (Taunton)
[deliveryStart] => 2025-10-08
[deliveryEnd] => 2025-10-08
[totalValue] => 93.6
[totalWeight] => 51
[syncInCreated] => 2025-09-30T12:16:12+0100
[syncInUpdated] => 2025-09-30T12:16:12+0100
[syncInStatus] => draft
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048875152
[externalProductId] => 499326000021043786
[sku] => BB-HSBT-9G
[title] => Hardings Best Bitter 4.2% (9g)
[notes] =>
[quantity] => 1
[weightKg] => 51
[weightTotal] => 51
[priceTotal] => 78
[price] => 78
)
[1] => Array
(
[externalOrderProductId] => 499326000048875154
[externalProductId] => 499326000039456185
[sku] =>
[title] => POS Harding's Best Bitter 4.2% Pump Clip
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
)
[deliveryName] => Blagdon Hill
[deliveryStreet] =>
[deliveryCity] => Taunton
[deliveryCounty] =>
[deliveryPostcode] => TA3 7SL
)
Does this order already exist?
No
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => info@lambandflag1705.co.uk
[contactName] => Pat Carrol
[notes] =>
[externalOrderId] => 499326000048875146
[refId] => SO-00459
[externalCustomerId] => 499326000009949812
[externalLocationId] => 499326000009949814
[title] => Lamb & Flag (Taunton)
[deliveryStart] => 2025-10-08
[deliveryEnd] => 2025-10-08
[totalValue] => 93.6
[totalWeight] => 51
[syncInCreated] => 2025-09-30T12:16:12+0100
[syncInUpdated] => 2025-09-30T12:16:12+0100
[syncInStatus] => draft
[deliveryName] => Blagdon Hill
[deliveryStreet] =>
[deliveryCity] => Taunton
[deliveryCounty] =>
[deliveryPostcode] => TA3 7SL
[syncOutUpdated] => 2025-09-30T12:16:20+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Pat Carrol
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
New order
Marking order for sync with MaxOptra
Getting customer details
New customer 499326000009949812
Updating order contact details
Getting products
Updating product 499326000021043786
Creating new order product 499326000048875152
Updating product 499326000039456185
Creating new order product 499326000048875154
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00459
Processing order: o0hftmtox80b4n2, ref SO-00459
Syncing SO-00459
Using default start and end times
Time window: 2025-10-08T06:00:00+01:00 - 2025-10-08T20:00:00+01:00
Found order in MaxOptra? no
Creating SO-00459
Done
Finished syncing to MaxOptra for order SO-00459
Done all.
Finished at 2025-09-30 12:16:21
Webhook - sourceUpdated script called at 2025-09-30 12:57:43
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048901093","salesorder_no":"SO-00460","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000048901093","salesorder_no":"SO-00460","status":"draft"}}
EXT ID: 499326000048901093
REF: SO-00460
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048901093 (REF SO-00460)
Source order details: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => Royal Oak
[notes] => Entrance located via car park
Steps opposite bin shed
please take in to pub
do not block doors
[externalOrderId] => 499326000048901093
[refId] => SO-00460
[externalCustomerId] => 499326000048888041
[externalLocationId] => 499326000048888047
[title] => Royal Oak
[deliveryStart] => 2025-10-06
[deliveryEnd] => 2025-10-06
[totalValue] => 98.4
[totalWeight] => 0
[syncInCreated] => 2025-09-30T12:57:20+0100
[syncInUpdated] => 2025-09-30T12:57:20+0100
[syncInStatus] => draft
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048901099
[externalProductId] => 499326000044845196
[sku] =>
[title] => Harding's Golden Ale Pin 4.2%
[notes] =>
[quantity] => 2
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 82
[price] => 41
)
[1] => Array
(
[externalOrderProductId] => HEADER-499326000048901099
[externalProductId] => 499326000048901091
[sku] =>
[title] => Cellar entrance via car park on the right , please do not leave casks blocking doors
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
[2] => Array
(
[externalOrderProductId] => 499326000048901101
[externalProductId] => 499326000045233771
[sku] =>
[title] => POS Hardings Golden Ale Pump Clip
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
[3] => Array
(
[externalOrderProductId] => HEADER-499326000048901101
[externalProductId] => 499326000048901091
[sku] =>
[title] => Cellar entrance via car park on the right , please do not leave casks blocking doors
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
)
[deliveryName] => Royal Oak
[deliveryStreet] => Luxborough
[deliveryCity] => Watchet
[deliveryCounty] =>
[deliveryPostcode] => TA23 0SH
)
Does this order already exist?
No
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => Royal Oak
[notes] => Entrance located via car park
Steps opposite bin shed
please take in to pub
do not block doors
[externalOrderId] => 499326000048901093
[refId] => SO-00460
[externalCustomerId] => 499326000048888041
[externalLocationId] => 499326000048888047
[title] => Royal Oak
[deliveryStart] => 2025-10-06
[deliveryEnd] => 2025-10-06
[totalValue] => 98.4
[totalWeight] => 0
[syncInCreated] => 2025-09-30T12:57:20+0100
[syncInUpdated] => 2025-09-30T12:57:20+0100
[syncInStatus] => draft
[deliveryName] => Royal Oak
[deliveryStreet] => Luxborough
[deliveryCity] => Watchet
[deliveryCounty] =>
[deliveryPostcode] => TA23 0SH
[syncOutUpdated] => 2025-09-30T12:57:44+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Royal Oak
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
New order
Marking order for sync with MaxOptra
Getting customer details
New customer 499326000048888041
Updating order contact details
Getting products
Updating product 499326000044845196
Creating new order product 499326000048901099
Creating product 499326000048901091
Creating new order product HEADER-499326000048901099
Updating product 499326000045233771
Creating new order product 499326000048901101
Updating product 499326000048901091
Creating new order product HEADER-499326000048901101
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00460
Processing order: pg2xpqkky3vq0mh, ref SO-00460
Syncing SO-00460
Using default start and end times
Time window: 2025-10-06T06:00:00+01:00 - 2025-10-06T20:00:00+01:00
Found order in MaxOptra? no
Creating SO-00460
Done
Finished syncing to MaxOptra for order SO-00460
Done all.
Finished at 2025-09-30 12:57:45
Webhook - sourceUpdated script called at 2025-09-30 17:47:17
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048829025","salesorder_no":"SO-00454","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048829025","salesorder_no":"SO-00454","status":"invoiced"}}
EXT ID: 499326000048829025
REF: SO-00454
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048829025 (REF SO-00454)
Local order updated = 2025-09-29 09:11:14.000Z,
source updated = 2025-09-29T10:11:29+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00454
Processing order: ojhz4pxpw9r51yi, ref SO-00454
Syncing SO-00454
Using default start and end times
Delivery start = 2025-09-29 00:00:00.000Z = 2025-09-29T06:00:00+01:00
Delivery end = 2025-09-29 00:00:00.000Z = 2025-09-29T20:00:00+01:00
Delivery is in the past. Skipping creation/update in MaxOptra.
Found order in MaxOptra? yes
MO updated: 29/09/2025 10:11 - Local updated: 2025-09-29 09:11:00.000Z - Source updated: 2025-09-29 09:11:14.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00454
Done all.
Finished at 2025-09-30 17:47:18
Webhook - sourceUpdated script called at 2025-10-01 09:44:05
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048962011","salesorder_no":"SO-00461","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000048962011","salesorder_no":"SO-00461","status":"draft"}}
EXT ID: 499326000048962011
REF: SO-00461
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048962011 (REF SO-00461)
Source order details: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => James Hawthorne
[notes] =>
[externalOrderId] => 499326000048962011
[refId] => SO-00461
[externalCustomerId] => 499326000046958545
[externalLocationId] => 499326000046958553
[title] => Quantock Point To Point
[deliveryStart] => 2025-10-08
[deliveryEnd] => 2025-10-08
[totalValue] => 240
[totalWeight] => 124
[syncInCreated] => 2025-10-01T09:44:02+0100
[syncInUpdated] => 2025-10-01T09:44:02+0100
[syncInStatus] => draft
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048962017
[externalProductId] => 499326000000061277
[sku] => CBBC-CARL-50LK
[title] => Carlsberg Lager 11g
[notes] =>
[quantity] => 2
[weightKg] => 62
[weightTotal] => 124
[priceTotal] => 200
[price] => 100
)
[1] => Array
(
[externalOrderProductId] => HEADER-499326000048962017
[externalProductId] => 499326000048962009
[sku] =>
[title] => Thatcher's Haze pump clip OVAL
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
[2] => Array
(
[externalOrderProductId] => 499326000048962019
[externalProductId] => 499326000021043887
[sku] =>
[title] => Collection of empties
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
[3] => Array
(
[externalOrderProductId] => HEADER-499326000048962019
[externalProductId] => 499326000048962009
[sku] =>
[title] => Thatcher's Haze pump clip OVAL
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
)
[deliveryName] => James Hawthorne
[deliveryStreet] => Pound Farm
[deliveryCity] => Bishops Lydeard
[deliveryCounty] =>
[deliveryPostcode] => TA4 3ND
)
Does this order already exist?
No
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => James Hawthorne
[notes] =>
[externalOrderId] => 499326000048962011
[refId] => SO-00461
[externalCustomerId] => 499326000046958545
[externalLocationId] => 499326000046958553
[title] => Quantock Point To Point
[deliveryStart] => 2025-10-08
[deliveryEnd] => 2025-10-08
[totalValue] => 240
[totalWeight] => 124
[syncInCreated] => 2025-10-01T09:44:02+0100
[syncInUpdated] => 2025-10-01T09:44:02+0100
[syncInStatus] => draft
[deliveryName] => James Hawthorne
[deliveryStreet] => Pound Farm
[deliveryCity] => Bishops Lydeard
[deliveryCounty] =>
[deliveryPostcode] => TA4 3ND
[syncOutUpdated] => 2025-10-01T09:44:06+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => James Hawthorne
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
New order
Marking order for sync with MaxOptra
Getting customer details
2025-08-21 08:01:49.000Z != 2025-10-01T09:41:14+0100
Customer changed - updating 499326000046958545
Updating order contact details
Getting products
Updating product 499326000000061277
Creating new order product 499326000048962017
Creating product 499326000048962009
Creating new order product HEADER-499326000048962017
Updating product 499326000021043887
Creating new order product 499326000048962019
Updating product 499326000048962009
Creating new order product HEADER-499326000048962019
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00461
Processing order: m0sasuaontu1ee9, ref SO-00461
Syncing SO-00461
Using default start and end times
Time window: 2025-10-08T06:00:00+01:00 - 2025-10-08T20:00:00+01:00
Found order in MaxOptra? no
Creating SO-00461
Done
Finished syncing to MaxOptra for order SO-00461
Done all.
Finished at 2025-10-01 09:44:07
Webhook - sourceUpdated script called at 2025-10-01 09:59:16
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048962039","salesorder_no":"SO-00462","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000048962039","salesorder_no":"SO-00462","status":"draft"}}
EXT ID: 499326000048962039
REF: SO-00462
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048962039 (REF SO-00462)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => info@yosc.co.uk
[contactName] => Andy Lathall
[notes] =>
[externalOrderId] => 499326000048962039
[refId] => SO-00462
[externalCustomerId] => 499326000046812601
[externalLocationId] => 499326000046812607
[title] => Yate Outdoor Sports Complex
[deliveryStart] => 2025-10-03
[deliveryEnd] => 2025-10-03
[totalValue] => 302.33
[totalWeight] => 101
[syncInCreated] => 2025-10-01T09:58:49+0100
[syncInUpdated] => 2025-10-01T09:58:49+0100
[syncInStatus] => draft
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048962045
[externalProductId] => 499326000000061781
[sku] => ASHI-PERO-50LK
[title] => Peroni Nastro Azzuro 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 156.99
[price] => 156.99
)
[1] => Array
(
[externalOrderProductId] => 499326000048962047
[externalProductId] => 499326000039253885
[sku] => GK-LLHD-30LK
[title] => Level Head IPA
[notes] =>
[quantity] => 1
[weightKg] => 39
[weightTotal] => 39
[priceTotal] => 94.95
[price] => 94.95
)
)
[deliveryName] => Yate Outdoor Sports Complex
[deliveryStreet] => Broad Lane
[deliveryCity] => Yate
[deliveryCounty] =>
[deliveryPostcode] => BS37 7LB
)
Does this order already exist?
No
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => info@yosc.co.uk
[contactName] => Andy Lathall
[notes] =>
[externalOrderId] => 499326000048962039
[refId] => SO-00462
[externalCustomerId] => 499326000046812601
[externalLocationId] => 499326000046812607
[title] => Yate Outdoor Sports Complex
[deliveryStart] => 2025-10-03
[deliveryEnd] => 2025-10-03
[totalValue] => 302.33
[totalWeight] => 101
[syncInCreated] => 2025-10-01T09:58:49+0100
[syncInUpdated] => 2025-10-01T09:58:49+0100
[syncInStatus] => draft
[deliveryName] => Yate Outdoor Sports Complex
[deliveryStreet] => Broad Lane
[deliveryCity] => Yate
[deliveryCounty] =>
[deliveryPostcode] => BS37 7LB
[syncOutUpdated] => 2025-10-01T09:59:17+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Andy Lathall
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
New order
Marking order for sync with MaxOptra
Getting customer details
2025-09-11 08:45:41.000Z != 2025-10-01T09:58:10+0100
Customer changed - updating 499326000046812601
Updating order contact details
Getting products
Updating product 499326000000061781
Creating new order product 499326000048962045
Updating product 499326000039253885
Creating new order product 499326000048962047
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00462
Processing order: 4dmkrivudjy63aj, ref SO-00462
Syncing SO-00462
Using default start and end times
Time window: 2025-10-03T06:00:00+01:00 - 2025-10-03T20:00:00+01:00
Found order in MaxOptra? no
Creating SO-00462
Done
Finished syncing to MaxOptra for order SO-00462
Done all.
Finished at 2025-10-01 09:59:18
Webhook - sourceUpdated script called at 2025-10-03 08:17:20
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048962039","salesorder_no":"SO-00462","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048962039","salesorder_no":"SO-00462","status":"open"}}
EXT ID: 499326000048962039
REF: SO-00462
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048962039 (REF SO-00462)
Local order updated = 2025-10-01 08:58:49.000Z,
source updated = 2025-10-03T08:17:20+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => info@yosc.co.uk
[contactName] => Andy Lathall
[notes] =>
[externalOrderId] => 499326000048962039
[refId] => SO-00462
[externalCustomerId] => 499326000046812601
[externalLocationId] => 499326000046812607
[title] => Yate Outdoor Sports Complex
[deliveryStart] => 2025-10-03
[deliveryEnd] => 2025-10-03
[totalValue] => 302.33
[totalWeight] => 101
[syncInCreated] => 2025-10-01T09:58:49+0100
[syncInUpdated] => 2025-10-03T08:17:20+0100
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048962045
[externalProductId] => 499326000000061781
[sku] => ASHI-PERO-50LK
[title] => Peroni Nastro Azzuro 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 156.99
[price] => 156.99
)
[1] => Array
(
[externalOrderProductId] => 499326000048962047
[externalProductId] => 499326000039253885
[sku] => GK-LLHD-30LK
[title] => Level Head IPA
[notes] =>
[quantity] => 1
[weightKg] => 39
[weightTotal] => 39
[priceTotal] => 94.95
[price] => 94.95
)
)
[deliveryName] => Yate Outdoor Sports Complex
[deliveryStreet] => Broad Lane
[deliveryCity] => Yate
[deliveryCounty] =>
[deliveryPostcode] => BS37 7LB
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => info@yosc.co.uk
[contactName] => Andy Lathall
[notes] =>
[externalOrderId] => 499326000048962039
[refId] => SO-00462
[externalCustomerId] => 499326000046812601
[externalLocationId] => 499326000046812607
[title] => Yate Outdoor Sports Complex
[deliveryStart] => 2025-10-03
[deliveryEnd] => 2025-10-03
[totalValue] => 302.33
[totalWeight] => 101
[syncInCreated] => 2025-10-01T09:58:49+0100
[syncInUpdated] => 2025-10-03T08:17:20+0100
[syncInStatus] => closed
[deliveryName] => Yate Outdoor Sports Complex
[deliveryStreet] => Broad Lane
[deliveryCity] => Yate
[deliveryCounty] =>
[deliveryPostcode] => BS37 7LB
[syncOutUpdated] => 2025-10-03T08:17:21+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Andy Lathall
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000046812601
Getting products
Updating product 499326000000061781
Updating order product 499326000048962045
Updated
Updating product 499326000039253885
Updating order product 499326000048962047
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00462
Processing order: 4dmkrivudjy63aj, ref SO-00462
Syncing SO-00462
Using default start and end times
Time window: 2025-10-03T06:00:00+01:00 - 2025-10-03T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 01/10/2025 09:59 - Local updated: 2025-10-03 07:17:21.000Z - Source updated: 2025-10-03 07:17:20.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status:
Status changed - mark for sync back to source
Is allocated? no
Local updated: 2025-10-03 07:17:21.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000046812607
Array
(
[referenceNumber] => 499326000046812607
[name] => Yate Outdoor Sports Complex, Broad Lane, Yate
[address] => BS37 7LB
)
499326000046812607
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00462
Done all.
Finished at 2025-10-03 08:17:22
Webhook - sourceUpdated script called at 2025-10-03 08:17:50
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048962039","salesorder_no":"SO-00462","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048962039","salesorder_no":"SO-00462","status":"invoiced"}}
EXT ID: 499326000048962039
REF: SO-00462
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048962039 (REF SO-00462)
Updates pending to source for order: 499326000048962039
Updates found - pushing to source
Webhook - sourceUpdated script called at 2025-10-03 08:17:51
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048962039","salesorder_no":"SO-00462","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048962039","salesorder_no":"SO-00462","status":"invoiced"}}
EXT ID: 499326000048962039
REF: SO-00462
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048962039 (REF SO-00462)
Updates pending to source for order: 499326000048962039
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-10-03 07:17:20.000Z,
source updated = 2025-10-03T08:17:20+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00462
Processing order: 4dmkrivudjy63aj, ref SO-00462
Syncing SO-00462
Using default start and end times
Time window: 2025-10-03T06:00:00+01:00 - 2025-10-03T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 03/10/2025 08:17 - Local updated: 2025-10-01 08:59:00.000Z - Source updated: 2025-10-03 07:17:20.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Done updating. Proceeding to sync from source.
Local order updated = 2025-10-03 07:17:20.000Z,
source updated = 2025-10-03T08:17:20+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00462
Is allocated? no
Local updated: 2025-10-01 08:59:00.000Z
Pending updates to MaxOptra? no
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00462
Done all.
Finished at 2025-10-03 08:17:52
Processing order: 4dmkrivudjy63aj, ref SO-00462
Order is not marked to sync (possibly no longer in source)
Finished syncing to MaxOptra for order SO-00462
Done all.
Finished at 2025-10-03 08:17:52
Webhook - sourceUpdated script called at 2025-10-03 08:18:21
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048962039","salesorder_no":"SO-00462","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048962039","salesorder_no":"SO-00462","status":"invoiced"}}
EXT ID: 499326000048962039
REF: SO-00462
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048962039 (REF SO-00462)
Local order updated = 2025-10-03 07:17:20.000Z,
source updated = 2025-10-03T08:17:51+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00462
Processing order: 4dmkrivudjy63aj, ref SO-00462
Syncing SO-00462
Using default start and end times
Time window: 2025-10-03T06:00:00+01:00 - 2025-10-03T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 03/10/2025 08:17 - Local updated: 2025-10-03 07:17:00.000Z - Source updated: 2025-10-03 07:17:20.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00462
Done all.
Finished at 2025-10-03 08:18:22
Webhook - sourceUpdated script called at 2025-10-03 08:19:23
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048825178","salesorder_no":"SO-00455","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048825178","salesorder_no":"SO-00455","status":"invoiced"}}
EXT ID: 499326000048825178
REF: SO-00455
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048825178 (REF SO-00455)
Updates pending to source for order: 499326000048825178
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-09-29 12:23:18.000Z,
source updated = 2025-10-03T08:19:05+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[contactName] => Wayne Hadley
[notes] => Collect 1 x Brue Keg and empties
[externalOrderId] => 499326000048825178
[refId] => SO-00455
[externalCustomerId] => 499326000046966136
[externalLocationId] => 499326000046966140
[title] => Concierge Events
[deliveryStart] => 2025-10-03
[deliveryEnd] => 2025-10-03
[totalValue] => 270
[totalWeight] => 124
[syncInCreated] => 2025-09-29T13:23:18+0100
[syncInUpdated] => 2025-10-03T08:19:05+0100
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048825184
[externalProductId] => 499326000000061367
[sku] => BBG-SNML-50LK
[title] => San Miguel 11G
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 130
[price] => 130
)
[1] => Array
(
[externalOrderProductId] => 499326000048825186
[externalProductId] => 499326000000063923
[sku] => TTCG-GOLD-50LK
[title] => Thatcher's Gold Cider 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 95
[price] => 95
)
)
[deliveryName] => Concierge Events
[deliveryStreet] => Worle Football Club
[deliveryCity] => Worle
[deliveryCounty] =>
[deliveryPostcode] => BS22 6AH
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[contactName] => Wayne Hadley
[notes] => Collect 1 x Brue Keg and empties
[externalOrderId] => 499326000048825178
[refId] => SO-00455
[externalCustomerId] => 499326000046966136
[externalLocationId] => 499326000046966140
[title] => Concierge Events
[deliveryStart] => 2025-10-03
[deliveryEnd] => 2025-10-03
[totalValue] => 270
[totalWeight] => 124
[syncInCreated] => 2025-09-29T13:23:18+0100
[syncInUpdated] => 2025-10-03T08:19:05+0100
[syncInStatus] => closed
[deliveryName] => Concierge Events
[deliveryStreet] => Worle Football Club
[deliveryCity] => Worle
[deliveryCounty] =>
[deliveryPostcode] => BS22 6AH
[syncOutUpdated] => 2025-10-03T08:19:25+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Wayne Hadley
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
2025-09-11 10:12:10.000Z != 2025-09-29T19:54:27+0100
Customer changed - updating 499326000046966136
Updating order contact details
Getting products
Updating product 499326000000061367
Updating order product 499326000048825184
Updated
Updating product 499326000000063923
Updating order product 499326000048825186
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00455
Processing order: qv5hgbux769xpa4, ref SO-00455
Syncing SO-00455
Using default start and end times
Time window: 2025-10-03T06:00:00+01:00 - 2025-10-03T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 29/09/2025 13:24 - Local updated: 2025-10-03 07:19:25.000Z - Source updated: 2025-10-03 07:19:05.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-10-03 07:19:25.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000046966140
Array
(
[referenceNumber] => 499326000046966140
[name] => Concierge Events, Worle Football Club, Worle
[address] => BS22 6AH
)
499326000046966140
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00455
Done all.
Finished at 2025-10-03 08:19:26
Webhook - sourceUpdated script called at 2025-10-03 08:19:54
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048825178","salesorder_no":"SO-00455","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048825178","salesorder_no":"SO-00455","status":"invoiced"}}
EXT ID: 499326000048825178
REF: SO-00455
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048825178 (REF SO-00455)
Local order updated = 2025-10-03 07:19:05.000Z,
source updated = 2025-10-03T08:19:24+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00455
Processing order: qv5hgbux769xpa4, ref SO-00455
Syncing SO-00455
Using default start and end times
Time window: 2025-10-03T06:00:00+01:00 - 2025-10-03T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 03/10/2025 08:19 - Local updated: 2025-09-29 12:24:00.000Z - Source updated: 2025-10-03 07:19:05.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-09-29 12:24:00.000Z
Pending updates to MaxOptra? no
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00455
Done all.
Finished at 2025-10-03 08:19:55
Webhook - sourceUpdated script called at 2025-10-03 08:22:52
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048962039","salesorder_no":"SO-00462","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048962039","salesorder_no":"SO-00462","status":"invoiced"}}
EXT ID: 499326000048962039
REF: SO-00462
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048962039 (REF SO-00462)
Local order updated = 2025-10-03 07:17:20.000Z,
source updated = 2025-10-03T08:17:51+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00462
Processing order: 4dmkrivudjy63aj, ref SO-00462
Syncing SO-00462
Using default start and end times
Time window: 2025-10-03T06:00:00+01:00 - 2025-10-03T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 03/10/2025 08:17 - Local updated: 2025-10-03 07:17:00.000Z - Source updated: 2025-10-03 07:17:20.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00462
Done all.
Finished at 2025-10-03 08:22:53
Webhook - sourceUpdated script called at 2025-10-03 08:24:00
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048825178","salesorder_no":"SO-00455","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048825178","salesorder_no":"SO-00455","status":"open"}}
EXT ID: 499326000048825178
REF: SO-00455
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048825178 (REF SO-00455)
Local order updated = 2025-10-03 07:19:05.000Z,
source updated = 2025-10-03T08:19:24+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00455
Processing order: qv5hgbux769xpa4, ref SO-00455
Syncing SO-00455
Using default start and end times
Time window: 2025-10-03T06:00:00+01:00 - 2025-10-03T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 03/10/2025 08:19 - Local updated: 2025-10-03 07:19:00.000Z - Source updated: 2025-10-03 07:19:05.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00455
Done all.
Finished at 2025-10-03 08:24:01
Webhook - sourceUpdated script called at 2025-10-03 08:24:12
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048825178","salesorder_no":"SO-00455","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048825178","salesorder_no":"SO-00455","status":"invoiced"}}
EXT ID: 499326000048825178
REF: SO-00455
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048825178 (REF SO-00455)
Local order updated = 2025-10-03 07:19:05.000Z,
source updated = 2025-10-03T08:19:24+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00455
Processing order: qv5hgbux769xpa4, ref SO-00455
Syncing SO-00455
Using default start and end times
Time window: 2025-10-03T06:00:00+01:00 - 2025-10-03T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 03/10/2025 08:19 - Local updated: 2025-10-03 07:19:00.000Z - Source updated: 2025-10-03 07:19:05.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00455
Done all.
Finished at 2025-10-03 08:24:13
Webhook - sourceUpdated script called at 2025-10-03 10:26:17
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048825178","salesorder_no":"SO-00455","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048825178","salesorder_no":"SO-00455","status":"invoiced"}}
EXT ID: 499326000048825178
REF: SO-00455
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048825178 (REF SO-00455)
Local order updated = 2025-10-03 07:19:05.000Z,
source updated = 2025-10-03T10:26:08+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[contactName] => Wayne Hadley
[notes] => Collect 1 x Brue Keg and empties
[externalOrderId] => 499326000048825178
[refId] => SO-00455
[externalCustomerId] => 499326000046966136
[externalLocationId] => 499326000046966140
[title] => Concierge Events
[deliveryStart] => 2025-10-03
[deliveryEnd] => 2025-10-03
[totalValue] => 270
[totalWeight] => 124
[syncInCreated] => 2025-09-29T13:23:18+0100
[syncInUpdated] => 2025-10-03T10:26:08+0100
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048825184
[externalProductId] => 499326000000061367
[sku] => BBG-SNML-50LK
[title] => San Miguel 11G
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 130
[price] => 130
)
[1] => Array
(
[externalOrderProductId] => 499326000048825186
[externalProductId] => 499326000000063923
[sku] => TTCG-GOLD-50LK
[title] => Thatcher's Gold Cider 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 95
[price] => 95
)
)
[deliveryName] => Concierge Events
[deliveryStreet] => Worle Football Club
[deliveryCity] => Worle
[deliveryCounty] =>
[deliveryPostcode] => BS22 6AH
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[contactName] => Wayne Hadley
[notes] => Collect 1 x Brue Keg and empties
[externalOrderId] => 499326000048825178
[refId] => SO-00455
[externalCustomerId] => 499326000046966136
[externalLocationId] => 499326000046966140
[title] => Concierge Events
[deliveryStart] => 2025-10-03
[deliveryEnd] => 2025-10-03
[totalValue] => 270
[totalWeight] => 124
[syncInCreated] => 2025-09-29T13:23:18+0100
[syncInUpdated] => 2025-10-03T10:26:08+0100
[syncInStatus] => closed
[deliveryName] => Concierge Events
[deliveryStreet] => Worle Football Club
[deliveryCity] => Worle
[deliveryCounty] =>
[deliveryPostcode] => BS22 6AH
[syncOutUpdated] => 2025-10-03T10:26:18+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Wayne Hadley
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000046966136
Getting products
Updating product 499326000000061367
Updating order product 499326000048825184
Updated
Updating product 499326000000063923
Updating order product 499326000048825186
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00455
Processing order: qv5hgbux769xpa4, ref SO-00455
Syncing SO-00455
Using default start and end times
Time window: 2025-10-03T06:00:00+01:00 - 2025-10-03T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 03/10/2025 08:19 - Local updated: 2025-10-03 09:26:18.000Z - Source updated: 2025-10-03 09:26:08.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-10-03 09:26:18.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000046966140
Array
(
[referenceNumber] => 499326000046966140
[name] => Concierge Events, Worle Football Club, Worle
[address] => BS22 6AH
)
499326000046966140
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00455
Done all.
Finished at 2025-10-03 10:26:19
Webhook - sourceUpdated script called at 2025-10-03 19:31:10
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048549582","salesorder_no":"SO-00452","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048549582","salesorder_no":"SO-00452","status":"invoiced"}}
EXT ID: 499326000048549582
REF: SO-00452
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048549582 (REF SO-00452)
Local order updated = 2025-09-30 09:03:50.000Z,
source updated = 2025-10-03T19:30:51+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => The Horseshoe (Chipping Sodbury)
[notes] => Front door open from 10am
[externalOrderId] => 499326000048549582
[refId] => SO-00452
[externalCustomerId] => 499326000047045175
[externalLocationId] => 499326000047045177
[title] => The Horseshoe (Chipping Sodbury)
[deliveryStart] => 2025-10-03
[deliveryEnd] => 2025-10-03
[totalValue] => 292.72
[totalWeight] => 153
[syncInCreated] => 2025-09-24T16:41:46+0100
[syncInUpdated] => 2025-10-03T19:30:51+0100
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048549588
[externalProductId] => 499326000044145711
[sku] => BB-HSDD-9G
[title] => Hardings Double Hopped 4.0% (9g)
[notes] =>
[quantity] => 1
[weightKg] => 51
[weightTotal] => 51
[priceTotal] => 83.99
[price] => 83.99
)
[1] => Array
(
[externalOrderProductId] => 499326000048549590
[externalProductId] => 499326000021043799
[sku] => BB-HSAR-9G
[title] => Hardings Amber Ale 3.9% (9g)
[notes] =>
[quantity] => 1
[weightKg] => 51
[weightTotal] => 51
[priceTotal] => 79.95
[price] => 79.95
)
[2] => Array
(
[externalOrderProductId] => 499326000048549592
[externalProductId] => 499326000021043786
[sku] => BB-HSBT-9G
[title] => Hardings Best 4.2% (9g)
[notes] =>
[quantity] => 1
[weightKg] => 51
[weightTotal] => 51
[priceTotal] => 79.99
[price] => 79.99
)
)
[deliveryName] => The Horseshoe (Chipping Sodbury)
[deliveryStreet] => 2 High Street
[deliveryCity] => Chipping Sodbury
[deliveryCounty] =>
[deliveryPostcode] => BS37 6AH
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => The Horseshoe (Chipping Sodbury)
[notes] => Front door open from 10am
[externalOrderId] => 499326000048549582
[refId] => SO-00452
[externalCustomerId] => 499326000047045175
[externalLocationId] => 499326000047045177
[title] => The Horseshoe (Chipping Sodbury)
[deliveryStart] => 2025-10-03
[deliveryEnd] => 2025-10-03
[totalValue] => 292.72
[totalWeight] => 153
[syncInCreated] => 2025-09-24T16:41:46+0100
[syncInUpdated] => 2025-10-03T19:30:51+0100
[syncInStatus] => closed
[deliveryName] => The Horseshoe (Chipping Sodbury)
[deliveryStreet] => 2 High Street
[deliveryCity] => Chipping Sodbury
[deliveryCounty] =>
[deliveryPostcode] => BS37 6AH
[syncOutUpdated] => 2025-10-03T19:31:11+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => The Horseshoe (Chipping Sodbury)
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000047045175
Getting products
Updating product 499326000044145711
Updating order product 499326000048549588
Updated
Updating product 499326000021043799
Updating order product 499326000048549590
Updated
Updating product 499326000021043786
Updating order product 499326000048549592
Updated
Removing deleted order items
Removing order item 499326000048549594
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00452
Processing order: 3fhoq4qcndsfans, ref SO-00452
Syncing SO-00452
Using default start and end times
Time window: 2025-10-03T06:00:00+01:00 - 2025-10-03T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 30/09/2025 10:03 - Local updated: 2025-10-03 18:31:11.000Z - Source updated: 2025-10-03 18:30:51.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-10-03 18:31:11.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000047045177
Array
(
[referenceNumber] => 499326000047045177
[name] => The Horseshoe (Chipping Sodbury), 2 High Street, Chipping Sodbury
[address] => BS37 6AH
)
499326000047045177
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00452
Done all.
Finished at 2025-10-03 19:31:13
Webhook - destinationUpdated script called at 2025-10-03 19:31:25
JSON: {"payload":{"orderReference":"SO-00455","status":"ALLOCATED"},"timestamp":"2025-10-03T18:31:25Z"}
REF: SO-00455
Filter: refId="SO-00455"
200 response code sent
Local item: {"addons":[],"attachments":[],"collectionEnd":"","collectionId":"s93ukjlitoinx2e","collectionInstructions":"","collectionName":"orders","collectionStart":"","company":"1kmltj8w8rnhbfx","contactEmail":"wayne.hadley@conciergeuk.co.uk","contactName":"Wayne Hadley","contactNotes":"","contactPhone":"","created":"2025-09-29 12:23:39.282Z","custom":[],"customer":"pro2diwlme62ylp","deliveryCity":"Worle","deliveryCounty":"","deliveryEnd":"2025-10-03 00:00:00.000Z","deliveryInstructions":"","deliveryName":"Concierge Events","deliveryPostcode":"BS22 6AH","deliveryStart":"2025-10-03 00:00:00.000Z","deliveryStreet":"Worle Football Club","description":"","driverRef":"","externalCustomerId":"499326000046966136","externalLocationId":"499326000046966140","externalOrderId":"499326000048825178","id":"qv5hgbux769xpa4","isCancelled":false,"isCollection":false,"isReadyToSync":false,"isScheduledCollection":false,"isScheduledDelivery":false,"isUntracked":false,"mergeRef":"","notes":"Collect 1 x Brue Keg and empties","orderedAt":"","overrideVolume":0,"overrideWeight":0,"paymentMethod":"","pendingSyncFromDestination":false,"pendingSyncFromSource":false,"pendingSyncToDestination":false,"pendingSyncToSource":false,"ref":"","refId":"SO-00455","requestedDeliveryDays":"","seqNo":"","signature":"","signatureName":"","signatureTime":"","statusCollection":"","statusDelivery":"Pending","syncInCreated":"2025-09-29 12:23:18.000Z","syncInStatus":"closed","syncInUpdated":"2025-10-03 09:26:08.000Z","syncOutStatus":"UNALLOCATED","syncOutUpdated":"2025-10-03 07:19:00.000Z","timeWindows":[],"title":"Concierge Events","totalValue":270,"totalWeight":124,"type":"","updated":"2025-10-03 09:26:19.784Z","vehicleRef":"","what3Words":""}
Updating local order from MaxOptra - current local order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[contactName] => Wayne Hadley
[contactNotes] =>
[contactPhone] =>
[created] => 2025-09-29 12:23:39.282Z
[custom] => Array
(
)
[customer] => pro2diwlme62ylp
[deliveryCity] => Worle
[deliveryCounty] =>
[deliveryEnd] => 2025-10-03 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Concierge Events
[deliveryPostcode] => BS22 6AH
[deliveryStart] => 2025-10-03 00:00:00.000Z
[deliveryStreet] => Worle Football Club
[description] =>
[driverRef] =>
[externalCustomerId] => 499326000046966136
[externalLocationId] => 499326000046966140
[externalOrderId] => 499326000048825178
[id] => qv5hgbux769xpa4
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] => Collect 1 x Brue Keg and empties
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] =>
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00455
[requestedDeliveryDays] =>
[seqNo] =>
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Pending
[syncInCreated] => 2025-09-29 12:23:18.000Z
[syncInStatus] => closed
[syncInUpdated] => 2025-10-03 09:26:08.000Z
[syncOutStatus] => UNALLOCATED
[syncOutUpdated] => 2025-10-03 07:19:00.000Z
[timeWindows] => Array
(
)
[title] => Concierge Events
[totalValue] => 270
[totalWeight] => 124
[type] =>
[updated] => 2025-10-03 09:26:19.784Z
[vehicleRef] =>
[what3Words] =>
)
MaxOptra order details: Array
(
[0] => Array
(
[referenceNumber] => SO-00455
[consignmentReference] =>
[distributionCentreReference] => Head Office
[distributionCentreName] => Head Office
[task] => DELIVERY
[priority] => NORMAL
[vehicleRequirements] => Array
(
)
[additionalInstructions] => Collect 1 x Brue Keg and empties
[clientName] => Concierge Events
[contactPerson] => Wayne Hadley
[contactNumber] =>
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[additionalContactEmails] =>
[notificationPreferences] => Array
(
[allowSMS] => 1
[allowEmail] => 1
)
[customerLocation] => Array
(
[referenceNumber] => 499326000046966140
[name] => Concierge Events, Worle Football Club, Worle
[address] => BS22 6AH
[w3wAddress] =>
[latitude] => 51.35846
[longitude] => -2.92353
)
[territoryReference] =>
[stopSequence] => ANY
[timeWindows] => Array
(
[0] => Array
(
[start] => 2025-10-03T06:00:00+01:00
[end] => 2025-10-03T20:00:00+01:00
)
)
[orderDate] =>
[capacity1] => 124
[capacity2] => 0
[price] =>
[operationDuration] => 486
[customFields] => Array
(
)
[orderItems] => Array
(
[0] => Array
(
[itemReferenceNumber] => 499326000000061367
[orderReferenceNumber] => SO-00455
[name] => San Miguel 11G
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 130
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 130
[height] => 0
[width] => 0
[length] => 0
[weight] => 62
[volume] => 0
)
[1] => Array
(
[itemReferenceNumber] => 499326000000063923
[orderReferenceNumber] => SO-00455
[name] => Thatcher's Gold Cider 11g
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 95
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 95
[height] => 0
[width] => 0
[length] => 0
[weight] => 62
[volume] => 0
)
)
[widgetTrackingDetails] =>
)
)
MaxOptra schedule details: Array
(
[orderReferenceNumber] => SO-00455
[assignedDriverReference] => Lewis Newman
[assignedDriverName] => Lewis Newman
[assignedVehicleReference] => WD25HWY
[assignedVehicleName] => WD25HWY
[plannedArrivalTime] => 2025-10-03T19:59:08+01:00
[plannedCompletionTime] => 2025-10-03T20:07:14+01:00
[stopNumber] => 1
[totalStopsInRun] => 1
[runNumber] => 1
[runReference] => a129c109f5d341e9930995b895c9ca81
[eta] =>
[factArrivalTimeGPS] =>
[factCompletionTimeGPS] =>
[factArrivalTimeReported] =>
[factCompletionTimeReported] =>
[failReason] =>
[failComment] =>
[status] => ALLOCATED
[driver] => Lewis Newman
[arrival_planned] => 2025-10-03T19:59:08+01:00
[arrival_estimated] =>
[arrival_actual] =>
[totalStops] => 1
)
Updating order: SO-00455
Update ID qv5hgbux769xpa4 with: Array
(
[custom] => Array
(
)
[driverRef] => Lewis Newman
[vehicleRef] => WD25HWY
[seqNo] => 1
)
Updated order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[contactName] => Wayne Hadley
[contactNotes] =>
[contactPhone] =>
[created] => 2025-09-29 12:23:39.282Z
[custom] => Array
(
)
[customer] => pro2diwlme62ylp
[deliveryCity] => Worle
[deliveryCounty] =>
[deliveryEnd] => 2025-10-03 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Concierge Events
[deliveryPostcode] => BS22 6AH
[deliveryStart] => 2025-10-03 00:00:00.000Z
[deliveryStreet] => Worle Football Club
[description] =>
[driverRef] => Lewis Newman
[externalCustomerId] => 499326000046966136
[externalLocationId] => 499326000046966140
[externalOrderId] => 499326000048825178
[id] => qv5hgbux769xpa4
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] => Collect 1 x Brue Keg and empties
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] =>
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00455
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Pending
[syncInCreated] => 2025-09-29 12:23:18.000Z
[syncInStatus] => closed
[syncInUpdated] => 2025-10-03 09:26:08.000Z
[syncOutStatus] => UNALLOCATED
[syncOutUpdated] => 2025-10-03 07:19:00.000Z
[timeWindows] => Array
(
)
[title] => Concierge Events
[totalValue] => 270
[totalWeight] => 124
[type] =>
[updated] => 2025-10-03 18:31:25.881Z
[vehicleRef] => WD25HWY
[what3Words] =>
)
Updating source from local order
Getting custom fields
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-07-18 02:35:52.065Z
[id] => nc7sndad5bhvi5x
[inCollection] => orders
[inField] => paymentMethod
[mappedField] => 7DCPayment
[name] => Payment method
[sourceField] =>
[syncFromSource] => 1
[syncToSource] =>
[type] => text
[updated] => 2025-07-18 02:35:52.065Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Processing field
Mapped field: 7DCEmpties
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
Processing field
Mapped field: 7DCEmptiesGas
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:03:34.631Z
[id] => pcn96l3kgkps4az
[inCollection] => orders
[inField] => driverRef
[mappedField] =>
[name] => Delivery driver
[sourceField] => cf_delivery_driver
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:03:34.631Z
)
Processing field
driverRef...
Value: Lewis Newman
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-08 04:52:51.399Z
[id] => hhrzcmytzs8p3kw
[inCollection] => orders
[inField] => seqNo
[mappedField] =>
[name] => Run number
[sourceField] => cf_run_number
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-08 04:52:51.399Z
)
Processing field
seqNo...
Value: 1
Finished processing field
Continue
Updating source order: Array
(
[custom_fields] => Array
(
[0] => Array
(
[api_name] => cf_delivery_driver
[value] => Lewis Newman
)
[1] => Array
(
[api_name] => cf_run_number
[value] => 1
)
)
)
Update result: Array
(
[code] => 0
[message] => Sales Order has been updated.
[salesorder] => Array
(
[salesorder_id] => 499326000048825178
[is_viewed_in_mail] =>
[mail_first_viewed_time] =>
[mail_last_viewed_time] =>
[documents] => Array
(
)
[zcrm_potential_id] =>
[zcrm_potential_name] =>
[salesorder_number] => SO-00455
[date] => 2025-10-03
[offline_created_date_with_time] =>
[tracking_url] =>
[has_discount] =>
[status] => confirmed
[color_code] =>
[current_sub_status_id] =>
[current_sub_status] => closed
[sub_statuses] => Array
(
)
[shipment_date] => 2025-10-03
[reference_number] =>
[customer_id] => 499326000046966136
[customer_name] => Concierge Events
[contact_persons] => Array
(
[0] => 499326000047525212
)
[contact_persons_associated] => Array
(
[0] => Array
(
[contact_person_id] => 499326000047525212
[contact_person_email] => wayne.hadley@conciergeuk.co.uk
[first_name] => Wayne
[last_name] => Hadley
[mobile] =>
[communication_preference] => Array
(
[is_email_enabled] => 1
)
)
)
[contact_person_details] => Array
(
[0] => Array
(
[phone] =>
[mobile] =>
[last_name] => Hadley
[contact_person_id] => 499326000047525212
[first_name] => Wayne
[email] => wayne.hadley@conciergeuk.co.uk
)
)
[source] => Api
[contact_category] => uk
[is_taxable] =>
[has_shipping_address] => 1
[currency_id] => 499326000000000065
[currency_code] => GBP
[currency_symbol] => £
[exchange_rate] => 1
[is_discount_before_tax] => 1
[discount_type] => item_level
[estimate_id] =>
[delivery_method] =>
[delivery_method_id] =>
[vat_treatment] => uk
[is_inclusive_tax] =>
[tax_rounding] => entity_level
[tax_override_preference] => no_override
[order_status] => closed
[invoiced_status] => invoiced
[paid_status] => unpaid
[shipped_status] => pending
[sales_channel] => direct_sales
[sales_channel_formatted] => Direct Sales
[account_identifier] =>
[integration_id] =>
[is_dropshipped] =>
[is_backordered] =>
[is_manually_fulfilled] =>
[can_manually_fulfill] => 1
[has_qty_cancelled] =>
[is_reverse_charge_applied] =>
[shipping_details] => Array
(
)
[created_by_email] => sophie@7daycellar.co.uk
[created_by_name] => Sophie Redman
[branch_id] => 499326000023111007
[branch_name] => Head Office
[location_id] => 499326000023111007
[location_name] => Head Office
[total_quantity] => 2
[line_items] => Array
(
[0] => Array
(
[line_item_id] => 499326000048825184
[variant_id] => 499326000000061367
[track_batch_number] =>
[item_id] => 499326000000061367
[is_returnable] =>
[product_id] => 499326000000061367
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] => BBG-SNML-50LK
[name] => San Miguel 11G
[group_name] => San Miguel 11G
[description] =>
[item_order] => 0
[bcy_rate] => 130
[rate] => 130
[sales_rate] => 146.95
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 26
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 130
[item_sub_total] => 130
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] => San Miguel.png
[image_type] => png
[document_id] => 499326000044988871
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 1
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] => 62
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
[1] => Array
(
[line_item_id] => 499326000048825186
[variant_id] => 499326000000063923
[track_batch_number] =>
[item_id] => 499326000000063923
[is_returnable] =>
[product_id] => 499326000000063923
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] => TTCG-GOLD-50LK
[name] => Thatcher's Gold Cider 11g
[group_name] => Thatcher's Gold Cider 11g
[description] =>
[item_order] => 1
[bcy_rate] => 95
[rate] => 95
[sales_rate] => 110.99
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 19
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 95
[item_sub_total] => 95
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] => Thatchers Gold Badge.png
[image_type] => png
[document_id] => 499326000044989043
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 1
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] => 62
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
)
[is_advanced_tracking_missing] =>
[entity_tags] =>
[submitter_id] =>
[approver_id] =>
[submitted_date] =>
[submitted_by] =>
[submitted_by_name] =>
[submitted_by_email] =>
[submitted_by_photo_url] =>
[price_precision] => 2
[is_emailed] =>
[has_unconfirmed_line_item] =>
[picklists] => Array
(
)
[purchaseorders] => Array
(
)
[locations] => Array
(
[0] => Array
(
[location_id] => 499326000023111007
[location_name] => Head Office
[status] => active
)
[1] => Array
(
[location_id] => 499326000041689155
[location_name] => Bason Bridge Brewery Duty Bonded Warehouse
[status] => active
)
)
[billing_address_id] => 499326000046966138
[billing_address] => Array
(
[address] => 21 North St
[street2] =>
[city] => Weston Super Mare
[state] =>
[zip] =>
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[shipping_address_id] => 499326000046966140
[shipping_address] => Array
(
[company_name] =>
[address] => Worle Football Club
[street2] => Station Road
[city] => Worle
[state] => Weston Super Mare
[zip] => BS22 6AH
[country] => United Kingdom
[country_code] => GB
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[is_test_order] =>
[notes] => Account Name: 7 Day Cellar Ltd
Sort Code: 09-01-30
Account No: 10888924
[terms] =>
[payment_terms] => 7
[payment_terms_label] => Net 7
[custom_fields] => Array
(
[0] => Array
(
[field_id] => 499326000042690007
[customfield_id] => 499326000042690007
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 1
[label] => Automation Required
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[is_color_code_supported] =>
[api_name] => cf__ulrql_automation_required
[show_in_all_pdf] =>
[selected_option_id] => 499326000042690011
[value_formatted] => Yes
[search_entity] => salesorder
[data_type] => dropdown
[placeholder] => cf__ulrql_automation_required
[value] => Yes
[is_dependent_field] =>
)
[1] => Array
(
[field_id] => 499326000046252143
[customfield_id] => 499326000046252143
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 2
[label] => Delivery Instructions
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_instructions
[show_in_all_pdf] =>
[value_formatted] => Collect 1 x Brue Keg and empties
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_instructions
[value] => Collect 1 x Brue Keg and empties
[is_dependent_field] =>
)
[2] => Array
(
[field_id] => 499326000046252173
[customfield_id] => 499326000046252173
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 3
[label] => Delivery Driver
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_driver
[show_in_all_pdf] =>
[value_formatted] => Lewis Newman
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_driver
[value] => Lewis Newman
[is_dependent_field] =>
)
[3] => Array
(
[field_id] => 499326000046717945
[customfield_id] => 499326000046717945
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 4
[label] => GoCardless Mandate
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_gocardless_mandate
[show_in_all_pdf] =>
[value_formatted] => True
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_gocardless_mandate
[value] => True
[is_dependent_field] =>
)
[4] => Array
(
[field_id] => 499326000047922345
[customfield_id] => 499326000047922345
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 5
[label] => Run Number
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_run_number
[show_in_all_pdf] =>
[value_formatted] => 1
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_run_number
[value] => 1
[is_dependent_field] =>
)
)
[custom_field_hash] => Array
(
[cf__ulrql_automation_required] => Yes
[cf__ulrql_automation_required_unformatted] => Yes
[cf_delivery_instructions] => Collect 1 x Brue Keg and empties
[cf_delivery_instructions_unformatted] => Collect 1 x Brue Keg and empties
[cf_delivery_driver] => Lewis Newman
[cf_delivery_driver_unformatted] => Lewis Newman
[cf_gocardless_mandate] => True
[cf_gocardless_mandate_unformatted] => True
[cf_run_number] => 1
[cf_run_number_unformatted] => 1
)
[template_id] => 499326000000000111
[template_name] => Standard Template
[page_width] => 8.27in
[page_height] => 11.69in
[orientation] => portrait
[template_type] => standard
[created_time] => 2025-09-29T13:23:18+0100
[last_modified_time] => 2025-10-03T19:31:26+0100
[created_by_id] => 499326000044308001
[created_date] => 2025-09-29
[last_modified_by_id] => 499326000044410001
[attachment_name] =>
[can_send_in_mail] =>
[salesperson_id] => 499326000044620336
[salesperson_name] => Sophie Redman
[merchant_id] =>
[merchant_name] =>
[pickup_location_id] =>
[discount] => 0
[discount_applied_on_amount] => 0
[is_adv_tracking_in_package] =>
[shipping_charge_taxes] => Array
(
)
[lock_details] => Array
(
[can_lock] =>
)
[locked_actions] => Array
(
)
[shipping_charge_tax_id] =>
[shipping_charge_tax_name] =>
[shipping_charge_tax_type] =>
[shipping_charge_tax_percentage] =>
[shipping_charge_tax_exemption_id] =>
[shipping_charge_tax_exemption_code] =>
[shipping_charge_tax] =>
[bcy_shipping_charge_tax] =>
[shipping_charge_exclusive_of_tax] => 0
[shipping_charge_inclusive_of_tax] => 0
[shipping_charge_tax_formatted] =>
[shipping_charge_exclusive_of_tax_formatted] => £0.00
[shipping_charge_inclusive_of_tax_formatted] => £0.00
[shipping_charge] => 0
[bcy_shipping_charge] => 0
[adjustment] => 0
[bcy_adjustment] => 0
[adjustment_description] => Adjustment
[roundoff_value] => 0
[transaction_rounding_type] => no_rounding
[rounding_mode] => round_half_up
[bcy_rounding_mode] => round_half_up
[sub_total] => 225
[bcy_sub_total] => 225
[sub_total_inclusive_of_tax] => 0
[sub_total_exclusive_of_discount] => 225
[discount_total] => 0
[bcy_discount_total] => 0
[discount_percent] => 0
[tax_total] => 45
[bcy_tax_total] => 45
[total] => 270
[computation_type] => basic
[bcy_total] => 270
[reverse_charge_tax_total] => 0
[taxes] => Array
(
[0] => Array
(
[tax_amount] => 45
[tax_name] => Standard Rate
[tax_amount_formatted] => £45.00
)
)
[tds_calculation_type] => tds_item_level
[packages] => Array
(
)
[so_cycle_preference] => Array
(
[is_feature_enabled] => 1
[socycle_status] => not_triggered
[can_create_invoice] => 1
[can_create_package] =>
[can_create_shipment] =>
[shipment_preference] => Array
(
[default_carrier] =>
[send_notification] =>
[deliver_shipments] =>
)
[invoice_preference] => Array
(
[mark_as_sent] =>
[record_payment] =>
[payment_mode_id] => 499326000000000199
[payment_account_id] => 499326000000000349
)
)
[invoices] => Array
(
[0] => Array
(
[invoice_id] => 499326000049016378
[invoice_number] => INV-26126
[reference_number] => SO-00455
[status] => sent
[date] => 2025-10-03
[due_date] => 2025-10-10
[total] => 156
[balance] => 156
)
)
[can_show_kit_return] =>
[is_kit_partial_return] =>
[salesreturns] => Array
(
)
[payments] => Array
(
)
[creditnotes] => Array
(
)
[refunds] => Array
(
)
[contact] => Array
(
[customer_balance] => 420
[credit_limit] => 0
[unused_customer_credits] => 0
[is_credit_limit_migration_completed] => 1
)
[balance] => 270
[approvers_list] => Array
(
)
[is_scheduled_for_quick_shipment_create] =>
)
)
Webhook - sourceUpdated script called at 2025-10-03 19:31:41
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048825178","salesorder_no":"SO-00455","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048825178","salesorder_no":"SO-00455","status":"invoiced"}}
EXT ID: 499326000048825178
REF: SO-00455
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048825178 (REF SO-00455)
Local order updated = 2025-10-03 09:26:08.000Z,
source updated = 2025-10-03T19:31:26+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[contactName] => Wayne Hadley
[notes] => Collect 1 x Brue Keg and empties
[externalOrderId] => 499326000048825178
[refId] => SO-00455
[externalCustomerId] => 499326000046966136
[externalLocationId] => 499326000046966140
[title] => Concierge Events
[deliveryStart] => 2025-10-03
[deliveryEnd] => 2025-10-03
[totalValue] => 270
[totalWeight] => 124
[syncInCreated] => 2025-09-29T13:23:18+0100
[syncInUpdated] => 2025-10-03T19:31:26+0100
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048825184
[externalProductId] => 499326000000061367
[sku] => BBG-SNML-50LK
[title] => San Miguel 11G
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 130
[price] => 130
)
[1] => Array
(
[externalOrderProductId] => 499326000048825186
[externalProductId] => 499326000000063923
[sku] => TTCG-GOLD-50LK
[title] => Thatcher's Gold Cider 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 95
[price] => 95
)
)
[deliveryName] => Concierge Events
[deliveryStreet] => Worle Football Club
[deliveryCity] => Worle
[deliveryCounty] =>
[deliveryPostcode] => BS22 6AH
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[contactName] => Wayne Hadley
[notes] => Collect 1 x Brue Keg and empties
[externalOrderId] => 499326000048825178
[refId] => SO-00455
[externalCustomerId] => 499326000046966136
[externalLocationId] => 499326000046966140
[title] => Concierge Events
[deliveryStart] => 2025-10-03
[deliveryEnd] => 2025-10-03
[totalValue] => 270
[totalWeight] => 124
[syncInCreated] => 2025-09-29T13:23:18+0100
[syncInUpdated] => 2025-10-03T19:31:26+0100
[syncInStatus] => closed
[deliveryName] => Concierge Events
[deliveryStreet] => Worle Football Club
[deliveryCity] => Worle
[deliveryCounty] =>
[deliveryPostcode] => BS22 6AH
[syncOutUpdated] => 2025-10-03T19:31:41+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Wayne Hadley
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000046966136
Getting products
Updating product 499326000000061367
Updating order product 499326000048825184
Updated
Updating product 499326000000063923
Updating order product 499326000048825186
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00455
Processing order: qv5hgbux769xpa4, ref SO-00455
Syncing SO-00455
Using default start and end times
Time window: 2025-10-03T06:00:00+01:00 - 2025-10-03T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 03/10/2025 19:31 - Local updated: 2025-10-03 18:31:41.000Z - Source updated: 2025-10-03 18:31:26.000Z
Changed? yes
Current MaxOptra status: ALLOCATED
Completed? no
Previous status: UNALLOCATED
Status changed - mark for sync back to source
Is allocated? yes
MO delivery date: 2025-10-03, Local delivery date: 2025-10-03
Local updated: 2025-10-03 18:31:41.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000046966140
Array
(
[referenceNumber] => 499326000046966140
[name] => Concierge Events, Worle Football Club, Worle
[address] => BS22 6AH
)
499326000046966140
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00455
Done all.
Finished at 2025-10-03 19:31:43
Webhook - destinationUpdated script called at 2025-10-03 19:31:43
JSON: {"payload":{"orderReference":"SO-00455","status":"UNALLOCATED"},"timestamp":"2025-10-03T18:31:43Z"}
REF: SO-00455
Filter: refId="SO-00455"
200 response code sent
Local item: {"addons":[],"attachments":[],"collectionEnd":"","collectionId":"s93ukjlitoinx2e","collectionInstructions":"","collectionName":"orders","collectionStart":"","company":"1kmltj8w8rnhbfx","contactEmail":"wayne.hadley@conciergeuk.co.uk","contactName":"Wayne Hadley","contactNotes":"","contactPhone":"","created":"2025-09-29 12:23:39.282Z","custom":[],"customer":"pro2diwlme62ylp","deliveryCity":"Worle","deliveryCounty":"","deliveryEnd":"2025-10-03 00:00:00.000Z","deliveryInstructions":"","deliveryName":"Concierge Events","deliveryPostcode":"BS22 6AH","deliveryStart":"2025-10-03 00:00:00.000Z","deliveryStreet":"Worle Football Club","description":"","driverRef":"Lewis Newman","externalCustomerId":"499326000046966136","externalLocationId":"499326000046966140","externalOrderId":"499326000048825178","id":"qv5hgbux769xpa4","isCancelled":false,"isCollection":false,"isReadyToSync":false,"isScheduledCollection":false,"isScheduledDelivery":false,"isUntracked":false,"mergeRef":"","notes":"Collect 1 x Brue Keg and empties","orderedAt":"","overrideVolume":0,"overrideWeight":0,"paymentMethod":"","pendingSyncFromDestination":false,"pendingSyncFromSource":false,"pendingSyncToDestination":true,"pendingSyncToSource":true,"ref":"","refId":"SO-00455","requestedDeliveryDays":"","seqNo":"1","signature":"","signatureName":"","signatureTime":"","statusCollection":"","statusDelivery":"Scheduled","syncInCreated":"2025-09-29 12:23:18.000Z","syncInStatus":"closed","syncInUpdated":"2025-10-03 18:31:26.000Z","syncOutStatus":"ALLOCATED","syncOutUpdated":"2025-10-03 18:31:00.000Z","timeWindows":[],"title":"Concierge Events","totalValue":270,"totalWeight":124,"type":"","updated":"2025-10-03 18:31:43.715Z","vehicleRef":"WD25HWY","what3Words":""}
Updating local order from MaxOptra - current local order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[contactName] => Wayne Hadley
[contactNotes] =>
[contactPhone] =>
[created] => 2025-09-29 12:23:39.282Z
[custom] => Array
(
)
[customer] => pro2diwlme62ylp
[deliveryCity] => Worle
[deliveryCounty] =>
[deliveryEnd] => 2025-10-03 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Concierge Events
[deliveryPostcode] => BS22 6AH
[deliveryStart] => 2025-10-03 00:00:00.000Z
[deliveryStreet] => Worle Football Club
[description] =>
[driverRef] => Lewis Newman
[externalCustomerId] => 499326000046966136
[externalLocationId] => 499326000046966140
[externalOrderId] => 499326000048825178
[id] => qv5hgbux769xpa4
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] => Collect 1 x Brue Keg and empties
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] => 1
[ref] =>
[refId] => SO-00455
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Scheduled
[syncInCreated] => 2025-09-29 12:23:18.000Z
[syncInStatus] => closed
[syncInUpdated] => 2025-10-03 18:31:26.000Z
[syncOutStatus] => ALLOCATED
[syncOutUpdated] => 2025-10-03 18:31:00.000Z
[timeWindows] => Array
(
)
[title] => Concierge Events
[totalValue] => 270
[totalWeight] => 124
[type] =>
[updated] => 2025-10-03 18:31:43.715Z
[vehicleRef] => WD25HWY
[what3Words] =>
)
MaxOptra order details: Array
(
[0] => Array
(
[referenceNumber] => SO-00455
[consignmentReference] =>
[distributionCentreReference] => Head Office
[distributionCentreName] => Head Office
[task] => DELIVERY
[priority] => NORMAL
[vehicleRequirements] => Array
(
)
[additionalInstructions] => Collect 1 x Brue Keg and empties
[clientName] => Concierge Events
[contactPerson] => Wayne Hadley
[contactNumber] =>
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[additionalContactEmails] =>
[notificationPreferences] => Array
(
[allowSMS] => 1
[allowEmail] => 1
)
[customerLocation] => Array
(
[referenceNumber] => 499326000046966140
[name] => Concierge Events, Worle Football Club, Worle
[address] => BS22 6AH
[w3wAddress] =>
[latitude] => 51.35846
[longitude] => -2.92353
)
[territoryReference] =>
[stopSequence] => ANY
[timeWindows] => Array
(
[0] => Array
(
[start] => 2025-10-03T06:00:00+01:00
[end] => 2025-10-03T20:00:00+01:00
)
)
[orderDate] =>
[capacity1] => 124
[capacity2] => 0
[price] =>
[operationDuration] => 486
[customFields] => Array
(
)
[orderItems] => Array
(
[0] => Array
(
[itemReferenceNumber] => 499326000000061367
[orderReferenceNumber] => SO-00455
[name] => San Miguel 11G
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 130
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 130
[height] => 0
[width] => 0
[length] => 0
[weight] => 62
[volume] => 0
)
[1] => Array
(
[itemReferenceNumber] => 499326000000063923
[orderReferenceNumber] => SO-00455
[name] => Thatcher's Gold Cider 11g
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 95
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 95
[height] => 0
[width] => 0
[length] => 0
[weight] => 62
[volume] => 0
)
)
[widgetTrackingDetails] =>
)
)
MaxOptra schedule details: Array
(
[orderReferenceNumber] => SO-00455
[assignedDriverReference] =>
[assignedDriverName] =>
[assignedVehicleReference] =>
[assignedVehicleName] =>
[plannedArrivalTime] =>
[plannedCompletionTime] =>
[stopNumber] =>
[totalStopsInRun] =>
[runNumber] =>
[runReference] =>
[eta] =>
[factArrivalTimeGPS] =>
[factCompletionTimeGPS] =>
[factArrivalTimeReported] =>
[factCompletionTimeReported] =>
[failReason] =>
[failComment] =>
[status] => UNALLOCATED
[driver] =>
[arrival_planned] =>
[arrival_estimated] =>
[arrival_actual] =>
[totalStops] =>
)
Updating order: SO-00455
Update ID qv5hgbux769xpa4 with: Array
(
[custom] => Array
(
)
[driverRef] =>
[vehicleRef] =>
[seqNo] =>
)
Updated order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[contactName] => Wayne Hadley
[contactNotes] =>
[contactPhone] =>
[created] => 2025-09-29 12:23:39.282Z
[custom] => Array
(
)
[customer] => pro2diwlme62ylp
[deliveryCity] => Worle
[deliveryCounty] =>
[deliveryEnd] => 2025-10-03 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Concierge Events
[deliveryPostcode] => BS22 6AH
[deliveryStart] => 2025-10-03 00:00:00.000Z
[deliveryStreet] => Worle Football Club
[description] =>
[driverRef] =>
[externalCustomerId] => 499326000046966136
[externalLocationId] => 499326000046966140
[externalOrderId] => 499326000048825178
[id] => qv5hgbux769xpa4
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] => Collect 1 x Brue Keg and empties
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] => 1
[ref] =>
[refId] => SO-00455
[requestedDeliveryDays] =>
[seqNo] =>
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Scheduled
[syncInCreated] => 2025-09-29 12:23:18.000Z
[syncInStatus] => closed
[syncInUpdated] => 2025-10-03 18:31:26.000Z
[syncOutStatus] => ALLOCATED
[syncOutUpdated] => 2025-10-03 18:31:00.000Z
[timeWindows] => Array
(
)
[title] => Concierge Events
[totalValue] => 270
[totalWeight] => 124
[type] =>
[updated] => 2025-10-03 18:31:44.256Z
[vehicleRef] =>
[what3Words] =>
)
Updating source from local order
Getting custom fields
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-07-18 02:35:52.065Z
[id] => nc7sndad5bhvi5x
[inCollection] => orders
[inField] => paymentMethod
[mappedField] => 7DCPayment
[name] => Payment method
[sourceField] =>
[syncFromSource] => 1
[syncToSource] =>
[type] => text
[updated] => 2025-07-18 02:35:52.065Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Processing field
Mapped field: 7DCEmpties
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
Processing field
Mapped field: 7DCEmptiesGas
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:03:34.631Z
[id] => pcn96l3kgkps4az
[inCollection] => orders
[inField] => driverRef
[mappedField] =>
[name] => Delivery driver
[sourceField] => cf_delivery_driver
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:03:34.631Z
)
Processing field
driverRef...
Value:
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-08 04:52:51.399Z
[id] => hhrzcmytzs8p3kw
[inCollection] => orders
[inField] => seqNo
[mappedField] =>
[name] => Run number
[sourceField] => cf_run_number
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-08 04:52:51.399Z
)
Processing field
seqNo...
Value:
Finished processing field
Continue
Updating source order: Array
(
[custom_fields] => Array
(
)
)
Update result: Array
(
[code] => 0
[message] => Sales Order has been updated.
[salesorder] => Array
(
[salesorder_id] => 499326000048825178
[is_viewed_in_mail] =>
[mail_first_viewed_time] =>
[mail_last_viewed_time] =>
[documents] => Array
(
)
[zcrm_potential_id] =>
[zcrm_potential_name] =>
[salesorder_number] => SO-00455
[date] => 2025-10-03
[offline_created_date_with_time] =>
[tracking_url] =>
[has_discount] =>
[status] => confirmed
[color_code] =>
[current_sub_status_id] =>
[current_sub_status] => closed
[sub_statuses] => Array
(
)
[shipment_date] => 2025-10-03
[reference_number] =>
[customer_id] => 499326000046966136
[customer_name] => Concierge Events
[contact_persons] => Array
(
[0] => 499326000047525212
)
[contact_persons_associated] => Array
(
[0] => Array
(
[contact_person_id] => 499326000047525212
[contact_person_email] => wayne.hadley@conciergeuk.co.uk
[first_name] => Wayne
[last_name] => Hadley
[mobile] =>
[communication_preference] => Array
(
[is_email_enabled] => 1
)
)
)
[contact_person_details] => Array
(
[0] => Array
(
[phone] =>
[mobile] =>
[last_name] => Hadley
[contact_person_id] => 499326000047525212
[first_name] => Wayne
[email] => wayne.hadley@conciergeuk.co.uk
)
)
[source] => Api
[contact_category] => uk
[is_taxable] =>
[has_shipping_address] => 1
[currency_id] => 499326000000000065
[currency_code] => GBP
[currency_symbol] => £
[exchange_rate] => 1
[is_discount_before_tax] => 1
[discount_type] => item_level
[estimate_id] =>
[delivery_method] =>
[delivery_method_id] =>
[vat_treatment] => uk
[is_inclusive_tax] =>
[tax_rounding] => entity_level
[tax_override_preference] => no_override
[order_status] => closed
[invoiced_status] => invoiced
[paid_status] => unpaid
[shipped_status] => pending
[sales_channel] => direct_sales
[sales_channel_formatted] => Direct Sales
[account_identifier] =>
[integration_id] =>
[is_dropshipped] =>
[is_backordered] =>
[is_manually_fulfilled] =>
[can_manually_fulfill] => 1
[has_qty_cancelled] =>
[is_reverse_charge_applied] =>
[shipping_details] => Array
(
)
[created_by_email] => sophie@7daycellar.co.uk
[created_by_name] => Sophie Redman
[branch_id] => 499326000023111007
[branch_name] => Head Office
[location_id] => 499326000023111007
[location_name] => Head Office
[total_quantity] => 2
[line_items] => Array
(
[0] => Array
(
[line_item_id] => 499326000048825184
[variant_id] => 499326000000061367
[track_batch_number] =>
[item_id] => 499326000000061367
[is_returnable] =>
[product_id] => 499326000000061367
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] => BBG-SNML-50LK
[name] => San Miguel 11G
[group_name] => San Miguel 11G
[description] =>
[item_order] => 0
[bcy_rate] => 130
[rate] => 130
[sales_rate] => 146.95
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 26
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 130
[item_sub_total] => 130
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] => San Miguel.png
[image_type] => png
[document_id] => 499326000044988871
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 1
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] => 62
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
[1] => Array
(
[line_item_id] => 499326000048825186
[variant_id] => 499326000000063923
[track_batch_number] =>
[item_id] => 499326000000063923
[is_returnable] =>
[product_id] => 499326000000063923
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] => TTCG-GOLD-50LK
[name] => Thatcher's Gold Cider 11g
[group_name] => Thatcher's Gold Cider 11g
[description] =>
[item_order] => 1
[bcy_rate] => 95
[rate] => 95
[sales_rate] => 110.99
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 19
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 95
[item_sub_total] => 95
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] => Thatchers Gold Badge.png
[image_type] => png
[document_id] => 499326000044989043
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 1
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] => 62
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
)
[is_advanced_tracking_missing] =>
[entity_tags] =>
[submitter_id] =>
[approver_id] =>
[submitted_date] =>
[submitted_by] =>
[submitted_by_name] =>
[submitted_by_email] =>
[submitted_by_photo_url] =>
[price_precision] => 2
[is_emailed] =>
[has_unconfirmed_line_item] =>
[picklists] => Array
(
)
[purchaseorders] => Array
(
)
[locations] => Array
(
[0] => Array
(
[location_id] => 499326000023111007
[location_name] => Head Office
[status] => active
)
[1] => Array
(
[location_id] => 499326000041689155
[location_name] => Bason Bridge Brewery Duty Bonded Warehouse
[status] => active
)
)
[billing_address_id] => 499326000046966138
[billing_address] => Array
(
[address] => 21 North St
[street2] =>
[city] => Weston Super Mare
[state] =>
[zip] =>
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[shipping_address_id] => 499326000046966140
[shipping_address] => Array
(
[company_name] =>
[address] => Worle Football Club
[street2] => Station Road
[city] => Worle
[state] => Weston Super Mare
[zip] => BS22 6AH
[country] => United Kingdom
[country_code] => GB
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[is_test_order] =>
[notes] => Account Name: 7 Day Cellar Ltd
Sort Code: 09-01-30
Account No: 10888924
[terms] =>
[payment_terms] => 7
[payment_terms_label] => Net 7
[custom_fields] => Array
(
[0] => Array
(
[field_id] => 499326000042690007
[customfield_id] => 499326000042690007
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 1
[label] => Automation Required
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[is_color_code_supported] =>
[api_name] => cf__ulrql_automation_required
[show_in_all_pdf] =>
[selected_option_id] => 499326000042690011
[value_formatted] => Yes
[search_entity] => salesorder
[data_type] => dropdown
[placeholder] => cf__ulrql_automation_required
[value] => Yes
[is_dependent_field] =>
)
[1] => Array
(
[field_id] => 499326000046252143
[customfield_id] => 499326000046252143
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 2
[label] => Delivery Instructions
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_instructions
[show_in_all_pdf] =>
[value_formatted] => Collect 1 x Brue Keg and empties
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_instructions
[value] => Collect 1 x Brue Keg and empties
[is_dependent_field] =>
)
[2] => Array
(
[field_id] => 499326000046252173
[customfield_id] => 499326000046252173
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 3
[label] => Delivery Driver
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_driver
[show_in_all_pdf] =>
[value_formatted] => Lewis Newman
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_driver
[value] => Lewis Newman
[is_dependent_field] =>
)
[3] => Array
(
[field_id] => 499326000046717945
[customfield_id] => 499326000046717945
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 4
[label] => GoCardless Mandate
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_gocardless_mandate
[show_in_all_pdf] =>
[value_formatted] => True
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_gocardless_mandate
[value] => True
[is_dependent_field] =>
)
[4] => Array
(
[field_id] => 499326000047922345
[customfield_id] => 499326000047922345
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 5
[label] => Run Number
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_run_number
[show_in_all_pdf] =>
[value_formatted] => 1
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_run_number
[value] => 1
[is_dependent_field] =>
)
)
[custom_field_hash] => Array
(
[cf__ulrql_automation_required] => Yes
[cf__ulrql_automation_required_unformatted] => Yes
[cf_delivery_instructions] => Collect 1 x Brue Keg and empties
[cf_delivery_instructions_unformatted] => Collect 1 x Brue Keg and empties
[cf_delivery_driver] => Lewis Newman
[cf_delivery_driver_unformatted] => Lewis Newman
[cf_gocardless_mandate] => True
[cf_gocardless_mandate_unformatted] => True
[cf_run_number] => 1
[cf_run_number_unformatted] => 1
)
[template_id] => 499326000000000111
[template_name] => Standard Template
[page_width] => 8.27in
[page_height] => 11.69in
[orientation] => portrait
[template_type] => standard
[created_time] => 2025-09-29T13:23:18+0100
[last_modified_time] => 2025-10-03T19:31:44+0100
[created_by_id] => 499326000044308001
[created_date] => 2025-09-29
[last_modified_by_id] => 499326000044410001
[attachment_name] =>
[can_send_in_mail] =>
[salesperson_id] => 499326000044620336
[salesperson_name] => Sophie Redman
[merchant_id] =>
[merchant_name] =>
[pickup_location_id] =>
[discount] => 0
[discount_applied_on_amount] => 0
[is_adv_tracking_in_package] =>
[shipping_charge_taxes] => Array
(
)
[lock_details] => Array
(
[can_lock] =>
)
[locked_actions] => Array
(
)
[shipping_charge_tax_id] =>
[shipping_charge_tax_name] =>
[shipping_charge_tax_type] =>
[shipping_charge_tax_percentage] =>
[shipping_charge_tax_exemption_id] =>
[shipping_charge_tax_exemption_code] =>
[shipping_charge_tax] =>
[bcy_shipping_charge_tax] =>
[shipping_charge_exclusive_of_tax] => 0
[shipping_charge_inclusive_of_tax] => 0
[shipping_charge_tax_formatted] =>
[shipping_charge_exclusive_of_tax_formatted] => £0.00
[shipping_charge_inclusive_of_tax_formatted] => £0.00
[shipping_charge] => 0
[bcy_shipping_charge] => 0
[adjustment] => 0
[bcy_adjustment] => 0
[adjustment_description] => Adjustment
[roundoff_value] => 0
[transaction_rounding_type] => no_rounding
[rounding_mode] => round_half_up
[bcy_rounding_mode] => round_half_up
[sub_total] => 225
[bcy_sub_total] => 225
[sub_total_inclusive_of_tax] => 0
[sub_total_exclusive_of_discount] => 225
[discount_total] => 0
[bcy_discount_total] => 0
[discount_percent] => 0
[tax_total] => 45
[bcy_tax_total] => 45
[total] => 270
[computation_type] => basic
[bcy_total] => 270
[reverse_charge_tax_total] => 0
[taxes] => Array
(
[0] => Array
(
[tax_amount] => 45
[tax_name] => Standard Rate
[tax_amount_formatted] => £45.00
)
)
[tds_calculation_type] => tds_item_level
[packages] => Array
(
)
[so_cycle_preference] => Array
(
[is_feature_enabled] => 1
[socycle_status] => not_triggered
[can_create_invoice] => 1
[can_create_package] =>
[can_create_shipment] =>
[shipment_preference] => Array
(
[default_carrier] =>
[send_notification] =>
[deliver_shipments] =>
)
[invoice_preference] => Array
(
[mark_as_sent] =>
[record_payment] =>
[payment_mode_id] => 499326000000000199
[payment_account_id] => 499326000000000349
)
)
[invoices] => Array
(
[0] => Array
(
[invoice_id] => 499326000049016378
[invoice_number] => INV-26126
[reference_number] => SO-00455
[status] => sent
[date] => 2025-10-03
[due_date] => 2025-10-10
[total] => 156
[balance] => 156
)
)
[can_show_kit_return] =>
[is_kit_partial_return] =>
[salesreturns] => Array
(
)
[payments] => Array
(
)
[creditnotes] => Array
(
)
[refunds] => Array
(
)
[contact] => Array
(
[customer_balance] => 420
[credit_limit] => 0
[unused_customer_credits] => 0
[is_credit_limit_migration_completed] => 1
)
[balance] => 270
[approvers_list] => Array
(
)
[is_scheduled_for_quick_shipment_create] =>
)
)
Webhook - sourceUpdated script called at 2025-10-03 19:32:11
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048825178","salesorder_no":"SO-00455","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048825178","salesorder_no":"SO-00455","status":"invoiced"}}
EXT ID: 499326000048825178
REF: SO-00455
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048825178 (REF SO-00455)
Updates pending to source for order: 499326000048825178
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-10-03 18:31:26.000Z,
source updated = 2025-10-03T19:31:44+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00455
Processing order: qv5hgbux769xpa4, ref SO-00455
Syncing SO-00455
Using default start and end times
Time window: 2025-10-03T06:00:00+01:00 - 2025-10-03T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 03/10/2025 19:31 - Local updated: 2025-10-03 18:31:00.000Z - Source updated: 2025-10-03 18:31:26.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: ALLOCATED
Status changed - mark for sync back to source
Is allocated? no
Local updated: 2025-10-03 18:31:00.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000046966140
Array
(
[referenceNumber] => 499326000046966140
[name] => Concierge Events, Worle Football Club, Worle
[address] => BS22 6AH
)
499326000046966140
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00455
Done all.
Finished at 2025-10-03 19:32:13
Webhook - sourceUpdated script called at 2025-10-03 19:32:42
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048825178","salesorder_no":"SO-00455","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048825178","salesorder_no":"SO-00455","status":"invoiced"}}
EXT ID: 499326000048825178
REF: SO-00455
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048825178 (REF SO-00455)
Updates pending to source for order: 499326000048825178
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-10-03 18:31:26.000Z,
source updated = 2025-10-03T19:32:11+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00455
Processing order: qv5hgbux769xpa4, ref SO-00455
Syncing SO-00455
Using default start and end times
Time window: 2025-10-03T06:00:00+01:00 - 2025-10-03T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 03/10/2025 19:32 - Local updated: 2025-10-03 18:31:00.000Z - Source updated: 2025-10-03 18:31:26.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00455
Done all.
Finished at 2025-10-03 19:32:44
Webhook - destinationUpdated script called at 2025-10-03 19:32:51
JSON: {"payload":{"orderReference":"SO-00452","status":"ALLOCATED"},"timestamp":"2025-10-03T18:32:50Z"}
REF: SO-00452
Filter: refId="SO-00452"
200 response code sent
Local item: {"addons":[],"attachments":[],"collectionEnd":"","collectionId":"s93ukjlitoinx2e","collectionInstructions":"","collectionName":"orders","collectionStart":"","company":"1kmltj8w8rnhbfx","contactEmail":"","contactName":"The Horseshoe (Chipping Sodbury)","contactNotes":"","contactPhone":"","created":"2025-09-24 15:41:54.713Z","custom":[],"customer":"t5br1lbg1z8m7n3","deliveryCity":"Chipping Sodbury","deliveryCounty":"","deliveryEnd":"2025-10-03 00:00:00.000Z","deliveryInstructions":"","deliveryName":"The Horseshoe (Chipping Sodbury)","deliveryPostcode":"BS37 6AH","deliveryStart":"2025-10-03 00:00:00.000Z","deliveryStreet":"2 High Street","description":"","driverRef":"","externalCustomerId":"499326000047045175","externalLocationId":"499326000047045177","externalOrderId":"499326000048549582","id":"3fhoq4qcndsfans","isCancelled":false,"isCollection":false,"isReadyToSync":false,"isScheduledCollection":false,"isScheduledDelivery":false,"isUntracked":false,"mergeRef":"","notes":"Front door open from 10am","orderedAt":"","overrideVolume":0,"overrideWeight":0,"paymentMethod":"","pendingSyncFromDestination":false,"pendingSyncFromSource":false,"pendingSyncToDestination":false,"pendingSyncToSource":false,"ref":"","refId":"SO-00452","requestedDeliveryDays":"","seqNo":"","signature":"","signatureName":"","signatureTime":"","statusCollection":"","statusDelivery":"Pending","syncInCreated":"2025-09-24 15:41:46.000Z","syncInStatus":"closed","syncInUpdated":"2025-10-03 18:30:51.000Z","syncOutStatus":"UNALLOCATED","syncOutUpdated":"2025-09-30 09:03:00.000Z","timeWindows":[],"title":"The Horseshoe (Chipping Sodbury)","totalValue":292.720000000000027284841053187847137451171875,"totalWeight":153,"type":"","updated":"2025-10-03 18:31:13.337Z","vehicleRef":"","what3Words":""}
Updating local order from MaxOptra - current local order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] =>
[contactName] => The Horseshoe (Chipping Sodbury)
[contactNotes] =>
[contactPhone] =>
[created] => 2025-09-24 15:41:54.713Z
[custom] => Array
(
)
[customer] => t5br1lbg1z8m7n3
[deliveryCity] => Chipping Sodbury
[deliveryCounty] =>
[deliveryEnd] => 2025-10-03 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => The Horseshoe (Chipping Sodbury)
[deliveryPostcode] => BS37 6AH
[deliveryStart] => 2025-10-03 00:00:00.000Z
[deliveryStreet] => 2 High Street
[description] =>
[driverRef] =>
[externalCustomerId] => 499326000047045175
[externalLocationId] => 499326000047045177
[externalOrderId] => 499326000048549582
[id] => 3fhoq4qcndsfans
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] => Front door open from 10am
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] =>
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00452
[requestedDeliveryDays] =>
[seqNo] =>
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Pending
[syncInCreated] => 2025-09-24 15:41:46.000Z
[syncInStatus] => closed
[syncInUpdated] => 2025-10-03 18:30:51.000Z
[syncOutStatus] => UNALLOCATED
[syncOutUpdated] => 2025-09-30 09:03:00.000Z
[timeWindows] => Array
(
)
[title] => The Horseshoe (Chipping Sodbury)
[totalValue] => 292.72
[totalWeight] => 153
[type] =>
[updated] => 2025-10-03 18:31:13.337Z
[vehicleRef] =>
[what3Words] =>
)
MaxOptra order details: Array
(
[0] => Array
(
[referenceNumber] => SO-00452
[consignmentReference] =>
[distributionCentreReference] => Head Office
[distributionCentreName] => Head Office
[task] => DELIVERY
[priority] => NORMAL
[vehicleRequirements] => Array
(
)
[additionalInstructions] => Front door open from 10am
[clientName] =>
[contactPerson] => The Horseshoe (Chipping Sodbury)
[contactNumber] =>
[contactEmail] =>
[additionalContactEmails] =>
[notificationPreferences] => Array
(
[allowSMS] => 1
[allowEmail] => 1
)
[customerLocation] => Array
(
[referenceNumber] => 499326000047045177
[name] => The Horseshoe (Chipping Sodbury), 2 High Street, Chipping Sodbury
[address] => BS37 6AH
[w3wAddress] =>
[latitude] => 51.53814
[longitude] => -2.3951
)
[territoryReference] =>
[stopSequence] => ANY
[timeWindows] => Array
(
[0] => Array
(
[start] => 2025-10-03T06:00:00+01:00
[end] => 2025-10-03T23:00:00+01:00
)
)
[orderDate] =>
[capacity1] => 153
[capacity2] => 0
[price] => 0
[operationDuration] => 529
[customFields] => Array
(
)
[orderItems] => Array
(
[0] => Array
(
[itemReferenceNumber] => 499326000021043799
[orderReferenceNumber] => SO-00452
[name] => Hardings Amber Ale 3.9% (9g)
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 79.95
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 79.95
[height] => 0
[width] => 0
[length] => 0
[weight] => 51
[volume] => 0
)
[1] => Array
(
[itemReferenceNumber] => 499326000021043786
[orderReferenceNumber] => SO-00452
[name] => Hardings Best 4.2% (9g)
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 79.99
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 79.99
[height] => 0
[width] => 0
[length] => 0
[weight] => 51
[volume] => 0
)
[2] => Array
(
[itemReferenceNumber] => 499326000044145711
[orderReferenceNumber] => SO-00452
[name] => Hardings Double Hopped 4.0% (9g)
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 83.99
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 83.99
[height] => 0
[width] => 0
[length] => 0
[weight] => 51
[volume] => 0
)
)
[widgetTrackingDetails] =>
)
)
MaxOptra schedule details: Array
(
[orderReferenceNumber] => SO-00452
[assignedDriverReference] => Lewis Newman
[assignedDriverName] => Lewis Newman
[assignedVehicleReference] => WD25HWY
[assignedVehicleName] => WD25HWY
[plannedArrivalTime] => 2025-10-03T20:59:01+01:00
[plannedCompletionTime] => 2025-10-03T21:07:50+01:00
[stopNumber] => 3
[totalStopsInRun] => 3
[runNumber] => 1
[runReference] => 857f789e3cd84449a35e057ccd96d6e0
[eta] =>
[factArrivalTimeGPS] =>
[factCompletionTimeGPS] =>
[factArrivalTimeReported] =>
[factCompletionTimeReported] =>
[failReason] =>
[failComment] =>
[status] => ALLOCATED
[driver] => Lewis Newman
[arrival_planned] => 2025-10-03T20:59:01+01:00
[arrival_estimated] =>
[arrival_actual] =>
[totalStops] => 3
)
Updating order: SO-00452
Update ID 3fhoq4qcndsfans with: Array
(
[custom] => Array
(
)
[driverRef] => Lewis Newman
[vehicleRef] => WD25HWY
[seqNo] => 1
)
Updated order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] =>
[contactName] => The Horseshoe (Chipping Sodbury)
[contactNotes] =>
[contactPhone] =>
[created] => 2025-09-24 15:41:54.713Z
[custom] => Array
(
)
[customer] => t5br1lbg1z8m7n3
[deliveryCity] => Chipping Sodbury
[deliveryCounty] =>
[deliveryEnd] => 2025-10-03 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => The Horseshoe (Chipping Sodbury)
[deliveryPostcode] => BS37 6AH
[deliveryStart] => 2025-10-03 00:00:00.000Z
[deliveryStreet] => 2 High Street
[description] =>
[driverRef] => Lewis Newman
[externalCustomerId] => 499326000047045175
[externalLocationId] => 499326000047045177
[externalOrderId] => 499326000048549582
[id] => 3fhoq4qcndsfans
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] => Front door open from 10am
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] =>
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00452
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Pending
[syncInCreated] => 2025-09-24 15:41:46.000Z
[syncInStatus] => closed
[syncInUpdated] => 2025-10-03 18:30:51.000Z
[syncOutStatus] => UNALLOCATED
[syncOutUpdated] => 2025-09-30 09:03:00.000Z
[timeWindows] => Array
(
)
[title] => The Horseshoe (Chipping Sodbury)
[totalValue] => 292.72
[totalWeight] => 153
[type] =>
[updated] => 2025-10-03 18:32:51.559Z
[vehicleRef] => WD25HWY
[what3Words] =>
)
Updating source from local order
Getting custom fields
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-07-18 02:35:52.065Z
[id] => nc7sndad5bhvi5x
[inCollection] => orders
[inField] => paymentMethod
[mappedField] => 7DCPayment
[name] => Payment method
[sourceField] =>
[syncFromSource] => 1
[syncToSource] =>
[type] => text
[updated] => 2025-07-18 02:35:52.065Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Processing field
Mapped field: 7DCEmpties
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
Processing field
Mapped field: 7DCEmptiesGas
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:03:34.631Z
[id] => pcn96l3kgkps4az
[inCollection] => orders
[inField] => driverRef
[mappedField] =>
[name] => Delivery driver
[sourceField] => cf_delivery_driver
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:03:34.631Z
)
Processing field
driverRef...
Value: Lewis Newman
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-08 04:52:51.399Z
[id] => hhrzcmytzs8p3kw
[inCollection] => orders
[inField] => seqNo
[mappedField] =>
[name] => Run number
[sourceField] => cf_run_number
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-08 04:52:51.399Z
)
Processing field
seqNo...
Value: 1
Finished processing field
Continue
Updating source order: Array
(
[custom_fields] => Array
(
[0] => Array
(
[api_name] => cf_delivery_driver
[value] => Lewis Newman
)
[1] => Array
(
[api_name] => cf_run_number
[value] => 1
)
)
)
Update result: Array
(
[code] => 0
[message] => Sales Order has been updated.
[salesorder] => Array
(
[salesorder_id] => 499326000048549582
[is_viewed_in_mail] =>
[mail_first_viewed_time] =>
[mail_last_viewed_time] =>
[documents] => Array
(
)
[zcrm_potential_id] =>
[zcrm_potential_name] =>
[salesorder_number] => SO-00452
[date] => 2025-10-03
[offline_created_date_with_time] =>
[tracking_url] =>
[has_discount] =>
[status] => confirmed
[color_code] =>
[current_sub_status_id] =>
[current_sub_status] => closed
[sub_statuses] => Array
(
)
[shipment_date] => 2025-10-03
[reference_number] =>
[customer_id] => 499326000047045175
[customer_name] => The Horseshoe (Chipping Sodbury)
[contact_persons] => Array
(
)
[contact_persons_associated] => Array
(
)
[contact_person_details] => Array
(
)
[source] => Api
[contact_category] => uk
[is_taxable] =>
[has_shipping_address] => 1
[currency_id] => 499326000000000065
[currency_code] => GBP
[currency_symbol] => £
[exchange_rate] => 1
[is_discount_before_tax] => 1
[discount_type] => item_level
[estimate_id] =>
[delivery_method] =>
[delivery_method_id] =>
[vat_treatment] => uk
[is_inclusive_tax] =>
[tax_rounding] => entity_level
[tax_override_preference] => no_override
[order_status] => closed
[invoiced_status] => invoiced
[paid_status] => unpaid
[shipped_status] => pending
[sales_channel] => direct_sales
[sales_channel_formatted] => Direct Sales
[account_identifier] =>
[integration_id] =>
[is_dropshipped] =>
[is_backordered] =>
[is_manually_fulfilled] =>
[can_manually_fulfill] => 1
[has_qty_cancelled] =>
[is_reverse_charge_applied] =>
[shipping_details] => Array
(
)
[created_by_email] => sophie@7daycellar.co.uk
[created_by_name] => Sophie Redman
[branch_id] => 499326000023111007
[branch_name] => Head Office
[location_id] => 499326000023111007
[location_name] => Head Office
[total_quantity] => 3
[line_items] => Array
(
[0] => Array
(
[line_item_id] => 499326000048549588
[variant_id] => 499326000044145711
[track_batch_number] =>
[item_id] => 499326000044145711
[is_returnable] =>
[product_id] => 499326000044145711
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] => BB-HSDD-9G
[name] => Hardings Double Hopped 4.0% (9g)
[group_name] => Hardings Double Hopped 4.0% (9g)
[description] =>
[item_order] => 1
[bcy_rate] => 83.99
[rate] => 83.99
[sales_rate] => 83.99
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 16.8
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 83.99
[item_sub_total] => 83.99
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] => Harding’s Double Hopped.png
[image_type] => png
[document_id] => 499326000048604859
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 1
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] =>
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
[1] => Array
(
[line_item_id] => 499326000048549590
[variant_id] => 499326000021043799
[track_batch_number] =>
[item_id] => 499326000021043799
[is_returnable] =>
[product_id] => 499326000021043799
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] => BB-HSAR-9G
[name] => Hardings Amber Ale 3.9% (9g)
[group_name] => Hardings Amber Ale 3.9% (9g)
[description] =>
[item_order] => 2
[bcy_rate] => 79.95
[rate] => 79.95
[sales_rate] => 79.95
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 15.99
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 79.95
[item_sub_total] => 79.95
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] => Harding’s Amber Ale.png
[image_type] => png
[document_id] => 499326000048604629
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 1
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] => 51
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
[2] => Array
(
[line_item_id] => 499326000048549592
[variant_id] => 499326000021043786
[track_batch_number] =>
[item_id] => 499326000021043786
[is_returnable] =>
[product_id] => 499326000021043786
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] => BB-HSBT-9G
[name] => Hardings Best 4.2% (9g)
[group_name] => Hardings Best Bitter 4.2% (9g)
[description] =>
[item_order] => 3
[bcy_rate] => 79.99
[rate] => 79.99
[sales_rate] => 79.99
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 16
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 79.99
[item_sub_total] => 79.99
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] => Hardings Best Bitter.png
[image_type] => png
[document_id] => 499326000048604731
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 1
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] => 51
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
)
[is_advanced_tracking_missing] =>
[entity_tags] =>
[submitter_id] =>
[approver_id] =>
[submitted_date] =>
[submitted_by] =>
[submitted_by_name] =>
[submitted_by_email] =>
[submitted_by_photo_url] =>
[price_precision] => 2
[is_emailed] =>
[has_unconfirmed_line_item] =>
[picklists] => Array
(
)
[purchaseorders] => Array
(
)
[locations] => Array
(
[0] => Array
(
[location_id] => 499326000023111007
[location_name] => Head Office
[status] => active
)
[1] => Array
(
[location_id] => 499326000041689155
[location_name] => Bason Bridge Brewery Duty Bonded Warehouse
[status] => active
)
)
[billing_address_id] => 499326000047045177
[billing_address] => Array
(
[address] => 2 High Street
[street2] =>
[city] => Chipping Sodbury
[state] =>
[zip] => BS37 6AH
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[shipping_address_id] => 499326000047045179
[shipping_address] => Array
(
[company_name] =>
[address] =>
[street2] =>
[city] =>
[state] =>
[zip] =>
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[is_test_order] =>
[notes] => Account Name: 7 Day Cellar Ltd
Sort Code: 09-01-30
Account No: 10888924
[terms] =>
[payment_terms] => 0
[payment_terms_label] => Due On Receipt
[custom_fields] => Array
(
[0] => Array
(
[field_id] => 499326000042690007
[customfield_id] => 499326000042690007
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 1
[label] => Automation Required
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[is_color_code_supported] =>
[api_name] => cf__ulrql_automation_required
[show_in_all_pdf] =>
[selected_option_id] => 499326000042690011
[value_formatted] => Yes
[search_entity] => salesorder
[data_type] => dropdown
[placeholder] => cf__ulrql_automation_required
[value] => Yes
[is_dependent_field] =>
)
[1] => Array
(
[field_id] => 499326000046252143
[customfield_id] => 499326000046252143
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 2
[label] => Delivery Instructions
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_instructions
[show_in_all_pdf] =>
[value_formatted] => Front door open from 10am
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_instructions
[value] => Front door open from 10am
[is_dependent_field] =>
)
[2] => Array
(
[field_id] => 499326000046252173
[customfield_id] => 499326000046252173
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 3
[label] => Delivery Driver
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_driver
[show_in_all_pdf] =>
[value_formatted] => Lewis Newman
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_driver
[value] => Lewis Newman
[is_dependent_field] =>
)
[3] => Array
(
[field_id] => 499326000047922345
[customfield_id] => 499326000047922345
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 4
[label] => Run Number
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_run_number
[show_in_all_pdf] =>
[value_formatted] => 1
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_run_number
[value] => 1
[is_dependent_field] =>
)
)
[custom_field_hash] => Array
(
[cf__ulrql_automation_required] => Yes
[cf__ulrql_automation_required_unformatted] => Yes
[cf_delivery_instructions] => Front door open from 10am
[cf_delivery_instructions_unformatted] => Front door open from 10am
[cf_delivery_driver] => Lewis Newman
[cf_delivery_driver_unformatted] => Lewis Newman
[cf_run_number] => 1
[cf_run_number_unformatted] => 1
)
[template_id] => 499326000000000111
[template_name] => Standard Template
[page_width] => 8.27in
[page_height] => 11.69in
[orientation] => portrait
[template_type] => standard
[created_time] => 2025-09-24T16:41:46+0100
[last_modified_time] => 2025-10-03T19:32:51+0100
[created_by_id] => 499326000044308001
[created_date] => 2025-09-24
[last_modified_by_id] => 499326000044410001
[attachment_name] =>
[can_send_in_mail] =>
[salesperson_id] => 499326000044620336
[salesperson_name] => Sophie Redman
[merchant_id] =>
[merchant_name] =>
[pickup_location_id] =>
[discount] => 0
[discount_applied_on_amount] => 0
[is_adv_tracking_in_package] =>
[shipping_charge_taxes] => Array
(
)
[lock_details] => Array
(
[can_lock] =>
)
[locked_actions] => Array
(
)
[shipping_charge_tax_id] =>
[shipping_charge_tax_name] =>
[shipping_charge_tax_type] =>
[shipping_charge_tax_percentage] =>
[shipping_charge_tax_exemption_id] =>
[shipping_charge_tax_exemption_code] =>
[shipping_charge_tax] =>
[bcy_shipping_charge_tax] =>
[shipping_charge_exclusive_of_tax] => 0
[shipping_charge_inclusive_of_tax] => 0
[shipping_charge_tax_formatted] =>
[shipping_charge_exclusive_of_tax_formatted] => £0.00
[shipping_charge_inclusive_of_tax_formatted] => £0.00
[shipping_charge] => 0
[bcy_shipping_charge] => 0
[adjustment] => 0
[bcy_adjustment] => 0
[adjustment_description] => Adjustment
[roundoff_value] => 0
[transaction_rounding_type] => no_rounding
[rounding_mode] => round_half_up
[bcy_rounding_mode] => round_half_up
[sub_total] => 243.93
[bcy_sub_total] => 243.93
[sub_total_inclusive_of_tax] => 0
[sub_total_exclusive_of_discount] => 243.93
[discount_total] => 0
[bcy_discount_total] => 0
[discount_percent] => 0
[tax_total] => 48.79
[bcy_tax_total] => 48.79
[total] => 292.72
[computation_type] => basic
[bcy_total] => 292.72
[reverse_charge_tax_total] => 0
[taxes] => Array
(
[0] => Array
(
[tax_amount] => 48.79
[tax_name] => Standard Rate
[tax_amount_formatted] => £48.79
)
)
[tds_calculation_type] => tds_item_level
[packages] => Array
(
)
[so_cycle_preference] => Array
(
[is_feature_enabled] => 1
[socycle_status] => not_triggered
[can_create_invoice] => 1
[can_create_package] =>
[can_create_shipment] =>
[shipment_preference] => Array
(
[default_carrier] =>
[send_notification] =>
[deliver_shipments] =>
)
[invoice_preference] => Array
(
[mark_as_sent] =>
[record_payment] =>
[payment_mode_id] => 499326000000000199
[payment_account_id] => 499326000000000349
)
)
[invoices] => Array
(
[0] => Array
(
[invoice_id] => 499326000048908796
[invoice_number] => INV-26077
[reference_number] => SO-00452
[status] => sent
[date] => 2025-10-03
[due_date] => 2025-10-03
[total] => 287.92
[balance] => 287.92
)
)
[can_show_kit_return] =>
[is_kit_partial_return] =>
[salesreturns] => Array
(
)
[payments] => Array
(
)
[creditnotes] => Array
(
)
[refunds] => Array
(
)
[contact] => Array
(
[customer_balance] => 287.92
[credit_limit] => 0
[unused_customer_credits] => 0
[is_credit_limit_migration_completed] => 1
)
[balance] => 292.72
[approvers_list] => Array
(
)
[is_scheduled_for_quick_shipment_create] =>
)
)
Webhook - sourceUpdated script called at 2025-10-03 19:33:13
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048825178","salesorder_no":"SO-00455","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048825178","salesorder_no":"SO-00455","status":"invoiced"}}
EXT ID: 499326000048825178
REF: SO-00455
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048825178 (REF SO-00455)
Local order updated = 2025-10-03 18:31:26.000Z,
source updated = 2025-10-03T19:32:42+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[contactName] => Wayne Hadley
[notes] => Collect 1 x Brue Keg and empties
[externalOrderId] => 499326000048825178
[refId] => SO-00455
[externalCustomerId] => 499326000046966136
[externalLocationId] => 499326000046966140
[title] => Concierge Events
[deliveryStart] => 2025-10-03
[deliveryEnd] => 2025-10-03
[totalValue] => 270
[totalWeight] => 124
[syncInCreated] => 2025-09-29T13:23:18+0100
[syncInUpdated] => 2025-10-03T19:32:42+0100
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048825184
[externalProductId] => 499326000000061367
[sku] => BBG-SNML-50LK
[title] => San Miguel 11G
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 130
[price] => 130
)
[1] => Array
(
[externalOrderProductId] => 499326000048825186
[externalProductId] => 499326000000063923
[sku] => TTCG-GOLD-50LK
[title] => Thatcher's Gold Cider 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 95
[price] => 95
)
)
[deliveryName] => Concierge Events
[deliveryStreet] => Worle Football Club
[deliveryCity] => Worle
[deliveryCounty] =>
[deliveryPostcode] => BS22 6AH
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[contactName] => Wayne Hadley
[notes] => Collect 1 x Brue Keg and empties
[externalOrderId] => 499326000048825178
[refId] => SO-00455
[externalCustomerId] => 499326000046966136
[externalLocationId] => 499326000046966140
[title] => Concierge Events
[deliveryStart] => 2025-10-03
[deliveryEnd] => 2025-10-03
[totalValue] => 270
[totalWeight] => 124
[syncInCreated] => 2025-09-29T13:23:18+0100
[syncInUpdated] => 2025-10-03T19:32:42+0100
[syncInStatus] => closed
[deliveryName] => Concierge Events
[deliveryStreet] => Worle Football Club
[deliveryCity] => Worle
[deliveryCounty] =>
[deliveryPostcode] => BS22 6AH
[syncOutUpdated] => 2025-10-03T19:33:13+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Wayne Hadley
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000046966136
Getting products
Updating product 499326000000061367
Updating order product 499326000048825184
Updated
Updating product 499326000000063923
Updating order product 499326000048825186
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00455
Processing order: qv5hgbux769xpa4, ref SO-00455
Syncing SO-00455
Using default start and end times
Time window: 2025-10-03T06:00:00+01:00 - 2025-10-03T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 03/10/2025 19:32 - Local updated: 2025-10-03 18:33:13.000Z - Source updated: 2025-10-03 18:32:42.000Z
Changed? yes
Current MaxOptra status: ALLOCATED
Completed? no
Previous status: UNALLOCATED
Status changed - mark for sync back to source
Is allocated? yes
MO delivery date: 2025-10-03, Local delivery date: 2025-10-03
Local updated: 2025-10-03 18:33:13.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Communication error with MaxOptra (412)
orders/SO-00455
https://7daycellar.maxoptra.com/api/v6/orders/SO-00455
Response:
{"data":null,"errors":[{"code":"ORDER_IS_ALLOCATED","name":"The order is allocated","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000046966140
Array
(
[referenceNumber] => 499326000046966140
[name] => Concierge Events, Worle Football Club, Worle
[address] => BS22 6AH
)
499326000046966140
Error updating SO-00455
"{\"data\":null,\"errors\":[{\"code\":\"ORDER_IS_ALLOCATED\",\"name\":\"The order is allocated\",\"details\":null,\"field\":null}],\"warnings\":[]}"
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00455
Done all.
Finished at 2025-10-03 19:33:15
Webhook - destinationUpdated script called at 2025-10-03 19:33:15
JSON: {"payload":{"orderReference":"SO-00455","status":"UNALLOCATED"},"timestamp":"2025-10-03T18:33:15Z"}
REF: SO-00455
Filter: refId="SO-00455"
200 response code sent
Local item: {"addons":[],"attachments":[],"collectionEnd":"","collectionId":"s93ukjlitoinx2e","collectionInstructions":"","collectionName":"orders","collectionStart":"","company":"1kmltj8w8rnhbfx","contactEmail":"wayne.hadley@conciergeuk.co.uk","contactName":"Wayne Hadley","contactNotes":"","contactPhone":"","created":"2025-09-29 12:23:39.282Z","custom":[],"customer":"pro2diwlme62ylp","deliveryCity":"Worle","deliveryCounty":"","deliveryEnd":"2025-10-03 00:00:00.000Z","deliveryInstructions":"","deliveryName":"Concierge Events","deliveryPostcode":"BS22 6AH","deliveryStart":"2025-10-03 00:00:00.000Z","deliveryStreet":"Worle Football Club","description":"","driverRef":"","externalCustomerId":"499326000046966136","externalLocationId":"499326000046966140","externalOrderId":"499326000048825178","id":"qv5hgbux769xpa4","isCancelled":false,"isCollection":false,"isReadyToSync":false,"isScheduledCollection":false,"isScheduledDelivery":false,"isUntracked":false,"mergeRef":"","notes":"Collect 1 x Brue Keg and empties","orderedAt":"","overrideVolume":0,"overrideWeight":0,"paymentMethod":"","pendingSyncFromDestination":false,"pendingSyncFromSource":false,"pendingSyncToDestination":true,"pendingSyncToSource":true,"ref":"","refId":"SO-00455","requestedDeliveryDays":"","seqNo":"","signature":"","signatureName":"","signatureTime":"","statusCollection":"","statusDelivery":"Scheduled","syncInCreated":"2025-09-29 12:23:18.000Z","syncInStatus":"closed","syncInUpdated":"2025-10-03 18:32:42.000Z","syncOutStatus":"ALLOCATED","syncOutUpdated":"2025-10-03 18:32:00.000Z","timeWindows":[],"title":"Concierge Events","totalValue":270,"totalWeight":124,"type":"","updated":"2025-10-03 18:33:15.197Z","vehicleRef":"","what3Words":""}
Updating local order from MaxOptra - current local order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[contactName] => Wayne Hadley
[contactNotes] =>
[contactPhone] =>
[created] => 2025-09-29 12:23:39.282Z
[custom] => Array
(
)
[customer] => pro2diwlme62ylp
[deliveryCity] => Worle
[deliveryCounty] =>
[deliveryEnd] => 2025-10-03 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Concierge Events
[deliveryPostcode] => BS22 6AH
[deliveryStart] => 2025-10-03 00:00:00.000Z
[deliveryStreet] => Worle Football Club
[description] =>
[driverRef] =>
[externalCustomerId] => 499326000046966136
[externalLocationId] => 499326000046966140
[externalOrderId] => 499326000048825178
[id] => qv5hgbux769xpa4
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] => Collect 1 x Brue Keg and empties
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] => 1
[ref] =>
[refId] => SO-00455
[requestedDeliveryDays] =>
[seqNo] =>
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Scheduled
[syncInCreated] => 2025-09-29 12:23:18.000Z
[syncInStatus] => closed
[syncInUpdated] => 2025-10-03 18:32:42.000Z
[syncOutStatus] => ALLOCATED
[syncOutUpdated] => 2025-10-03 18:32:00.000Z
[timeWindows] => Array
(
)
[title] => Concierge Events
[totalValue] => 270
[totalWeight] => 124
[type] =>
[updated] => 2025-10-03 18:33:15.197Z
[vehicleRef] =>
[what3Words] =>
)
MaxOptra order details: Array
(
[0] => Array
(
[referenceNumber] => SO-00455
[consignmentReference] =>
[distributionCentreReference] => Head Office
[distributionCentreName] => Head Office
[task] => DELIVERY
[priority] => NORMAL
[vehicleRequirements] => Array
(
)
[additionalInstructions] => Collect 1 x Brue Keg and empties
[clientName] => Concierge Events
[contactPerson] => Wayne Hadley
[contactNumber] =>
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[additionalContactEmails] =>
[notificationPreferences] => Array
(
[allowSMS] => 1
[allowEmail] => 1
)
[customerLocation] => Array
(
[referenceNumber] => 499326000046966140
[name] => Concierge Events, Worle Football Club, Worle
[address] => BS22 6AH
[w3wAddress] =>
[latitude] => 51.35846
[longitude] => -2.92353
)
[territoryReference] =>
[stopSequence] => ANY
[timeWindows] => Array
(
[0] => Array
(
[start] => 2025-10-03T06:00:00+01:00
[end] => 2025-10-03T23:00:00+01:00
)
)
[orderDate] =>
[capacity1] => 124
[capacity2] => 0
[price] => 0
[operationDuration] => 486
[customFields] => Array
(
)
[orderItems] => Array
(
[0] => Array
(
[itemReferenceNumber] => 499326000000061367
[orderReferenceNumber] => SO-00455
[name] => San Miguel 11G
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 130
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 130
[height] => 0
[width] => 0
[length] => 0
[weight] => 62
[volume] => 0
)
[1] => Array
(
[itemReferenceNumber] => 499326000000063923
[orderReferenceNumber] => SO-00455
[name] => Thatcher's Gold Cider 11g
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 95
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 95
[height] => 0
[width] => 0
[length] => 0
[weight] => 62
[volume] => 0
)
)
[widgetTrackingDetails] =>
)
)
MaxOptra schedule details: Array
(
[orderReferenceNumber] => SO-00455
[assignedDriverReference] =>
[assignedDriverName] =>
[assignedVehicleReference] =>
[assignedVehicleName] =>
[plannedArrivalTime] =>
[plannedCompletionTime] =>
[stopNumber] =>
[totalStopsInRun] =>
[runNumber] =>
[runReference] =>
[eta] =>
[factArrivalTimeGPS] =>
[factCompletionTimeGPS] =>
[factArrivalTimeReported] =>
[factCompletionTimeReported] =>
[failReason] =>
[failComment] =>
[status] => UNALLOCATED
[driver] =>
[arrival_planned] =>
[arrival_estimated] =>
[arrival_actual] =>
[totalStops] =>
)
Updating order: SO-00455
Update ID qv5hgbux769xpa4 with: Array
(
[custom] => Array
(
)
[driverRef] =>
[vehicleRef] =>
[seqNo] =>
)
Updated order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[contactName] => Wayne Hadley
[contactNotes] =>
[contactPhone] =>
[created] => 2025-09-29 12:23:39.282Z
[custom] => Array
(
)
[customer] => pro2diwlme62ylp
[deliveryCity] => Worle
[deliveryCounty] =>
[deliveryEnd] => 2025-10-03 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Concierge Events
[deliveryPostcode] => BS22 6AH
[deliveryStart] => 2025-10-03 00:00:00.000Z
[deliveryStreet] => Worle Football Club
[description] =>
[driverRef] =>
[externalCustomerId] => 499326000046966136
[externalLocationId] => 499326000046966140
[externalOrderId] => 499326000048825178
[id] => qv5hgbux769xpa4
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] => Collect 1 x Brue Keg and empties
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] => 1
[ref] =>
[refId] => SO-00455
[requestedDeliveryDays] =>
[seqNo] =>
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Scheduled
[syncInCreated] => 2025-09-29 12:23:18.000Z
[syncInStatus] => closed
[syncInUpdated] => 2025-10-03 18:32:42.000Z
[syncOutStatus] => ALLOCATED
[syncOutUpdated] => 2025-10-03 18:32:00.000Z
[timeWindows] => Array
(
)
[title] => Concierge Events
[totalValue] => 270
[totalWeight] => 124
[type] =>
[updated] => 2025-10-03 18:33:16.226Z
[vehicleRef] =>
[what3Words] =>
)
Updating source from local order
Getting custom fields
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-07-18 02:35:52.065Z
[id] => nc7sndad5bhvi5x
[inCollection] => orders
[inField] => paymentMethod
[mappedField] => 7DCPayment
[name] => Payment method
[sourceField] =>
[syncFromSource] => 1
[syncToSource] =>
[type] => text
[updated] => 2025-07-18 02:35:52.065Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Processing field
Mapped field: 7DCEmpties
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
Processing field
Mapped field: 7DCEmptiesGas
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:03:34.631Z
[id] => pcn96l3kgkps4az
[inCollection] => orders
[inField] => driverRef
[mappedField] =>
[name] => Delivery driver
[sourceField] => cf_delivery_driver
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:03:34.631Z
)
Processing field
driverRef...
Value:
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-08 04:52:51.399Z
[id] => hhrzcmytzs8p3kw
[inCollection] => orders
[inField] => seqNo
[mappedField] =>
[name] => Run number
[sourceField] => cf_run_number
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-08 04:52:51.399Z
)
Processing field
seqNo...
Value:
Finished processing field
Continue
Updating source order: Array
(
[custom_fields] => Array
(
)
)
Update result: Array
(
[code] => 0
[message] => Sales Order has been updated.
[salesorder] => Array
(
[salesorder_id] => 499326000048825178
[is_viewed_in_mail] =>
[mail_first_viewed_time] =>
[mail_last_viewed_time] =>
[documents] => Array
(
)
[zcrm_potential_id] =>
[zcrm_potential_name] =>
[salesorder_number] => SO-00455
[date] => 2025-10-03
[offline_created_date_with_time] =>
[tracking_url] =>
[has_discount] =>
[status] => confirmed
[color_code] =>
[current_sub_status_id] =>
[current_sub_status] => closed
[sub_statuses] => Array
(
)
[shipment_date] => 2025-10-03
[reference_number] =>
[customer_id] => 499326000046966136
[customer_name] => Concierge Events
[contact_persons] => Array
(
[0] => 499326000047525212
)
[contact_persons_associated] => Array
(
[0] => Array
(
[contact_person_id] => 499326000047525212
[contact_person_email] => wayne.hadley@conciergeuk.co.uk
[first_name] => Wayne
[last_name] => Hadley
[mobile] =>
[communication_preference] => Array
(
[is_email_enabled] => 1
)
)
)
[contact_person_details] => Array
(
[0] => Array
(
[phone] =>
[mobile] =>
[last_name] => Hadley
[contact_person_id] => 499326000047525212
[first_name] => Wayne
[email] => wayne.hadley@conciergeuk.co.uk
)
)
[source] => Api
[contact_category] => uk
[is_taxable] =>
[has_shipping_address] => 1
[currency_id] => 499326000000000065
[currency_code] => GBP
[currency_symbol] => £
[exchange_rate] => 1
[is_discount_before_tax] => 1
[discount_type] => item_level
[estimate_id] =>
[delivery_method] =>
[delivery_method_id] =>
[vat_treatment] => uk
[is_inclusive_tax] =>
[tax_rounding] => entity_level
[tax_override_preference] => no_override
[order_status] => closed
[invoiced_status] => invoiced
[paid_status] => unpaid
[shipped_status] => pending
[sales_channel] => direct_sales
[sales_channel_formatted] => Direct Sales
[account_identifier] =>
[integration_id] =>
[is_dropshipped] =>
[is_backordered] =>
[is_manually_fulfilled] =>
[can_manually_fulfill] => 1
[has_qty_cancelled] =>
[is_reverse_charge_applied] =>
[shipping_details] => Array
(
)
[created_by_email] => sophie@7daycellar.co.uk
[created_by_name] => Sophie Redman
[branch_id] => 499326000023111007
[branch_name] => Head Office
[location_id] => 499326000023111007
[location_name] => Head Office
[total_quantity] => 2
[line_items] => Array
(
[0] => Array
(
[line_item_id] => 499326000048825184
[variant_id] => 499326000000061367
[track_batch_number] =>
[item_id] => 499326000000061367
[is_returnable] =>
[product_id] => 499326000000061367
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] => BBG-SNML-50LK
[name] => San Miguel 11G
[group_name] => San Miguel 11G
[description] =>
[item_order] => 0
[bcy_rate] => 130
[rate] => 130
[sales_rate] => 146.95
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 26
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 130
[item_sub_total] => 130
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] => San Miguel.png
[image_type] => png
[document_id] => 499326000044988871
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 1
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] => 62
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
[1] => Array
(
[line_item_id] => 499326000048825186
[variant_id] => 499326000000063923
[track_batch_number] =>
[item_id] => 499326000000063923
[is_returnable] =>
[product_id] => 499326000000063923
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] => TTCG-GOLD-50LK
[name] => Thatcher's Gold Cider 11g
[group_name] => Thatcher's Gold Cider 11g
[description] =>
[item_order] => 1
[bcy_rate] => 95
[rate] => 95
[sales_rate] => 110.99
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 19
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 95
[item_sub_total] => 95
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] => Thatchers Gold Badge.png
[image_type] => png
[document_id] => 499326000044989043
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 1
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] => 62
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
)
[is_advanced_tracking_missing] =>
[entity_tags] =>
[submitter_id] =>
[approver_id] =>
[submitted_date] =>
[submitted_by] =>
[submitted_by_name] =>
[submitted_by_email] =>
[submitted_by_photo_url] =>
[price_precision] => 2
[is_emailed] =>
[has_unconfirmed_line_item] =>
[picklists] => Array
(
)
[purchaseorders] => Array
(
)
[locations] => Array
(
[0] => Array
(
[location_id] => 499326000023111007
[location_name] => Head Office
[status] => active
)
[1] => Array
(
[location_id] => 499326000041689155
[location_name] => Bason Bridge Brewery Duty Bonded Warehouse
[status] => active
)
)
[billing_address_id] => 499326000046966138
[billing_address] => Array
(
[address] => 21 North St
[street2] =>
[city] => Weston Super Mare
[state] =>
[zip] =>
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[shipping_address_id] => 499326000046966140
[shipping_address] => Array
(
[company_name] =>
[address] => Worle Football Club
[street2] => Station Road
[city] => Worle
[state] => Weston Super Mare
[zip] => BS22 6AH
[country] => United Kingdom
[country_code] => GB
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[is_test_order] =>
[notes] => Account Name: 7 Day Cellar Ltd
Sort Code: 09-01-30
Account No: 10888924
[terms] =>
[payment_terms] => 7
[payment_terms_label] => Net 7
[custom_fields] => Array
(
[0] => Array
(
[field_id] => 499326000042690007
[customfield_id] => 499326000042690007
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 1
[label] => Automation Required
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[is_color_code_supported] =>
[api_name] => cf__ulrql_automation_required
[show_in_all_pdf] =>
[selected_option_id] => 499326000042690011
[value_formatted] => Yes
[search_entity] => salesorder
[data_type] => dropdown
[placeholder] => cf__ulrql_automation_required
[value] => Yes
[is_dependent_field] =>
)
[1] => Array
(
[field_id] => 499326000046252143
[customfield_id] => 499326000046252143
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 2
[label] => Delivery Instructions
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_instructions
[show_in_all_pdf] =>
[value_formatted] => Collect 1 x Brue Keg and empties
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_instructions
[value] => Collect 1 x Brue Keg and empties
[is_dependent_field] =>
)
[2] => Array
(
[field_id] => 499326000046252173
[customfield_id] => 499326000046252173
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 3
[label] => Delivery Driver
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_driver
[show_in_all_pdf] =>
[value_formatted] => Lewis Newman
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_driver
[value] => Lewis Newman
[is_dependent_field] =>
)
[3] => Array
(
[field_id] => 499326000046717945
[customfield_id] => 499326000046717945
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 4
[label] => GoCardless Mandate
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_gocardless_mandate
[show_in_all_pdf] =>
[value_formatted] => True
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_gocardless_mandate
[value] => True
[is_dependent_field] =>
)
[4] => Array
(
[field_id] => 499326000047922345
[customfield_id] => 499326000047922345
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 5
[label] => Run Number
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_run_number
[show_in_all_pdf] =>
[value_formatted] => 1
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_run_number
[value] => 1
[is_dependent_field] =>
)
)
[custom_field_hash] => Array
(
[cf__ulrql_automation_required] => Yes
[cf__ulrql_automation_required_unformatted] => Yes
[cf_delivery_instructions] => Collect 1 x Brue Keg and empties
[cf_delivery_instructions_unformatted] => Collect 1 x Brue Keg and empties
[cf_delivery_driver] => Lewis Newman
[cf_delivery_driver_unformatted] => Lewis Newman
[cf_gocardless_mandate] => True
[cf_gocardless_mandate_unformatted] => True
[cf_run_number] => 1
[cf_run_number_unformatted] => 1
)
[template_id] => 499326000000000111
[template_name] => Standard Template
[page_width] => 8.27in
[page_height] => 11.69in
[orientation] => portrait
[template_type] => standard
[created_time] => 2025-09-29T13:23:18+0100
[last_modified_time] => 2025-10-03T19:33:16+0100
[created_by_id] => 499326000044308001
[created_date] => 2025-09-29
[last_modified_by_id] => 499326000044410001
[attachment_name] =>
[can_send_in_mail] =>
[salesperson_id] => 499326000044620336
[salesperson_name] => Sophie Redman
[merchant_id] =>
[merchant_name] =>
[pickup_location_id] =>
[discount] => 0
[discount_applied_on_amount] => 0
[is_adv_tracking_in_package] =>
[shipping_charge_taxes] => Array
(
)
[lock_details] => Array
(
[can_lock] =>
)
[locked_actions] => Array
(
)
[shipping_charge_tax_id] =>
[shipping_charge_tax_name] =>
[shipping_charge_tax_type] =>
[shipping_charge_tax_percentage] =>
[shipping_charge_tax_exemption_id] =>
[shipping_charge_tax_exemption_code] =>
[shipping_charge_tax] =>
[bcy_shipping_charge_tax] =>
[shipping_charge_exclusive_of_tax] => 0
[shipping_charge_inclusive_of_tax] => 0
[shipping_charge_tax_formatted] =>
[shipping_charge_exclusive_of_tax_formatted] => £0.00
[shipping_charge_inclusive_of_tax_formatted] => £0.00
[shipping_charge] => 0
[bcy_shipping_charge] => 0
[adjustment] => 0
[bcy_adjustment] => 0
[adjustment_description] => Adjustment
[roundoff_value] => 0
[transaction_rounding_type] => no_rounding
[rounding_mode] => round_half_up
[bcy_rounding_mode] => round_half_up
[sub_total] => 225
[bcy_sub_total] => 225
[sub_total_inclusive_of_tax] => 0
[sub_total_exclusive_of_discount] => 225
[discount_total] => 0
[bcy_discount_total] => 0
[discount_percent] => 0
[tax_total] => 45
[bcy_tax_total] => 45
[total] => 270
[computation_type] => basic
[bcy_total] => 270
[reverse_charge_tax_total] => 0
[taxes] => Array
(
[0] => Array
(
[tax_amount] => 45
[tax_name] => Standard Rate
[tax_amount_formatted] => £45.00
)
)
[tds_calculation_type] => tds_item_level
[packages] => Array
(
)
[so_cycle_preference] => Array
(
[is_feature_enabled] => 1
[socycle_status] => not_triggered
[can_create_invoice] => 1
[can_create_package] =>
[can_create_shipment] =>
[shipment_preference] => Array
(
[default_carrier] =>
[send_notification] =>
[deliver_shipments] =>
)
[invoice_preference] => Array
(
[mark_as_sent] =>
[record_payment] =>
[payment_mode_id] => 499326000000000199
[payment_account_id] => 499326000000000349
)
)
[invoices] => Array
(
[0] => Array
(
[invoice_id] => 499326000049016378
[invoice_number] => INV-26126
[reference_number] => SO-00455
[status] => sent
[date] => 2025-10-03
[due_date] => 2025-10-10
[total] => 156
[balance] => 156
)
)
[can_show_kit_return] =>
[is_kit_partial_return] =>
[salesreturns] => Array
(
)
[payments] => Array
(
)
[creditnotes] => Array
(
)
[refunds] => Array
(
)
[contact] => Array
(
[customer_balance] => 420
[credit_limit] => 0
[unused_customer_credits] => 0
[is_credit_limit_migration_completed] => 1
)
[balance] => 270
[approvers_list] => Array
(
)
[is_scheduled_for_quick_shipment_create] =>
)
)
Webhook - destinationUpdated script called at 2025-10-03 19:33:22
JSON: {"payload":{"orderReference":"SO-00455","status":"ALLOCATED"},"timestamp":"2025-10-03T18:33:21Z"}
REF: SO-00455
Filter: refId="SO-00455"
200 response code sent
Local item: {"addons":[],"attachments":[],"collectionEnd":"","collectionId":"s93ukjlitoinx2e","collectionInstructions":"","collectionName":"orders","collectionStart":"","company":"1kmltj8w8rnhbfx","contactEmail":"wayne.hadley@conciergeuk.co.uk","contactName":"Wayne Hadley","contactNotes":"","contactPhone":"","created":"2025-09-29 12:23:39.282Z","custom":[],"customer":"pro2diwlme62ylp","deliveryCity":"Worle","deliveryCounty":"","deliveryEnd":"2025-10-03 00:00:00.000Z","deliveryInstructions":"","deliveryName":"Concierge Events","deliveryPostcode":"BS22 6AH","deliveryStart":"2025-10-03 00:00:00.000Z","deliveryStreet":"Worle Football Club","description":"","driverRef":"","externalCustomerId":"499326000046966136","externalLocationId":"499326000046966140","externalOrderId":"499326000048825178","id":"qv5hgbux769xpa4","isCancelled":false,"isCollection":false,"isReadyToSync":false,"isScheduledCollection":false,"isScheduledDelivery":false,"isUntracked":false,"mergeRef":"","notes":"Collect 1 x Brue Keg and empties","orderedAt":"","overrideVolume":0,"overrideWeight":0,"paymentMethod":"","pendingSyncFromDestination":false,"pendingSyncFromSource":false,"pendingSyncToDestination":true,"pendingSyncToSource":true,"ref":"","refId":"SO-00455","requestedDeliveryDays":"","seqNo":"","signature":"","signatureName":"","signatureTime":"","statusCollection":"","statusDelivery":"Scheduled","syncInCreated":"2025-09-29 12:23:18.000Z","syncInStatus":"closed","syncInUpdated":"2025-10-03 18:32:42.000Z","syncOutStatus":"ALLOCATED","syncOutUpdated":"2025-10-03 18:32:00.000Z","timeWindows":[],"title":"Concierge Events","totalValue":270,"totalWeight":124,"type":"","updated":"2025-10-03 18:33:16.226Z","vehicleRef":"","what3Words":""}
Updating local order from MaxOptra - current local order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[contactName] => Wayne Hadley
[contactNotes] =>
[contactPhone] =>
[created] => 2025-09-29 12:23:39.282Z
[custom] => Array
(
)
[customer] => pro2diwlme62ylp
[deliveryCity] => Worle
[deliveryCounty] =>
[deliveryEnd] => 2025-10-03 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Concierge Events
[deliveryPostcode] => BS22 6AH
[deliveryStart] => 2025-10-03 00:00:00.000Z
[deliveryStreet] => Worle Football Club
[description] =>
[driverRef] =>
[externalCustomerId] => 499326000046966136
[externalLocationId] => 499326000046966140
[externalOrderId] => 499326000048825178
[id] => qv5hgbux769xpa4
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] => Collect 1 x Brue Keg and empties
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] => 1
[ref] =>
[refId] => SO-00455
[requestedDeliveryDays] =>
[seqNo] =>
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Scheduled
[syncInCreated] => 2025-09-29 12:23:18.000Z
[syncInStatus] => closed
[syncInUpdated] => 2025-10-03 18:32:42.000Z
[syncOutStatus] => ALLOCATED
[syncOutUpdated] => 2025-10-03 18:32:00.000Z
[timeWindows] => Array
(
)
[title] => Concierge Events
[totalValue] => 270
[totalWeight] => 124
[type] =>
[updated] => 2025-10-03 18:33:16.226Z
[vehicleRef] =>
[what3Words] =>
)
MaxOptra order details: Array
(
[0] => Array
(
[referenceNumber] => SO-00455
[consignmentReference] =>
[distributionCentreReference] => Head Office
[distributionCentreName] => Head Office
[task] => DELIVERY
[priority] => NORMAL
[vehicleRequirements] => Array
(
)
[additionalInstructions] => Collect 1 x Brue Keg and empties
[clientName] => Concierge Events
[contactPerson] => Wayne Hadley
[contactNumber] =>
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[additionalContactEmails] =>
[notificationPreferences] => Array
(
[allowSMS] => 1
[allowEmail] => 1
)
[customerLocation] => Array
(
[referenceNumber] => 499326000046966140
[name] => Concierge Events, Worle Football Club, Worle
[address] => BS22 6AH
[w3wAddress] =>
[latitude] => 51.35846
[longitude] => -2.92353
)
[territoryReference] =>
[stopSequence] => ANY
[timeWindows] => Array
(
[0] => Array
(
[start] => 2025-10-03T06:00:00+01:00
[end] => 2025-10-03T23:00:00+01:00
)
)
[orderDate] =>
[capacity1] => 124
[capacity2] => 0
[price] => 0
[operationDuration] => 486
[customFields] => Array
(
)
[orderItems] => Array
(
[0] => Array
(
[itemReferenceNumber] => 499326000000061367
[orderReferenceNumber] => SO-00455
[name] => San Miguel 11G
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 130
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 130
[height] => 0
[width] => 0
[length] => 0
[weight] => 62
[volume] => 0
)
[1] => Array
(
[itemReferenceNumber] => 499326000000063923
[orderReferenceNumber] => SO-00455
[name] => Thatcher's Gold Cider 11g
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 95
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 95
[height] => 0
[width] => 0
[length] => 0
[weight] => 62
[volume] => 0
)
)
[widgetTrackingDetails] =>
)
)
MaxOptra schedule details: Array
(
[orderReferenceNumber] => SO-00455
[assignedDriverReference] => Lewis Newman
[assignedDriverName] => Lewis Newman
[assignedVehicleReference] => WD25HWY
[assignedVehicleName] => WD25HWY
[plannedArrivalTime] => 2025-10-03T20:03:41+01:00
[plannedCompletionTime] => 2025-10-03T20:11:47+01:00
[stopNumber] => 1
[totalStopsInRun] => 3
[runNumber] => 1
[runReference] => 857f789e3cd84449a35e057ccd96d6e0
[eta] =>
[factArrivalTimeGPS] =>
[factCompletionTimeGPS] =>
[factArrivalTimeReported] =>
[factCompletionTimeReported] =>
[failReason] =>
[failComment] =>
[status] => ALLOCATED
[driver] => Lewis Newman
[arrival_planned] => 2025-10-03T20:03:41+01:00
[arrival_estimated] =>
[arrival_actual] =>
[totalStops] => 3
)
Updating order: SO-00455
Update ID qv5hgbux769xpa4 with: Array
(
[custom] => Array
(
)
[driverRef] => Lewis Newman
[vehicleRef] => WD25HWY
[seqNo] => 1
)
Updated order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[contactName] => Wayne Hadley
[contactNotes] =>
[contactPhone] =>
[created] => 2025-09-29 12:23:39.282Z
[custom] => Array
(
)
[customer] => pro2diwlme62ylp
[deliveryCity] => Worle
[deliveryCounty] =>
[deliveryEnd] => 2025-10-03 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Concierge Events
[deliveryPostcode] => BS22 6AH
[deliveryStart] => 2025-10-03 00:00:00.000Z
[deliveryStreet] => Worle Football Club
[description] =>
[driverRef] => Lewis Newman
[externalCustomerId] => 499326000046966136
[externalLocationId] => 499326000046966140
[externalOrderId] => 499326000048825178
[id] => qv5hgbux769xpa4
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] => Collect 1 x Brue Keg and empties
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] => 1
[ref] =>
[refId] => SO-00455
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Scheduled
[syncInCreated] => 2025-09-29 12:23:18.000Z
[syncInStatus] => closed
[syncInUpdated] => 2025-10-03 18:32:42.000Z
[syncOutStatus] => ALLOCATED
[syncOutUpdated] => 2025-10-03 18:32:00.000Z
[timeWindows] => Array
(
)
[title] => Concierge Events
[totalValue] => 270
[totalWeight] => 124
[type] =>
[updated] => 2025-10-03 18:33:22.760Z
[vehicleRef] => WD25HWY
[what3Words] =>
)
Updating source from local order
Getting custom fields
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-07-18 02:35:52.065Z
[id] => nc7sndad5bhvi5x
[inCollection] => orders
[inField] => paymentMethod
[mappedField] => 7DCPayment
[name] => Payment method
[sourceField] =>
[syncFromSource] => 1
[syncToSource] =>
[type] => text
[updated] => 2025-07-18 02:35:52.065Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Processing field
Mapped field: 7DCEmpties
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
Processing field
Mapped field: 7DCEmptiesGas
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:03:34.631Z
[id] => pcn96l3kgkps4az
[inCollection] => orders
[inField] => driverRef
[mappedField] =>
[name] => Delivery driver
[sourceField] => cf_delivery_driver
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:03:34.631Z
)
Processing field
driverRef...
Value: Lewis Newman
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-08 04:52:51.399Z
[id] => hhrzcmytzs8p3kw
[inCollection] => orders
[inField] => seqNo
[mappedField] =>
[name] => Run number
[sourceField] => cf_run_number
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-08 04:52:51.399Z
)
Processing field
seqNo...
Value: 1
Finished processing field
Continue
Updating source order: Array
(
[custom_fields] => Array
(
[0] => Array
(
[api_name] => cf_delivery_driver
[value] => Lewis Newman
)
[1] => Array
(
[api_name] => cf_run_number
[value] => 1
)
)
)
Update result: Array
(
[code] => 0
[message] => Sales Order has been updated.
[salesorder] => Array
(
[salesorder_id] => 499326000048825178
[is_viewed_in_mail] =>
[mail_first_viewed_time] =>
[mail_last_viewed_time] =>
[documents] => Array
(
)
[zcrm_potential_id] =>
[zcrm_potential_name] =>
[salesorder_number] => SO-00455
[date] => 2025-10-03
[offline_created_date_with_time] =>
[tracking_url] =>
[has_discount] =>
[status] => confirmed
[color_code] =>
[current_sub_status_id] =>
[current_sub_status] => closed
[sub_statuses] => Array
(
)
[shipment_date] => 2025-10-03
[reference_number] =>
[customer_id] => 499326000046966136
[customer_name] => Concierge Events
[contact_persons] => Array
(
[0] => 499326000047525212
)
[contact_persons_associated] => Array
(
[0] => Array
(
[contact_person_id] => 499326000047525212
[contact_person_email] => wayne.hadley@conciergeuk.co.uk
[first_name] => Wayne
[last_name] => Hadley
[mobile] =>
[communication_preference] => Array
(
[is_email_enabled] => 1
)
)
)
[contact_person_details] => Array
(
[0] => Array
(
[phone] =>
[mobile] =>
[last_name] => Hadley
[contact_person_id] => 499326000047525212
[first_name] => Wayne
[email] => wayne.hadley@conciergeuk.co.uk
)
)
[source] => Api
[contact_category] => uk
[is_taxable] =>
[has_shipping_address] => 1
[currency_id] => 499326000000000065
[currency_code] => GBP
[currency_symbol] => £
[exchange_rate] => 1
[is_discount_before_tax] => 1
[discount_type] => item_level
[estimate_id] =>
[delivery_method] =>
[delivery_method_id] =>
[vat_treatment] => uk
[is_inclusive_tax] =>
[tax_rounding] => entity_level
[tax_override_preference] => no_override
[order_status] => closed
[invoiced_status] => invoiced
[paid_status] => unpaid
[shipped_status] => pending
[sales_channel] => direct_sales
[sales_channel_formatted] => Direct Sales
[account_identifier] =>
[integration_id] =>
[is_dropshipped] =>
[is_backordered] =>
[is_manually_fulfilled] =>
[can_manually_fulfill] => 1
[has_qty_cancelled] =>
[is_reverse_charge_applied] =>
[shipping_details] => Array
(
)
[created_by_email] => sophie@7daycellar.co.uk
[created_by_name] => Sophie Redman
[branch_id] => 499326000023111007
[branch_name] => Head Office
[location_id] => 499326000023111007
[location_name] => Head Office
[total_quantity] => 2
[line_items] => Array
(
[0] => Array
(
[line_item_id] => 499326000048825184
[variant_id] => 499326000000061367
[track_batch_number] =>
[item_id] => 499326000000061367
[is_returnable] =>
[product_id] => 499326000000061367
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] => BBG-SNML-50LK
[name] => San Miguel 11G
[group_name] => San Miguel 11G
[description] =>
[item_order] => 0
[bcy_rate] => 130
[rate] => 130
[sales_rate] => 146.95
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 26
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 130
[item_sub_total] => 130
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] => San Miguel.png
[image_type] => png
[document_id] => 499326000044988871
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 1
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] => 62
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
[1] => Array
(
[line_item_id] => 499326000048825186
[variant_id] => 499326000000063923
[track_batch_number] =>
[item_id] => 499326000000063923
[is_returnable] =>
[product_id] => 499326000000063923
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] => TTCG-GOLD-50LK
[name] => Thatcher's Gold Cider 11g
[group_name] => Thatcher's Gold Cider 11g
[description] =>
[item_order] => 1
[bcy_rate] => 95
[rate] => 95
[sales_rate] => 110.99
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 19
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 95
[item_sub_total] => 95
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] => Thatchers Gold Badge.png
[image_type] => png
[document_id] => 499326000044989043
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 1
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] => 62
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
)
[is_advanced_tracking_missing] =>
[entity_tags] =>
[submitter_id] =>
[approver_id] =>
[submitted_date] =>
[submitted_by] =>
[submitted_by_name] =>
[submitted_by_email] =>
[submitted_by_photo_url] =>
[price_precision] => 2
[is_emailed] =>
[has_unconfirmed_line_item] =>
[picklists] => Array
(
)
[purchaseorders] => Array
(
)
[locations] => Array
(
[0] => Array
(
[location_id] => 499326000023111007
[location_name] => Head Office
[status] => active
)
[1] => Array
(
[location_id] => 499326000041689155
[location_name] => Bason Bridge Brewery Duty Bonded Warehouse
[status] => active
)
)
[billing_address_id] => 499326000046966138
[billing_address] => Array
(
[address] => 21 North St
[street2] =>
[city] => Weston Super Mare
[state] =>
[zip] =>
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[shipping_address_id] => 499326000046966140
[shipping_address] => Array
(
[company_name] =>
[address] => Worle Football Club
[street2] => Station Road
[city] => Worle
[state] => Weston Super Mare
[zip] => BS22 6AH
[country] => United Kingdom
[country_code] => GB
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[is_test_order] =>
[notes] => Account Name: 7 Day Cellar Ltd
Sort Code: 09-01-30
Account No: 10888924
[terms] =>
[payment_terms] => 7
[payment_terms_label] => Net 7
[custom_fields] => Array
(
[0] => Array
(
[field_id] => 499326000042690007
[customfield_id] => 499326000042690007
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 1
[label] => Automation Required
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[is_color_code_supported] =>
[api_name] => cf__ulrql_automation_required
[show_in_all_pdf] =>
[selected_option_id] => 499326000042690011
[value_formatted] => Yes
[search_entity] => salesorder
[data_type] => dropdown
[placeholder] => cf__ulrql_automation_required
[value] => Yes
[is_dependent_field] =>
)
[1] => Array
(
[field_id] => 499326000046252143
[customfield_id] => 499326000046252143
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 2
[label] => Delivery Instructions
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_instructions
[show_in_all_pdf] =>
[value_formatted] => Collect 1 x Brue Keg and empties
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_instructions
[value] => Collect 1 x Brue Keg and empties
[is_dependent_field] =>
)
[2] => Array
(
[field_id] => 499326000046252173
[customfield_id] => 499326000046252173
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 3
[label] => Delivery Driver
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_driver
[show_in_all_pdf] =>
[value_formatted] => Lewis Newman
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_driver
[value] => Lewis Newman
[is_dependent_field] =>
)
[3] => Array
(
[field_id] => 499326000046717945
[customfield_id] => 499326000046717945
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 4
[label] => GoCardless Mandate
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_gocardless_mandate
[show_in_all_pdf] =>
[value_formatted] => True
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_gocardless_mandate
[value] => True
[is_dependent_field] =>
)
[4] => Array
(
[field_id] => 499326000047922345
[customfield_id] => 499326000047922345
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 5
[label] => Run Number
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_run_number
[show_in_all_pdf] =>
[value_formatted] => 1
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_run_number
[value] => 1
[is_dependent_field] =>
)
)
[custom_field_hash] => Array
(
[cf__ulrql_automation_required] => Yes
[cf__ulrql_automation_required_unformatted] => Yes
[cf_delivery_instructions] => Collect 1 x Brue Keg and empties
[cf_delivery_instructions_unformatted] => Collect 1 x Brue Keg and empties
[cf_delivery_driver] => Lewis Newman
[cf_delivery_driver_unformatted] => Lewis Newman
[cf_gocardless_mandate] => True
[cf_gocardless_mandate_unformatted] => True
[cf_run_number] => 1
[cf_run_number_unformatted] => 1
)
[template_id] => 499326000000000111
[template_name] => Standard Template
[page_width] => 8.27in
[page_height] => 11.69in
[orientation] => portrait
[template_type] => standard
[created_time] => 2025-09-29T13:23:18+0100
[last_modified_time] => 2025-10-03T19:33:23+0100
[created_by_id] => 499326000044308001
[created_date] => 2025-09-29
[last_modified_by_id] => 499326000044410001
[attachment_name] =>
[can_send_in_mail] =>
[salesperson_id] => 499326000044620336
[salesperson_name] => Sophie Redman
[merchant_id] =>
[merchant_name] =>
[pickup_location_id] =>
[discount] => 0
[discount_applied_on_amount] => 0
[is_adv_tracking_in_package] =>
[shipping_charge_taxes] => Array
(
)
[lock_details] => Array
(
[can_lock] =>
)
[locked_actions] => Array
(
)
[shipping_charge_tax_id] =>
[shipping_charge_tax_name] =>
[shipping_charge_tax_type] =>
[shipping_charge_tax_percentage] =>
[shipping_charge_tax_exemption_id] =>
[shipping_charge_tax_exemption_code] =>
[shipping_charge_tax] =>
[bcy_shipping_charge_tax] =>
[shipping_charge_exclusive_of_tax] => 0
[shipping_charge_inclusive_of_tax] => 0
[shipping_charge_tax_formatted] =>
[shipping_charge_exclusive_of_tax_formatted] => £0.00
[shipping_charge_inclusive_of_tax_formatted] => £0.00
[shipping_charge] => 0
[bcy_shipping_charge] => 0
[adjustment] => 0
[bcy_adjustment] => 0
[adjustment_description] => Adjustment
[roundoff_value] => 0
[transaction_rounding_type] => no_rounding
[rounding_mode] => round_half_up
[bcy_rounding_mode] => round_half_up
[sub_total] => 225
[bcy_sub_total] => 225
[sub_total_inclusive_of_tax] => 0
[sub_total_exclusive_of_discount] => 225
[discount_total] => 0
[bcy_discount_total] => 0
[discount_percent] => 0
[tax_total] => 45
[bcy_tax_total] => 45
[total] => 270
[computation_type] => basic
[bcy_total] => 270
[reverse_charge_tax_total] => 0
[taxes] => Array
(
[0] => Array
(
[tax_amount] => 45
[tax_name] => Standard Rate
[tax_amount_formatted] => £45.00
)
)
[tds_calculation_type] => tds_item_level
[packages] => Array
(
)
[so_cycle_preference] => Array
(
[is_feature_enabled] => 1
[socycle_status] => not_triggered
[can_create_invoice] => 1
[can_create_package] =>
[can_create_shipment] =>
[shipment_preference] => Array
(
[default_carrier] =>
[send_notification] =>
[deliver_shipments] =>
)
[invoice_preference] => Array
(
[mark_as_sent] =>
[record_payment] =>
[payment_mode_id] => 499326000000000199
[payment_account_id] => 499326000000000349
)
)
[invoices] => Array
(
[0] => Array
(
[invoice_id] => 499326000049016378
[invoice_number] => INV-26126
[reference_number] => SO-00455
[status] => sent
[date] => 2025-10-03
[due_date] => 2025-10-10
[total] => 156
[balance] => 156
)
)
[can_show_kit_return] =>
[is_kit_partial_return] =>
[salesreturns] => Array
(
)
[payments] => Array
(
)
[creditnotes] => Array
(
)
[refunds] => Array
(
)
[contact] => Array
(
[customer_balance] => 420
[credit_limit] => 0
[unused_customer_credits] => 0
[is_credit_limit_migration_completed] => 1
)
[balance] => 270
[approvers_list] => Array
(
)
[is_scheduled_for_quick_shipment_create] =>
)
)
Webhook - destinationRunUpdated script called at 2025-10-03 19:33:28
Data: {"payload":{"runReference":"857f789e3cd84449a35e057ccd96d6e0","status":"LOCKED","vehicleReference":"WD25HWY","shiftDate":"2025-10-03"},"timestamp":"2025-10-03T18:33:27Z"}
JSON: {"payload":{"runReference":"857f789e3cd84449a35e057ccd96d6e0","status":"LOCKED","vehicleReference":"WD25HWY","shiftDate":"2025-10-03"},"timestamp":"2025-10-03T18:33:27Z"}
Vehicle: WD25HWY
date: 2025-10-03
Status: LOCKED
200 response code sent
Processing order: SO-00455
Looking for local order: SO-00455
Updating local order from MaxOptra - current local order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[contactName] => Wayne Hadley
[contactNotes] =>
[contactPhone] =>
[created] => 2025-09-29 12:23:39.282Z
[custom] => Array
(
)
[customer] => pro2diwlme62ylp
[deliveryCity] => Worle
[deliveryCounty] =>
[deliveryEnd] => 2025-10-03 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Concierge Events
[deliveryPostcode] => BS22 6AH
[deliveryStart] => 2025-10-03 00:00:00.000Z
[deliveryStreet] => Worle Football Club
[description] =>
[driverRef] => Lewis Newman
[externalCustomerId] => 499326000046966136
[externalLocationId] => 499326000046966140
[externalOrderId] => 499326000048825178
[id] => qv5hgbux769xpa4
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] => Collect 1 x Brue Keg and empties
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] => 1
[ref] =>
[refId] => SO-00455
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Scheduled
[syncInCreated] => 2025-09-29 12:23:18.000Z
[syncInStatus] => closed
[syncInUpdated] => 2025-10-03 18:32:42.000Z
[syncOutStatus] => ALLOCATED
[syncOutUpdated] => 2025-10-03 18:32:00.000Z
[timeWindows] => Array
(
)
[title] => Concierge Events
[totalValue] => 270
[totalWeight] => 124
[type] =>
[updated] => 2025-10-03 18:33:22.760Z
[vehicleRef] => WD25HWY
[what3Words] =>
)
MaxOptra order details: Array
(
[0] => Array
(
[referenceNumber] => SO-00455
[consignmentReference] =>
[distributionCentreReference] => Head Office
[distributionCentreName] => Head Office
[task] => DELIVERY
[priority] => NORMAL
[vehicleRequirements] => Array
(
)
[additionalInstructions] => Collect 1 x Brue Keg and empties
[clientName] => Concierge Events
[contactPerson] => Wayne Hadley
[contactNumber] =>
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[additionalContactEmails] =>
[notificationPreferences] => Array
(
[allowSMS] => 1
[allowEmail] => 1
)
[customerLocation] => Array
(
[referenceNumber] => 499326000046966140
[name] => Concierge Events, Worle Football Club, Worle
[address] => BS22 6AH
[w3wAddress] =>
[latitude] => 51.35846
[longitude] => -2.92353
)
[territoryReference] =>
[stopSequence] => ANY
[timeWindows] => Array
(
[0] => Array
(
[start] => 2025-10-03T06:00:00+01:00
[end] => 2025-10-03T23:00:00+01:00
)
)
[orderDate] =>
[capacity1] => 124
[capacity2] => 0
[price] => 0
[operationDuration] => 486
[customFields] => Array
(
)
[orderItems] => Array
(
[0] => Array
(
[itemReferenceNumber] => 499326000000061367
[orderReferenceNumber] => SO-00455
[name] => San Miguel 11G
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 130
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 130
[height] => 0
[width] => 0
[length] => 0
[weight] => 62
[volume] => 0
)
[1] => Array
(
[itemReferenceNumber] => 499326000000063923
[orderReferenceNumber] => SO-00455
[name] => Thatcher's Gold Cider 11g
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 95
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 95
[height] => 0
[width] => 0
[length] => 0
[weight] => 62
[volume] => 0
)
)
[widgetTrackingDetails] =>
)
)
MaxOptra schedule details: Array
(
[orderReferenceNumber] => SO-00455
[assignedDriverReference] => Lewis Newman
[assignedDriverName] => Lewis Newman
[assignedVehicleReference] => WD25HWY
[assignedVehicleName] => WD25HWY
[plannedArrivalTime] => 2025-10-03T20:03:41+01:00
[plannedCompletionTime] => 2025-10-03T20:11:47+01:00
[stopNumber] => 1
[totalStopsInRun] => 3
[runNumber] => 1
[runReference] => 857f789e3cd84449a35e057ccd96d6e0
[eta] =>
[factArrivalTimeGPS] =>
[factCompletionTimeGPS] =>
[factArrivalTimeReported] =>
[factCompletionTimeReported] =>
[failReason] =>
[failComment] =>
[status] => LOCKED
[driver] => Lewis Newman
[arrival_planned] => 2025-10-03T20:03:41+01:00
[arrival_estimated] =>
[arrival_actual] =>
[totalStops] => 3
)
Updating order: SO-00455
Update ID qv5hgbux769xpa4 with: Array
(
[custom] => Array
(
)
[driverRef] => Lewis Newman
[vehicleRef] => WD25HWY
[seqNo] => 1
)
Updated order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[contactName] => Wayne Hadley
[contactNotes] =>
[contactPhone] =>
[created] => 2025-09-29 12:23:39.282Z
[custom] => Array
(
)
[customer] => pro2diwlme62ylp
[deliveryCity] => Worle
[deliveryCounty] =>
[deliveryEnd] => 2025-10-03 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Concierge Events
[deliveryPostcode] => BS22 6AH
[deliveryStart] => 2025-10-03 00:00:00.000Z
[deliveryStreet] => Worle Football Club
[description] =>
[driverRef] => Lewis Newman
[externalCustomerId] => 499326000046966136
[externalLocationId] => 499326000046966140
[externalOrderId] => 499326000048825178
[id] => qv5hgbux769xpa4
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] => Collect 1 x Brue Keg and empties
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] => 1
[ref] =>
[refId] => SO-00455
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Scheduled
[syncInCreated] => 2025-09-29 12:23:18.000Z
[syncInStatus] => closed
[syncInUpdated] => 2025-10-03 18:32:42.000Z
[syncOutStatus] => ALLOCATED
[syncOutUpdated] => 2025-10-03 18:32:00.000Z
[timeWindows] => Array
(
)
[title] => Concierge Events
[totalValue] => 270
[totalWeight] => 124
[type] =>
[updated] => 2025-10-03 18:33:28.720Z
[vehicleRef] => WD25HWY
[what3Words] =>
)
Updating source from local order
Getting custom fields
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-07-18 02:35:52.065Z
[id] => nc7sndad5bhvi5x
[inCollection] => orders
[inField] => paymentMethod
[mappedField] => 7DCPayment
[name] => Payment method
[sourceField] =>
[syncFromSource] => 1
[syncToSource] =>
[type] => text
[updated] => 2025-07-18 02:35:52.065Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Processing field
Mapped field: 7DCEmpties
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
Processing field
Mapped field: 7DCEmptiesGas
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:03:34.631Z
[id] => pcn96l3kgkps4az
[inCollection] => orders
[inField] => driverRef
[mappedField] =>
[name] => Delivery driver
[sourceField] => cf_delivery_driver
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:03:34.631Z
)
Processing field
driverRef...
Value: Lewis Newman
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-08 04:52:51.399Z
[id] => hhrzcmytzs8p3kw
[inCollection] => orders
[inField] => seqNo
[mappedField] =>
[name] => Run number
[sourceField] => cf_run_number
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-08 04:52:51.399Z
)
Processing field
seqNo...
Value: 1
Finished processing field
Continue
Updating source order: Array
(
[custom_fields] => Array
(
[0] => Array
(
[api_name] => cf_delivery_driver
[value] => Lewis Newman
)
[1] => Array
(
[api_name] => cf_run_number
[value] => 1
)
)
)
Update result: Array
(
[code] => 0
[message] => Sales Order has been updated.
[salesorder] => Array
(
[salesorder_id] => 499326000048825178
[is_viewed_in_mail] =>
[mail_first_viewed_time] =>
[mail_last_viewed_time] =>
[documents] => Array
(
)
[zcrm_potential_id] =>
[zcrm_potential_name] =>
[salesorder_number] => SO-00455
[date] => 2025-10-03
[offline_created_date_with_time] =>
[tracking_url] =>
[has_discount] =>
[status] => confirmed
[color_code] =>
[current_sub_status_id] =>
[current_sub_status] => closed
[sub_statuses] => Array
(
)
[shipment_date] => 2025-10-03
[reference_number] =>
[customer_id] => 499326000046966136
[customer_name] => Concierge Events
[contact_persons] => Array
(
[0] => 499326000047525212
)
[contact_persons_associated] => Array
(
[0] => Array
(
[contact_person_id] => 499326000047525212
[contact_person_email] => wayne.hadley@conciergeuk.co.uk
[first_name] => Wayne
[last_name] => Hadley
[mobile] =>
[communication_preference] => Array
(
[is_email_enabled] => 1
)
)
)
[contact_person_details] => Array
(
[0] => Array
(
[phone] =>
[mobile] =>
[last_name] => Hadley
[contact_person_id] => 499326000047525212
[first_name] => Wayne
[email] => wayne.hadley@conciergeuk.co.uk
)
)
[source] => Api
[contact_category] => uk
[is_taxable] =>
[has_shipping_address] => 1
[currency_id] => 499326000000000065
[currency_code] => GBP
[currency_symbol] => £
[exchange_rate] => 1
[is_discount_before_tax] => 1
[discount_type] => item_level
[estimate_id] =>
[delivery_method] =>
[delivery_method_id] =>
[vat_treatment] => uk
[is_inclusive_tax] =>
[tax_rounding] => entity_level
[tax_override_preference] => no_override
[order_status] => closed
[invoiced_status] => invoiced
[paid_status] => unpaid
[shipped_status] => pending
[sales_channel] => direct_sales
[sales_channel_formatted] => Direct Sales
[account_identifier] =>
[integration_id] =>
[is_dropshipped] =>
[is_backordered] =>
[is_manually_fulfilled] =>
[can_manually_fulfill] => 1
[has_qty_cancelled] =>
[is_reverse_charge_applied] =>
[shipping_details] => Array
(
)
[created_by_email] => sophie@7daycellar.co.uk
[created_by_name] => Sophie Redman
[branch_id] => 499326000023111007
[branch_name] => Head Office
[location_id] => 499326000023111007
[location_name] => Head Office
[total_quantity] => 2
[line_items] => Array
(
[0] => Array
(
[line_item_id] => 499326000048825184
[variant_id] => 499326000000061367
[track_batch_number] =>
[item_id] => 499326000000061367
[is_returnable] =>
[product_id] => 499326000000061367
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] => BBG-SNML-50LK
[name] => San Miguel 11G
[group_name] => San Miguel 11G
[description] =>
[item_order] => 0
[bcy_rate] => 130
[rate] => 130
[sales_rate] => 146.95
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 26
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 130
[item_sub_total] => 130
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] => San Miguel.png
[image_type] => png
[document_id] => 499326000044988871
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 1
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] => 62
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
[1] => Array
(
[line_item_id] => 499326000048825186
[variant_id] => 499326000000063923
[track_batch_number] =>
[item_id] => 499326000000063923
[is_returnable] =>
[product_id] => 499326000000063923
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] => TTCG-GOLD-50LK
[name] => Thatcher's Gold Cider 11g
[group_name] => Thatcher's Gold Cider 11g
[description] =>
[item_order] => 1
[bcy_rate] => 95
[rate] => 95
[sales_rate] => 110.99
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 19
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 95
[item_sub_total] => 95
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] => Thatchers Gold Badge.png
[image_type] => png
[document_id] => 499326000044989043
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 1
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] => 62
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
)
[is_advanced_tracking_missing] =>
[entity_tags] =>
[submitter_id] =>
[approver_id] =>
[submitted_date] =>
[submitted_by] =>
[submitted_by_name] =>
[submitted_by_email] =>
[submitted_by_photo_url] =>
[price_precision] => 2
[is_emailed] =>
[has_unconfirmed_line_item] =>
[picklists] => Array
(
)
[purchaseorders] => Array
(
)
[locations] => Array
(
[0] => Array
(
[location_id] => 499326000023111007
[location_name] => Head Office
[status] => active
)
[1] => Array
(
[location_id] => 499326000041689155
[location_name] => Bason Bridge Brewery Duty Bonded Warehouse
[status] => active
)
)
[billing_address_id] => 499326000046966138
[billing_address] => Array
(
[address] => 21 North St
[street2] =>
[city] => Weston Super Mare
[state] =>
[zip] =>
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[shipping_address_id] => 499326000046966140
[shipping_address] => Array
(
[company_name] =>
[address] => Worle Football Club
[street2] => Station Road
[city] => Worle
[state] => Weston Super Mare
[zip] => BS22 6AH
[country] => United Kingdom
[country_code] => GB
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[is_test_order] =>
[notes] => Account Name: 7 Day Cellar Ltd
Sort Code: 09-01-30
Account No: 10888924
[terms] =>
[payment_terms] => 7
[payment_terms_label] => Net 7
[custom_fields] => Array
(
[0] => Array
(
[field_id] => 499326000042690007
[customfield_id] => 499326000042690007
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 1
[label] => Automation Required
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[is_color_code_supported] =>
[api_name] => cf__ulrql_automation_required
[show_in_all_pdf] =>
[selected_option_id] => 499326000042690011
[value_formatted] => Yes
[search_entity] => salesorder
[data_type] => dropdown
[placeholder] => cf__ulrql_automation_required
[value] => Yes
[is_dependent_field] =>
)
[1] => Array
(
[field_id] => 499326000046252143
[customfield_id] => 499326000046252143
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 2
[label] => Delivery Instructions
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_instructions
[show_in_all_pdf] =>
[value_formatted] => Collect 1 x Brue Keg and empties
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_instructions
[value] => Collect 1 x Brue Keg and empties
[is_dependent_field] =>
)
[2] => Array
(
[field_id] => 499326000046252173
[customfield_id] => 499326000046252173
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 3
[label] => Delivery Driver
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_driver
[show_in_all_pdf] =>
[value_formatted] => Lewis Newman
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_driver
[value] => Lewis Newman
[is_dependent_field] =>
)
[3] => Array
(
[field_id] => 499326000046717945
[customfield_id] => 499326000046717945
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 4
[label] => GoCardless Mandate
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_gocardless_mandate
[show_in_all_pdf] =>
[value_formatted] => True
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_gocardless_mandate
[value] => True
[is_dependent_field] =>
)
[4] => Array
(
[field_id] => 499326000047922345
[customfield_id] => 499326000047922345
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 5
[label] => Run Number
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_run_number
[show_in_all_pdf] =>
[value_formatted] => 1
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_run_number
[value] => 1
[is_dependent_field] =>
)
)
[custom_field_hash] => Array
(
[cf__ulrql_automation_required] => Yes
[cf__ulrql_automation_required_unformatted] => Yes
[cf_delivery_instructions] => Collect 1 x Brue Keg and empties
[cf_delivery_instructions_unformatted] => Collect 1 x Brue Keg and empties
[cf_delivery_driver] => Lewis Newman
[cf_delivery_driver_unformatted] => Lewis Newman
[cf_gocardless_mandate] => True
[cf_gocardless_mandate_unformatted] => True
[cf_run_number] => 1
[cf_run_number_unformatted] => 1
)
[template_id] => 499326000000000111
[template_name] => Standard Template
[page_width] => 8.27in
[page_height] => 11.69in
[orientation] => portrait
[template_type] => standard
[created_time] => 2025-09-29T13:23:18+0100
[last_modified_time] => 2025-10-03T19:33:29+0100
[created_by_id] => 499326000044308001
[created_date] => 2025-09-29
[last_modified_by_id] => 499326000044410001
[attachment_name] =>
[can_send_in_mail] =>
[salesperson_id] => 499326000044620336
[salesperson_name] => Sophie Redman
[merchant_id] =>
[merchant_name] =>
[pickup_location_id] =>
[discount] => 0
[discount_applied_on_amount] => 0
[is_adv_tracking_in_package] =>
[shipping_charge_taxes] => Array
(
)
[lock_details] => Array
(
[can_lock] =>
)
[locked_actions] => Array
(
)
[shipping_charge_tax_id] =>
[shipping_charge_tax_name] =>
[shipping_charge_tax_type] =>
[shipping_charge_tax_percentage] =>
[shipping_charge_tax_exemption_id] =>
[shipping_charge_tax_exemption_code] =>
[shipping_charge_tax] =>
[bcy_shipping_charge_tax] =>
[shipping_charge_exclusive_of_tax] => 0
[shipping_charge_inclusive_of_tax] => 0
[shipping_charge_tax_formatted] =>
[shipping_charge_exclusive_of_tax_formatted] => £0.00
[shipping_charge_inclusive_of_tax_formatted] => £0.00
[shipping_charge] => 0
[bcy_shipping_charge] => 0
[adjustment] => 0
[bcy_adjustment] => 0
[adjustment_description] => Adjustment
[roundoff_value] => 0
[transaction_rounding_type] => no_rounding
[rounding_mode] => round_half_up
[bcy_rounding_mode] => round_half_up
[sub_total] => 225
[bcy_sub_total] => 225
[sub_total_inclusive_of_tax] => 0
[sub_total_exclusive_of_discount] => 225
[discount_total] => 0
[bcy_discount_total] => 0
[discount_percent] => 0
[tax_total] => 45
[bcy_tax_total] => 45
[total] => 270
[computation_type] => basic
[bcy_total] => 270
[reverse_charge_tax_total] => 0
[taxes] => Array
(
[0] => Array
(
[tax_amount] => 45
[tax_name] => Standard Rate
[tax_amount_formatted] => £45.00
)
)
[tds_calculation_type] => tds_item_level
[packages] => Array
(
)
[so_cycle_preference] => Array
(
[is_feature_enabled] => 1
[socycle_status] => not_triggered
[can_create_invoice] => 1
[can_create_package] =>
[can_create_shipment] =>
[shipment_preference] => Array
(
[default_carrier] =>
[send_notification] =>
[deliver_shipments] =>
)
[invoice_preference] => Array
(
[mark_as_sent] =>
[record_payment] =>
[payment_mode_id] => 499326000000000199
[payment_account_id] => 499326000000000349
)
)
[invoices] => Array
(
[0] => Array
(
[invoice_id] => 499326000049016378
[invoice_number] => INV-26126
[reference_number] => SO-00455
[status] => sent
[date] => 2025-10-03
[due_date] => 2025-10-10
[total] => 156
[balance] => 156
)
)
[can_show_kit_return] =>
[is_kit_partial_return] =>
[salesreturns] => Array
(
)
[payments] => Array
(
)
[creditnotes] => Array
(
)
[refunds] => Array
(
)
[contact] => Array
(
[customer_balance] => 420
[credit_limit] => 0
[unused_customer_credits] => 0
[is_credit_limit_migration_completed] => 1
)
[balance] => 270
[approvers_list] => Array
(
)
[is_scheduled_for_quick_shipment_create] =>
)
)
Processing order: SO-00462
Looking for local order: SO-00462
Updating local order from MaxOptra - current local order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => info@yosc.co.uk
[contactName] => Andy Lathall
[contactNotes] =>
[contactPhone] =>
[created] => 2025-10-01 08:59:17.505Z
[custom] => Array
(
)
[customer] => 2c3n2ko6gnqor0c
[deliveryCity] => Yate
[deliveryCounty] =>
[deliveryEnd] => 2025-10-03 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Yate Outdoor Sports Complex
[deliveryPostcode] => BS37 7LB
[deliveryStart] => 2025-10-03 00:00:00.000Z
[deliveryStreet] => Broad Lane
[description] =>
[driverRef] =>
[externalCustomerId] => 499326000046812601
[externalLocationId] => 499326000046812607
[externalOrderId] => 499326000048962039
[id] => 4dmkrivudjy63aj
[isCancelled] =>
[isCollection] =>
[isReadyToSync] => 1
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] =>
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00462
[requestedDeliveryDays] =>
[seqNo] =>
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Pending
[syncInCreated] => 2025-10-01 08:58:49.000Z
[syncInStatus] => closed
[syncInUpdated] => 2025-10-03 07:17:20.000Z
[syncOutStatus] => UNALLOCATED
[syncOutUpdated] => 2025-10-03 07:17:00.000Z
[timeWindows] => Array
(
)
[title] => Yate Outdoor Sports Complex
[totalValue] => 302.33
[totalWeight] => 101
[type] =>
[updated] => 2025-10-03 07:22:53.065Z
[vehicleRef] =>
[what3Words] =>
)
Webhook - destinationRunUpdated script called at 2025-10-03 19:33:29
Data: {"payload":{"runReference":"857f789e3cd84449a35e057ccd96d6e0","status":"SENT","vehicleReference":"WD25HWY","shiftDate":"2025-10-03"},"timestamp":"2025-10-03T18:33:29Z"}
JSON: {"payload":{"runReference":"857f789e3cd84449a35e057ccd96d6e0","status":"SENT","vehicleReference":"WD25HWY","shiftDate":"2025-10-03"},"timestamp":"2025-10-03T18:33:29Z"}
Vehicle: WD25HWY
date: 2025-10-03
Status: SENT
200 response code sent
MaxOptra order details: Array
(
[0] => Array
(
[referenceNumber] => SO-00462
[consignmentReference] =>
[distributionCentreReference] => Head Office
[distributionCentreName] => Head Office
[task] => DELIVERY
[priority] => NORMAL
[vehicleRequirements] => Array
(
)
[additionalInstructions] =>
[clientName] => Yate Outdoors Sports Complex
[contactPerson] => Andy Lathall
[contactNumber] =>
[contactEmail] => info@yosc.co.uk
[additionalContactEmails] =>
[notificationPreferences] => Array
(
[allowSMS] => 1
[allowEmail] => 1
)
[customerLocation] => Array
(
[referenceNumber] => 499326000046812607
[name] => Yate Outdoor Sports Complex, Broad Lane, Yate
[address] => BS37 7LB
[w3wAddress] =>
[latitude] => 51.55152
[longitude] => -2.42615
)
[territoryReference] =>
[stopSequence] => ANY
[timeWindows] => Array
(
[0] => Array
(
[start] => 2025-10-03T06:00:00+01:00
[end] => 2025-10-03T23:00:00+01:00
)
)
[orderDate] =>
[capacity1] => 101
[capacity2] => 0
[price] => 0
[operationDuration] => 451
[customFields] => Array
(
)
[orderItems] => Array
(
[0] => Array
(
[itemReferenceNumber] => 499326000000061781
[orderReferenceNumber] => SO-00462
[name] => Peroni Nastro Azzuro 11g
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 156.99
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 156.99
[height] => 0
[width] => 0
[length] => 0
[weight] => 62
[volume] => 0
)
[1] => Array
(
[itemReferenceNumber] => 499326000039253885
[orderReferenceNumber] => SO-00462
[name] => Level Head IPA
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 94.95
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 94.95
[height] => 0
[width] => 0
[length] => 0
[weight] => 39
[volume] => 0
)
)
[widgetTrackingDetails] =>
)
)
MaxOptra schedule details: Array
(
[orderReferenceNumber] => SO-00462
[assignedDriverReference] => Lewis Newman
[assignedDriverName] => Lewis Newman
[assignedVehicleReference] => WD25HWY
[assignedVehicleName] => WD25HWY
[plannedArrivalTime] => 2025-10-03T20:47:32+01:00
[plannedCompletionTime] => 2025-10-03T20:55:03+01:00
[stopNumber] => 2
[totalStopsInRun] => 3
[runNumber] => 1
[runReference] => 857f789e3cd84449a35e057ccd96d6e0
[eta] =>
[factArrivalTimeGPS] =>
[factCompletionTimeGPS] =>
[factArrivalTimeReported] =>
[factCompletionTimeReported] =>
[failReason] =>
[failComment] =>
[status] => ACCEPTED
[driver] => Lewis Newman
[arrival_planned] => 2025-10-03T20:47:32+01:00
[arrival_estimated] =>
[arrival_actual] =>
[totalStops] => 3
)
Updating order: SO-00462
Update ID 4dmkrivudjy63aj with: Array
(
[custom] => Array
(
)
[driverRef] => Lewis Newman
[vehicleRef] => WD25HWY
[seqNo] => 1
)
Updated order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => info@yosc.co.uk
[contactName] => Andy Lathall
[contactNotes] =>
[contactPhone] =>
[created] => 2025-10-01 08:59:17.505Z
[custom] => Array
(
)
[customer] => 2c3n2ko6gnqor0c
[deliveryCity] => Yate
[deliveryCounty] =>
[deliveryEnd] => 2025-10-03 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Yate Outdoor Sports Complex
[deliveryPostcode] => BS37 7LB
[deliveryStart] => 2025-10-03 00:00:00.000Z
[deliveryStreet] => Broad Lane
[description] =>
[driverRef] => Lewis Newman
[externalCustomerId] => 499326000046812601
[externalLocationId] => 499326000046812607
[externalOrderId] => 499326000048962039
[id] => 4dmkrivudjy63aj
[isCancelled] =>
[isCollection] =>
[isReadyToSync] => 1
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] =>
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00462
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Pending
[syncInCreated] => 2025-10-01 08:58:49.000Z
[syncInStatus] => closed
[syncInUpdated] => 2025-10-03 07:17:20.000Z
[syncOutStatus] => UNALLOCATED
[syncOutUpdated] => 2025-10-03 07:17:00.000Z
[timeWindows] => Array
(
)
[title] => Yate Outdoor Sports Complex
[totalValue] => 302.33
[totalWeight] => 101
[type] =>
[updated] => 2025-10-03 18:33:29.818Z
[vehicleRef] => WD25HWY
[what3Words] =>
)
Updating source from local order
Getting custom fields
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-07-18 02:35:52.065Z
[id] => nc7sndad5bhvi5x
[inCollection] => orders
[inField] => paymentMethod
[mappedField] => 7DCPayment
[name] => Payment method
[sourceField] =>
[syncFromSource] => 1
[syncToSource] =>
[type] => text
[updated] => 2025-07-18 02:35:52.065Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Processing field
Mapped field: 7DCEmpties
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
Processing field
Mapped field: 7DCEmptiesGas
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:03:34.631Z
[id] => pcn96l3kgkps4az
[inCollection] => orders
[inField] => driverRef
[mappedField] =>
[name] => Delivery driver
[sourceField] => cf_delivery_driver
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:03:34.631Z
)
Processing field
driverRef...
Value: Lewis Newman
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-08 04:52:51.399Z
[id] => hhrzcmytzs8p3kw
[inCollection] => orders
[inField] => seqNo
[mappedField] =>
[name] => Run number
[sourceField] => cf_run_number
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-08 04:52:51.399Z
)
Processing field
seqNo...
Value: 1
Finished processing field
Continue
Updating source order: Array
(
[custom_fields] => Array
(
[0] => Array
(
[api_name] => cf_delivery_driver
[value] => Lewis Newman
)
[1] => Array
(
[api_name] => cf_run_number
[value] => 1
)
)
)
Processing order: SO-00455
Looking for local order: SO-00455
Updating local order from MaxOptra - current local order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[contactName] => Wayne Hadley
[contactNotes] =>
[contactPhone] =>
[created] => 2025-09-29 12:23:39.282Z
[custom] => Array
(
)
[customer] => pro2diwlme62ylp
[deliveryCity] => Worle
[deliveryCounty] =>
[deliveryEnd] => 2025-10-03 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Concierge Events
[deliveryPostcode] => BS22 6AH
[deliveryStart] => 2025-10-03 00:00:00.000Z
[deliveryStreet] => Worle Football Club
[description] =>
[driverRef] => Lewis Newman
[externalCustomerId] => 499326000046966136
[externalLocationId] => 499326000046966140
[externalOrderId] => 499326000048825178
[id] => qv5hgbux769xpa4
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] => Collect 1 x Brue Keg and empties
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] => 1
[ref] =>
[refId] => SO-00455
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Scheduled
[syncInCreated] => 2025-09-29 12:23:18.000Z
[syncInStatus] => closed
[syncInUpdated] => 2025-10-03 18:32:42.000Z
[syncOutStatus] => ALLOCATED
[syncOutUpdated] => 2025-10-03 18:32:00.000Z
[timeWindows] => Array
(
)
[title] => Concierge Events
[totalValue] => 270
[totalWeight] => 124
[type] =>
[updated] => 2025-10-03 18:33:28.720Z
[vehicleRef] => WD25HWY
[what3Words] =>
)
MaxOptra order details: Array
(
[0] => Array
(
[referenceNumber] => SO-00455
[consignmentReference] =>
[distributionCentreReference] => Head Office
[distributionCentreName] => Head Office
[task] => DELIVERY
[priority] => NORMAL
[vehicleRequirements] => Array
(
)
[additionalInstructions] => Collect 1 x Brue Keg and empties
[clientName] => Concierge Events
[contactPerson] => Wayne Hadley
[contactNumber] =>
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[additionalContactEmails] =>
[notificationPreferences] => Array
(
[allowSMS] => 1
[allowEmail] => 1
)
[customerLocation] => Array
(
[referenceNumber] => 499326000046966140
[name] => Concierge Events, Worle Football Club, Worle
[address] => BS22 6AH
[w3wAddress] =>
[latitude] => 51.35846
[longitude] => -2.92353
)
[territoryReference] =>
[stopSequence] => ANY
[timeWindows] => Array
(
[0] => Array
(
[start] => 2025-10-03T06:00:00+01:00
[end] => 2025-10-03T23:00:00+01:00
)
)
[orderDate] =>
[capacity1] => 124
[capacity2] => 0
[price] => 0
[operationDuration] => 486
[customFields] => Array
(
)
[orderItems] => Array
(
[0] => Array
(
[itemReferenceNumber] => 499326000000061367
[orderReferenceNumber] => SO-00455
[name] => San Miguel 11G
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 130
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 130
[height] => 0
[width] => 0
[length] => 0
[weight] => 62
[volume] => 0
)
[1] => Array
(
[itemReferenceNumber] => 499326000000063923
[orderReferenceNumber] => SO-00455
[name] => Thatcher's Gold Cider 11g
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 95
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 95
[height] => 0
[width] => 0
[length] => 0
[weight] => 62
[volume] => 0
)
)
[widgetTrackingDetails] =>
)
)
MaxOptra schedule details: Array
(
[orderReferenceNumber] => SO-00455
[assignedDriverReference] => Lewis Newman
[assignedDriverName] => Lewis Newman
[assignedVehicleReference] => WD25HWY
[assignedVehicleName] => WD25HWY
[plannedArrivalTime] => 2025-10-03T20:03:41+01:00
[plannedCompletionTime] => 2025-10-03T20:11:47+01:00
[stopNumber] => 1
[totalStopsInRun] => 3
[runNumber] => 1
[runReference] => 857f789e3cd84449a35e057ccd96d6e0
[eta] =>
[factArrivalTimeGPS] =>
[factCompletionTimeGPS] =>
[factArrivalTimeReported] =>
[factCompletionTimeReported] =>
[failReason] =>
[failComment] =>
[status] => ACCEPTED
[driver] => Lewis Newman
[arrival_planned] => 2025-10-03T20:03:41+01:00
[arrival_estimated] =>
[arrival_actual] =>
[totalStops] => 3
)
Updating order: SO-00455
Update ID qv5hgbux769xpa4 with: Array
(
[custom] => Array
(
)
[driverRef] => Lewis Newman
[vehicleRef] => WD25HWY
[seqNo] => 1
)
Updated order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[contactName] => Wayne Hadley
[contactNotes] =>
[contactPhone] =>
[created] => 2025-09-29 12:23:39.282Z
[custom] => Array
(
)
[customer] => pro2diwlme62ylp
[deliveryCity] => Worle
[deliveryCounty] =>
[deliveryEnd] => 2025-10-03 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Concierge Events
[deliveryPostcode] => BS22 6AH
[deliveryStart] => 2025-10-03 00:00:00.000Z
[deliveryStreet] => Worle Football Club
[description] =>
[driverRef] => Lewis Newman
[externalCustomerId] => 499326000046966136
[externalLocationId] => 499326000046966140
[externalOrderId] => 499326000048825178
[id] => qv5hgbux769xpa4
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] => Collect 1 x Brue Keg and empties
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] => 1
[ref] =>
[refId] => SO-00455
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Scheduled
[syncInCreated] => 2025-09-29 12:23:18.000Z
[syncInStatus] => closed
[syncInUpdated] => 2025-10-03 18:32:42.000Z
[syncOutStatus] => ALLOCATED
[syncOutUpdated] => 2025-10-03 18:32:00.000Z
[timeWindows] => Array
(
)
[title] => Concierge Events
[totalValue] => 270
[totalWeight] => 124
[type] =>
[updated] => 2025-10-03 18:33:30.283Z
[vehicleRef] => WD25HWY
[what3Words] =>
)
Updating source from local order
Getting custom fields
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-07-18 02:35:52.065Z
[id] => nc7sndad5bhvi5x
[inCollection] => orders
[inField] => paymentMethod
[mappedField] => 7DCPayment
[name] => Payment method
[sourceField] =>
[syncFromSource] => 1
[syncToSource] =>
[type] => text
[updated] => 2025-07-18 02:35:52.065Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Processing field
Mapped field: 7DCEmpties
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
Processing field
Mapped field: 7DCEmptiesGas
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:03:34.631Z
[id] => pcn96l3kgkps4az
[inCollection] => orders
[inField] => driverRef
[mappedField] =>
[name] => Delivery driver
[sourceField] => cf_delivery_driver
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:03:34.631Z
)
Processing field
driverRef...
Value: Lewis Newman
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-08 04:52:51.399Z
[id] => hhrzcmytzs8p3kw
[inCollection] => orders
[inField] => seqNo
[mappedField] =>
[name] => Run number
[sourceField] => cf_run_number
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-08 04:52:51.399Z
)
Processing field
seqNo...
Value: 1
Finished processing field
Continue
Updating source order: Array
(
[custom_fields] => Array
(
[0] => Array
(
[api_name] => cf_delivery_driver
[value] => Lewis Newman
)
[1] => Array
(
[api_name] => cf_run_number
[value] => 1
)
)
)
Update result: Array
(
[code] => 0
[message] => Sales Order has been updated.
[salesorder] => Array
(
[salesorder_id] => 499326000048962039
[is_viewed_in_mail] =>
[mail_first_viewed_time] =>
[mail_last_viewed_time] =>
[documents] => Array
(
)
[zcrm_potential_id] =>
[zcrm_potential_name] =>
[salesorder_number] => SO-00462
[date] => 2025-10-03
[offline_created_date_with_time] =>
[tracking_url] =>
[has_discount] =>
[status] => confirmed
[color_code] =>
[current_sub_status_id] =>
[current_sub_status] => closed
[sub_statuses] => Array
(
)
[shipment_date] => 2025-10-03
[reference_number] =>
[customer_id] => 499326000046812601
[customer_name] => Yate Outdoor Sports Complex
[contact_persons] => Array
(
[0] => 499326000047972643
)
[contact_persons_associated] => Array
(
[0] => Array
(
[contact_person_id] => 499326000047972643
[contact_person_email] => info@yosc.co.uk
[first_name] => Andy
[last_name] => Lathall
[mobile] =>
[communication_preference] => Array
(
[is_email_enabled] => 1
)
)
)
[contact_person_details] => Array
(
[0] => Array
(
[phone] =>
[mobile] =>
[last_name] => Lathall
[contact_person_id] => 499326000047972643
[first_name] => Andy
[email] => info@yosc.co.uk
)
)
[source] => Api
[contact_category] => uk
[is_taxable] =>
[has_shipping_address] => 1
[currency_id] => 499326000000000065
[currency_code] => GBP
[currency_symbol] => £
[exchange_rate] => 1
[is_discount_before_tax] => 1
[discount_type] => item_level
[estimate_id] =>
[delivery_method] =>
[delivery_method_id] =>
[vat_treatment] => uk
[is_inclusive_tax] =>
[tax_rounding] => entity_level
[tax_override_preference] => no_override
[order_status] => closed
[invoiced_status] => invoiced
[paid_status] => unpaid
[shipped_status] => pending
[sales_channel] => direct_sales
[sales_channel_formatted] => Direct Sales
[account_identifier] =>
[integration_id] =>
[is_dropshipped] =>
[is_backordered] =>
[is_manually_fulfilled] =>
[can_manually_fulfill] => 1
[has_qty_cancelled] =>
[is_reverse_charge_applied] =>
[shipping_details] => Array
(
)
[created_by_email] => sophie@7daycellar.co.uk
[created_by_name] => Sophie Redman
[branch_id] => 499326000023111007
[branch_name] => Head Office
[location_id] => 499326000023111007
[location_name] => Head Office
[total_quantity] => 2
[line_items] => Array
(
[0] => Array
(
[line_item_id] => 499326000048962045
[variant_id] => 499326000000061781
[track_batch_number] =>
[item_id] => 499326000000061781
[is_returnable] =>
[product_id] => 499326000000061781
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] => ASHI-PERO-50LK
[name] => Peroni Nastro Azzuro 11g
[group_name] => Peroni Nastro Azzuro 11g
[description] =>
[item_order] => 0
[bcy_rate] => 156.99
[rate] => 156.99
[sales_rate] => 174.95
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 31.4
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 156.99
[item_sub_total] => 156.99
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] => Peroni-fotor-20230731114457.jpg
[image_type] => jpg
[document_id] => 499326000044988787
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 1
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] => 62
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
[1] => Array
(
[line_item_id] => 499326000048962047
[variant_id] => 499326000039253885
[track_batch_number] =>
[item_id] => 499326000039253885
[is_returnable] =>
[product_id] => 499326000039253885
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] => GK-LLHD-30LK
[name] => Level Head IPA
[group_name] => Level Head IPA
[description] =>
[item_order] => 1
[bcy_rate] => 94.95
[rate] => 94.95
[sales_rate] => 94.95
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 18.99
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 94.95
[item_sub_total] => 94.95
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] => Level Head IPA.png
[image_type] => png
[document_id] => 499326000048546683
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 1
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] => 39
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
)
[is_advanced_tracking_missing] =>
[entity_tags] =>
[submitter_id] =>
[approver_id] =>
[submitted_date] =>
[submitted_by] =>
[submitted_by_name] =>
[submitted_by_email] =>
[submitted_by_photo_url] =>
[price_precision] => 2
[is_emailed] =>
[has_unconfirmed_line_item] =>
[picklists] => Array
(
)
[purchaseorders] => Array
(
)
[locations] => Array
(
[0] => Array
(
[location_id] => 499326000023111007
[location_name] => Head Office
[status] => active
)
[1] => Array
(
[location_id] => 499326000041689155
[location_name] => Bason Bridge Brewery Duty Bonded Warehouse
[status] => active
)
)
[billing_address_id] => 499326000046812607
[billing_address] => Array
(
[address] => Broad Lane
[street2] =>
[city] => Yate
[state] =>
[zip] => BS37 7LB
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[shipping_address_id] => 499326000046812609
[shipping_address] => Array
(
[company_name] =>
[address] =>
[street2] =>
[city] =>
[state] =>
[zip] =>
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[is_test_order] =>
[notes] => Account Name: 7 Day Cellar Ltd
Sort Code: 09-01-30
Account No: 10888924
[terms] =>
[payment_terms] => 7
[payment_terms_label] => Net 7
[custom_fields] => Array
(
[0] => Array
(
[field_id] => 499326000042690007
[customfield_id] => 499326000042690007
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 1
[label] => Automation Required
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[is_color_code_supported] =>
[api_name] => cf__ulrql_automation_required
[show_in_all_pdf] =>
[selected_option_id] => 499326000042690011
[value_formatted] => Yes
[search_entity] => salesorder
[data_type] => dropdown
[placeholder] => cf__ulrql_automation_required
[value] => Yes
[is_dependent_field] =>
)
[1] => Array
(
[field_id] => 499326000046252173
[customfield_id] => 499326000046252173
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 2
[label] => Delivery Driver
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_driver
[show_in_all_pdf] =>
[value_formatted] => Lewis Newman
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_driver
[value] => Lewis Newman
[is_dependent_field] =>
)
[2] => Array
(
[field_id] => 499326000047922345
[customfield_id] => 499326000047922345
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 3
[label] => Run Number
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_run_number
[show_in_all_pdf] =>
[value_formatted] => 1
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_run_number
[value] => 1
[is_dependent_field] =>
)
)
[custom_field_hash] => Array
(
[cf__ulrql_automation_required] => Yes
[cf__ulrql_automation_required_unformatted] => Yes
[cf_delivery_driver] => Lewis Newman
[cf_delivery_driver_unformatted] => Lewis Newman
[cf_run_number] => 1
[cf_run_number_unformatted] => 1
)
[template_id] => 499326000000000111
[template_name] => Standard Template
[page_width] => 8.27in
[page_height] => 11.69in
[orientation] => portrait
[template_type] => standard
[created_time] => 2025-10-01T09:58:49+0100
[last_modified_time] => 2025-10-03T19:33:30+0100
[created_by_id] => 499326000044308001
[created_date] => 2025-10-01
[last_modified_by_id] => 499326000044410001
[attachment_name] =>
[can_send_in_mail] =>
[salesperson_id] => 499326000044620336
[salesperson_name] => Sophie Redman
[merchant_id] =>
[merchant_name] =>
[pickup_location_id] =>
[discount] => 0
[discount_applied_on_amount] => 0
[is_adv_tracking_in_package] =>
[shipping_charge_taxes] => Array
(
)
[lock_details] => Array
(
[can_lock] =>
)
[locked_actions] => Array
(
)
[shipping_charge_tax_id] =>
[shipping_charge_tax_name] =>
[shipping_charge_tax_type] =>
[shipping_charge_tax_percentage] =>
[shipping_charge_tax_exemption_id] =>
[shipping_charge_tax_exemption_code] =>
[shipping_charge_tax] =>
[bcy_shipping_charge_tax] =>
[shipping_charge_exclusive_of_tax] => 0
[shipping_charge_inclusive_of_tax] => 0
[shipping_charge_tax_formatted] =>
[shipping_charge_exclusive_of_tax_formatted] => £0.00
[shipping_charge_inclusive_of_tax_formatted] => £0.00
[shipping_charge] => 0
[bcy_shipping_charge] => 0
[adjustment] => 0
[bcy_adjustment] => 0
[adjustment_description] => Adjustment
[roundoff_value] => 0
[transaction_rounding_type] => no_rounding
[rounding_mode] => round_half_up
[bcy_rounding_mode] => round_half_up
[sub_total] => 251.94
[bcy_sub_total] => 251.94
[sub_total_inclusive_of_tax] => 0
[sub_total_exclusive_of_discount] => 251.94
[discount_total] => 0
[bcy_discount_total] => 0
[discount_percent] => 0
[tax_total] => 50.39
[bcy_tax_total] => 50.39
[total] => 302.33
[computation_type] => basic
[bcy_total] => 302.33
[reverse_charge_tax_total] => 0
[taxes] => Array
(
[0] => Array
(
[tax_amount] => 50.39
[tax_name] => Standard Rate
[tax_amount_formatted] => £50.39
)
)
[tds_calculation_type] => tds_item_level
[packages] => Array
(
)
[so_cycle_preference] => Array
(
[is_feature_enabled] => 1
[socycle_status] => not_triggered
[can_create_invoice] => 1
[can_create_package] =>
[can_create_shipment] =>
[shipment_preference] => Array
(
[default_carrier] =>
[send_notification] =>
[deliver_shipments] =>
)
[invoice_preference] => Array
(
[mark_as_sent] =>
[record_payment] =>
[payment_mode_id] => 499326000000000199
[payment_account_id] => 499326000000000349
)
)
[invoices] => Array
(
[0] => Array
(
[invoice_id] => 499326000049016176
[invoice_number] => INV-26125
[reference_number] => SO-00462
[status] => sent
[date] => 2025-10-03
[due_date] => 2025-10-10
[total] => 302.33
[balance] => 302.33
)
)
[can_show_kit_return] =>
[is_kit_partial_return] =>
[salesreturns] => Array
(
)
[payments] => Array
(
)
[creditnotes] => Array
(
)
[refunds] => Array
(
)
[contact] => Array
(
[customer_balance] => 1628.27
[credit_limit] => 0
[unused_customer_credits] => 0
[is_credit_limit_migration_completed] => 1
)
[balance] => 302.33
[approvers_list] => Array
(
)
[is_scheduled_for_quick_shipment_create] =>
)
)
Processing order: SO-00452
Looking for local order: SO-00452
Updating local order from MaxOptra - current local order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] =>
[contactName] => The Horseshoe (Chipping Sodbury)
[contactNotes] =>
[contactPhone] =>
[created] => 2025-09-24 15:41:54.713Z
[custom] => Array
(
)
[customer] => t5br1lbg1z8m7n3
[deliveryCity] => Chipping Sodbury
[deliveryCounty] =>
[deliveryEnd] => 2025-10-03 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => The Horseshoe (Chipping Sodbury)
[deliveryPostcode] => BS37 6AH
[deliveryStart] => 2025-10-03 00:00:00.000Z
[deliveryStreet] => 2 High Street
[description] =>
[driverRef] => Lewis Newman
[externalCustomerId] => 499326000047045175
[externalLocationId] => 499326000047045177
[externalOrderId] => 499326000048549582
[id] => 3fhoq4qcndsfans
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] => Front door open from 10am
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] =>
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00452
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Pending
[syncInCreated] => 2025-09-24 15:41:46.000Z
[syncInStatus] => closed
[syncInUpdated] => 2025-10-03 18:30:51.000Z
[syncOutStatus] => UNALLOCATED
[syncOutUpdated] => 2025-09-30 09:03:00.000Z
[timeWindows] => Array
(
)
[title] => The Horseshoe (Chipping Sodbury)
[totalValue] => 292.72
[totalWeight] => 153
[type] =>
[updated] => 2025-10-03 18:32:51.559Z
[vehicleRef] => WD25HWY
[what3Words] =>
)
MaxOptra order details: Array
(
[0] => Array
(
[referenceNumber] => SO-00452
[consignmentReference] =>
[distributionCentreReference] => Head Office
[distributionCentreName] => Head Office
[task] => DELIVERY
[priority] => NORMAL
[vehicleRequirements] => Array
(
)
[additionalInstructions] => Front door open from 10am
[clientName] =>
[contactPerson] => The Horseshoe (Chipping Sodbury)
[contactNumber] =>
[contactEmail] =>
[additionalContactEmails] =>
[notificationPreferences] => Array
(
[allowSMS] => 1
[allowEmail] => 1
)
[customerLocation] => Array
(
[referenceNumber] => 499326000047045177
[name] => The Horseshoe (Chipping Sodbury), 2 High Street, Chipping Sodbury
[address] => BS37 6AH
[w3wAddress] =>
[latitude] => 51.53814
[longitude] => -2.3951
)
[territoryReference] =>
[stopSequence] => ANY
[timeWindows] => Array
(
[0] => Array
(
[start] => 2025-10-03T06:00:00+01:00
[end] => 2025-10-03T23:00:00+01:00
)
)
[orderDate] =>
[capacity1] => 153
[capacity2] => 0
[price] => 0
[operationDuration] => 529
[customFields] => Array
(
)
[orderItems] => Array
(
[0] => Array
(
[itemReferenceNumber] => 499326000021043799
[orderReferenceNumber] => SO-00452
[name] => Hardings Amber Ale 3.9% (9g)
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 79.95
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 79.95
[height] => 0
[width] => 0
[length] => 0
[weight] => 51
[volume] => 0
)
[1] => Array
(
[itemReferenceNumber] => 499326000021043786
[orderReferenceNumber] => SO-00452
[name] => Hardings Best 4.2% (9g)
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 79.99
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 79.99
[height] => 0
[width] => 0
[length] => 0
[weight] => 51
[volume] => 0
)
[2] => Array
(
[itemReferenceNumber] => 499326000044145711
[orderReferenceNumber] => SO-00452
[name] => Hardings Double Hopped 4.0% (9g)
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 83.99
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 83.99
[height] => 0
[width] => 0
[length] => 0
[weight] => 51
[volume] => 0
)
)
[widgetTrackingDetails] =>
)
)
MaxOptra schedule details: Array
(
[orderReferenceNumber] => SO-00452
[assignedDriverReference] => Lewis Newman
[assignedDriverName] => Lewis Newman
[assignedVehicleReference] => WD25HWY
[assignedVehicleName] => WD25HWY
[plannedArrivalTime] => 2025-10-03T20:59:36+01:00
[plannedCompletionTime] => 2025-10-03T21:08:25+01:00
[stopNumber] => 3
[totalStopsInRun] => 3
[runNumber] => 1
[runReference] => 857f789e3cd84449a35e057ccd96d6e0
[eta] =>
[factArrivalTimeGPS] =>
[factCompletionTimeGPS] =>
[factArrivalTimeReported] =>
[factCompletionTimeReported] =>
[failReason] =>
[failComment] =>
[status] => ACCEPTED
[driver] => Lewis Newman
[arrival_planned] => 2025-10-03T20:59:36+01:00
[arrival_estimated] =>
[arrival_actual] =>
[totalStops] => 3
)
Updating order: SO-00452
Update ID 3fhoq4qcndsfans with: Array
(
[custom] => Array
(
)
[driverRef] => Lewis Newman
[vehicleRef] => WD25HWY
[seqNo] => 1
)
Updated order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] =>
[contactName] => The Horseshoe (Chipping Sodbury)
[contactNotes] =>
[contactPhone] =>
[created] => 2025-09-24 15:41:54.713Z
[custom] => Array
(
)
[customer] => t5br1lbg1z8m7n3
[deliveryCity] => Chipping Sodbury
[deliveryCounty] =>
[deliveryEnd] => 2025-10-03 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => The Horseshoe (Chipping Sodbury)
[deliveryPostcode] => BS37 6AH
[deliveryStart] => 2025-10-03 00:00:00.000Z
[deliveryStreet] => 2 High Street
[description] =>
[driverRef] => Lewis Newman
[externalCustomerId] => 499326000047045175
[externalLocationId] => 499326000047045177
[externalOrderId] => 499326000048549582
[id] => 3fhoq4qcndsfans
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] => Front door open from 10am
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] =>
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00452
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Pending
[syncInCreated] => 2025-09-24 15:41:46.000Z
[syncInStatus] => closed
[syncInUpdated] => 2025-10-03 18:30:51.000Z
[syncOutStatus] => UNALLOCATED
[syncOutUpdated] => 2025-09-30 09:03:00.000Z
[timeWindows] => Array
(
)
[title] => The Horseshoe (Chipping Sodbury)
[totalValue] => 292.72
[totalWeight] => 153
[type] =>
[updated] => 2025-10-03 18:33:31.015Z
[vehicleRef] => WD25HWY
[what3Words] =>
)
Updating source from local order
Getting custom fields
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-07-18 02:35:52.065Z
[id] => nc7sndad5bhvi5x
[inCollection] => orders
[inField] => paymentMethod
[mappedField] => 7DCPayment
[name] => Payment method
[sourceField] =>
[syncFromSource] => 1
[syncToSource] =>
[type] => text
[updated] => 2025-07-18 02:35:52.065Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Processing field
Mapped field: 7DCEmpties
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
Processing field
Mapped field: 7DCEmptiesGas
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:03:34.631Z
[id] => pcn96l3kgkps4az
[inCollection] => orders
[inField] => driverRef
[mappedField] =>
[name] => Delivery driver
[sourceField] => cf_delivery_driver
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:03:34.631Z
)
Processing field
driverRef...
Update result: Array
(
[code] => 0
[message] => Sales Order has been updated.
[salesorder] => Array
(
[salesorder_id] => 499326000048825178
[is_viewed_in_mail] =>
[mail_first_viewed_time] =>
[mail_last_viewed_time] =>
[documents] => Array
(
)
[zcrm_potential_id] =>
[zcrm_potential_name] =>
[salesorder_number] => SO-00455
[date] => 2025-10-03
[offline_created_date_with_time] =>
[tracking_url] =>
[has_discount] =>
[status] => confirmed
[color_code] =>
[current_sub_status_id] =>
[current_sub_status] => closed
[sub_statuses] => Array
(
)
[shipment_date] => 2025-10-03
[reference_number] =>
[customer_id] => 499326000046966136
[customer_name] => Concierge Events
[contact_persons] => Array
(
[0] => 499326000047525212
)
[contact_persons_associated] => Array
(
[0] => Array
(
[contact_person_id] => 499326000047525212
[contact_person_email] => wayne.hadley@conciergeuk.co.uk
[first_name] => Wayne
[last_name] => Hadley
[mobile] =>
[communication_preference] => Array
(
[is_email_enabled] => 1
)
)
)
[contact_person_details] => Array
(
[0] => Array
(
[phone] =>
[mobile] =>
[last_name] => Hadley
[contact_person_id] => 499326000047525212
[first_name] => Wayne
[email] => wayne.hadley@conciergeuk.co.uk
)
)
[source] => Api
[contact_category] => uk
[is_taxable] =>
[has_shipping_address] => 1
[currency_id] => 499326000000000065
[currency_code] => GBP
[currency_symbol] => £
[exchange_rate] => 1
[is_discount_before_tax] => 1
[discount_type] => item_level
[estimate_id] =>
[delivery_method] =>
[delivery_method_id] =>
[vat_treatment] => uk
[is_inclusive_tax] =>
[tax_rounding] => entity_level
[tax_override_preference] => no_override
[order_status] => closed
[invoiced_status] => invoiced
[paid_status] => unpaid
[shipped_status] => pending
[sales_channel] => direct_sales
[sales_channel_formatted] => Direct Sales
[account_identifier] =>
[integration_id] =>
[is_dropshipped] =>
[is_backordered] =>
[is_manually_fulfilled] =>
[can_manually_fulfill] => 1
[has_qty_cancelled] =>
[is_reverse_charge_applied] =>
[shipping_details] => Array
(
)
[created_by_email] => sophie@7daycellar.co.uk
[created_by_name] => Sophie Redman
[branch_id] => 499326000023111007
[branch_name] => Head Office
[location_id] => 499326000023111007
[location_name] => Head Office
[total_quantity] => 2
[line_items] => Array
(
[0] => Array
(
[line_item_id] => 499326000048825184
[variant_id] => 499326000000061367
[track_batch_number] =>
[item_id] => 499326000000061367
[is_returnable] =>
[product_id] => 499326000000061367
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] => BBG-SNML-50LK
[name] => San Miguel 11G
[group_name] => San Miguel 11G
[description] =>
[item_order] => 0
[bcy_rate] => 130
[rate] => 130
[sales_rate] => 146.95
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 26
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 130
[item_sub_total] => 130
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] => San Miguel.png
[image_type] => png
[document_id] => 499326000044988871
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 1
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] => 62
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
[1] => Array
(
[line_item_id] => 499326000048825186
[variant_id] => 499326000000063923
[track_batch_number] =>
[item_id] => 499326000000063923
[is_returnable] =>
[product_id] => 499326000000063923
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] => TTCG-GOLD-50LK
[name] => Thatcher's Gold Cider 11g
[group_name] => Thatcher's Gold Cider 11g
[description] =>
[item_order] => 1
[bcy_rate] => 95
[rate] => 95
[sales_rate] => 110.99
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 19
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 95
[item_sub_total] => 95
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] => Thatchers Gold Badge.png
[image_type] => png
[document_id] => 499326000044989043
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 1
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] => 62
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
)
[is_advanced_tracking_missing] =>
[entity_tags] =>
[submitter_id] =>
[approver_id] =>
[submitted_date] =>
[submitted_by] =>
[submitted_by_name] =>
[submitted_by_email] =>
[submitted_by_photo_url] =>
[price_precision] => 2
[is_emailed] =>
[has_unconfirmed_line_item] =>
[picklists] => Array
(
)
[purchaseorders] => Array
(
)
[locations] => Array
(
[0] => Array
(
[location_id] => 499326000023111007
[location_name] => Head Office
[status] => active
)
[1] => Array
(
[location_id] => 499326000041689155
[location_name] => Bason Bridge Brewery Duty Bonded Warehouse
[status] => active
)
)
[billing_address_id] => 499326000046966138
[billing_address] => Array
(
[address] => 21 North St
[street2] =>
[city] => Weston Super Mare
[state] =>
[zip] =>
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[shipping_address_id] => 499326000046966140
[shipping_address] => Array
(
[company_name] =>
[address] => Worle Football Club
[street2] => Station Road
[city] => Worle
[state] => Weston Super Mare
[zip] => BS22 6AH
[country] => United Kingdom
[country_code] => GB
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[is_test_order] =>
[notes] => Account Name: 7 Day Cellar Ltd
Sort Code: 09-01-30
Account No: 10888924
[terms] =>
[payment_terms] => 7
[payment_terms_label] => Net 7
[custom_fields] => Array
(
[0] => Array
(
[field_id] => 499326000042690007
[customfield_id] => 499326000042690007
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 1
[label] => Automation Required
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[is_color_code_supported] =>
[api_name] => cf__ulrql_automation_required
[show_in_all_pdf] =>
[selected_option_id] => 499326000042690011
[value_formatted] => Yes
[search_entity] => salesorder
[data_type] => dropdown
[placeholder] => cf__ulrql_automation_required
[value] => Yes
[is_dependent_field] =>
)
[1] => Array
(
[field_id] => 499326000046252143
[customfield_id] => 499326000046252143
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 2
[label] => Delivery Instructions
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_instructions
[show_in_all_pdf] =>
[value_formatted] => Collect 1 x Brue Keg and empties
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_instructions
[value] => Collect 1 x Brue Keg and empties
[is_dependent_field] =>
)
[2] => Array
(
[field_id] => 499326000046252173
[customfield_id] => 499326000046252173
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 3
[label] => Delivery Driver
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_driver
[show_in_all_pdf] =>
[value_formatted] => Lewis Newman
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_driver
[value] => Lewis Newman
[is_dependent_field] =>
)
[3] => Array
(
[field_id] => 499326000046717945
[customfield_id] => 499326000046717945
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 4
[label] => GoCardless Mandate
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_gocardless_mandate
[show_in_all_pdf] =>
[value_formatted] => True
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_gocardless_mandate
[value] => True
[is_dependent_field] =>
)
[4] => Array
(
[field_id] => 499326000047922345
[customfield_id] => 499326000047922345
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 5
[label] => Run Number
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_run_number
[show_in_all_pdf] =>
[value_formatted] => 1
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_run_number
[value] => 1
[is_dependent_field] =>
)
)
[custom_field_hash] => Array
(
[cf__ulrql_automation_required] => Yes
[cf__ulrql_automation_required_unformatted] => Yes
[cf_delivery_instructions] => Collect 1 x Brue Keg and empties
[cf_delivery_instructions_unformatted] => Collect 1 x Brue Keg and empties
[cf_delivery_driver] => Lewis Newman
[cf_delivery_driver_unformatted] => Lewis Newman
[cf_gocardless_mandate] => True
[cf_gocardless_mandate_unformatted] => True
[cf_run_number] => 1
[cf_run_number_unformatted] => 1
)
[template_id] => 499326000000000111
[template_name] => Standard Template
[page_width] => 8.27in
[page_height] => 11.69in
[orientation] => portrait
[template_type] => standard
[created_time] => 2025-09-29T13:23:18+0100
[last_modified_time] => 2025-10-03T19:33:30+0100
[created_by_id] => 499326000044308001
[created_date] => 2025-09-29
[last_modified_by_id] => 499326000044410001
[attachment_name] =>
[can_send_in_mail] =>
[salesperson_id] => 499326000044620336
[salesperson_name] => Sophie Redman
[merchant_id] =>
[merchant_name] =>
[pickup_location_id] =>
[discount] => 0
[discount_applied_on_amount] => 0
[is_adv_tracking_in_package] =>
[shipping_charge_taxes] => Array
(
)
[lock_details] => Array
(
[can_lock] =>
)
[locked_actions] => Array
(
)
[shipping_charge_tax_id] =>
[shipping_charge_tax_name] =>
[shipping_charge_tax_type] =>
[shipping_charge_tax_percentage] =>
[shipping_charge_tax_exemption_id] =>
[shipping_charge_tax_exemption_code] =>
[shipping_charge_tax] =>
[bcy_shipping_charge_tax] =>
[shipping_charge_exclusive_of_tax] => 0
[shipping_charge_inclusive_of_tax] => 0
[shipping_charge_tax_formatted] =>
[shipping_charge_exclusive_of_tax_formatted] => £0.00
[shipping_charge_inclusive_of_tax_formatted] => £0.00
[shipping_charge] => 0
[bcy_shipping_charge] => 0
[adjustment] => 0
[bcy_adjustment] => 0
[adjustment_description] => Adjustment
[roundoff_value] => 0
[transaction_rounding_type] => no_rounding
[rounding_mode] => round_half_up
[bcy_rounding_mode] => round_half_up
[sub_total] => 225
[bcy_sub_total] => 225
[sub_total_inclusive_of_tax] => 0
[sub_total_exclusive_of_discount] => 225
[discount_total] => 0
[bcy_discount_total] => 0
[discount_percent] => 0
[tax_total] => 45
[bcy_tax_total] => 45
[total] => 270
[computation_type] => basic
[bcy_total] => 270
[reverse_charge_tax_total] => 0
[taxes] => Array
(
[0] => Array
(
[tax_amount] => 45
[tax_name] => Standard Rate
[tax_amount_formatted] => £45.00
)
)
[tds_calculation_type] => tds_item_level
[packages] => Array
(
)
[so_cycle_preference] => Array
(
[is_feature_enabled] => 1
[socycle_status] => not_triggered
[can_create_invoice] => 1
[can_create_package] =>
[can_create_shipment] =>
[shipment_preference] => Array
(
[default_carrier] =>
[send_notification] =>
[deliver_shipments] =>
)
[invoice_preference] => Array
(
[mark_as_sent] =>
[record_payment] =>
[payment_mode_id] => 499326000000000199
[payment_account_id] => 499326000000000349
)
)
[invoices] => Array
(
[0] => Array
(
[invoice_id] => 499326000049016378
[invoice_number] => INV-26126
[reference_number] => SO-00455
[status] => sent
[date] => 2025-10-03
[due_date] => 2025-10-10
[total] => 156
[balance] => 156
)
)
[can_show_kit_return] =>
[is_kit_partial_return] =>
[salesreturns] => Array
(
)
[payments] => Array
(
)
[creditnotes] => Array
(
)
[refunds] => Array
(
)
[contact] => Array
(
[customer_balance] => 420
[credit_limit] => 0
[unused_customer_credits] => 0
[is_credit_limit_migration_completed] => 1
)
[balance] => 270
[approvers_list] => Array
(
)
[is_scheduled_for_quick_shipment_create] =>
)
)
Value: Lewis Newman
Finished processing field
Processing order: SO-00462
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-08 04:52:51.399Z
[id] => hhrzcmytzs8p3kw
[inCollection] => orders
[inField] => seqNo
[mappedField] =>
[name] => Run number
[sourceField] => cf_run_number
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-08 04:52:51.399Z
)
Processing field
Looking for local order: SO-00462
seqNo...
Value: 1
Updating local order from MaxOptra - current local order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => info@yosc.co.uk
[contactName] => Andy Lathall
[contactNotes] =>
[contactPhone] =>
[created] => 2025-10-01 08:59:17.505Z
[custom] => Array
(
)
[customer] => 2c3n2ko6gnqor0c
[deliveryCity] => Yate
[deliveryCounty] =>
[deliveryEnd] => 2025-10-03 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Yate Outdoor Sports Complex
[deliveryPostcode] => BS37 7LB
[deliveryStart] => 2025-10-03 00:00:00.000Z
[deliveryStreet] => Broad Lane
[description] =>
[driverRef] => Lewis Newman
[externalCustomerId] => 499326000046812601
[externalLocationId] => 499326000046812607
[externalOrderId] => 499326000048962039
[id] => 4dmkrivudjy63aj
[isCancelled] =>
[isCollection] =>
[isReadyToSync] => 1
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] =>
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00462
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Pending
[syncInCreated] => 2025-10-01 08:58:49.000Z
[syncInStatus] => closed
[syncInUpdated] => 2025-10-03 07:17:20.000Z
[syncOutStatus] => UNALLOCATED
[syncOutUpdated] => 2025-10-03 07:17:00.000Z
[timeWindows] => Array
(
)
[title] => Yate Outdoor Sports Complex
[totalValue] => 302.33
[totalWeight] => 101
[type] =>
[updated] => 2025-10-03 18:33:29.818Z
[vehicleRef] => WD25HWY
[what3Words] =>
)
Finished processing field
Continue
Updating source order: Array
(
[custom_fields] => Array
(
[0] => Array
(
[api_name] => cf_delivery_driver
[value] => Lewis Newman
)
[1] => Array
(
[api_name] => cf_run_number
[value] => 1
)
)
)
MaxOptra order details: Array
(
[0] => Array
(
[referenceNumber] => SO-00462
[consignmentReference] =>
[distributionCentreReference] => Head Office
[distributionCentreName] => Head Office
[task] => DELIVERY
[priority] => NORMAL
[vehicleRequirements] => Array
(
)
[additionalInstructions] =>
[clientName] => Yate Outdoors Sports Complex
[contactPerson] => Andy Lathall
[contactNumber] =>
[contactEmail] => info@yosc.co.uk
[additionalContactEmails] =>
[notificationPreferences] => Array
(
[allowSMS] => 1
[allowEmail] => 1
)
[customerLocation] => Array
(
[referenceNumber] => 499326000046812607
[name] => Yate Outdoor Sports Complex, Broad Lane, Yate
[address] => BS37 7LB
[w3wAddress] =>
[latitude] => 51.55152
[longitude] => -2.42615
)
[territoryReference] =>
[stopSequence] => ANY
[timeWindows] => Array
(
[0] => Array
(
[start] => 2025-10-03T06:00:00+01:00
[end] => 2025-10-03T23:00:00+01:00
)
)
[orderDate] =>
[capacity1] => 101
[capacity2] => 0
[price] => 0
[operationDuration] => 451
[customFields] => Array
(
)
[orderItems] => Array
(
[0] => Array
(
[itemReferenceNumber] => 499326000000061781
[orderReferenceNumber] => SO-00462
[name] => Peroni Nastro Azzuro 11g
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 156.99
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 156.99
[height] => 0
[width] => 0
[length] => 0
[weight] => 62
[volume] => 0
)
[1] => Array
(
[itemReferenceNumber] => 499326000039253885
[orderReferenceNumber] => SO-00462
[name] => Level Head IPA
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 94.95
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 94.95
[height] => 0
[width] => 0
[length] => 0
[weight] => 39
[volume] => 0
)
)
[widgetTrackingDetails] =>
)
)
MaxOptra schedule details: Array
(
[orderReferenceNumber] => SO-00462
[assignedDriverReference] => Lewis Newman
[assignedDriverName] => Lewis Newman
[assignedVehicleReference] => WD25HWY
[assignedVehicleName] => WD25HWY
[plannedArrivalTime] => 2025-10-03T20:47:32+01:00
[plannedCompletionTime] => 2025-10-03T20:55:03+01:00
[stopNumber] => 2
[totalStopsInRun] => 3
[runNumber] => 1
[runReference] => 857f789e3cd84449a35e057ccd96d6e0
[eta] =>
[factArrivalTimeGPS] =>
[factCompletionTimeGPS] =>
[factArrivalTimeReported] =>
[factCompletionTimeReported] =>
[failReason] =>
[failComment] =>
[status] => ACCEPTED
[driver] => Lewis Newman
[arrival_planned] => 2025-10-03T20:47:32+01:00
[arrival_estimated] =>
[arrival_actual] =>
[totalStops] => 3
)
Updating order: SO-00462
Update ID 4dmkrivudjy63aj with: Array
(
[custom] => Array
(
)
[driverRef] => Lewis Newman
[vehicleRef] => WD25HWY
[seqNo] => 1
)
Updated order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => info@yosc.co.uk
[contactName] => Andy Lathall
[contactNotes] =>
[contactPhone] =>
[created] => 2025-10-01 08:59:17.505Z
[custom] => Array
(
)
[customer] => 2c3n2ko6gnqor0c
[deliveryCity] => Yate
[deliveryCounty] =>
[deliveryEnd] => 2025-10-03 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Yate Outdoor Sports Complex
[deliveryPostcode] => BS37 7LB
[deliveryStart] => 2025-10-03 00:00:00.000Z
[deliveryStreet] => Broad Lane
[description] =>
[driverRef] => Lewis Newman
[externalCustomerId] => 499326000046812601
[externalLocationId] => 499326000046812607
[externalOrderId] => 499326000048962039
[id] => 4dmkrivudjy63aj
[isCancelled] =>
[isCollection] =>
[isReadyToSync] => 1
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] =>
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00462
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Pending
[syncInCreated] => 2025-10-01 08:58:49.000Z
[syncInStatus] => closed
[syncInUpdated] => 2025-10-03 07:17:20.000Z
[syncOutStatus] => UNALLOCATED
[syncOutUpdated] => 2025-10-03 07:17:00.000Z
[timeWindows] => Array
(
)
[title] => Yate Outdoor Sports Complex
[totalValue] => 302.33
[totalWeight] => 101
[type] =>
[updated] => 2025-10-03 18:33:31.354Z
[vehicleRef] => WD25HWY
[what3Words] =>
)
Updating source from local order
Getting custom fields
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-07-18 02:35:52.065Z
[id] => nc7sndad5bhvi5x
[inCollection] => orders
[inField] => paymentMethod
[mappedField] => 7DCPayment
[name] => Payment method
[sourceField] =>
[syncFromSource] => 1
[syncToSource] =>
[type] => text
[updated] => 2025-07-18 02:35:52.065Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Processing field
Mapped field: 7DCEmpties
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
Processing field
Mapped field: 7DCEmptiesGas
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:03:34.631Z
[id] => pcn96l3kgkps4az
[inCollection] => orders
[inField] => driverRef
[mappedField] =>
[name] => Delivery driver
[sourceField] => cf_delivery_driver
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:03:34.631Z
)
Processing field
driverRef...
Value: Lewis Newman
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-08 04:52:51.399Z
[id] => hhrzcmytzs8p3kw
[inCollection] => orders
[inField] => seqNo
[mappedField] =>
[name] => Run number
[sourceField] => cf_run_number
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-08 04:52:51.399Z
)
Processing field
seqNo...
Value: 1
Finished processing field
Continue
Updating source order: Array
(
[custom_fields] => Array
(
[0] => Array
(
[api_name] => cf_delivery_driver
[value] => Lewis Newman
)
[1] => Array
(
[api_name] => cf_run_number
[value] => 1
)
)
)
Update result: Array
(
[code] => 0
[message] => Sales Order has been updated.
[salesorder] => Array
(
[salesorder_id] => 499326000048549582
[is_viewed_in_mail] =>
[mail_first_viewed_time] =>
[mail_last_viewed_time] =>
[documents] => Array
(
)
[zcrm_potential_id] =>
[zcrm_potential_name] =>
[salesorder_number] => SO-00452
[date] => 2025-10-03
[offline_created_date_with_time] =>
[tracking_url] =>
[has_discount] =>
[status] => confirmed
[color_code] =>
[current_sub_status_id] =>
[current_sub_status] => closed
[sub_statuses] => Array
(
)
[shipment_date] => 2025-10-03
[reference_number] =>
[customer_id] => 499326000047045175
[customer_name] => The Horseshoe (Chipping Sodbury)
[contact_persons] => Array
(
)
[contact_persons_associated] => Array
(
)
[contact_person_details] => Array
(
)
[source] => Api
[contact_category] => uk
[is_taxable] =>
[has_shipping_address] => 1
[currency_id] => 499326000000000065
[currency_code] => GBP
[currency_symbol] => £
[exchange_rate] => 1
[is_discount_before_tax] => 1
[discount_type] => item_level
[estimate_id] =>
[delivery_method] =>
[delivery_method_id] =>
[vat_treatment] => uk
[is_inclusive_tax] =>
[tax_rounding] => entity_level
[tax_override_preference] => no_override
[order_status] => closed
[invoiced_status] => invoiced
[paid_status] => unpaid
[shipped_status] => pending
[sales_channel] => direct_sales
[sales_channel_formatted] => Direct Sales
[account_identifier] =>
[integration_id] =>
[is_dropshipped] =>
[is_backordered] =>
[is_manually_fulfilled] =>
[can_manually_fulfill] => 1
[has_qty_cancelled] =>
[is_reverse_charge_applied] =>
[shipping_details] => Array
(
)
[created_by_email] => sophie@7daycellar.co.uk
[created_by_name] => Sophie Redman
[branch_id] => 499326000023111007
[branch_name] => Head Office
[location_id] => 499326000023111007
[location_name] => Head Office
[total_quantity] => 3
[line_items] => Array
(
[0] => Array
(
[line_item_id] => 499326000048549588
[variant_id] => 499326000044145711
[track_batch_number] =>
[item_id] => 499326000044145711
[is_returnable] =>
[product_id] => 499326000044145711
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] => BB-HSDD-9G
[name] => Hardings Double Hopped 4.0% (9g)
[group_name] => Hardings Double Hopped 4.0% (9g)
[description] =>
[item_order] => 1
[bcy_rate] => 83.99
[rate] => 83.99
[sales_rate] => 83.99
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 16.8
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 83.99
[item_sub_total] => 83.99
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] => Harding’s Double Hopped.png
[image_type] => png
[document_id] => 499326000048604859
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 1
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] =>
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
[1] => Array
(
[line_item_id] => 499326000048549590
[variant_id] => 499326000021043799
[track_batch_number] =>
[item_id] => 499326000021043799
[is_returnable] =>
[product_id] => 499326000021043799
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] => BB-HSAR-9G
[name] => Hardings Amber Ale 3.9% (9g)
[group_name] => Hardings Amber Ale 3.9% (9g)
[description] =>
[item_order] => 2
[bcy_rate] => 79.95
[rate] => 79.95
[sales_rate] => 79.95
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 15.99
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 79.95
[item_sub_total] => 79.95
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] => Harding’s Amber Ale.png
[image_type] => png
[document_id] => 499326000048604629
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 1
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] => 51
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
[2] => Array
(
[line_item_id] => 499326000048549592
[variant_id] => 499326000021043786
[track_batch_number] =>
[item_id] => 499326000021043786
[is_returnable] =>
[product_id] => 499326000021043786
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] => BB-HSBT-9G
[name] => Hardings Best 4.2% (9g)
[group_name] => Hardings Best Bitter 4.2% (9g)
[description] =>
[item_order] => 3
[bcy_rate] => 79.99
[rate] => 79.99
[sales_rate] => 79.99
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 16
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 79.99
[item_sub_total] => 79.99
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] => Hardings Best Bitter.png
[image_type] => png
[document_id] => 499326000048604731
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 1
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] => 51
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
)
[is_advanced_tracking_missing] =>
[entity_tags] =>
[submitter_id] =>
[approver_id] =>
[submitted_date] =>
[submitted_by] =>
[submitted_by_name] =>
[submitted_by_email] =>
[submitted_by_photo_url] =>
[price_precision] => 2
[is_emailed] =>
[has_unconfirmed_line_item] =>
[picklists] => Array
(
)
[purchaseorders] => Array
(
)
[locations] => Array
(
[0] => Array
(
[location_id] => 499326000023111007
[location_name] => Head Office
[status] => active
)
[1] => Array
(
[location_id] => 499326000041689155
[location_name] => Bason Bridge Brewery Duty Bonded Warehouse
[status] => active
)
)
[billing_address_id] => 499326000047045177
[billing_address] => Array
(
[address] => 2 High Street
[street2] =>
[city] => Chipping Sodbury
[state] =>
[zip] => BS37 6AH
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[shipping_address_id] => 499326000047045179
[shipping_address] => Array
(
[company_name] =>
[address] =>
[street2] =>
[city] =>
[state] =>
[zip] =>
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[is_test_order] =>
[notes] => Account Name: 7 Day Cellar Ltd
Sort Code: 09-01-30
Account No: 10888924
[terms] =>
[payment_terms] => 0
[payment_terms_label] => Due On Receipt
[custom_fields] => Array
(
[0] => Array
(
[field_id] => 499326000042690007
[customfield_id] => 499326000042690007
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 1
[label] => Automation Required
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[is_color_code_supported] =>
[api_name] => cf__ulrql_automation_required
[show_in_all_pdf] =>
[selected_option_id] => 499326000042690011
[value_formatted] => Yes
[search_entity] => salesorder
[data_type] => dropdown
[placeholder] => cf__ulrql_automation_required
[value] => Yes
[is_dependent_field] =>
)
[1] => Array
(
[field_id] => 499326000046252143
[customfield_id] => 499326000046252143
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 2
[label] => Delivery Instructions
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_instructions
[show_in_all_pdf] =>
[value_formatted] => Front door open from 10am
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_instructions
[value] => Front door open from 10am
[is_dependent_field] =>
)
[2] => Array
(
[field_id] => 499326000046252173
[customfield_id] => 499326000046252173
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 3
[label] => Delivery Driver
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_driver
[show_in_all_pdf] =>
[value_formatted] => Lewis Newman
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_driver
[value] => Lewis Newman
[is_dependent_field] =>
)
[3] => Array
(
[field_id] => 499326000047922345
[customfield_id] => 499326000047922345
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 4
[label] => Run Number
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_run_number
[show_in_all_pdf] =>
[value_formatted] => 1
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_run_number
[value] => 1
[is_dependent_field] =>
)
)
[custom_field_hash] => Array
(
[cf__ulrql_automation_required] => Yes
[cf__ulrql_automation_required_unformatted] => Yes
[cf_delivery_instructions] => Front door open from 10am
[cf_delivery_instructions_unformatted] => Front door open from 10am
[cf_delivery_driver] => Lewis Newman
[cf_delivery_driver_unformatted] => Lewis Newman
[cf_run_number] => 1
[cf_run_number_unformatted] => 1
)
[template_id] => 499326000000000111
[template_name] => Standard Template
[page_width] => 8.27in
[page_height] => 11.69in
[orientation] => portrait
[template_type] => standard
[created_time] => 2025-09-24T16:41:46+0100
[last_modified_time] => 2025-10-03T19:33:31+0100
[created_by_id] => 499326000044308001
[created_date] => 2025-09-24
[last_modified_by_id] => 499326000044410001
[attachment_name] =>
[can_send_in_mail] =>
[salesperson_id] => 499326000044620336
[salesperson_name] => Sophie Redman
[merchant_id] =>
[merchant_name] =>
[pickup_location_id] =>
[discount] => 0
[discount_applied_on_amount] => 0
[is_adv_tracking_in_package] =>
[shipping_charge_taxes] => Array
(
)
[lock_details] => Array
(
[can_lock] =>
)
[locked_actions] => Array
(
)
[shipping_charge_tax_id] =>
[shipping_charge_tax_name] =>
[shipping_charge_tax_type] =>
[shipping_charge_tax_percentage] =>
[shipping_charge_tax_exemption_id] =>
[shipping_charge_tax_exemption_code] =>
[shipping_charge_tax] =>
[bcy_shipping_charge_tax] =>
[shipping_charge_exclusive_of_tax] => 0
[shipping_charge_inclusive_of_tax] => 0
[shipping_charge_tax_formatted] =>
[shipping_charge_exclusive_of_tax_formatted] => £0.00
[shipping_charge_inclusive_of_tax_formatted] => £0.00
[shipping_charge] => 0
[bcy_shipping_charge] => 0
[adjustment] => 0
[bcy_adjustment] => 0
[adjustment_description] => Adjustment
[roundoff_value] => 0
[transaction_rounding_type] => no_rounding
[rounding_mode] => round_half_up
[bcy_rounding_mode] => round_half_up
[sub_total] => 243.93
[bcy_sub_total] => 243.93
[sub_total_inclusive_of_tax] => 0
[sub_total_exclusive_of_discount] => 243.93
[discount_total] => 0
[bcy_discount_total] => 0
[discount_percent] => 0
[tax_total] => 48.79
[bcy_tax_total] => 48.79
[total] => 292.72
[computation_type] => basic
[bcy_total] => 292.72
[reverse_charge_tax_total] => 0
[taxes] => Array
(
[0] => Array
(
[tax_amount] => 48.79
[tax_name] => Standard Rate
[tax_amount_formatted] => £48.79
)
)
[tds_calculation_type] => tds_item_level
[packages] => Array
(
)
[so_cycle_preference] => Array
(
[is_feature_enabled] => 1
[socycle_status] => not_triggered
[can_create_invoice] => 1
[can_create_package] =>
[can_create_shipment] =>
[shipment_preference] => Array
(
[default_carrier] =>
[send_notification] =>
[deliver_shipments] =>
)
[invoice_preference] => Array
(
[mark_as_sent] =>
[record_payment] =>
[payment_mode_id] => 499326000000000199
[payment_account_id] => 499326000000000349
)
)
[invoices] => Array
(
[0] => Array
(
[invoice_id] => 499326000048908796
[invoice_number] => INV-26077
[reference_number] => SO-00452
[status] => sent
[date] => 2025-10-03
[due_date] => 2025-10-03
[total] => 287.92
[balance] => 287.92
)
)
[can_show_kit_return] =>
[is_kit_partial_return] =>
[salesreturns] => Array
(
)
[payments] => Array
(
)
[creditnotes] => Array
(
)
[refunds] => Array
(
)
[contact] => Array
(
[customer_balance] => 287.92
[credit_limit] => 0
[unused_customer_credits] => 0
[is_credit_limit_migration_completed] => 1
)
[balance] => 292.72
[approvers_list] => Array
(
)
[is_scheduled_for_quick_shipment_create] =>
)
)
Finished at 2025-10-03 19:33:31
Update result: Array
(
[code] => 0
[message] => Sales Order has been updated.
[salesorder] => Array
(
[salesorder_id] => 499326000048962039
[is_viewed_in_mail] =>
[mail_first_viewed_time] =>
[mail_last_viewed_time] =>
[documents] => Array
(
)
[zcrm_potential_id] =>
[zcrm_potential_name] =>
[salesorder_number] => SO-00462
[date] => 2025-10-03
[offline_created_date_with_time] =>
[tracking_url] =>
[has_discount] =>
[status] => confirmed
[color_code] =>
[current_sub_status_id] =>
[current_sub_status] => closed
[sub_statuses] => Array
(
)
[shipment_date] => 2025-10-03
[reference_number] =>
[customer_id] => 499326000046812601
[customer_name] => Yate Outdoor Sports Complex
[contact_persons] => Array
(
[0] => 499326000047972643
)
[contact_persons_associated] => Array
(
[0] => Array
(
[contact_person_id] => 499326000047972643
[contact_person_email] => info@yosc.co.uk
[first_name] => Andy
[last_name] => Lathall
[mobile] =>
[communication_preference] => Array
(
[is_email_enabled] => 1
)
)
)
[contact_person_details] => Array
(
[0] => Array
(
[phone] =>
[mobile] =>
[last_name] => Lathall
[contact_person_id] => 499326000047972643
[first_name] => Andy
[email] => info@yosc.co.uk
)
)
[source] => Api
[contact_category] => uk
[is_taxable] =>
[has_shipping_address] => 1
[currency_id] => 499326000000000065
[currency_code] => GBP
[currency_symbol] => £
[exchange_rate] => 1
[is_discount_before_tax] => 1
[discount_type] => item_level
[estimate_id] =>
[delivery_method] =>
[delivery_method_id] =>
[vat_treatment] => uk
[is_inclusive_tax] =>
[tax_rounding] => entity_level
[tax_override_preference] => no_override
[order_status] => closed
[invoiced_status] => invoiced
[paid_status] => unpaid
[shipped_status] => pending
[sales_channel] => direct_sales
[sales_channel_formatted] => Direct Sales
[account_identifier] =>
[integration_id] =>
[is_dropshipped] =>
[is_backordered] =>
[is_manually_fulfilled] =>
[can_manually_fulfill] => 1
[has_qty_cancelled] =>
[is_reverse_charge_applied] =>
[shipping_details] => Array
(
)
[created_by_email] => sophie@7daycellar.co.uk
[created_by_name] => Sophie Redman
[branch_id] => 499326000023111007
[branch_name] => Head Office
[location_id] => 499326000023111007
[location_name] => Head Office
[total_quantity] => 2
[line_items] => Array
(
[0] => Array
(
[line_item_id] => 499326000048962045
[variant_id] => 499326000000061781
[track_batch_number] =>
[item_id] => 499326000000061781
[is_returnable] =>
[product_id] => 499326000000061781
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] => ASHI-PERO-50LK
[name] => Peroni Nastro Azzuro 11g
[group_name] => Peroni Nastro Azzuro 11g
[description] =>
[item_order] => 0
[bcy_rate] => 156.99
[rate] => 156.99
[sales_rate] => 174.95
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 31.4
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 156.99
[item_sub_total] => 156.99
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] => Peroni-fotor-20230731114457.jpg
[image_type] => jpg
[document_id] => 499326000044988787
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 1
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] => 62
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
[1] => Array
(
[line_item_id] => 499326000048962047
[variant_id] => 499326000039253885
[track_batch_number] =>
[item_id] => 499326000039253885
[is_returnable] =>
[product_id] => 499326000039253885
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] => GK-LLHD-30LK
[name] => Level Head IPA
[group_name] => Level Head IPA
[description] =>
[item_order] => 1
[bcy_rate] => 94.95
[rate] => 94.95
[sales_rate] => 94.95
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 18.99
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 94.95
[item_sub_total] => 94.95
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] => Level Head IPA.png
[image_type] => png
[document_id] => 499326000048546683
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 1
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] => 39
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
)
[is_advanced_tracking_missing] =>
[entity_tags] =>
[submitter_id] =>
[approver_id] =>
[submitted_date] =>
[submitted_by] =>
[submitted_by_name] =>
[submitted_by_email] =>
[submitted_by_photo_url] =>
[price_precision] => 2
[is_emailed] =>
[has_unconfirmed_line_item] =>
[picklists] => Array
(
)
[purchaseorders] => Array
(
)
[locations] => Array
(
[0] => Array
(
[location_id] => 499326000023111007
[location_name] => Head Office
[status] => active
)
[1] => Array
(
[location_id] => 499326000041689155
[location_name] => Bason Bridge Brewery Duty Bonded Warehouse
[status] => active
)
)
[billing_address_id] => 499326000046812607
[billing_address] => Array
(
[address] => Broad Lane
[street2] =>
[city] => Yate
[state] =>
[zip] => BS37 7LB
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[shipping_address_id] => 499326000046812609
[shipping_address] => Array
(
[company_name] =>
[address] =>
[street2] =>
[city] =>
[state] =>
[zip] =>
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[is_test_order] =>
[notes] => Account Name: 7 Day Cellar Ltd
Sort Code: 09-01-30
Account No: 10888924
[terms] =>
[payment_terms] => 7
[payment_terms_label] => Net 7
[custom_fields] => Array
(
[0] => Array
(
[field_id] => 499326000042690007
[customfield_id] => 499326000042690007
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 1
[label] => Automation Required
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[is_color_code_supported] =>
[api_name] => cf__ulrql_automation_required
[show_in_all_pdf] =>
[selected_option_id] => 499326000042690011
[value_formatted] => Yes
[search_entity] => salesorder
[data_type] => dropdown
[placeholder] => cf__ulrql_automation_required
[value] => Yes
[is_dependent_field] =>
)
[1] => Array
(
[field_id] => 499326000046252173
[customfield_id] => 499326000046252173
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 2
[label] => Delivery Driver
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_driver
[show_in_all_pdf] =>
[value_formatted] => Lewis Newman
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_driver
[value] => Lewis Newman
[is_dependent_field] =>
)
[2] => Array
(
[field_id] => 499326000047922345
[customfield_id] => 499326000047922345
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 3
[label] => Run Number
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_run_number
[show_in_all_pdf] =>
[value_formatted] => 1
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_run_number
[value] => 1
[is_dependent_field] =>
)
)
[custom_field_hash] => Array
(
[cf__ulrql_automation_required] => Yes
[cf__ulrql_automation_required_unformatted] => Yes
[cf_delivery_driver] => Lewis Newman
[cf_delivery_driver_unformatted] => Lewis Newman
[cf_run_number] => 1
[cf_run_number_unformatted] => 1
)
[template_id] => 499326000000000111
[template_name] => Standard Template
[page_width] => 8.27in
[page_height] => 11.69in
[orientation] => portrait
[template_type] => standard
[created_time] => 2025-10-01T09:58:49+0100
[last_modified_time] => 2025-10-03T19:33:31+0100
[created_by_id] => 499326000044308001
[created_date] => 2025-10-01
[last_modified_by_id] => 499326000044410001
[attachment_name] =>
[can_send_in_mail] =>
[salesperson_id] => 499326000044620336
[salesperson_name] => Sophie Redman
[merchant_id] =>
[merchant_name] =>
[pickup_location_id] =>
[discount] => 0
[discount_applied_on_amount] => 0
[is_adv_tracking_in_package] =>
[shipping_charge_taxes] => Array
(
)
[lock_details] => Array
(
[can_lock] =>
)
[locked_actions] => Array
(
)
[shipping_charge_tax_id] =>
[shipping_charge_tax_name] =>
[shipping_charge_tax_type] =>
[shipping_charge_tax_percentage] =>
[shipping_charge_tax_exemption_id] =>
[shipping_charge_tax_exemption_code] =>
[shipping_charge_tax] =>
[bcy_shipping_charge_tax] =>
[shipping_charge_exclusive_of_tax] => 0
[shipping_charge_inclusive_of_tax] => 0
[shipping_charge_tax_formatted] =>
[shipping_charge_exclusive_of_tax_formatted] => £0.00
[shipping_charge_inclusive_of_tax_formatted] => £0.00
[shipping_charge] => 0
[bcy_shipping_charge] => 0
[adjustment] => 0
[bcy_adjustment] => 0
[adjustment_description] => Adjustment
[roundoff_value] => 0
[transaction_rounding_type] => no_rounding
[rounding_mode] => round_half_up
[bcy_rounding_mode] => round_half_up
[sub_total] => 251.94
[bcy_sub_total] => 251.94
[sub_total_inclusive_of_tax] => 0
[sub_total_exclusive_of_discount] => 251.94
[discount_total] => 0
[bcy_discount_total] => 0
[discount_percent] => 0
[tax_total] => 50.39
[bcy_tax_total] => 50.39
[total] => 302.33
[computation_type] => basic
[bcy_total] => 302.33
[reverse_charge_tax_total] => 0
[taxes] => Array
(
[0] => Array
(
[tax_amount] => 50.39
[tax_name] => Standard Rate
[tax_amount_formatted] => £50.39
)
)
[tds_calculation_type] => tds_item_level
[packages] => Array
(
)
[so_cycle_preference] => Array
(
[is_feature_enabled] => 1
[socycle_status] => not_triggered
[can_create_invoice] => 1
[can_create_package] =>
[can_create_shipment] =>
[shipment_preference] => Array
(
[default_carrier] =>
[send_notification] =>
[deliver_shipments] =>
)
[invoice_preference] => Array
(
[mark_as_sent] =>
[record_payment] =>
[payment_mode_id] => 499326000000000199
[payment_account_id] => 499326000000000349
)
)
[invoices] => Array
(
[0] => Array
(
[invoice_id] => 499326000049016176
[invoice_number] => INV-26125
[reference_number] => SO-00462
[status] => sent
[date] => 2025-10-03
[due_date] => 2025-10-10
[total] => 302.33
[balance] => 302.33
)
)
[can_show_kit_return] =>
[is_kit_partial_return] =>
[salesreturns] => Array
(
)
[payments] => Array
(
)
[creditnotes] => Array
(
)
[refunds] => Array
(
)
[contact] => Array
(
[customer_balance] => 1628.27
[credit_limit] => 0
[unused_customer_credits] => 0
[is_credit_limit_migration_completed] => 1
)
[balance] => 302.33
[approvers_list] => Array
(
)
[is_scheduled_for_quick_shipment_create] =>
)
)
Processing order: SO-00452
Looking for local order: SO-00452
Updating local order from MaxOptra - current local order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] =>
[contactName] => The Horseshoe (Chipping Sodbury)
[contactNotes] =>
[contactPhone] =>
[created] => 2025-09-24 15:41:54.713Z
[custom] => Array
(
)
[customer] => t5br1lbg1z8m7n3
[deliveryCity] => Chipping Sodbury
[deliveryCounty] =>
[deliveryEnd] => 2025-10-03 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => The Horseshoe (Chipping Sodbury)
[deliveryPostcode] => BS37 6AH
[deliveryStart] => 2025-10-03 00:00:00.000Z
[deliveryStreet] => 2 High Street
[description] =>
[driverRef] => Lewis Newman
[externalCustomerId] => 499326000047045175
[externalLocationId] => 499326000047045177
[externalOrderId] => 499326000048549582
[id] => 3fhoq4qcndsfans
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] => Front door open from 10am
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] =>
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00452
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Pending
[syncInCreated] => 2025-09-24 15:41:46.000Z
[syncInStatus] => closed
[syncInUpdated] => 2025-10-03 18:30:51.000Z
[syncOutStatus] => UNALLOCATED
[syncOutUpdated] => 2025-09-30 09:03:00.000Z
[timeWindows] => Array
(
)
[title] => The Horseshoe (Chipping Sodbury)
[totalValue] => 292.72
[totalWeight] => 153
[type] =>
[updated] => 2025-10-03 18:32:51.559Z
[vehicleRef] => WD25HWY
[what3Words] =>
)
MaxOptra order details: Array
(
[0] => Array
(
[referenceNumber] => SO-00452
[consignmentReference] =>
[distributionCentreReference] => Head Office
[distributionCentreName] => Head Office
[task] => DELIVERY
[priority] => NORMAL
[vehicleRequirements] => Array
(
)
[additionalInstructions] => Front door open from 10am
[clientName] =>
[contactPerson] => The Horseshoe (Chipping Sodbury)
[contactNumber] =>
[contactEmail] =>
[additionalContactEmails] =>
[notificationPreferences] => Array
(
[allowSMS] => 1
[allowEmail] => 1
)
[customerLocation] => Array
(
[referenceNumber] => 499326000047045177
[name] => The Horseshoe (Chipping Sodbury), 2 High Street, Chipping Sodbury
[address] => BS37 6AH
[w3wAddress] =>
[latitude] => 51.53814
[longitude] => -2.3951
)
[territoryReference] =>
[stopSequence] => ANY
[timeWindows] => Array
(
[0] => Array
(
[start] => 2025-10-03T06:00:00+01:00
[end] => 2025-10-03T23:00:00+01:00
)
)
[orderDate] =>
[capacity1] => 153
[capacity2] => 0
[price] => 0
[operationDuration] => 529
[customFields] => Array
(
)
[orderItems] => Array
(
[0] => Array
(
[itemReferenceNumber] => 499326000021043799
[orderReferenceNumber] => SO-00452
[name] => Hardings Amber Ale 3.9% (9g)
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 79.95
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 79.95
[height] => 0
[width] => 0
[length] => 0
[weight] => 51
[volume] => 0
)
[1] => Array
(
[itemReferenceNumber] => 499326000021043786
[orderReferenceNumber] => SO-00452
[name] => Hardings Best 4.2% (9g)
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 79.99
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 79.99
[height] => 0
[width] => 0
[length] => 0
[weight] => 51
[volume] => 0
)
[2] => Array
(
[itemReferenceNumber] => 499326000044145711
[orderReferenceNumber] => SO-00452
[name] => Hardings Double Hopped 4.0% (9g)
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 83.99
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 83.99
[height] => 0
[width] => 0
[length] => 0
[weight] => 51
[volume] => 0
)
)
[widgetTrackingDetails] =>
)
)
MaxOptra schedule details: Array
(
[orderReferenceNumber] => SO-00452
[assignedDriverReference] => Lewis Newman
[assignedDriverName] => Lewis Newman
[assignedVehicleReference] => WD25HWY
[assignedVehicleName] => WD25HWY
[plannedArrivalTime] => 2025-10-03T20:59:36+01:00
[plannedCompletionTime] => 2025-10-03T21:08:25+01:00
[stopNumber] => 3
[totalStopsInRun] => 3
[runNumber] => 1
[runReference] => 857f789e3cd84449a35e057ccd96d6e0
[eta] =>
[factArrivalTimeGPS] =>
[factCompletionTimeGPS] =>
[factArrivalTimeReported] =>
[factCompletionTimeReported] =>
[failReason] =>
[failComment] =>
[status] => ACCEPTED
[driver] => Lewis Newman
[arrival_planned] => 2025-10-03T20:59:36+01:00
[arrival_estimated] =>
[arrival_actual] =>
[totalStops] => 3
)
Updating order: SO-00452
Update ID 3fhoq4qcndsfans with: Array
(
[custom] => Array
(
)
[driverRef] => Lewis Newman
[vehicleRef] => WD25HWY
[seqNo] => 1
)
Updated order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] =>
[contactName] => The Horseshoe (Chipping Sodbury)
[contactNotes] =>
[contactPhone] =>
[created] => 2025-09-24 15:41:54.713Z
[custom] => Array
(
)
[customer] => t5br1lbg1z8m7n3
[deliveryCity] => Chipping Sodbury
[deliveryCounty] =>
[deliveryEnd] => 2025-10-03 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => The Horseshoe (Chipping Sodbury)
[deliveryPostcode] => BS37 6AH
[deliveryStart] => 2025-10-03 00:00:00.000Z
[deliveryStreet] => 2 High Street
[description] =>
[driverRef] => Lewis Newman
[externalCustomerId] => 499326000047045175
[externalLocationId] => 499326000047045177
[externalOrderId] => 499326000048549582
[id] => 3fhoq4qcndsfans
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] => Front door open from 10am
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] =>
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00452
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Pending
[syncInCreated] => 2025-09-24 15:41:46.000Z
[syncInStatus] => closed
[syncInUpdated] => 2025-10-03 18:30:51.000Z
[syncOutStatus] => UNALLOCATED
[syncOutUpdated] => 2025-09-30 09:03:00.000Z
[timeWindows] => Array
(
)
[title] => The Horseshoe (Chipping Sodbury)
[totalValue] => 292.72
[totalWeight] => 153
[type] =>
[updated] => 2025-10-03 18:33:32.465Z
[vehicleRef] => WD25HWY
[what3Words] =>
)
Updating source from local order
Getting custom fields
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-07-18 02:35:52.065Z
[id] => nc7sndad5bhvi5x
[inCollection] => orders
[inField] => paymentMethod
[mappedField] => 7DCPayment
[name] => Payment method
[sourceField] =>
[syncFromSource] => 1
[syncToSource] =>
[type] => text
[updated] => 2025-07-18 02:35:52.065Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Processing field
Mapped field: 7DCEmpties
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
Processing field
Mapped field: 7DCEmptiesGas
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:03:34.631Z
[id] => pcn96l3kgkps4az
[inCollection] => orders
[inField] => driverRef
[mappedField] =>
[name] => Delivery driver
[sourceField] => cf_delivery_driver
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:03:34.631Z
)
Processing field
driverRef...
Value: Lewis Newman
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-08 04:52:51.399Z
[id] => hhrzcmytzs8p3kw
[inCollection] => orders
[inField] => seqNo
[mappedField] =>
[name] => Run number
[sourceField] => cf_run_number
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-08 04:52:51.399Z
)
Processing field
seqNo...
Value: 1
Finished processing field
Continue
Updating source order: Array
(
[custom_fields] => Array
(
[0] => Array
(
[api_name] => cf_delivery_driver
[value] => Lewis Newman
)
[1] => Array
(
[api_name] => cf_run_number
[value] => 1
)
)
)
Update result: Array
(
[code] => 0
[message] => Sales Order has been updated.
[salesorder] => Array
(
[salesorder_id] => 499326000048549582
[is_viewed_in_mail] =>
[mail_first_viewed_time] =>
[mail_last_viewed_time] =>
[documents] => Array
(
)
[zcrm_potential_id] =>
[zcrm_potential_name] =>
[salesorder_number] => SO-00452
[date] => 2025-10-03
[offline_created_date_with_time] =>
[tracking_url] =>
[has_discount] =>
[status] => confirmed
[color_code] =>
[current_sub_status_id] =>
[current_sub_status] => closed
[sub_statuses] => Array
(
)
[shipment_date] => 2025-10-03
[reference_number] =>
[customer_id] => 499326000047045175
[customer_name] => The Horseshoe (Chipping Sodbury)
[contact_persons] => Array
(
)
[contact_persons_associated] => Array
(
)
[contact_person_details] => Array
(
)
[source] => Api
[contact_category] => uk
[is_taxable] =>
[has_shipping_address] => 1
[currency_id] => 499326000000000065
[currency_code] => GBP
[currency_symbol] => £
[exchange_rate] => 1
[is_discount_before_tax] => 1
[discount_type] => item_level
[estimate_id] =>
[delivery_method] =>
[delivery_method_id] =>
[vat_treatment] => uk
[is_inclusive_tax] =>
[tax_rounding] => entity_level
[tax_override_preference] => no_override
[order_status] => closed
[invoiced_status] => invoiced
[paid_status] => unpaid
[shipped_status] => pending
[sales_channel] => direct_sales
[sales_channel_formatted] => Direct Sales
[account_identifier] =>
[integration_id] =>
[is_dropshipped] =>
[is_backordered] =>
[is_manually_fulfilled] =>
[can_manually_fulfill] => 1
[has_qty_cancelled] =>
[is_reverse_charge_applied] =>
[shipping_details] => Array
(
)
[created_by_email] => sophie@7daycellar.co.uk
[created_by_name] => Sophie Redman
[branch_id] => 499326000023111007
[branch_name] => Head Office
[location_id] => 499326000023111007
[location_name] => Head Office
[total_quantity] => 3
[line_items] => Array
(
[0] => Array
(
[line_item_id] => 499326000048549588
[variant_id] => 499326000044145711
[track_batch_number] =>
[item_id] => 499326000044145711
[is_returnable] =>
[product_id] => 499326000044145711
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] => BB-HSDD-9G
[name] => Hardings Double Hopped 4.0% (9g)
[group_name] => Hardings Double Hopped 4.0% (9g)
[description] =>
[item_order] => 1
[bcy_rate] => 83.99
[rate] => 83.99
[sales_rate] => 83.99
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 16.8
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 83.99
[item_sub_total] => 83.99
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] => Harding’s Double Hopped.png
[image_type] => png
[document_id] => 499326000048604859
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 1
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] =>
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
[1] => Array
(
[line_item_id] => 499326000048549590
[variant_id] => 499326000021043799
[track_batch_number] =>
[item_id] => 499326000021043799
[is_returnable] =>
[product_id] => 499326000021043799
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] => BB-HSAR-9G
[name] => Hardings Amber Ale 3.9% (9g)
[group_name] => Hardings Amber Ale 3.9% (9g)
[description] =>
[item_order] => 2
[bcy_rate] => 79.95
[rate] => 79.95
[sales_rate] => 79.95
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 15.99
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 79.95
[item_sub_total] => 79.95
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] => Harding’s Amber Ale.png
[image_type] => png
[document_id] => 499326000048604629
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 1
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] => 51
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
[2] => Array
(
[line_item_id] => 499326000048549592
[variant_id] => 499326000021043786
[track_batch_number] =>
[item_id] => 499326000021043786
[is_returnable] =>
[product_id] => 499326000021043786
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] => BB-HSBT-9G
[name] => Hardings Best 4.2% (9g)
[group_name] => Hardings Best Bitter 4.2% (9g)
[description] =>
[item_order] => 3
[bcy_rate] => 79.99
[rate] => 79.99
[sales_rate] => 79.99
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 16
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 79.99
[item_sub_total] => 79.99
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] => Hardings Best Bitter.png
[image_type] => png
[document_id] => 499326000048604731
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 1
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] => 51
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
)
[is_advanced_tracking_missing] =>
[entity_tags] =>
[submitter_id] =>
[approver_id] =>
[submitted_date] =>
[submitted_by] =>
[submitted_by_name] =>
[submitted_by_email] =>
[submitted_by_photo_url] =>
[price_precision] => 2
[is_emailed] =>
[has_unconfirmed_line_item] =>
[picklists] => Array
(
)
[purchaseorders] => Array
(
)
[locations] => Array
(
[0] => Array
(
[location_id] => 499326000023111007
[location_name] => Head Office
[status] => active
)
[1] => Array
(
[location_id] => 499326000041689155
[location_name] => Bason Bridge Brewery Duty Bonded Warehouse
[status] => active
)
)
[billing_address_id] => 499326000047045177
[billing_address] => Array
(
[address] => 2 High Street
[street2] =>
[city] => Chipping Sodbury
[state] =>
[zip] => BS37 6AH
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[shipping_address_id] => 499326000047045179
[shipping_address] => Array
(
[company_name] =>
[address] =>
[street2] =>
[city] =>
[state] =>
[zip] =>
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[is_test_order] =>
[notes] => Account Name: 7 Day Cellar Ltd
Sort Code: 09-01-30
Account No: 10888924
[terms] =>
[payment_terms] => 0
[payment_terms_label] => Due On Receipt
[custom_fields] => Array
(
[0] => Array
(
[field_id] => 499326000042690007
[customfield_id] => 499326000042690007
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 1
[label] => Automation Required
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[is_color_code_supported] =>
[api_name] => cf__ulrql_automation_required
[show_in_all_pdf] =>
[selected_option_id] => 499326000042690011
[value_formatted] => Yes
[search_entity] => salesorder
[data_type] => dropdown
[placeholder] => cf__ulrql_automation_required
[value] => Yes
[is_dependent_field] =>
)
[1] => Array
(
[field_id] => 499326000046252143
[customfield_id] => 499326000046252143
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 2
[label] => Delivery Instructions
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_instructions
[show_in_all_pdf] =>
[value_formatted] => Front door open from 10am
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_instructions
[value] => Front door open from 10am
[is_dependent_field] =>
)
[2] => Array
(
[field_id] => 499326000046252173
[customfield_id] => 499326000046252173
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 3
[label] => Delivery Driver
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_driver
[show_in_all_pdf] =>
[value_formatted] => Lewis Newman
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_driver
[value] => Lewis Newman
[is_dependent_field] =>
)
[3] => Array
(
[field_id] => 499326000047922345
[customfield_id] => 499326000047922345
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 4
[label] => Run Number
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_run_number
[show_in_all_pdf] =>
[value_formatted] => 1
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_run_number
[value] => 1
[is_dependent_field] =>
)
)
[custom_field_hash] => Array
(
[cf__ulrql_automation_required] => Yes
[cf__ulrql_automation_required_unformatted] => Yes
[cf_delivery_instructions] => Front door open from 10am
[cf_delivery_instructions_unformatted] => Front door open from 10am
[cf_delivery_driver] => Lewis Newman
[cf_delivery_driver_unformatted] => Lewis Newman
[cf_run_number] => 1
[cf_run_number_unformatted] => 1
)
[template_id] => 499326000000000111
[template_name] => Standard Template
[page_width] => 8.27in
[page_height] => 11.69in
[orientation] => portrait
[template_type] => standard
[created_time] => 2025-09-24T16:41:46+0100
[last_modified_time] => 2025-10-03T19:33:32+0100
[created_by_id] => 499326000044308001
[created_date] => 2025-09-24
[last_modified_by_id] => 499326000044410001
[attachment_name] =>
[can_send_in_mail] =>
[salesperson_id] => 499326000044620336
[salesperson_name] => Sophie Redman
[merchant_id] =>
[merchant_name] =>
[pickup_location_id] =>
[discount] => 0
[discount_applied_on_amount] => 0
[is_adv_tracking_in_package] =>
[shipping_charge_taxes] => Array
(
)
[lock_details] => Array
(
[can_lock] =>
)
[locked_actions] => Array
(
)
[shipping_charge_tax_id] =>
[shipping_charge_tax_name] =>
[shipping_charge_tax_type] =>
[shipping_charge_tax_percentage] =>
[shipping_charge_tax_exemption_id] =>
[shipping_charge_tax_exemption_code] =>
[shipping_charge_tax] =>
[bcy_shipping_charge_tax] =>
[shipping_charge_exclusive_of_tax] => 0
[shipping_charge_inclusive_of_tax] => 0
[shipping_charge_tax_formatted] =>
[shipping_charge_exclusive_of_tax_formatted] => £0.00
[shipping_charge_inclusive_of_tax_formatted] => £0.00
[shipping_charge] => 0
[bcy_shipping_charge] => 0
[adjustment] => 0
[bcy_adjustment] => 0
[adjustment_description] => Adjustment
[roundoff_value] => 0
[transaction_rounding_type] => no_rounding
[rounding_mode] => round_half_up
[bcy_rounding_mode] => round_half_up
[sub_total] => 243.93
[bcy_sub_total] => 243.93
[sub_total_inclusive_of_tax] => 0
[sub_total_exclusive_of_discount] => 243.93
[discount_total] => 0
[bcy_discount_total] => 0
[discount_percent] => 0
[tax_total] => 48.79
[bcy_tax_total] => 48.79
[total] => 292.72
[computation_type] => basic
[bcy_total] => 292.72
[reverse_charge_tax_total] => 0
[taxes] => Array
(
[0] => Array
(
[tax_amount] => 48.79
[tax_name] => Standard Rate
[tax_amount_formatted] => £48.79
)
)
[tds_calculation_type] => tds_item_level
[packages] => Array
(
)
[so_cycle_preference] => Array
(
[is_feature_enabled] => 1
[socycle_status] => not_triggered
[can_create_invoice] => 1
[can_create_package] =>
[can_create_shipment] =>
[shipment_preference] => Array
(
[default_carrier] =>
[send_notification] =>
[deliver_shipments] =>
)
[invoice_preference] => Array
(
[mark_as_sent] =>
[record_payment] =>
[payment_mode_id] => 499326000000000199
[payment_account_id] => 499326000000000349
)
)
[invoices] => Array
(
[0] => Array
(
[invoice_id] => 499326000048908796
[invoice_number] => INV-26077
[reference_number] => SO-00452
[status] => sent
[date] => 2025-10-03
[due_date] => 2025-10-03
[total] => 287.92
[balance] => 287.92
)
)
[can_show_kit_return] =>
[is_kit_partial_return] =>
[salesreturns] => Array
(
)
[payments] => Array
(
)
[creditnotes] => Array
(
)
[refunds] => Array
(
)
[contact] => Array
(
[customer_balance] => 287.92
[credit_limit] => 0
[unused_customer_credits] => 0
[is_credit_limit_migration_completed] => 1
)
[balance] => 292.72
[approvers_list] => Array
(
)
[is_scheduled_for_quick_shipment_create] =>
)
)
Finished at 2025-10-03 19:33:33
Webhook - sourceUpdated script called at 2025-10-03 19:33:43
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048825178","salesorder_no":"SO-00455","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048825178","salesorder_no":"SO-00455","status":"invoiced"}}
EXT ID: 499326000048825178
REF: SO-00455
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048825178 (REF SO-00455)
Updates pending to source for order: 499326000048825178
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-10-03 18:32:42.000Z,
source updated = 2025-10-03T19:33:30+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00455
Processing order: qv5hgbux769xpa4, ref SO-00455
Syncing SO-00455
Using default start and end times
Time window: 2025-10-03T06:00:00+01:00 - 2025-10-03T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 03/10/2025 19:33 - Local updated: 2025-10-03 18:32:00.000Z - Source updated: 2025-10-03 18:32:42.000Z
Changed? yes
Current MaxOptra status: ACCEPTED
Completed? no
Previous status: ALLOCATED
Status changed - mark for sync back to source
Is allocated? yes
MO delivery date: 2025-10-03, Local delivery date: 2025-10-03
Local updated: 2025-10-03 18:32:00.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Communication error with MaxOptra (412)
orders/SO-00455
https://7daycellar.maxoptra.com/api/v6/orders/SO-00455
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000046966140
Array
(
[referenceNumber] => 499326000046966140
[name] => Concierge Events, Worle Football Club, Worle
[address] => BS22 6AH
)
499326000046966140
Error updating SO-00455
"{\"data\":null,\"errors\":[{\"code\":\"ORDER_IS_LOCKED\",\"name\":\"The order is locked\",\"details\":null,\"field\":null}],\"warnings\":[]}"
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00455
Done all.
Finished at 2025-10-03 19:33:45
Webhook - sourceUpdated script called at 2025-10-03 19:34:14
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048825178","salesorder_no":"SO-00455","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048825178","salesorder_no":"SO-00455","status":"invoiced"}}
EXT ID: 499326000048825178
REF: SO-00455
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048825178 (REF SO-00455)
Updates pending to source for order: 499326000048825178
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-10-03 18:32:42.000Z,
source updated = 2025-10-03T19:33:43+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[contactName] => Wayne Hadley
[notes] => Collect 1 x Brue Keg and empties
[externalOrderId] => 499326000048825178
[refId] => SO-00455
[externalCustomerId] => 499326000046966136
[externalLocationId] => 499326000046966140
[title] => Concierge Events
[deliveryStart] => 2025-10-03
[deliveryEnd] => 2025-10-03
[totalValue] => 270
[totalWeight] => 124
[syncInCreated] => 2025-09-29T13:23:18+0100
[syncInUpdated] => 2025-10-03T19:33:43+0100
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048825184
[externalProductId] => 499326000000061367
[sku] => BBG-SNML-50LK
[title] => San Miguel 11G
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 130
[price] => 130
)
[1] => Array
(
[externalOrderProductId] => 499326000048825186
[externalProductId] => 499326000000063923
[sku] => TTCG-GOLD-50LK
[title] => Thatcher's Gold Cider 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 95
[price] => 95
)
)
[deliveryName] => Concierge Events
[deliveryStreet] => Worle Football Club
[deliveryCity] => Worle
[deliveryCounty] =>
[deliveryPostcode] => BS22 6AH
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[contactName] => Wayne Hadley
[notes] => Collect 1 x Brue Keg and empties
[externalOrderId] => 499326000048825178
[refId] => SO-00455
[externalCustomerId] => 499326000046966136
[externalLocationId] => 499326000046966140
[title] => Concierge Events
[deliveryStart] => 2025-10-03
[deliveryEnd] => 2025-10-03
[totalValue] => 270
[totalWeight] => 124
[syncInCreated] => 2025-09-29T13:23:18+0100
[syncInUpdated] => 2025-10-03T19:33:43+0100
[syncInStatus] => closed
[deliveryName] => Concierge Events
[deliveryStreet] => Worle Football Club
[deliveryCity] => Worle
[deliveryCounty] =>
[deliveryPostcode] => BS22 6AH
[syncOutUpdated] => 2025-10-03T19:34:15+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Wayne Hadley
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000046966136
Getting products
Updating product 499326000000061367
Updating order product 499326000048825184
Updated
Updating product 499326000000063923
Updating order product 499326000048825186
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00455
Processing order: qv5hgbux769xpa4, ref SO-00455
Syncing SO-00455
Using default start and end times
Time window: 2025-10-03T06:00:00+01:00 - 2025-10-03T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 03/10/2025 19:33 - Local updated: 2025-10-03 18:34:15.000Z - Source updated: 2025-10-03 18:33:43.000Z
Changed? yes
Current MaxOptra status: ACCEPTED
Completed? no
Previous status: ACCEPTED
Is allocated? yes
MO delivery date: 2025-10-03, Local delivery date: 2025-10-03
Local updated: 2025-10-03 18:34:15.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Communication error with MaxOptra (412)
orders/SO-00455
https://7daycellar.maxoptra.com/api/v6/orders/SO-00455
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000046966140
Array
(
[referenceNumber] => 499326000046966140
[name] => Concierge Events, Worle Football Club, Worle
[address] => BS22 6AH
)
499326000046966140
Error updating SO-00455
"{\"data\":null,\"errors\":[{\"code\":\"ORDER_IS_LOCKED\",\"name\":\"The order is locked\",\"details\":null,\"field\":null}],\"warnings\":[]}"
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00455
Done all.
Finished at 2025-10-03 19:34:16
Webhook - sourceUpdated script called at 2025-10-03 19:34:45
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048825178","salesorder_no":"SO-00455","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048825178","salesorder_no":"SO-00455","status":"invoiced"}}
EXT ID: 499326000048825178
REF: SO-00455
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048825178 (REF SO-00455)
Local order updated = 2025-10-03 18:33:43.000Z,
source updated = 2025-10-03T19:34:14+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00455
Processing order: qv5hgbux769xpa4, ref SO-00455
Syncing SO-00455
Using default start and end times
Time window: 2025-10-03T06:00:00+01:00 - 2025-10-03T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 03/10/2025 19:33 - Local updated: 2025-10-03 18:33:00.000Z - Source updated: 2025-10-03 18:33:43.000Z
Changed? yes
Current MaxOptra status: ACCEPTED
Completed? no
Previous status: ACCEPTED
Is allocated? yes
MO delivery date: 2025-10-03, Local delivery date: 2025-10-03
Local updated: 2025-10-03 18:33:00.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Communication error with MaxOptra (412)
orders/SO-00455
https://7daycellar.maxoptra.com/api/v6/orders/SO-00455
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000046966140
Array
(
[referenceNumber] => 499326000046966140
[name] => Concierge Events, Worle Football Club, Worle
[address] => BS22 6AH
)
499326000046966140
Error updating SO-00455
"{\"data\":null,\"errors\":[{\"code\":\"ORDER_IS_LOCKED\",\"name\":\"The order is locked\",\"details\":null,\"field\":null}],\"warnings\":[]}"
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00455
Done all.
Finished at 2025-10-03 19:34:47
Webhook - destinationUpdated script called at 2025-10-03 19:35:35
JSON: {"payload":{"orderReference":"SO-00455","status":"DRIVING"},"timestamp":"2025-10-03T18:35:34Z"}
REF: SO-00455
Filter: refId="SO-00455"
200 response code sent
Local item: {"addons":[],"attachments":[],"collectionEnd":"","collectionId":"s93ukjlitoinx2e","collectionInstructions":"","collectionName":"orders","collectionStart":"","company":"1kmltj8w8rnhbfx","contactEmail":"wayne.hadley@conciergeuk.co.uk","contactName":"Wayne Hadley","contactNotes":"","contactPhone":"","created":"2025-09-29 12:23:39.282Z","custom":[],"customer":"pro2diwlme62ylp","deliveryCity":"Worle","deliveryCounty":"","deliveryEnd":"2025-10-03 00:00:00.000Z","deliveryInstructions":"","deliveryName":"Concierge Events","deliveryPostcode":"BS22 6AH","deliveryStart":"2025-10-03 00:00:00.000Z","deliveryStreet":"Worle Football Club","description":"","driverRef":"Lewis Newman","externalCustomerId":"499326000046966136","externalLocationId":"499326000046966140","externalOrderId":"499326000048825178","id":"qv5hgbux769xpa4","isCancelled":false,"isCollection":false,"isReadyToSync":false,"isScheduledCollection":false,"isScheduledDelivery":false,"isUntracked":false,"mergeRef":"","notes":"Collect 1 x Brue Keg and empties","orderedAt":"","overrideVolume":0,"overrideWeight":0,"paymentMethod":"","pendingSyncFromDestination":false,"pendingSyncFromSource":false,"pendingSyncToDestination":true,"pendingSyncToSource":false,"ref":"","refId":"SO-00455","requestedDeliveryDays":"","seqNo":"1","signature":"","signatureName":"","signatureTime":"","statusCollection":"","statusDelivery":"Pending","syncInCreated":"2025-09-29 12:23:18.000Z","syncInStatus":"closed","syncInUpdated":"2025-10-03 18:33:43.000Z","syncOutStatus":"ACCEPTED","syncOutUpdated":"2025-10-03 18:33:00.000Z","timeWindows":[],"title":"Concierge Events","totalValue":270,"totalWeight":124,"type":"","updated":"2025-10-03 18:34:47.149Z","vehicleRef":"WD25HWY","what3Words":""}
Updating local order from MaxOptra - current local order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[contactName] => Wayne Hadley
[contactNotes] =>
[contactPhone] =>
[created] => 2025-09-29 12:23:39.282Z
[custom] => Array
(
)
[customer] => pro2diwlme62ylp
[deliveryCity] => Worle
[deliveryCounty] =>
[deliveryEnd] => 2025-10-03 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Concierge Events
[deliveryPostcode] => BS22 6AH
[deliveryStart] => 2025-10-03 00:00:00.000Z
[deliveryStreet] => Worle Football Club
[description] =>
[driverRef] => Lewis Newman
[externalCustomerId] => 499326000046966136
[externalLocationId] => 499326000046966140
[externalOrderId] => 499326000048825178
[id] => qv5hgbux769xpa4
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] => Collect 1 x Brue Keg and empties
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00455
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Pending
[syncInCreated] => 2025-09-29 12:23:18.000Z
[syncInStatus] => closed
[syncInUpdated] => 2025-10-03 18:33:43.000Z
[syncOutStatus] => ACCEPTED
[syncOutUpdated] => 2025-10-03 18:33:00.000Z
[timeWindows] => Array
(
)
[title] => Concierge Events
[totalValue] => 270
[totalWeight] => 124
[type] =>
[updated] => 2025-10-03 18:34:47.149Z
[vehicleRef] => WD25HWY
[what3Words] =>
)
MaxOptra order details: Array
(
[0] => Array
(
[referenceNumber] => SO-00455
[consignmentReference] =>
[distributionCentreReference] => Head Office
[distributionCentreName] => Head Office
[task] => DELIVERY
[priority] => NORMAL
[vehicleRequirements] => Array
(
)
[additionalInstructions] => Collect 1 x Brue Keg and empties
[clientName] => Concierge Events
[contactPerson] => Wayne Hadley
[contactNumber] =>
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[additionalContactEmails] =>
[notificationPreferences] => Array
(
[allowSMS] => 1
[allowEmail] => 1
)
[customerLocation] => Array
(
[referenceNumber] => 499326000046966140
[name] => Concierge Events, Worle Football Club, Worle
[address] => BS22 6AH
[w3wAddress] =>
[latitude] => 51.35846
[longitude] => -2.92353
)
[territoryReference] =>
[stopSequence] => ANY
[timeWindows] => Array
(
[0] => Array
(
[start] => 2025-10-03T06:00:00+01:00
[end] => 2025-10-03T23:00:00+01:00
)
)
[orderDate] =>
[capacity1] => 124
[capacity2] => 0
[price] => 0
[operationDuration] => 486
[customFields] => Array
(
)
[orderItems] => Array
(
[0] => Array
(
[itemReferenceNumber] => 499326000000061367
[orderReferenceNumber] => SO-00455
[name] => San Miguel 11G
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 130
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 0
[height] => 0
[width] => 0
[length] => 0
[weight] => 62
[volume] => 0
)
[1] => Array
(
[itemReferenceNumber] => 499326000000063923
[orderReferenceNumber] => SO-00455
[name] => Thatcher's Gold Cider 11g
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 95
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 0
[height] => 0
[width] => 0
[length] => 0
[weight] => 62
[volume] => 0
)
)
[widgetTrackingDetails] =>
)
)
MaxOptra schedule details: Array
(
[orderReferenceNumber] => SO-00455
[assignedDriverReference] => Lewis Newman
[assignedDriverName] => Lewis Newman
[assignedVehicleReference] => WD25HWY
[assignedVehicleName] => WD25HWY
[plannedArrivalTime] => 2025-10-03T20:03:41+01:00
[plannedCompletionTime] => 2025-10-03T20:11:47+01:00
[stopNumber] => 1
[totalStopsInRun] => 3
[runNumber] => 1
[runReference] => 857f789e3cd84449a35e057ccd96d6e0
[eta] => 2025-10-03T19:53:55+01:00
[factArrivalTimeGPS] =>
[factCompletionTimeGPS] =>
[factArrivalTimeReported] =>
[factCompletionTimeReported] =>
[failReason] =>
[failComment] =>
[status] => DRIVING
[driver] => Lewis Newman
[arrival_planned] => 2025-10-03T20:03:41+01:00
[arrival_estimated] => 2025-10-03T19:53:55+01:00
[arrival_actual] =>
[totalStops] => 3
)
Updating order: SO-00455
Update ID qv5hgbux769xpa4 with: Array
(
[custom] => Array
(
)
[driverRef] => Lewis Newman
[vehicleRef] => WD25HWY
[seqNo] => 1
)
Updated order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[contactName] => Wayne Hadley
[contactNotes] =>
[contactPhone] =>
[created] => 2025-09-29 12:23:39.282Z
[custom] => Array
(
)
[customer] => pro2diwlme62ylp
[deliveryCity] => Worle
[deliveryCounty] =>
[deliveryEnd] => 2025-10-03 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Concierge Events
[deliveryPostcode] => BS22 6AH
[deliveryStart] => 2025-10-03 00:00:00.000Z
[deliveryStreet] => Worle Football Club
[description] =>
[driverRef] => Lewis Newman
[externalCustomerId] => 499326000046966136
[externalLocationId] => 499326000046966140
[externalOrderId] => 499326000048825178
[id] => qv5hgbux769xpa4
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] => Collect 1 x Brue Keg and empties
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00455
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Pending
[syncInCreated] => 2025-09-29 12:23:18.000Z
[syncInStatus] => closed
[syncInUpdated] => 2025-10-03 18:33:43.000Z
[syncOutStatus] => ACCEPTED
[syncOutUpdated] => 2025-10-03 18:33:00.000Z
[timeWindows] => Array
(
)
[title] => Concierge Events
[totalValue] => 270
[totalWeight] => 124
[type] =>
[updated] => 2025-10-03 18:35:35.573Z
[vehicleRef] => WD25HWY
[what3Words] =>
)
Updating source from local order
Getting custom fields
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-07-18 02:35:52.065Z
[id] => nc7sndad5bhvi5x
[inCollection] => orders
[inField] => paymentMethod
[mappedField] => 7DCPayment
[name] => Payment method
[sourceField] =>
[syncFromSource] => 1
[syncToSource] =>
[type] => text
[updated] => 2025-07-18 02:35:52.065Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Processing field
Mapped field: 7DCEmpties
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
Processing field
Mapped field: 7DCEmptiesGas
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:03:34.631Z
[id] => pcn96l3kgkps4az
[inCollection] => orders
[inField] => driverRef
[mappedField] =>
[name] => Delivery driver
[sourceField] => cf_delivery_driver
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:03:34.631Z
)
Processing field
driverRef...
Value: Lewis Newman
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-08 04:52:51.399Z
[id] => hhrzcmytzs8p3kw
[inCollection] => orders
[inField] => seqNo
[mappedField] =>
[name] => Run number
[sourceField] => cf_run_number
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-08 04:52:51.399Z
)
Processing field
seqNo...
Value: 1
Finished processing field
Continue
Updating source order: Array
(
[custom_fields] => Array
(
[0] => Array
(
[api_name] => cf_delivery_driver
[value] => Lewis Newman
)
[1] => Array
(
[api_name] => cf_run_number
[value] => 1
)
)
)
Update result: Array
(
[code] => 0
[message] => Sales Order has been updated.
[salesorder] => Array
(
[salesorder_id] => 499326000048825178
[is_viewed_in_mail] =>
[mail_first_viewed_time] =>
[mail_last_viewed_time] =>
[documents] => Array
(
)
[zcrm_potential_id] =>
[zcrm_potential_name] =>
[salesorder_number] => SO-00455
[date] => 2025-10-03
[offline_created_date_with_time] =>
[tracking_url] =>
[has_discount] =>
[status] => confirmed
[color_code] =>
[current_sub_status_id] =>
[current_sub_status] => closed
[sub_statuses] => Array
(
)
[shipment_date] => 2025-10-03
[reference_number] =>
[customer_id] => 499326000046966136
[customer_name] => Concierge Events
[contact_persons] => Array
(
[0] => 499326000047525212
)
[contact_persons_associated] => Array
(
[0] => Array
(
[contact_person_id] => 499326000047525212
[contact_person_email] => wayne.hadley@conciergeuk.co.uk
[first_name] => Wayne
[last_name] => Hadley
[mobile] =>
[communication_preference] => Array
(
[is_email_enabled] => 1
)
)
)
[contact_person_details] => Array
(
[0] => Array
(
[phone] =>
[mobile] =>
[last_name] => Hadley
[contact_person_id] => 499326000047525212
[first_name] => Wayne
[email] => wayne.hadley@conciergeuk.co.uk
)
)
[source] => Api
[contact_category] => uk
[is_taxable] =>
[has_shipping_address] => 1
[currency_id] => 499326000000000065
[currency_code] => GBP
[currency_symbol] => £
[exchange_rate] => 1
[is_discount_before_tax] => 1
[discount_type] => item_level
[estimate_id] =>
[delivery_method] =>
[delivery_method_id] =>
[vat_treatment] => uk
[is_inclusive_tax] =>
[tax_rounding] => entity_level
[tax_override_preference] => no_override
[order_status] => closed
[invoiced_status] => invoiced
[paid_status] => unpaid
[shipped_status] => pending
[sales_channel] => direct_sales
[sales_channel_formatted] => Direct Sales
[account_identifier] =>
[integration_id] =>
[is_dropshipped] =>
[is_backordered] =>
[is_manually_fulfilled] =>
[can_manually_fulfill] => 1
[has_qty_cancelled] =>
[is_reverse_charge_applied] =>
[shipping_details] => Array
(
)
[created_by_email] => sophie@7daycellar.co.uk
[created_by_name] => Sophie Redman
[branch_id] => 499326000023111007
[branch_name] => Head Office
[location_id] => 499326000023111007
[location_name] => Head Office
[total_quantity] => 2
[line_items] => Array
(
[0] => Array
(
[line_item_id] => 499326000048825184
[variant_id] => 499326000000061367
[track_batch_number] =>
[item_id] => 499326000000061367
[is_returnable] =>
[product_id] => 499326000000061367
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] => BBG-SNML-50LK
[name] => San Miguel 11G
[group_name] => San Miguel 11G
[description] =>
[item_order] => 0
[bcy_rate] => 130
[rate] => 130
[sales_rate] => 146.95
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 26
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 130
[item_sub_total] => 130
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] => San Miguel.png
[image_type] => png
[document_id] => 499326000044988871
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 1
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] => 62
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
[1] => Array
(
[line_item_id] => 499326000048825186
[variant_id] => 499326000000063923
[track_batch_number] =>
[item_id] => 499326000000063923
[is_returnable] =>
[product_id] => 499326000000063923
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] => TTCG-GOLD-50LK
[name] => Thatcher's Gold Cider 11g
[group_name] => Thatcher's Gold Cider 11g
[description] =>
[item_order] => 1
[bcy_rate] => 95
[rate] => 95
[sales_rate] => 110.99
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 19
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 95
[item_sub_total] => 95
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] => Thatchers Gold Badge.png
[image_type] => png
[document_id] => 499326000044989043
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 1
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] => 62
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
)
[is_advanced_tracking_missing] =>
[entity_tags] =>
[submitter_id] =>
[approver_id] =>
[submitted_date] =>
[submitted_by] =>
[submitted_by_name] =>
[submitted_by_email] =>
[submitted_by_photo_url] =>
[price_precision] => 2
[is_emailed] =>
[has_unconfirmed_line_item] =>
[picklists] => Array
(
)
[purchaseorders] => Array
(
)
[locations] => Array
(
[0] => Array
(
[location_id] => 499326000023111007
[location_name] => Head Office
[status] => active
)
[1] => Array
(
[location_id] => 499326000041689155
[location_name] => Bason Bridge Brewery Duty Bonded Warehouse
[status] => active
)
)
[billing_address_id] => 499326000046966138
[billing_address] => Array
(
[address] => 21 North St
[street2] =>
[city] => Weston Super Mare
[state] =>
[zip] =>
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[shipping_address_id] => 499326000046966140
[shipping_address] => Array
(
[company_name] =>
[address] => Worle Football Club
[street2] => Station Road
[city] => Worle
[state] => Weston Super Mare
[zip] => BS22 6AH
[country] => United Kingdom
[country_code] => GB
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[is_test_order] =>
[notes] => Account Name: 7 Day Cellar Ltd
Sort Code: 09-01-30
Account No: 10888924
[terms] =>
[payment_terms] => 7
[payment_terms_label] => Net 7
[custom_fields] => Array
(
[0] => Array
(
[field_id] => 499326000042690007
[customfield_id] => 499326000042690007
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 1
[label] => Automation Required
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[is_color_code_supported] =>
[api_name] => cf__ulrql_automation_required
[show_in_all_pdf] =>
[selected_option_id] => 499326000042690011
[value_formatted] => Yes
[search_entity] => salesorder
[data_type] => dropdown
[placeholder] => cf__ulrql_automation_required
[value] => Yes
[is_dependent_field] =>
)
[1] => Array
(
[field_id] => 499326000046252143
[customfield_id] => 499326000046252143
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 2
[label] => Delivery Instructions
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_instructions
[show_in_all_pdf] =>
[value_formatted] => Collect 1 x Brue Keg and empties
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_instructions
[value] => Collect 1 x Brue Keg and empties
[is_dependent_field] =>
)
[2] => Array
(
[field_id] => 499326000046252173
[customfield_id] => 499326000046252173
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 3
[label] => Delivery Driver
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_driver
[show_in_all_pdf] =>
[value_formatted] => Lewis Newman
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_driver
[value] => Lewis Newman
[is_dependent_field] =>
)
[3] => Array
(
[field_id] => 499326000046717945
[customfield_id] => 499326000046717945
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 4
[label] => GoCardless Mandate
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_gocardless_mandate
[show_in_all_pdf] =>
[value_formatted] => True
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_gocardless_mandate
[value] => True
[is_dependent_field] =>
)
[4] => Array
(
[field_id] => 499326000047922345
[customfield_id] => 499326000047922345
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 5
[label] => Run Number
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_run_number
[show_in_all_pdf] =>
[value_formatted] => 1
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_run_number
[value] => 1
[is_dependent_field] =>
)
)
[custom_field_hash] => Array
(
[cf__ulrql_automation_required] => Yes
[cf__ulrql_automation_required_unformatted] => Yes
[cf_delivery_instructions] => Collect 1 x Brue Keg and empties
[cf_delivery_instructions_unformatted] => Collect 1 x Brue Keg and empties
[cf_delivery_driver] => Lewis Newman
[cf_delivery_driver_unformatted] => Lewis Newman
[cf_gocardless_mandate] => True
[cf_gocardless_mandate_unformatted] => True
[cf_run_number] => 1
[cf_run_number_unformatted] => 1
)
[template_id] => 499326000000000111
[template_name] => Standard Template
[page_width] => 8.27in
[page_height] => 11.69in
[orientation] => portrait
[template_type] => standard
[created_time] => 2025-09-29T13:23:18+0100
[last_modified_time] => 2025-10-03T19:35:35+0100
[created_by_id] => 499326000044308001
[created_date] => 2025-09-29
[last_modified_by_id] => 499326000044410001
[attachment_name] =>
[can_send_in_mail] =>
[salesperson_id] => 499326000044620336
[salesperson_name] => Sophie Redman
[merchant_id] =>
[merchant_name] =>
[pickup_location_id] =>
[discount] => 0
[discount_applied_on_amount] => 0
[is_adv_tracking_in_package] =>
[shipping_charge_taxes] => Array
(
)
[lock_details] => Array
(
[can_lock] =>
)
[locked_actions] => Array
(
)
[shipping_charge_tax_id] =>
[shipping_charge_tax_name] =>
[shipping_charge_tax_type] =>
[shipping_charge_tax_percentage] =>
[shipping_charge_tax_exemption_id] =>
[shipping_charge_tax_exemption_code] =>
[shipping_charge_tax] =>
[bcy_shipping_charge_tax] =>
[shipping_charge_exclusive_of_tax] => 0
[shipping_charge_inclusive_of_tax] => 0
[shipping_charge_tax_formatted] =>
[shipping_charge_exclusive_of_tax_formatted] => £0.00
[shipping_charge_inclusive_of_tax_formatted] => £0.00
[shipping_charge] => 0
[bcy_shipping_charge] => 0
[adjustment] => 0
[bcy_adjustment] => 0
[adjustment_description] => Adjustment
[roundoff_value] => 0
[transaction_rounding_type] => no_rounding
[rounding_mode] => round_half_up
[bcy_rounding_mode] => round_half_up
[sub_total] => 225
[bcy_sub_total] => 225
[sub_total_inclusive_of_tax] => 0
[sub_total_exclusive_of_discount] => 225
[discount_total] => 0
[bcy_discount_total] => 0
[discount_percent] => 0
[tax_total] => 45
[bcy_tax_total] => 45
[total] => 270
[computation_type] => basic
[bcy_total] => 270
[reverse_charge_tax_total] => 0
[taxes] => Array
(
[0] => Array
(
[tax_amount] => 45
[tax_name] => Standard Rate
[tax_amount_formatted] => £45.00
)
)
[tds_calculation_type] => tds_item_level
[packages] => Array
(
)
[so_cycle_preference] => Array
(
[is_feature_enabled] => 1
[socycle_status] => not_triggered
[can_create_invoice] => 1
[can_create_package] =>
[can_create_shipment] =>
[shipment_preference] => Array
(
[default_carrier] =>
[send_notification] =>
[deliver_shipments] =>
)
[invoice_preference] => Array
(
[mark_as_sent] =>
[record_payment] =>
[payment_mode_id] => 499326000000000199
[payment_account_id] => 499326000000000349
)
)
[invoices] => Array
(
[0] => Array
(
[invoice_id] => 499326000049016378
[invoice_number] => INV-26126
[reference_number] => SO-00455
[status] => sent
[date] => 2025-10-03
[due_date] => 2025-10-10
[total] => 156
[balance] => 156
)
)
[can_show_kit_return] =>
[is_kit_partial_return] =>
[salesreturns] => Array
(
)
[payments] => Array
(
)
[creditnotes] => Array
(
)
[refunds] => Array
(
)
[contact] => Array
(
[customer_balance] => 420
[credit_limit] => 0
[unused_customer_credits] => 0
[is_credit_limit_migration_completed] => 1
)
[balance] => 270
[approvers_list] => Array
(
)
[is_scheduled_for_quick_shipment_create] =>
)
)
Webhook - destinationUpdated script called at 2025-10-03 19:35:42
JSON: {"payload":{"orderReference":"SO-00455","status":"ARRIVED"},"timestamp":"2025-10-03T18:35:41Z"}
REF: SO-00455
Filter: refId="SO-00455"
200 response code sent
Local item: {"addons":[],"attachments":[],"collectionEnd":"","collectionId":"s93ukjlitoinx2e","collectionInstructions":"","collectionName":"orders","collectionStart":"","company":"1kmltj8w8rnhbfx","contactEmail":"wayne.hadley@conciergeuk.co.uk","contactName":"Wayne Hadley","contactNotes":"","contactPhone":"","created":"2025-09-29 12:23:39.282Z","custom":[],"customer":"pro2diwlme62ylp","deliveryCity":"Worle","deliveryCounty":"","deliveryEnd":"2025-10-03 00:00:00.000Z","deliveryInstructions":"","deliveryName":"Concierge Events","deliveryPostcode":"BS22 6AH","deliveryStart":"2025-10-03 00:00:00.000Z","deliveryStreet":"Worle Football Club","description":"","driverRef":"Lewis Newman","externalCustomerId":"499326000046966136","externalLocationId":"499326000046966140","externalOrderId":"499326000048825178","id":"qv5hgbux769xpa4","isCancelled":false,"isCollection":false,"isReadyToSync":false,"isScheduledCollection":false,"isScheduledDelivery":false,"isUntracked":false,"mergeRef":"","notes":"Collect 1 x Brue Keg and empties","orderedAt":"","overrideVolume":0,"overrideWeight":0,"paymentMethod":"","pendingSyncFromDestination":false,"pendingSyncFromSource":false,"pendingSyncToDestination":true,"pendingSyncToSource":false,"ref":"","refId":"SO-00455","requestedDeliveryDays":"","seqNo":"1","signature":"","signatureName":"","signatureTime":"","statusCollection":"","statusDelivery":"Pending","syncInCreated":"2025-09-29 12:23:18.000Z","syncInStatus":"closed","syncInUpdated":"2025-10-03 18:33:43.000Z","syncOutStatus":"ACCEPTED","syncOutUpdated":"2025-10-03 18:33:00.000Z","timeWindows":[],"title":"Concierge Events","totalValue":270,"totalWeight":124,"type":"","updated":"2025-10-03 18:35:35.573Z","vehicleRef":"WD25HWY","what3Words":""}
Updating local order from MaxOptra - current local order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[contactName] => Wayne Hadley
[contactNotes] =>
[contactPhone] =>
[created] => 2025-09-29 12:23:39.282Z
[custom] => Array
(
)
[customer] => pro2diwlme62ylp
[deliveryCity] => Worle
[deliveryCounty] =>
[deliveryEnd] => 2025-10-03 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Concierge Events
[deliveryPostcode] => BS22 6AH
[deliveryStart] => 2025-10-03 00:00:00.000Z
[deliveryStreet] => Worle Football Club
[description] =>
[driverRef] => Lewis Newman
[externalCustomerId] => 499326000046966136
[externalLocationId] => 499326000046966140
[externalOrderId] => 499326000048825178
[id] => qv5hgbux769xpa4
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] => Collect 1 x Brue Keg and empties
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00455
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Pending
[syncInCreated] => 2025-09-29 12:23:18.000Z
[syncInStatus] => closed
[syncInUpdated] => 2025-10-03 18:33:43.000Z
[syncOutStatus] => ACCEPTED
[syncOutUpdated] => 2025-10-03 18:33:00.000Z
[timeWindows] => Array
(
)
[title] => Concierge Events
[totalValue] => 270
[totalWeight] => 124
[type] =>
[updated] => 2025-10-03 18:35:35.573Z
[vehicleRef] => WD25HWY
[what3Words] =>
)
MaxOptra order details: Array
(
[0] => Array
(
[referenceNumber] => SO-00455
[consignmentReference] =>
[distributionCentreReference] => Head Office
[distributionCentreName] => Head Office
[task] => DELIVERY
[priority] => NORMAL
[vehicleRequirements] => Array
(
)
[additionalInstructions] => Collect 1 x Brue Keg and empties
[clientName] => Concierge Events
[contactPerson] => Wayne Hadley
[contactNumber] =>
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[additionalContactEmails] =>
[notificationPreferences] => Array
(
[allowSMS] => 1
[allowEmail] => 1
)
[customerLocation] => Array
(
[referenceNumber] => 499326000046966140
[name] => Concierge Events, Worle Football Club, Worle
[address] => BS22 6AH
[w3wAddress] =>
[latitude] => 51.35846
[longitude] => -2.92353
)
[territoryReference] =>
[stopSequence] => ANY
[timeWindows] => Array
(
[0] => Array
(
[start] => 2025-10-03T06:00:00+01:00
[end] => 2025-10-03T23:00:00+01:00
)
)
[orderDate] =>
[capacity1] => 124
[capacity2] => 0
[price] => 0
[operationDuration] => 486
[customFields] => Array
(
)
[orderItems] => Array
(
[0] => Array
(
[itemReferenceNumber] => 499326000000061367
[orderReferenceNumber] => SO-00455
[name] => San Miguel 11G
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 130
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 0
[height] => 0
[width] => 0
[length] => 0
[weight] => 62
[volume] => 0
)
[1] => Array
(
[itemReferenceNumber] => 499326000000063923
[orderReferenceNumber] => SO-00455
[name] => Thatcher's Gold Cider 11g
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 95
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 0
[height] => 0
[width] => 0
[length] => 0
[weight] => 62
[volume] => 0
)
)
[widgetTrackingDetails] =>
)
)
MaxOptra schedule details: Array
(
[orderReferenceNumber] => SO-00455
[assignedDriverReference] => Lewis Newman
[assignedDriverName] => Lewis Newman
[assignedVehicleReference] => WD25HWY
[assignedVehicleName] => WD25HWY
[plannedArrivalTime] => 2025-10-03T20:03:41+01:00
[plannedCompletionTime] => 2025-10-03T20:11:47+01:00
[stopNumber] => 1
[totalStopsInRun] => 3
[runNumber] => 1
[runReference] => 857f789e3cd84449a35e057ccd96d6e0
[eta] => 2025-10-03T19:53:55+01:00
[factArrivalTimeGPS] =>
[factCompletionTimeGPS] =>
[factArrivalTimeReported] => 2025-10-03T19:35:41+01:00
[factCompletionTimeReported] =>
[failReason] =>
[failComment] =>
[status] => ARRIVED
[driver] => Lewis Newman
[arrival_planned] => 2025-10-03T20:03:41+01:00
[arrival_estimated] => 2025-10-03T19:53:55+01:00
[arrival_actual] => 2025-10-03T19:35:41+01:00
[totalStops] => 3
)
Updating order: SO-00455
Update ID qv5hgbux769xpa4 with: Array
(
[custom] => Array
(
)
[driverRef] => Lewis Newman
[vehicleRef] => WD25HWY
[seqNo] => 1
)
Updated order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[contactName] => Wayne Hadley
[contactNotes] =>
[contactPhone] =>
[created] => 2025-09-29 12:23:39.282Z
[custom] => Array
(
)
[customer] => pro2diwlme62ylp
[deliveryCity] => Worle
[deliveryCounty] =>
[deliveryEnd] => 2025-10-03 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Concierge Events
[deliveryPostcode] => BS22 6AH
[deliveryStart] => 2025-10-03 00:00:00.000Z
[deliveryStreet] => Worle Football Club
[description] =>
[driverRef] => Lewis Newman
[externalCustomerId] => 499326000046966136
[externalLocationId] => 499326000046966140
[externalOrderId] => 499326000048825178
[id] => qv5hgbux769xpa4
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] => Collect 1 x Brue Keg and empties
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00455
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Pending
[syncInCreated] => 2025-09-29 12:23:18.000Z
[syncInStatus] => closed
[syncInUpdated] => 2025-10-03 18:33:43.000Z
[syncOutStatus] => ACCEPTED
[syncOutUpdated] => 2025-10-03 18:33:00.000Z
[timeWindows] => Array
(
)
[title] => Concierge Events
[totalValue] => 270
[totalWeight] => 124
[type] =>
[updated] => 2025-10-03 18:35:42.735Z
[vehicleRef] => WD25HWY
[what3Words] =>
)
Updating source from local order
Getting custom fields
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-07-18 02:35:52.065Z
[id] => nc7sndad5bhvi5x
[inCollection] => orders
[inField] => paymentMethod
[mappedField] => 7DCPayment
[name] => Payment method
[sourceField] =>
[syncFromSource] => 1
[syncToSource] =>
[type] => text
[updated] => 2025-07-18 02:35:52.065Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Processing field
Mapped field: 7DCEmpties
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
Processing field
Mapped field: 7DCEmptiesGas
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:03:34.631Z
[id] => pcn96l3kgkps4az
[inCollection] => orders
[inField] => driverRef
[mappedField] =>
[name] => Delivery driver
[sourceField] => cf_delivery_driver
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:03:34.631Z
)
Processing field
driverRef...
Value: Lewis Newman
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-08 04:52:51.399Z
[id] => hhrzcmytzs8p3kw
[inCollection] => orders
[inField] => seqNo
[mappedField] =>
[name] => Run number
[sourceField] => cf_run_number
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-08 04:52:51.399Z
)
Processing field
seqNo...
Value: 1
Finished processing field
Continue
Updating source order: Array
(
[custom_fields] => Array
(
[0] => Array
(
[api_name] => cf_delivery_driver
[value] => Lewis Newman
)
[1] => Array
(
[api_name] => cf_run_number
[value] => 1
)
)
)
Update result: Array
(
[code] => 0
[message] => Sales Order has been updated.
[salesorder] => Array
(
[salesorder_id] => 499326000048825178
[is_viewed_in_mail] =>
[mail_first_viewed_time] =>
[mail_last_viewed_time] =>
[documents] => Array
(
)
[zcrm_potential_id] =>
[zcrm_potential_name] =>
[salesorder_number] => SO-00455
[date] => 2025-10-03
[offline_created_date_with_time] =>
[tracking_url] =>
[has_discount] =>
[status] => confirmed
[color_code] =>
[current_sub_status_id] =>
[current_sub_status] => closed
[sub_statuses] => Array
(
)
[shipment_date] => 2025-10-03
[reference_number] =>
[customer_id] => 499326000046966136
[customer_name] => Concierge Events
[contact_persons] => Array
(
[0] => 499326000047525212
)
[contact_persons_associated] => Array
(
[0] => Array
(
[contact_person_id] => 499326000047525212
[contact_person_email] => wayne.hadley@conciergeuk.co.uk
[first_name] => Wayne
[last_name] => Hadley
[mobile] =>
[communication_preference] => Array
(
[is_email_enabled] => 1
)
)
)
[contact_person_details] => Array
(
[0] => Array
(
[phone] =>
[mobile] =>
[last_name] => Hadley
[contact_person_id] => 499326000047525212
[first_name] => Wayne
[email] => wayne.hadley@conciergeuk.co.uk
)
)
[source] => Api
[contact_category] => uk
[is_taxable] =>
[has_shipping_address] => 1
[currency_id] => 499326000000000065
[currency_code] => GBP
[currency_symbol] => £
[exchange_rate] => 1
[is_discount_before_tax] => 1
[discount_type] => item_level
[estimate_id] =>
[delivery_method] =>
[delivery_method_id] =>
[vat_treatment] => uk
[is_inclusive_tax] =>
[tax_rounding] => entity_level
[tax_override_preference] => no_override
[order_status] => closed
[invoiced_status] => invoiced
[paid_status] => unpaid
[shipped_status] => pending
[sales_channel] => direct_sales
[sales_channel_formatted] => Direct Sales
[account_identifier] =>
[integration_id] =>
[is_dropshipped] =>
[is_backordered] =>
[is_manually_fulfilled] =>
[can_manually_fulfill] => 1
[has_qty_cancelled] =>
[is_reverse_charge_applied] =>
[shipping_details] => Array
(
)
[created_by_email] => sophie@7daycellar.co.uk
[created_by_name] => Sophie Redman
[branch_id] => 499326000023111007
[branch_name] => Head Office
[location_id] => 499326000023111007
[location_name] => Head Office
[total_quantity] => 2
[line_items] => Array
(
[0] => Array
(
[line_item_id] => 499326000048825184
[variant_id] => 499326000000061367
[track_batch_number] =>
[item_id] => 499326000000061367
[is_returnable] =>
[product_id] => 499326000000061367
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] => BBG-SNML-50LK
[name] => San Miguel 11G
[group_name] => San Miguel 11G
[description] =>
[item_order] => 0
[bcy_rate] => 130
[rate] => 130
[sales_rate] => 146.95
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 26
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 130
[item_sub_total] => 130
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] => San Miguel.png
[image_type] => png
[document_id] => 499326000044988871
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 1
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] => 62
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
[1] => Array
(
[line_item_id] => 499326000048825186
[variant_id] => 499326000000063923
[track_batch_number] =>
[item_id] => 499326000000063923
[is_returnable] =>
[product_id] => 499326000000063923
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] => TTCG-GOLD-50LK
[name] => Thatcher's Gold Cider 11g
[group_name] => Thatcher's Gold Cider 11g
[description] =>
[item_order] => 1
[bcy_rate] => 95
[rate] => 95
[sales_rate] => 110.99
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 19
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 95
[item_sub_total] => 95
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] => Thatchers Gold Badge.png
[image_type] => png
[document_id] => 499326000044989043
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 1
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] => 62
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
)
[is_advanced_tracking_missing] =>
[entity_tags] =>
[submitter_id] =>
[approver_id] =>
[submitted_date] =>
[submitted_by] =>
[submitted_by_name] =>
[submitted_by_email] =>
[submitted_by_photo_url] =>
[price_precision] => 2
[is_emailed] =>
[has_unconfirmed_line_item] =>
[picklists] => Array
(
)
[purchaseorders] => Array
(
)
[locations] => Array
(
[0] => Array
(
[location_id] => 499326000023111007
[location_name] => Head Office
[status] => active
)
[1] => Array
(
[location_id] => 499326000041689155
[location_name] => Bason Bridge Brewery Duty Bonded Warehouse
[status] => active
)
)
[billing_address_id] => 499326000046966138
[billing_address] => Array
(
[address] => 21 North St
[street2] =>
[city] => Weston Super Mare
[state] =>
[zip] =>
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[shipping_address_id] => 499326000046966140
[shipping_address] => Array
(
[company_name] =>
[address] => Worle Football Club
[street2] => Station Road
[city] => Worle
[state] => Weston Super Mare
[zip] => BS22 6AH
[country] => United Kingdom
[country_code] => GB
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[is_test_order] =>
[notes] => Account Name: 7 Day Cellar Ltd
Sort Code: 09-01-30
Account No: 10888924
[terms] =>
[payment_terms] => 7
[payment_terms_label] => Net 7
[custom_fields] => Array
(
[0] => Array
(
[field_id] => 499326000042690007
[customfield_id] => 499326000042690007
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 1
[label] => Automation Required
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[is_color_code_supported] =>
[api_name] => cf__ulrql_automation_required
[show_in_all_pdf] =>
[selected_option_id] => 499326000042690011
[value_formatted] => Yes
[search_entity] => salesorder
[data_type] => dropdown
[placeholder] => cf__ulrql_automation_required
[value] => Yes
[is_dependent_field] =>
)
[1] => Array
(
[field_id] => 499326000046252143
[customfield_id] => 499326000046252143
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 2
[label] => Delivery Instructions
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_instructions
[show_in_all_pdf] =>
[value_formatted] => Collect 1 x Brue Keg and empties
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_instructions
[value] => Collect 1 x Brue Keg and empties
[is_dependent_field] =>
)
[2] => Array
(
[field_id] => 499326000046252173
[customfield_id] => 499326000046252173
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 3
[label] => Delivery Driver
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_driver
[show_in_all_pdf] =>
[value_formatted] => Lewis Newman
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_driver
[value] => Lewis Newman
[is_dependent_field] =>
)
[3] => Array
(
[field_id] => 499326000046717945
[customfield_id] => 499326000046717945
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 4
[label] => GoCardless Mandate
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_gocardless_mandate
[show_in_all_pdf] =>
[value_formatted] => True
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_gocardless_mandate
[value] => True
[is_dependent_field] =>
)
[4] => Array
(
[field_id] => 499326000047922345
[customfield_id] => 499326000047922345
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 5
[label] => Run Number
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_run_number
[show_in_all_pdf] =>
[value_formatted] => 1
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_run_number
[value] => 1
[is_dependent_field] =>
)
)
[custom_field_hash] => Array
(
[cf__ulrql_automation_required] => Yes
[cf__ulrql_automation_required_unformatted] => Yes
[cf_delivery_instructions] => Collect 1 x Brue Keg and empties
[cf_delivery_instructions_unformatted] => Collect 1 x Brue Keg and empties
[cf_delivery_driver] => Lewis Newman
[cf_delivery_driver_unformatted] => Lewis Newman
[cf_gocardless_mandate] => True
[cf_gocardless_mandate_unformatted] => True
[cf_run_number] => 1
[cf_run_number_unformatted] => 1
)
[template_id] => 499326000000000111
[template_name] => Standard Template
[page_width] => 8.27in
[page_height] => 11.69in
[orientation] => portrait
[template_type] => standard
[created_time] => 2025-09-29T13:23:18+0100
[last_modified_time] => 2025-10-03T19:35:43+0100
[created_by_id] => 499326000044308001
[created_date] => 2025-09-29
[last_modified_by_id] => 499326000044410001
[attachment_name] =>
[can_send_in_mail] =>
[salesperson_id] => 499326000044620336
[salesperson_name] => Sophie Redman
[merchant_id] =>
[merchant_name] =>
[pickup_location_id] =>
[discount] => 0
[discount_applied_on_amount] => 0
[is_adv_tracking_in_package] =>
[shipping_charge_taxes] => Array
(
)
[lock_details] => Array
(
[can_lock] =>
)
[locked_actions] => Array
(
)
[shipping_charge_tax_id] =>
[shipping_charge_tax_name] =>
[shipping_charge_tax_type] =>
[shipping_charge_tax_percentage] =>
[shipping_charge_tax_exemption_id] =>
[shipping_charge_tax_exemption_code] =>
[shipping_charge_tax] =>
[bcy_shipping_charge_tax] =>
[shipping_charge_exclusive_of_tax] => 0
[shipping_charge_inclusive_of_tax] => 0
[shipping_charge_tax_formatted] =>
[shipping_charge_exclusive_of_tax_formatted] => £0.00
[shipping_charge_inclusive_of_tax_formatted] => £0.00
[shipping_charge] => 0
[bcy_shipping_charge] => 0
[adjustment] => 0
[bcy_adjustment] => 0
[adjustment_description] => Adjustment
[roundoff_value] => 0
[transaction_rounding_type] => no_rounding
[rounding_mode] => round_half_up
[bcy_rounding_mode] => round_half_up
[sub_total] => 225
[bcy_sub_total] => 225
[sub_total_inclusive_of_tax] => 0
[sub_total_exclusive_of_discount] => 225
[discount_total] => 0
[bcy_discount_total] => 0
[discount_percent] => 0
[tax_total] => 45
[bcy_tax_total] => 45
[total] => 270
[computation_type] => basic
[bcy_total] => 270
[reverse_charge_tax_total] => 0
[taxes] => Array
(
[0] => Array
(
[tax_amount] => 45
[tax_name] => Standard Rate
[tax_amount_formatted] => £45.00
)
)
[tds_calculation_type] => tds_item_level
[packages] => Array
(
)
[so_cycle_preference] => Array
(
[is_feature_enabled] => 1
[socycle_status] => not_triggered
[can_create_invoice] => 1
[can_create_package] =>
[can_create_shipment] =>
[shipment_preference] => Array
(
[default_carrier] =>
[send_notification] =>
[deliver_shipments] =>
)
[invoice_preference] => Array
(
[mark_as_sent] =>
[record_payment] =>
[payment_mode_id] => 499326000000000199
[payment_account_id] => 499326000000000349
)
)
[invoices] => Array
(
[0] => Array
(
[invoice_id] => 499326000049016378
[invoice_number] => INV-26126
[reference_number] => SO-00455
[status] => sent
[date] => 2025-10-03
[due_date] => 2025-10-10
[total] => 156
[balance] => 156
)
)
[can_show_kit_return] =>
[is_kit_partial_return] =>
[salesreturns] => Array
(
)
[payments] => Array
(
)
[creditnotes] => Array
(
)
[refunds] => Array
(
)
[contact] => Array
(
[customer_balance] => 420
[credit_limit] => 0
[unused_customer_credits] => 0
[is_credit_limit_migration_completed] => 1
)
[balance] => 270
[approvers_list] => Array
(
)
[is_scheduled_for_quick_shipment_create] =>
)
)
Webhook - sourceUpdated script called at 2025-10-03 19:35:46
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048825178","salesorder_no":"SO-00455","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048825178","salesorder_no":"SO-00455","status":"invoiced"}}
EXT ID: 499326000048825178
REF: SO-00455
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048825178 (REF SO-00455)
Local order updated = 2025-10-03 18:33:43.000Z,
source updated = 2025-10-03T19:35:43+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[contactName] => Wayne Hadley
[notes] => Collect 1 x Brue Keg and empties
[externalOrderId] => 499326000048825178
[refId] => SO-00455
[externalCustomerId] => 499326000046966136
[externalLocationId] => 499326000046966140
[title] => Concierge Events
[deliveryStart] => 2025-10-03
[deliveryEnd] => 2025-10-03
[totalValue] => 270
[totalWeight] => 124
[syncInCreated] => 2025-09-29T13:23:18+0100
[syncInUpdated] => 2025-10-03T19:35:43+0100
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048825184
[externalProductId] => 499326000000061367
[sku] => BBG-SNML-50LK
[title] => San Miguel 11G
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 130
[price] => 130
)
[1] => Array
(
[externalOrderProductId] => 499326000048825186
[externalProductId] => 499326000000063923
[sku] => TTCG-GOLD-50LK
[title] => Thatcher's Gold Cider 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 95
[price] => 95
)
)
[deliveryName] => Concierge Events
[deliveryStreet] => Worle Football Club
[deliveryCity] => Worle
[deliveryCounty] =>
[deliveryPostcode] => BS22 6AH
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[contactName] => Wayne Hadley
[notes] => Collect 1 x Brue Keg and empties
[externalOrderId] => 499326000048825178
[refId] => SO-00455
[externalCustomerId] => 499326000046966136
[externalLocationId] => 499326000046966140
[title] => Concierge Events
[deliveryStart] => 2025-10-03
[deliveryEnd] => 2025-10-03
[totalValue] => 270
[totalWeight] => 124
[syncInCreated] => 2025-09-29T13:23:18+0100
[syncInUpdated] => 2025-10-03T19:35:43+0100
[syncInStatus] => closed
[deliveryName] => Concierge Events
[deliveryStreet] => Worle Football Club
[deliveryCity] => Worle
[deliveryCounty] =>
[deliveryPostcode] => BS22 6AH
[syncOutUpdated] => 2025-10-03T19:35:46+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Wayne Hadley
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000046966136
Getting products
Updating product 499326000000061367
Updating order product 499326000048825184
Updated
Updating product 499326000000063923
Updating order product 499326000048825186
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00455
Processing order: qv5hgbux769xpa4, ref SO-00455
Syncing SO-00455
Using default start and end times
Time window: 2025-10-03T06:00:00+01:00 - 2025-10-03T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 03/10/2025 19:35 - Local updated: 2025-10-03 18:35:46.000Z - Source updated: 2025-10-03 18:35:43.000Z
Changed? yes
Current MaxOptra status: ARRIVED
Completed? no
Previous status: ACCEPTED
Status changed - mark for sync back to source
Is allocated? yes
MO delivery date: 2025-10-03, Local delivery date: 2025-10-03
Local updated: 2025-10-03 18:35:46.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Communication error with MaxOptra (412)
orders/SO-00455
https://7daycellar.maxoptra.com/api/v6/orders/SO-00455
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000046966140
Array
(
[referenceNumber] => 499326000046966140
[name] => Concierge Events, Worle Football Club, Worle
[address] => BS22 6AH
)
499326000046966140
Error updating SO-00455
"{\"data\":null,\"errors\":[{\"code\":\"ORDER_IS_LOCKED\",\"name\":\"The order is locked\",\"details\":null,\"field\":null}],\"warnings\":[]}"
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00455
Done all.
Finished at 2025-10-03 19:35:48
Webhook - sourceUpdated script called at 2025-10-03 19:35:48
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048825178","salesorder_no":"SO-00455","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048825178","salesorder_no":"SO-00455","status":"invoiced"}}
EXT ID: 499326000048825178
REF: SO-00455
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048825178 (REF SO-00455)
Updates pending to source for order: 499326000048825178
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-10-03 18:35:43.000Z,
source updated = 2025-10-03T19:35:43+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00455
Processing order: qv5hgbux769xpa4, ref SO-00455
Syncing SO-00455
Using default start and end times
Time window: 2025-10-03T06:00:00+01:00 - 2025-10-03T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 03/10/2025 19:35 - Local updated: 2025-10-03 18:35:00.000Z - Source updated: 2025-10-03 18:35:43.000Z
Changed? yes
Current MaxOptra status: ARRIVED
Completed? no
Previous status: ARRIVED
Is allocated? yes
MO delivery date: 2025-10-03, Local delivery date: 2025-10-03
Local updated: 2025-10-03 18:35:00.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Communication error with MaxOptra (412)
orders/SO-00455
https://7daycellar.maxoptra.com/api/v6/orders/SO-00455
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000046966140
Array
(
[referenceNumber] => 499326000046966140
[name] => Concierge Events, Worle Football Club, Worle
[address] => BS22 6AH
)
499326000046966140
Error updating SO-00455
"{\"data\":null,\"errors\":[{\"code\":\"ORDER_IS_LOCKED\",\"name\":\"The order is locked\",\"details\":null,\"field\":null}],\"warnings\":[]}"
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00455
Done all.
Finished at 2025-10-03 19:35:50
Webhook - destinationUpdated script called at 2025-10-03 19:36:02
JSON: {"payload":{"orderReference":"SO-00455","status":"COMPLETED"},"timestamp":"2025-10-03T18:36:02Z"}
REF: SO-00455
Filter: refId="SO-00455"
200 response code sent
Local item: {"addons":[],"attachments":[],"collectionEnd":"","collectionId":"s93ukjlitoinx2e","collectionInstructions":"","collectionName":"orders","collectionStart":"","company":"1kmltj8w8rnhbfx","contactEmail":"wayne.hadley@conciergeuk.co.uk","contactName":"Wayne Hadley","contactNotes":"","contactPhone":"","created":"2025-09-29 12:23:39.282Z","custom":[],"customer":"pro2diwlme62ylp","deliveryCity":"Worle","deliveryCounty":"","deliveryEnd":"2025-10-03 00:00:00.000Z","deliveryInstructions":"","deliveryName":"Concierge Events","deliveryPostcode":"BS22 6AH","deliveryStart":"2025-10-03 00:00:00.000Z","deliveryStreet":"Worle Football Club","description":"","driverRef":"Lewis Newman","externalCustomerId":"499326000046966136","externalLocationId":"499326000046966140","externalOrderId":"499326000048825178","id":"qv5hgbux769xpa4","isCancelled":false,"isCollection":false,"isReadyToSync":false,"isScheduledCollection":false,"isScheduledDelivery":false,"isUntracked":false,"mergeRef":"","notes":"Collect 1 x Brue Keg and empties","orderedAt":"","overrideVolume":0,"overrideWeight":0,"paymentMethod":"","pendingSyncFromDestination":false,"pendingSyncFromSource":false,"pendingSyncToDestination":true,"pendingSyncToSource":false,"ref":"","refId":"SO-00455","requestedDeliveryDays":"","seqNo":"1","signature":"","signatureName":"","signatureTime":"","statusCollection":"","statusDelivery":"Delivered","syncInCreated":"2025-09-29 12:23:18.000Z","syncInStatus":"closed","syncInUpdated":"2025-10-03 18:35:43.000Z","syncOutStatus":"ARRIVED","syncOutUpdated":"2025-10-03 18:35:00.000Z","timeWindows":[],"title":"Concierge Events","totalValue":270,"totalWeight":124,"type":"","updated":"2025-10-03 18:35:50.781Z","vehicleRef":"WD25HWY","what3Words":""}
Updating local order from MaxOptra - current local order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[contactName] => Wayne Hadley
[contactNotes] =>
[contactPhone] =>
[created] => 2025-09-29 12:23:39.282Z
[custom] => Array
(
)
[customer] => pro2diwlme62ylp
[deliveryCity] => Worle
[deliveryCounty] =>
[deliveryEnd] => 2025-10-03 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Concierge Events
[deliveryPostcode] => BS22 6AH
[deliveryStart] => 2025-10-03 00:00:00.000Z
[deliveryStreet] => Worle Football Club
[description] =>
[driverRef] => Lewis Newman
[externalCustomerId] => 499326000046966136
[externalLocationId] => 499326000046966140
[externalOrderId] => 499326000048825178
[id] => qv5hgbux769xpa4
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] => Collect 1 x Brue Keg and empties
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00455
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Delivered
[syncInCreated] => 2025-09-29 12:23:18.000Z
[syncInStatus] => closed
[syncInUpdated] => 2025-10-03 18:35:43.000Z
[syncOutStatus] => ARRIVED
[syncOutUpdated] => 2025-10-03 18:35:00.000Z
[timeWindows] => Array
(
)
[title] => Concierge Events
[totalValue] => 270
[totalWeight] => 124
[type] =>
[updated] => 2025-10-03 18:35:50.781Z
[vehicleRef] => WD25HWY
[what3Words] =>
)
MaxOptra order details: Array
(
[0] => Array
(
[referenceNumber] => SO-00455
[consignmentReference] =>
[distributionCentreReference] => Head Office
[distributionCentreName] => Head Office
[task] => DELIVERY
[priority] => NORMAL
[vehicleRequirements] => Array
(
)
[additionalInstructions] => Collect 1 x Brue Keg and empties
[clientName] => Concierge Events
[contactPerson] => Wayne Hadley
[contactNumber] =>
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[additionalContactEmails] =>
[notificationPreferences] => Array
(
[allowSMS] => 1
[allowEmail] => 1
)
[customerLocation] => Array
(
[referenceNumber] => 499326000046966140
[name] => Concierge Events, Worle Football Club, Worle
[address] => BS22 6AH
[w3wAddress] =>
[latitude] => 51.35846
[longitude] => -2.92353
)
[territoryReference] =>
[stopSequence] => ANY
[timeWindows] => Array
(
[0] => Array
(
[start] => 2025-10-03T06:00:00+01:00
[end] => 2025-10-03T23:00:00+01:00
)
)
[orderDate] =>
[capacity1] => 124
[capacity2] => 0
[price] => 0
[operationDuration] => 486
[customFields] => Array
(
[7DCPaidCash] => true
[7DCEmptiesGas] => 1
[7DCEmpties] => 8
)
[orderItems] => Array
(
[0] => Array
(
[itemReferenceNumber] => 499326000000061367
[orderReferenceNumber] => SO-00455
[name] => San Miguel 11G
[description] =>
[barcode] =>
[type] =>
[status] => CHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 130
[plannedQuantity] => 1
[factQuantity] => 1
[totalAmount] => 130
[height] => 0
[width] => 0
[length] => 0
[weight] => 62
[volume] => 0
)
[1] => Array
(
[itemReferenceNumber] => 499326000000063923
[orderReferenceNumber] => SO-00455
[name] => Thatcher's Gold Cider 11g
[description] =>
[barcode] =>
[type] =>
[status] => CHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 95
[plannedQuantity] => 1
[factQuantity] => 1
[totalAmount] => 95
[height] => 0
[width] => 0
[length] => 0
[weight] => 62
[volume] => 0
)
)
[widgetTrackingDetails] =>
)
)
MaxOptra schedule details: Array
(
[orderReferenceNumber] => SO-00455
[assignedDriverReference] => Lewis Newman
[assignedDriverName] => Lewis Newman
[assignedVehicleReference] => WD25HWY
[assignedVehicleName] => WD25HWY
[plannedArrivalTime] => 2025-10-03T20:03:41+01:00
[plannedCompletionTime] => 2025-10-03T20:11:47+01:00
[stopNumber] => 1
[totalStopsInRun] => 3
[runNumber] => 1
[runReference] => 857f789e3cd84449a35e057ccd96d6e0
[eta] => 2025-10-03T19:53:55+01:00
[factArrivalTimeGPS] =>
[factCompletionTimeGPS] =>
[factArrivalTimeReported] => 2025-10-03T19:35:41+01:00
[factCompletionTimeReported] => 2025-10-03T19:36:02+01:00
[failReason] =>
[failComment] =>
[status] => COMPLETED
[driver] => Lewis Newman
[arrival_planned] => 2025-10-03T20:03:41+01:00
[arrival_estimated] => 2025-10-03T19:53:55+01:00
[arrival_actual] => 2025-10-03T19:35:41+01:00
[totalStops] => 3
)
Updating order: SO-00455
Update ID qv5hgbux769xpa4 with: Array
(
[custom] => Array
(
[0] => Array
(
[id] => yt2l2o3cacu43wf
[value] => 8
)
[1] => Array
(
[id] => j381owny56syys6
[value] => 1
)
)
[driverRef] => Lewis Newman
[vehicleRef] => WD25HWY
[seqNo] => 1
)
Updated order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[contactName] => Wayne Hadley
[contactNotes] =>
[contactPhone] =>
[created] => 2025-09-29 12:23:39.282Z
[custom] => Array
(
[0] => stdClass Object
(
[id] => yt2l2o3cacu43wf
[value] => 8
)
[1] => stdClass Object
(
[id] => j381owny56syys6
[value] => 1
)
)
[customer] => pro2diwlme62ylp
[deliveryCity] => Worle
[deliveryCounty] =>
[deliveryEnd] => 2025-10-03 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Concierge Events
[deliveryPostcode] => BS22 6AH
[deliveryStart] => 2025-10-03 00:00:00.000Z
[deliveryStreet] => Worle Football Club
[description] =>
[driverRef] => Lewis Newman
[externalCustomerId] => 499326000046966136
[externalLocationId] => 499326000046966140
[externalOrderId] => 499326000048825178
[id] => qv5hgbux769xpa4
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] => Collect 1 x Brue Keg and empties
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00455
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Delivered
[syncInCreated] => 2025-09-29 12:23:18.000Z
[syncInStatus] => closed
[syncInUpdated] => 2025-10-03 18:35:43.000Z
[syncOutStatus] => ARRIVED
[syncOutUpdated] => 2025-10-03 18:35:00.000Z
[timeWindows] => Array
(
)
[title] => Concierge Events
[totalValue] => 270
[totalWeight] => 124
[type] =>
[updated] => 2025-10-03 18:36:03.322Z
[vehicleRef] => WD25HWY
[what3Words] =>
)
Updating source from local order
Getting custom fields
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-07-18 02:35:52.065Z
[id] => nc7sndad5bhvi5x
[inCollection] => orders
[inField] => paymentMethod
[mappedField] => 7DCPayment
[name] => Payment method
[sourceField] =>
[syncFromSource] => 1
[syncToSource] =>
[type] => text
[updated] => 2025-07-18 02:35:52.065Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Processing field
Mapped field: 7DCEmpties
Custom fields: Array
(
[0] => Array
(
[id] => yt2l2o3cacu43wf
[value] => 8
)
[1] => Array
(
[id] => j381owny56syys6
[value] => 1
)
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Custom field: Array
(
[id] => yt2l2o3cacu43wf
[value] => 8
)
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
Processing field
Mapped field: 7DCEmptiesGas
Custom fields: Array
(
[0] => Array
(
[id] => yt2l2o3cacu43wf
[value] => 8
)
[1] => Array
(
[id] => j381owny56syys6
[value] => 1
)
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
Custom field: Array
(
[id] => j381owny56syys6
[value] => 1
)
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:03:34.631Z
[id] => pcn96l3kgkps4az
[inCollection] => orders
[inField] => driverRef
[mappedField] =>
[name] => Delivery driver
[sourceField] => cf_delivery_driver
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:03:34.631Z
)
Processing field
driverRef...
Value: Lewis Newman
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-08 04:52:51.399Z
[id] => hhrzcmytzs8p3kw
[inCollection] => orders
[inField] => seqNo
[mappedField] =>
[name] => Run number
[sourceField] => cf_run_number
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-08 04:52:51.399Z
)
Processing field
seqNo...
Value: 1
Finished processing field
Continue
Updating source order: Array
(
[custom_fields] => Array
(
[0] => Array
(
[api_name] => cf_empties_collected
[value] => 8
)
[1] => Array
(
[api_name] => cf_gas_empties_collected
[value] => 1
)
[2] => Array
(
[api_name] => cf_delivery_driver
[value] => Lewis Newman
)
[3] => Array
(
[api_name] => cf_run_number
[value] => 1
)
)
)
Update result: Array
(
[code] => 0
[message] => Sales Order has been updated.
[salesorder] => Array
(
[salesorder_id] => 499326000048825178
[is_viewed_in_mail] =>
[mail_first_viewed_time] =>
[mail_last_viewed_time] =>
[documents] => Array
(
)
[zcrm_potential_id] =>
[zcrm_potential_name] =>
[salesorder_number] => SO-00455
[date] => 2025-10-03
[offline_created_date_with_time] =>
[tracking_url] =>
[has_discount] =>
[status] => confirmed
[color_code] =>
[current_sub_status_id] =>
[current_sub_status] => closed
[sub_statuses] => Array
(
)
[shipment_date] => 2025-10-03
[reference_number] =>
[customer_id] => 499326000046966136
[customer_name] => Concierge Events
[contact_persons] => Array
(
[0] => 499326000047525212
)
[contact_persons_associated] => Array
(
[0] => Array
(
[contact_person_id] => 499326000047525212
[contact_person_email] => wayne.hadley@conciergeuk.co.uk
[first_name] => Wayne
[last_name] => Hadley
[mobile] =>
[communication_preference] => Array
(
[is_email_enabled] => 1
)
)
)
[contact_person_details] => Array
(
[0] => Array
(
[phone] =>
[mobile] =>
[last_name] => Hadley
[contact_person_id] => 499326000047525212
[first_name] => Wayne
[email] => wayne.hadley@conciergeuk.co.uk
)
)
[source] => Api
[contact_category] => uk
[is_taxable] =>
[has_shipping_address] => 1
[currency_id] => 499326000000000065
[currency_code] => GBP
[currency_symbol] => £
[exchange_rate] => 1
[is_discount_before_tax] => 1
[discount_type] => item_level
[estimate_id] =>
[delivery_method] =>
[delivery_method_id] =>
[vat_treatment] => uk
[is_inclusive_tax] =>
[tax_rounding] => entity_level
[tax_override_preference] => no_override
[order_status] => closed
[invoiced_status] => invoiced
[paid_status] => unpaid
[shipped_status] => pending
[sales_channel] => direct_sales
[sales_channel_formatted] => Direct Sales
[account_identifier] =>
[integration_id] =>
[is_dropshipped] =>
[is_backordered] =>
[is_manually_fulfilled] =>
[can_manually_fulfill] => 1
[has_qty_cancelled] =>
[is_reverse_charge_applied] =>
[shipping_details] => Array
(
)
[created_by_email] => sophie@7daycellar.co.uk
[created_by_name] => Sophie Redman
[branch_id] => 499326000023111007
[branch_name] => Head Office
[location_id] => 499326000023111007
[location_name] => Head Office
[total_quantity] => 2
[line_items] => Array
(
[0] => Array
(
[line_item_id] => 499326000048825184
[variant_id] => 499326000000061367
[track_batch_number] =>
[item_id] => 499326000000061367
[is_returnable] =>
[product_id] => 499326000000061367
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] => BBG-SNML-50LK
[name] => San Miguel 11G
[group_name] => San Miguel 11G
[description] =>
[item_order] => 0
[bcy_rate] => 130
[rate] => 130
[sales_rate] => 146.95
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 26
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 130
[item_sub_total] => 130
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] => San Miguel.png
[image_type] => png
[document_id] => 499326000044988871
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 1
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] => 62
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
[1] => Array
(
[line_item_id] => 499326000048825186
[variant_id] => 499326000000063923
[track_batch_number] =>
[item_id] => 499326000000063923
[is_returnable] =>
[product_id] => 499326000000063923
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] => TTCG-GOLD-50LK
[name] => Thatcher's Gold Cider 11g
[group_name] => Thatcher's Gold Cider 11g
[description] =>
[item_order] => 1
[bcy_rate] => 95
[rate] => 95
[sales_rate] => 110.99
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 19
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 95
[item_sub_total] => 95
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] => Thatchers Gold Badge.png
[image_type] => png
[document_id] => 499326000044989043
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 1
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] => 62
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
)
[is_advanced_tracking_missing] =>
[entity_tags] =>
[submitter_id] =>
[approver_id] =>
[submitted_date] =>
[submitted_by] =>
[submitted_by_name] =>
[submitted_by_email] =>
[submitted_by_photo_url] =>
[price_precision] => 2
[is_emailed] =>
[has_unconfirmed_line_item] =>
[picklists] => Array
(
)
[purchaseorders] => Array
(
)
[locations] => Array
(
[0] => Array
(
[location_id] => 499326000023111007
[location_name] => Head Office
[status] => active
)
[1] => Array
(
[location_id] => 499326000041689155
[location_name] => Bason Bridge Brewery Duty Bonded Warehouse
[status] => active
)
)
[billing_address_id] => 499326000046966138
[billing_address] => Array
(
[address] => 21 North St
[street2] =>
[city] => Weston Super Mare
[state] =>
[zip] =>
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[shipping_address_id] => 499326000046966140
[shipping_address] => Array
(
[company_name] =>
[address] => Worle Football Club
[street2] => Station Road
[city] => Worle
[state] => Weston Super Mare
[zip] => BS22 6AH
[country] => United Kingdom
[country_code] => GB
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[is_test_order] =>
[notes] => Account Name: 7 Day Cellar Ltd
Sort Code: 09-01-30
Account No: 10888924
[terms] =>
[payment_terms] => 7
[payment_terms_label] => Net 7
[custom_fields] => Array
(
[0] => Array
(
[field_id] => 499326000042690007
[customfield_id] => 499326000042690007
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 1
[label] => Automation Required
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[is_color_code_supported] =>
[api_name] => cf__ulrql_automation_required
[show_in_all_pdf] =>
[selected_option_id] => 499326000042690011
[value_formatted] => Yes
[search_entity] => salesorder
[data_type] => dropdown
[placeholder] => cf__ulrql_automation_required
[value] => Yes
[is_dependent_field] =>
)
[1] => Array
(
[field_id] => 499326000046047547
[customfield_id] => 499326000046047547
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 2
[label] => Keg Empties Collected
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_empties_collected
[show_in_all_pdf] =>
[value_formatted] => 8
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_empties_collected
[value] => 8
[is_dependent_field] =>
)
[2] => Array
(
[field_id] => 499326000046252143
[customfield_id] => 499326000046252143
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 3
[label] => Delivery Instructions
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_instructions
[show_in_all_pdf] =>
[value_formatted] => Collect 1 x Brue Keg and empties
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_instructions
[value] => Collect 1 x Brue Keg and empties
[is_dependent_field] =>
)
[3] => Array
(
[field_id] => 499326000046252153
[customfield_id] => 499326000046252153
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 4
[label] => Gas Empties Collected
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_gas_empties_collected
[show_in_all_pdf] =>
[value_formatted] => 1
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_gas_empties_collected
[value] => 1
[is_dependent_field] =>
)
[4] => Array
(
[field_id] => 499326000046252173
[customfield_id] => 499326000046252173
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 5
[label] => Delivery Driver
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_driver
[show_in_all_pdf] =>
[value_formatted] => Lewis Newman
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_driver
[value] => Lewis Newman
[is_dependent_field] =>
)
[5] => Array
(
[field_id] => 499326000046717945
[customfield_id] => 499326000046717945
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 6
[label] => GoCardless Mandate
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_gocardless_mandate
[show_in_all_pdf] =>
[value_formatted] => True
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_gocardless_mandate
[value] => True
[is_dependent_field] =>
)
[6] => Array
(
[field_id] => 499326000047922345
[customfield_id] => 499326000047922345
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 7
[label] => Run Number
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_run_number
[show_in_all_pdf] =>
[value_formatted] => 1
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_run_number
[value] => 1
[is_dependent_field] =>
)
)
[custom_field_hash] => Array
(
[cf__ulrql_automation_required] => Yes
[cf__ulrql_automation_required_unformatted] => Yes
[cf_empties_collected] => 8
[cf_empties_collected_unformatted] => 8
[cf_delivery_instructions] => Collect 1 x Brue Keg and empties
[cf_delivery_instructions_unformatted] => Collect 1 x Brue Keg and empties
[cf_gas_empties_collected] => 1
[cf_gas_empties_collected_unformatted] => 1
[cf_delivery_driver] => Lewis Newman
[cf_delivery_driver_unformatted] => Lewis Newman
[cf_gocardless_mandate] => True
[cf_gocardless_mandate_unformatted] => True
[cf_run_number] => 1
[cf_run_number_unformatted] => 1
)
[template_id] => 499326000000000111
[template_name] => Standard Template
[page_width] => 8.27in
[page_height] => 11.69in
[orientation] => portrait
[template_type] => standard
[created_time] => 2025-09-29T13:23:18+0100
[last_modified_time] => 2025-10-03T19:36:03+0100
[created_by_id] => 499326000044308001
[created_date] => 2025-09-29
[last_modified_by_id] => 499326000044410001
[attachment_name] =>
[can_send_in_mail] =>
[salesperson_id] => 499326000044620336
[salesperson_name] => Sophie Redman
[merchant_id] =>
[merchant_name] =>
[pickup_location_id] =>
[discount] => 0
[discount_applied_on_amount] => 0
[is_adv_tracking_in_package] =>
[shipping_charge_taxes] => Array
(
)
[lock_details] => Array
(
[can_lock] =>
)
[locked_actions] => Array
(
)
[shipping_charge_tax_id] =>
[shipping_charge_tax_name] =>
[shipping_charge_tax_type] =>
[shipping_charge_tax_percentage] =>
[shipping_charge_tax_exemption_id] =>
[shipping_charge_tax_exemption_code] =>
[shipping_charge_tax] =>
[bcy_shipping_charge_tax] =>
[shipping_charge_exclusive_of_tax] => 0
[shipping_charge_inclusive_of_tax] => 0
[shipping_charge_tax_formatted] =>
[shipping_charge_exclusive_of_tax_formatted] => £0.00
[shipping_charge_inclusive_of_tax_formatted] => £0.00
[shipping_charge] => 0
[bcy_shipping_charge] => 0
[adjustment] => 0
[bcy_adjustment] => 0
[adjustment_description] => Adjustment
[roundoff_value] => 0
[transaction_rounding_type] => no_rounding
[rounding_mode] => round_half_up
[bcy_rounding_mode] => round_half_up
[sub_total] => 225
[bcy_sub_total] => 225
[sub_total_inclusive_of_tax] => 0
[sub_total_exclusive_of_discount] => 225
[discount_total] => 0
[bcy_discount_total] => 0
[discount_percent] => 0
[tax_total] => 45
[bcy_tax_total] => 45
[total] => 270
[computation_type] => basic
[bcy_total] => 270
[reverse_charge_tax_total] => 0
[taxes] => Array
(
[0] => Array
(
[tax_amount] => 45
[tax_name] => Standard Rate
[tax_amount_formatted] => £45.00
)
)
[tds_calculation_type] => tds_item_level
[packages] => Array
(
)
[so_cycle_preference] => Array
(
[is_feature_enabled] => 1
[socycle_status] => not_triggered
[can_create_invoice] => 1
[can_create_package] =>
[can_create_shipment] =>
[shipment_preference] => Array
(
[default_carrier] =>
[send_notification] =>
[deliver_shipments] =>
)
[invoice_preference] => Array
(
[mark_as_sent] =>
[record_payment] =>
[payment_mode_id] => 499326000000000199
[payment_account_id] => 499326000000000349
)
)
[invoices] => Array
(
[0] => Array
(
[invoice_id] => 499326000049016378
[invoice_number] => INV-26126
[reference_number] => SO-00455
[status] => sent
[date] => 2025-10-03
[due_date] => 2025-10-10
[total] => 156
[balance] => 156
)
)
[can_show_kit_return] =>
[is_kit_partial_return] =>
[salesreturns] => Array
(
)
[payments] => Array
(
)
[creditnotes] => Array
(
)
[refunds] => Array
(
)
[contact] => Array
(
[customer_balance] => 420
[credit_limit] => 0
[unused_customer_credits] => 0
[is_credit_limit_migration_completed] => 1
)
[balance] => 270
[approvers_list] => Array
(
)
[is_scheduled_for_quick_shipment_create] =>
)
)
Webhook - destinationUpdated script called at 2025-10-03 19:36:07
JSON: {"payload":{"orderReference":"SO-00462","status":"DRIVING"},"timestamp":"2025-10-03T18:36:07Z"}
REF: SO-00462
Filter: refId="SO-00462"
200 response code sent
Local item: {"addons":[],"attachments":[],"collectionEnd":"","collectionId":"s93ukjlitoinx2e","collectionInstructions":"","collectionName":"orders","collectionStart":"","company":"1kmltj8w8rnhbfx","contactEmail":"info@yosc.co.uk","contactName":"Andy Lathall","contactNotes":"","contactPhone":"","created":"2025-10-01 08:59:17.505Z","custom":[],"customer":"2c3n2ko6gnqor0c","deliveryCity":"Yate","deliveryCounty":"","deliveryEnd":"2025-10-03 00:00:00.000Z","deliveryInstructions":"","deliveryName":"Yate Outdoor Sports Complex","deliveryPostcode":"BS37 7LB","deliveryStart":"2025-10-03 00:00:00.000Z","deliveryStreet":"Broad Lane","description":"","driverRef":"Lewis Newman","externalCustomerId":"499326000046812601","externalLocationId":"499326000046812607","externalOrderId":"499326000048962039","id":"4dmkrivudjy63aj","isCancelled":false,"isCollection":false,"isReadyToSync":true,"isScheduledCollection":false,"isScheduledDelivery":false,"isUntracked":false,"mergeRef":"","notes":"","orderedAt":"","overrideVolume":0,"overrideWeight":0,"paymentMethod":"","pendingSyncFromDestination":false,"pendingSyncFromSource":false,"pendingSyncToDestination":false,"pendingSyncToSource":false,"ref":"","refId":"SO-00462","requestedDeliveryDays":"","seqNo":"1","signature":"","signatureName":"","signatureTime":"","statusCollection":"","statusDelivery":"Pending","syncInCreated":"2025-10-01 08:58:49.000Z","syncInStatus":"closed","syncInUpdated":"2025-10-03 07:17:20.000Z","syncOutStatus":"UNALLOCATED","syncOutUpdated":"2025-10-03 07:17:00.000Z","timeWindows":[],"title":"Yate Outdoor Sports Complex","totalValue":302.32999999999998408384271897375583648681640625,"totalWeight":101,"type":"","updated":"2025-10-03 18:33:31.354Z","vehicleRef":"WD25HWY","what3Words":""}
Updating local order from MaxOptra - current local order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => info@yosc.co.uk
[contactName] => Andy Lathall
[contactNotes] =>
[contactPhone] =>
[created] => 2025-10-01 08:59:17.505Z
[custom] => Array
(
)
[customer] => 2c3n2ko6gnqor0c
[deliveryCity] => Yate
[deliveryCounty] =>
[deliveryEnd] => 2025-10-03 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Yate Outdoor Sports Complex
[deliveryPostcode] => BS37 7LB
[deliveryStart] => 2025-10-03 00:00:00.000Z
[deliveryStreet] => Broad Lane
[description] =>
[driverRef] => Lewis Newman
[externalCustomerId] => 499326000046812601
[externalLocationId] => 499326000046812607
[externalOrderId] => 499326000048962039
[id] => 4dmkrivudjy63aj
[isCancelled] =>
[isCollection] =>
[isReadyToSync] => 1
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] =>
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00462
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Pending
[syncInCreated] => 2025-10-01 08:58:49.000Z
[syncInStatus] => closed
[syncInUpdated] => 2025-10-03 07:17:20.000Z
[syncOutStatus] => UNALLOCATED
[syncOutUpdated] => 2025-10-03 07:17:00.000Z
[timeWindows] => Array
(
)
[title] => Yate Outdoor Sports Complex
[totalValue] => 302.33
[totalWeight] => 101
[type] =>
[updated] => 2025-10-03 18:33:31.354Z
[vehicleRef] => WD25HWY
[what3Words] =>
)
MaxOptra order details: Array
(
[0] => Array
(
[referenceNumber] => SO-00462
[consignmentReference] =>
[distributionCentreReference] => Head Office
[distributionCentreName] => Head Office
[task] => DELIVERY
[priority] => NORMAL
[vehicleRequirements] => Array
(
)
[additionalInstructions] =>
[clientName] => Yate Outdoors Sports Complex
[contactPerson] => Andy Lathall
[contactNumber] =>
[contactEmail] => info@yosc.co.uk
[additionalContactEmails] =>
[notificationPreferences] => Array
(
[allowSMS] => 1
[allowEmail] => 1
)
[customerLocation] => Array
(
[referenceNumber] => 499326000046812607
[name] => Yate Outdoor Sports Complex, Broad Lane, Yate
[address] => BS37 7LB
[w3wAddress] =>
[latitude] => 51.55152
[longitude] => -2.42615
)
[territoryReference] =>
[stopSequence] => ANY
[timeWindows] => Array
(
[0] => Array
(
[start] => 2025-10-03T06:00:00+01:00
[end] => 2025-10-03T23:00:00+01:00
)
)
[orderDate] =>
[capacity1] => 101
[capacity2] => 0
[price] => 0
[operationDuration] => 451
[customFields] => Array
(
)
[orderItems] => Array
(
[0] => Array
(
[itemReferenceNumber] => 499326000000061781
[orderReferenceNumber] => SO-00462
[name] => Peroni Nastro Azzuro 11g
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 156.99
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 0
[height] => 0
[width] => 0
[length] => 0
[weight] => 62
[volume] => 0
)
[1] => Array
(
[itemReferenceNumber] => 499326000039253885
[orderReferenceNumber] => SO-00462
[name] => Level Head IPA
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 94.95
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 0
[height] => 0
[width] => 0
[length] => 0
[weight] => 39
[volume] => 0
)
)
[widgetTrackingDetails] =>
)
)
MaxOptra schedule details: Array
(
[orderReferenceNumber] => SO-00462
[assignedDriverReference] => Lewis Newman
[assignedDriverName] => Lewis Newman
[assignedVehicleReference] => WD25HWY
[assignedVehicleName] => WD25HWY
[plannedArrivalTime] => 2025-10-03T20:47:32+01:00
[plannedCompletionTime] => 2025-10-03T20:55:03+01:00
[stopNumber] => 2
[totalStopsInRun] => 3
[runNumber] => 1
[runReference] => 857f789e3cd84449a35e057ccd96d6e0
[eta] => 2025-10-03T20:16:23+01:00
[factArrivalTimeGPS] =>
[factCompletionTimeGPS] =>
[factArrivalTimeReported] => 2025-10-03T19:36:07+01:00
[factCompletionTimeReported] =>
[failReason] =>
[failComment] =>
[status] => ARRIVED
[driver] => Lewis Newman
[arrival_planned] => 2025-10-03T20:47:32+01:00
[arrival_estimated] => 2025-10-03T20:16:23+01:00
[arrival_actual] => 2025-10-03T19:36:07+01:00
[totalStops] => 3
)
Updating order: SO-00462
Update ID 4dmkrivudjy63aj with: Array
(
[custom] => Array
(
)
[driverRef] => Lewis Newman
[vehicleRef] => WD25HWY
[seqNo] => 1
)
Updated order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => info@yosc.co.uk
[contactName] => Andy Lathall
[contactNotes] =>
[contactPhone] =>
[created] => 2025-10-01 08:59:17.505Z
[custom] => Array
(
)
[customer] => 2c3n2ko6gnqor0c
[deliveryCity] => Yate
[deliveryCounty] =>
[deliveryEnd] => 2025-10-03 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Yate Outdoor Sports Complex
[deliveryPostcode] => BS37 7LB
[deliveryStart] => 2025-10-03 00:00:00.000Z
[deliveryStreet] => Broad Lane
[description] =>
[driverRef] => Lewis Newman
[externalCustomerId] => 499326000046812601
[externalLocationId] => 499326000046812607
[externalOrderId] => 499326000048962039
[id] => 4dmkrivudjy63aj
[isCancelled] =>
[isCollection] =>
[isReadyToSync] => 1
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] =>
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00462
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Pending
[syncInCreated] => 2025-10-01 08:58:49.000Z
[syncInStatus] => closed
[syncInUpdated] => 2025-10-03 07:17:20.000Z
[syncOutStatus] => UNALLOCATED
[syncOutUpdated] => 2025-10-03 07:17:00.000Z
[timeWindows] => Array
(
)
[title] => Yate Outdoor Sports Complex
[totalValue] => 302.33
[totalWeight] => 101
[type] =>
[updated] => 2025-10-03 18:36:08.240Z
[vehicleRef] => WD25HWY
[what3Words] =>
)
Updating source from local order
Getting custom fields
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-07-18 02:35:52.065Z
[id] => nc7sndad5bhvi5x
[inCollection] => orders
[inField] => paymentMethod
[mappedField] => 7DCPayment
[name] => Payment method
[sourceField] =>
[syncFromSource] => 1
[syncToSource] =>
[type] => text
[updated] => 2025-07-18 02:35:52.065Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Processing field
Mapped field: 7DCEmpties
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
Processing field
Mapped field: 7DCEmptiesGas
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:03:34.631Z
[id] => pcn96l3kgkps4az
[inCollection] => orders
[inField] => driverRef
[mappedField] =>
[name] => Delivery driver
[sourceField] => cf_delivery_driver
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:03:34.631Z
)
Processing field
driverRef...
Value: Lewis Newman
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-08 04:52:51.399Z
[id] => hhrzcmytzs8p3kw
[inCollection] => orders
[inField] => seqNo
[mappedField] =>
[name] => Run number
[sourceField] => cf_run_number
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-08 04:52:51.399Z
)
Processing field
seqNo...
Value: 1
Finished processing field
Continue
Updating source order: Array
(
[custom_fields] => Array
(
[0] => Array
(
[api_name] => cf_delivery_driver
[value] => Lewis Newman
)
[1] => Array
(
[api_name] => cf_run_number
[value] => 1
)
)
)
Webhook - destinationUpdated script called at 2025-10-03 19:36:08
JSON: {"payload":{"orderReference":"SO-00462","status":"ARRIVED"},"timestamp":"2025-10-03T18:36:08Z"}
REF: SO-00462
Filter: refId="SO-00462"
200 response code sent
Local item: {"addons":[],"attachments":[],"collectionEnd":"","collectionId":"s93ukjlitoinx2e","collectionInstructions":"","collectionName":"orders","collectionStart":"","company":"1kmltj8w8rnhbfx","contactEmail":"info@yosc.co.uk","contactName":"Andy Lathall","contactNotes":"","contactPhone":"","created":"2025-10-01 08:59:17.505Z","custom":[],"customer":"2c3n2ko6gnqor0c","deliveryCity":"Yate","deliveryCounty":"","deliveryEnd":"2025-10-03 00:00:00.000Z","deliveryInstructions":"","deliveryName":"Yate Outdoor Sports Complex","deliveryPostcode":"BS37 7LB","deliveryStart":"2025-10-03 00:00:00.000Z","deliveryStreet":"Broad Lane","description":"","driverRef":"Lewis Newman","externalCustomerId":"499326000046812601","externalLocationId":"499326000046812607","externalOrderId":"499326000048962039","id":"4dmkrivudjy63aj","isCancelled":false,"isCollection":false,"isReadyToSync":true,"isScheduledCollection":false,"isScheduledDelivery":false,"isUntracked":false,"mergeRef":"","notes":"","orderedAt":"","overrideVolume":0,"overrideWeight":0,"paymentMethod":"","pendingSyncFromDestination":false,"pendingSyncFromSource":false,"pendingSyncToDestination":false,"pendingSyncToSource":false,"ref":"","refId":"SO-00462","requestedDeliveryDays":"","seqNo":"1","signature":"","signatureName":"","signatureTime":"","statusCollection":"","statusDelivery":"Pending","syncInCreated":"2025-10-01 08:58:49.000Z","syncInStatus":"closed","syncInUpdated":"2025-10-03 07:17:20.000Z","syncOutStatus":"UNALLOCATED","syncOutUpdated":"2025-10-03 07:17:00.000Z","timeWindows":[],"title":"Yate Outdoor Sports Complex","totalValue":302.32999999999998408384271897375583648681640625,"totalWeight":101,"type":"","updated":"2025-10-03 18:36:08.240Z","vehicleRef":"WD25HWY","what3Words":""}
Updating local order from MaxOptra - current local order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => info@yosc.co.uk
[contactName] => Andy Lathall
[contactNotes] =>
[contactPhone] =>
[created] => 2025-10-01 08:59:17.505Z
[custom] => Array
(
)
[customer] => 2c3n2ko6gnqor0c
[deliveryCity] => Yate
[deliveryCounty] =>
[deliveryEnd] => 2025-10-03 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Yate Outdoor Sports Complex
[deliveryPostcode] => BS37 7LB
[deliveryStart] => 2025-10-03 00:00:00.000Z
[deliveryStreet] => Broad Lane
[description] =>
[driverRef] => Lewis Newman
[externalCustomerId] => 499326000046812601
[externalLocationId] => 499326000046812607
[externalOrderId] => 499326000048962039
[id] => 4dmkrivudjy63aj
[isCancelled] =>
[isCollection] =>
[isReadyToSync] => 1
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] =>
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00462
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Pending
[syncInCreated] => 2025-10-01 08:58:49.000Z
[syncInStatus] => closed
[syncInUpdated] => 2025-10-03 07:17:20.000Z
[syncOutStatus] => UNALLOCATED
[syncOutUpdated] => 2025-10-03 07:17:00.000Z
[timeWindows] => Array
(
)
[title] => Yate Outdoor Sports Complex
[totalValue] => 302.33
[totalWeight] => 101
[type] =>
[updated] => 2025-10-03 18:36:08.240Z
[vehicleRef] => WD25HWY
[what3Words] =>
)
MaxOptra order details: Array
(
[0] => Array
(
[referenceNumber] => SO-00462
[consignmentReference] =>
[distributionCentreReference] => Head Office
[distributionCentreName] => Head Office
[task] => DELIVERY
[priority] => NORMAL
[vehicleRequirements] => Array
(
)
[additionalInstructions] =>
[clientName] => Yate Outdoors Sports Complex
[contactPerson] => Andy Lathall
[contactNumber] =>
[contactEmail] => info@yosc.co.uk
[additionalContactEmails] =>
[notificationPreferences] => Array
(
[allowSMS] => 1
[allowEmail] => 1
)
[customerLocation] => Array
(
[referenceNumber] => 499326000046812607
[name] => Yate Outdoor Sports Complex, Broad Lane, Yate
[address] => BS37 7LB
[w3wAddress] =>
[latitude] => 51.55152
[longitude] => -2.42615
)
[territoryReference] =>
[stopSequence] => ANY
[timeWindows] => Array
(
[0] => Array
(
[start] => 2025-10-03T06:00:00+01:00
[end] => 2025-10-03T23:00:00+01:00
)
)
[orderDate] =>
[capacity1] => 101
[capacity2] => 0
[price] => 0
[operationDuration] => 451
[customFields] => Array
(
)
[orderItems] => Array
(
[0] => Array
(
[itemReferenceNumber] => 499326000000061781
[orderReferenceNumber] => SO-00462
[name] => Peroni Nastro Azzuro 11g
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 156.99
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 0
[height] => 0
[width] => 0
[length] => 0
[weight] => 62
[volume] => 0
)
[1] => Array
(
[itemReferenceNumber] => 499326000039253885
[orderReferenceNumber] => SO-00462
[name] => Level Head IPA
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 94.95
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 0
[height] => 0
[width] => 0
[length] => 0
[weight] => 39
[volume] => 0
)
)
[widgetTrackingDetails] =>
)
)
MaxOptra schedule details: Array
(
[orderReferenceNumber] => SO-00462
[assignedDriverReference] => Lewis Newman
[assignedDriverName] => Lewis Newman
[assignedVehicleReference] => WD25HWY
[assignedVehicleName] => WD25HWY
[plannedArrivalTime] => 2025-10-03T20:47:32+01:00
[plannedCompletionTime] => 2025-10-03T20:55:03+01:00
[stopNumber] => 2
[totalStopsInRun] => 3
[runNumber] => 1
[runReference] => 857f789e3cd84449a35e057ccd96d6e0
[eta] => 2025-10-03T20:16:23+01:00
[factArrivalTimeGPS] =>
[factCompletionTimeGPS] =>
[factArrivalTimeReported] => 2025-10-03T19:36:07+01:00
[factCompletionTimeReported] =>
[failReason] =>
[failComment] =>
[status] => ARRIVED
[driver] => Lewis Newman
[arrival_planned] => 2025-10-03T20:47:32+01:00
[arrival_estimated] => 2025-10-03T20:16:23+01:00
[arrival_actual] => 2025-10-03T19:36:07+01:00
[totalStops] => 3
)
Updating order: SO-00462
Update ID 4dmkrivudjy63aj with: Array
(
[custom] => Array
(
)
[driverRef] => Lewis Newman
[vehicleRef] => WD25HWY
[seqNo] => 1
)
Updated order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => info@yosc.co.uk
[contactName] => Andy Lathall
[contactNotes] =>
[contactPhone] =>
[created] => 2025-10-01 08:59:17.505Z
[custom] => Array
(
)
[customer] => 2c3n2ko6gnqor0c
[deliveryCity] => Yate
[deliveryCounty] =>
[deliveryEnd] => 2025-10-03 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Yate Outdoor Sports Complex
[deliveryPostcode] => BS37 7LB
[deliveryStart] => 2025-10-03 00:00:00.000Z
[deliveryStreet] => Broad Lane
[description] =>
[driverRef] => Lewis Newman
[externalCustomerId] => 499326000046812601
[externalLocationId] => 499326000046812607
[externalOrderId] => 499326000048962039
[id] => 4dmkrivudjy63aj
[isCancelled] =>
[isCollection] =>
[isReadyToSync] => 1
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] =>
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00462
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Pending
[syncInCreated] => 2025-10-01 08:58:49.000Z
[syncInStatus] => closed
[syncInUpdated] => 2025-10-03 07:17:20.000Z
[syncOutStatus] => UNALLOCATED
[syncOutUpdated] => 2025-10-03 07:17:00.000Z
[timeWindows] => Array
(
)
[title] => Yate Outdoor Sports Complex
[totalValue] => 302.33
[totalWeight] => 101
[type] =>
[updated] => 2025-10-03 18:36:08.877Z
[vehicleRef] => WD25HWY
[what3Words] =>
)
Updating source from local order
Getting custom fields
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-07-18 02:35:52.065Z
[id] => nc7sndad5bhvi5x
[inCollection] => orders
[inField] => paymentMethod
[mappedField] => 7DCPayment
[name] => Payment method
[sourceField] =>
[syncFromSource] => 1
[syncToSource] =>
[type] => text
[updated] => 2025-07-18 02:35:52.065Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Processing field
Mapped field: 7DCEmpties
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
Processing field
Mapped field: 7DCEmptiesGas
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:03:34.631Z
[id] => pcn96l3kgkps4az
[inCollection] => orders
[inField] => driverRef
[mappedField] =>
[name] => Delivery driver
[sourceField] => cf_delivery_driver
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:03:34.631Z
)
Processing field
driverRef...
Value: Lewis Newman
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-08 04:52:51.399Z
[id] => hhrzcmytzs8p3kw
[inCollection] => orders
[inField] => seqNo
[mappedField] =>
[name] => Run number
[sourceField] => cf_run_number
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-08 04:52:51.399Z
)
Processing field
seqNo...
Value: 1
Finished processing field
Continue
Updating source order: Array
(
[custom_fields] => Array
(
[0] => Array
(
[api_name] => cf_delivery_driver
[value] => Lewis Newman
)
[1] => Array
(
[api_name] => cf_run_number
[value] => 1
)
)
)
Update result: Array
(
[code] => 0
[message] => Sales Order has been updated.
[salesorder] => Array
(
[salesorder_id] => 499326000048962039
[is_viewed_in_mail] =>
[mail_first_viewed_time] =>
[mail_last_viewed_time] =>
[documents] => Array
(
)
[zcrm_potential_id] =>
[zcrm_potential_name] =>
[salesorder_number] => SO-00462
[date] => 2025-10-03
[offline_created_date_with_time] =>
[tracking_url] =>
[has_discount] =>
[status] => confirmed
[color_code] =>
[current_sub_status_id] =>
[current_sub_status] => closed
[sub_statuses] => Array
(
)
[shipment_date] => 2025-10-03
[reference_number] =>
[customer_id] => 499326000046812601
[customer_name] => Yate Outdoor Sports Complex
[contact_persons] => Array
(
[0] => 499326000047972643
)
[contact_persons_associated] => Array
(
[0] => Array
(
[contact_person_id] => 499326000047972643
[contact_person_email] => info@yosc.co.uk
[first_name] => Andy
[last_name] => Lathall
[mobile] =>
[communication_preference] => Array
(
[is_email_enabled] => 1
)
)
)
[contact_person_details] => Array
(
[0] => Array
(
[phone] =>
[mobile] =>
[last_name] => Lathall
[contact_person_id] => 499326000047972643
[first_name] => Andy
[email] => info@yosc.co.uk
)
)
[source] => Api
[contact_category] => uk
[is_taxable] =>
[has_shipping_address] => 1
[currency_id] => 499326000000000065
[currency_code] => GBP
[currency_symbol] => £
[exchange_rate] => 1
[is_discount_before_tax] => 1
[discount_type] => item_level
[estimate_id] =>
[delivery_method] =>
[delivery_method_id] =>
[vat_treatment] => uk
[is_inclusive_tax] =>
[tax_rounding] => entity_level
[tax_override_preference] => no_override
[order_status] => closed
[invoiced_status] => invoiced
[paid_status] => unpaid
[shipped_status] => pending
[sales_channel] => direct_sales
[sales_channel_formatted] => Direct Sales
[account_identifier] =>
[integration_id] =>
[is_dropshipped] =>
[is_backordered] =>
[is_manually_fulfilled] =>
[can_manually_fulfill] => 1
[has_qty_cancelled] =>
[is_reverse_charge_applied] =>
[shipping_details] => Array
(
)
[created_by_email] => sophie@7daycellar.co.uk
[created_by_name] => Sophie Redman
[branch_id] => 499326000023111007
[branch_name] => Head Office
[location_id] => 499326000023111007
[location_name] => Head Office
[total_quantity] => 2
[line_items] => Array
(
[0] => Array
(
[line_item_id] => 499326000048962045
[variant_id] => 499326000000061781
[track_batch_number] =>
[item_id] => 499326000000061781
[is_returnable] =>
[product_id] => 499326000000061781
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] => ASHI-PERO-50LK
[name] => Peroni Nastro Azzuro 11g
[group_name] => Peroni Nastro Azzuro 11g
[description] =>
[item_order] => 0
[bcy_rate] => 156.99
[rate] => 156.99
[sales_rate] => 174.95
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 31.4
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 156.99
[item_sub_total] => 156.99
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] => Peroni-fotor-20230731114457.jpg
[image_type] => jpg
[document_id] => 499326000044988787
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 1
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] => 62
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
[1] => Array
(
[line_item_id] => 499326000048962047
[variant_id] => 499326000039253885
[track_batch_number] =>
[item_id] => 499326000039253885
[is_returnable] =>
[product_id] => 499326000039253885
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] => GK-LLHD-30LK
[name] => Level Head IPA
[group_name] => Level Head IPA
[description] =>
[item_order] => 1
[bcy_rate] => 94.95
[rate] => 94.95
[sales_rate] => 94.95
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 18.99
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 94.95
[item_sub_total] => 94.95
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] => Level Head IPA.png
[image_type] => png
[document_id] => 499326000048546683
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 1
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] => 39
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
)
[is_advanced_tracking_missing] =>
[entity_tags] =>
[submitter_id] =>
[approver_id] =>
[submitted_date] =>
[submitted_by] =>
[submitted_by_name] =>
[submitted_by_email] =>
[submitted_by_photo_url] =>
[price_precision] => 2
[is_emailed] =>
[has_unconfirmed_line_item] =>
[picklists] => Array
(
)
[purchaseorders] => Array
(
)
[locations] => Array
(
[0] => Array
(
[location_id] => 499326000023111007
[location_name] => Head Office
[status] => active
)
[1] => Array
(
[location_id] => 499326000041689155
[location_name] => Bason Bridge Brewery Duty Bonded Warehouse
[status] => active
)
)
[billing_address_id] => 499326000046812607
[billing_address] => Array
(
[address] => Broad Lane
[street2] =>
[city] => Yate
[state] =>
[zip] => BS37 7LB
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[shipping_address_id] => 499326000046812609
[shipping_address] => Array
(
[company_name] =>
[address] =>
[street2] =>
[city] =>
[state] =>
[zip] =>
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[is_test_order] =>
[notes] => Account Name: 7 Day Cellar Ltd
Sort Code: 09-01-30
Account No: 10888924
[terms] =>
[payment_terms] => 7
[payment_terms_label] => Net 7
[custom_fields] => Array
(
[0] => Array
(
[field_id] => 499326000042690007
[customfield_id] => 499326000042690007
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 1
[label] => Automation Required
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[is_color_code_supported] =>
[api_name] => cf__ulrql_automation_required
[show_in_all_pdf] =>
[selected_option_id] => 499326000042690011
[value_formatted] => Yes
[search_entity] => salesorder
[data_type] => dropdown
[placeholder] => cf__ulrql_automation_required
[value] => Yes
[is_dependent_field] =>
)
[1] => Array
(
[field_id] => 499326000046252173
[customfield_id] => 499326000046252173
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 2
[label] => Delivery Driver
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_driver
[show_in_all_pdf] =>
[value_formatted] => Lewis Newman
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_driver
[value] => Lewis Newman
[is_dependent_field] =>
)
[2] => Array
(
[field_id] => 499326000047922345
[customfield_id] => 499326000047922345
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 3
[label] => Run Number
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_run_number
[show_in_all_pdf] =>
[value_formatted] => 1
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_run_number
[value] => 1
[is_dependent_field] =>
)
)
[custom_field_hash] => Array
(
[cf__ulrql_automation_required] => Yes
[cf__ulrql_automation_required_unformatted] => Yes
[cf_delivery_driver] => Lewis Newman
[cf_delivery_driver_unformatted] => Lewis Newman
[cf_run_number] => 1
[cf_run_number_unformatted] => 1
)
[template_id] => 499326000000000111
[template_name] => Standard Template
[page_width] => 8.27in
[page_height] => 11.69in
[orientation] => portrait
[template_type] => standard
[created_time] => 2025-10-01T09:58:49+0100
[last_modified_time] => 2025-10-03T19:36:08+0100
[created_by_id] => 499326000044308001
[created_date] => 2025-10-01
[last_modified_by_id] => 499326000044410001
[attachment_name] =>
[can_send_in_mail] =>
[salesperson_id] => 499326000044620336
[salesperson_name] => Sophie Redman
[merchant_id] =>
[merchant_name] =>
[pickup_location_id] =>
[discount] => 0
[discount_applied_on_amount] => 0
[is_adv_tracking_in_package] =>
[shipping_charge_taxes] => Array
(
)
[lock_details] => Array
(
[can_lock] =>
)
[locked_actions] => Array
(
)
[shipping_charge_tax_id] =>
[shipping_charge_tax_name] =>
[shipping_charge_tax_type] =>
[shipping_charge_tax_percentage] =>
[shipping_charge_tax_exemption_id] =>
[shipping_charge_tax_exemption_code] =>
[shipping_charge_tax] =>
[bcy_shipping_charge_tax] =>
[shipping_charge_exclusive_of_tax] => 0
[shipping_charge_inclusive_of_tax] => 0
[shipping_charge_tax_formatted] =>
[shipping_charge_exclusive_of_tax_formatted] => £0.00
[shipping_charge_inclusive_of_tax_formatted] => £0.00
[shipping_charge] => 0
[bcy_shipping_charge] => 0
[adjustment] => 0
[bcy_adjustment] => 0
[adjustment_description] => Adjustment
[roundoff_value] => 0
[transaction_rounding_type] => no_rounding
[rounding_mode] => round_half_up
[bcy_rounding_mode] => round_half_up
[sub_total] => 251.94
[bcy_sub_total] => 251.94
[sub_total_inclusive_of_tax] => 0
[sub_total_exclusive_of_discount] => 251.94
[discount_total] => 0
[bcy_discount_total] => 0
[discount_percent] => 0
[tax_total] => 50.39
[bcy_tax_total] => 50.39
[total] => 302.33
[computation_type] => basic
[bcy_total] => 302.33
[reverse_charge_tax_total] => 0
[taxes] => Array
(
[0] => Array
(
[tax_amount] => 50.39
[tax_name] => Standard Rate
[tax_amount_formatted] => £50.39
)
)
[tds_calculation_type] => tds_item_level
[packages] => Array
(
)
[so_cycle_preference] => Array
(
[is_feature_enabled] => 1
[socycle_status] => not_triggered
[can_create_invoice] => 1
[can_create_package] =>
[can_create_shipment] =>
[shipment_preference] => Array
(
[default_carrier] =>
[send_notification] =>
[deliver_shipments] =>
)
[invoice_preference] => Array
(
[mark_as_sent] =>
[record_payment] =>
[payment_mode_id] => 499326000000000199
[payment_account_id] => 499326000000000349
)
)
[invoices] => Array
(
[0] => Array
(
[invoice_id] => 499326000049016176
[invoice_number] => INV-26125
[reference_number] => SO-00462
[status] => sent
[date] => 2025-10-03
[due_date] => 2025-10-10
[total] => 302.33
[balance] => 302.33
)
)
[can_show_kit_return] =>
[is_kit_partial_return] =>
[salesreturns] => Array
(
)
[payments] => Array
(
)
[creditnotes] => Array
(
)
[refunds] => Array
(
)
[contact] => Array
(
[customer_balance] => 1628.27
[credit_limit] => 0
[unused_customer_credits] => 0
[is_credit_limit_migration_completed] => 1
)
[balance] => 302.33
[approvers_list] => Array
(
)
[is_scheduled_for_quick_shipment_create] =>
)
)
Update result: Array
(
[code] => 0
[message] => Sales Order has been updated.
[salesorder] => Array
(
[salesorder_id] => 499326000048962039
[is_viewed_in_mail] =>
[mail_first_viewed_time] =>
[mail_last_viewed_time] =>
[documents] => Array
(
)
[zcrm_potential_id] =>
[zcrm_potential_name] =>
[salesorder_number] => SO-00462
[date] => 2025-10-03
[offline_created_date_with_time] =>
[tracking_url] =>
[has_discount] =>
[status] => confirmed
[color_code] =>
[current_sub_status_id] =>
[current_sub_status] => closed
[sub_statuses] => Array
(
)
[shipment_date] => 2025-10-03
[reference_number] =>
[customer_id] => 499326000046812601
[customer_name] => Yate Outdoor Sports Complex
[contact_persons] => Array
(
[0] => 499326000047972643
)
[contact_persons_associated] => Array
(
[0] => Array
(
[contact_person_id] => 499326000047972643
[contact_person_email] => info@yosc.co.uk
[first_name] => Andy
[last_name] => Lathall
[mobile] =>
[communication_preference] => Array
(
[is_email_enabled] => 1
)
)
)
[contact_person_details] => Array
(
[0] => Array
(
[phone] =>
[mobile] =>
[last_name] => Lathall
[contact_person_id] => 499326000047972643
[first_name] => Andy
[email] => info@yosc.co.uk
)
)
[source] => Api
[contact_category] => uk
[is_taxable] =>
[has_shipping_address] => 1
[currency_id] => 499326000000000065
[currency_code] => GBP
[currency_symbol] => £
[exchange_rate] => 1
[is_discount_before_tax] => 1
[discount_type] => item_level
[estimate_id] =>
[delivery_method] =>
[delivery_method_id] =>
[vat_treatment] => uk
[is_inclusive_tax] =>
[tax_rounding] => entity_level
[tax_override_preference] => no_override
[order_status] => closed
[invoiced_status] => invoiced
[paid_status] => unpaid
[shipped_status] => pending
[sales_channel] => direct_sales
[sales_channel_formatted] => Direct Sales
[account_identifier] =>
[integration_id] =>
[is_dropshipped] =>
[is_backordered] =>
[is_manually_fulfilled] =>
[can_manually_fulfill] => 1
[has_qty_cancelled] =>
[is_reverse_charge_applied] =>
[shipping_details] => Array
(
)
[created_by_email] => sophie@7daycellar.co.uk
[created_by_name] => Sophie Redman
[branch_id] => 499326000023111007
[branch_name] => Head Office
[location_id] => 499326000023111007
[location_name] => Head Office
[total_quantity] => 2
[line_items] => Array
(
[0] => Array
(
[line_item_id] => 499326000048962045
[variant_id] => 499326000000061781
[track_batch_number] =>
[item_id] => 499326000000061781
[is_returnable] =>
[product_id] => 499326000000061781
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] => ASHI-PERO-50LK
[name] => Peroni Nastro Azzuro 11g
[group_name] => Peroni Nastro Azzuro 11g
[description] =>
[item_order] => 0
[bcy_rate] => 156.99
[rate] => 156.99
[sales_rate] => 174.95
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 31.4
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 156.99
[item_sub_total] => 156.99
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] => Peroni-fotor-20230731114457.jpg
[image_type] => jpg
[document_id] => 499326000044988787
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 1
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] => 62
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
[1] => Array
(
[line_item_id] => 499326000048962047
[variant_id] => 499326000039253885
[track_batch_number] =>
[item_id] => 499326000039253885
[is_returnable] =>
[product_id] => 499326000039253885
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] => GK-LLHD-30LK
[name] => Level Head IPA
[group_name] => Level Head IPA
[description] =>
[item_order] => 1
[bcy_rate] => 94.95
[rate] => 94.95
[sales_rate] => 94.95
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 18.99
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 94.95
[item_sub_total] => 94.95
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] => Level Head IPA.png
[image_type] => png
[document_id] => 499326000048546683
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 1
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] => 39
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
)
[is_advanced_tracking_missing] =>
[entity_tags] =>
[submitter_id] =>
[approver_id] =>
[submitted_date] =>
[submitted_by] =>
[submitted_by_name] =>
[submitted_by_email] =>
[submitted_by_photo_url] =>
[price_precision] => 2
[is_emailed] =>
[has_unconfirmed_line_item] =>
[picklists] => Array
(
)
[purchaseorders] => Array
(
)
[locations] => Array
(
[0] => Array
(
[location_id] => 499326000023111007
[location_name] => Head Office
[status] => active
)
[1] => Array
(
[location_id] => 499326000041689155
[location_name] => Bason Bridge Brewery Duty Bonded Warehouse
[status] => active
)
)
[billing_address_id] => 499326000046812607
[billing_address] => Array
(
[address] => Broad Lane
[street2] =>
[city] => Yate
[state] =>
[zip] => BS37 7LB
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[shipping_address_id] => 499326000046812609
[shipping_address] => Array
(
[company_name] =>
[address] =>
[street2] =>
[city] =>
[state] =>
[zip] =>
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[is_test_order] =>
[notes] => Account Name: 7 Day Cellar Ltd
Sort Code: 09-01-30
Account No: 10888924
[terms] =>
[payment_terms] => 7
[payment_terms_label] => Net 7
[custom_fields] => Array
(
[0] => Array
(
[field_id] => 499326000042690007
[customfield_id] => 499326000042690007
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 1
[label] => Automation Required
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[is_color_code_supported] =>
[api_name] => cf__ulrql_automation_required
[show_in_all_pdf] =>
[selected_option_id] => 499326000042690011
[value_formatted] => Yes
[search_entity] => salesorder
[data_type] => dropdown
[placeholder] => cf__ulrql_automation_required
[value] => Yes
[is_dependent_field] =>
)
[1] => Array
(
[field_id] => 499326000046252173
[customfield_id] => 499326000046252173
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 2
[label] => Delivery Driver
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_driver
[show_in_all_pdf] =>
[value_formatted] => Lewis Newman
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_driver
[value] => Lewis Newman
[is_dependent_field] =>
)
[2] => Array
(
[field_id] => 499326000047922345
[customfield_id] => 499326000047922345
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 3
[label] => Run Number
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_run_number
[show_in_all_pdf] =>
[value_formatted] => 1
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_run_number
[value] => 1
[is_dependent_field] =>
)
)
[custom_field_hash] => Array
(
[cf__ulrql_automation_required] => Yes
[cf__ulrql_automation_required_unformatted] => Yes
[cf_delivery_driver] => Lewis Newman
[cf_delivery_driver_unformatted] => Lewis Newman
[cf_run_number] => 1
[cf_run_number_unformatted] => 1
)
[template_id] => 499326000000000111
[template_name] => Standard Template
[page_width] => 8.27in
[page_height] => 11.69in
[orientation] => portrait
[template_type] => standard
[created_time] => 2025-10-01T09:58:49+0100
[last_modified_time] => 2025-10-03T19:36:09+0100
[created_by_id] => 499326000044308001
[created_date] => 2025-10-01
[last_modified_by_id] => 499326000044410001
[attachment_name] =>
[can_send_in_mail] =>
[salesperson_id] => 499326000044620336
[salesperson_name] => Sophie Redman
[merchant_id] =>
[merchant_name] =>
[pickup_location_id] =>
[discount] => 0
[discount_applied_on_amount] => 0
[is_adv_tracking_in_package] =>
[shipping_charge_taxes] => Array
(
)
[lock_details] => Array
(
[can_lock] =>
)
[locked_actions] => Array
(
)
[shipping_charge_tax_id] =>
[shipping_charge_tax_name] =>
[shipping_charge_tax_type] =>
[shipping_charge_tax_percentage] =>
[shipping_charge_tax_exemption_id] =>
[shipping_charge_tax_exemption_code] =>
[shipping_charge_tax] =>
[bcy_shipping_charge_tax] =>
[shipping_charge_exclusive_of_tax] => 0
[shipping_charge_inclusive_of_tax] => 0
[shipping_charge_tax_formatted] =>
[shipping_charge_exclusive_of_tax_formatted] => £0.00
[shipping_charge_inclusive_of_tax_formatted] => £0.00
[shipping_charge] => 0
[bcy_shipping_charge] => 0
[adjustment] => 0
[bcy_adjustment] => 0
[adjustment_description] => Adjustment
[roundoff_value] => 0
[transaction_rounding_type] => no_rounding
[rounding_mode] => round_half_up
[bcy_rounding_mode] => round_half_up
[sub_total] => 251.94
[bcy_sub_total] => 251.94
[sub_total_inclusive_of_tax] => 0
[sub_total_exclusive_of_discount] => 251.94
[discount_total] => 0
[bcy_discount_total] => 0
[discount_percent] => 0
[tax_total] => 50.39
[bcy_tax_total] => 50.39
[total] => 302.33
[computation_type] => basic
[bcy_total] => 302.33
[reverse_charge_tax_total] => 0
[taxes] => Array
(
[0] => Array
(
[tax_amount] => 50.39
[tax_name] => Standard Rate
[tax_amount_formatted] => £50.39
)
)
[tds_calculation_type] => tds_item_level
[packages] => Array
(
)
[so_cycle_preference] => Array
(
[is_feature_enabled] => 1
[socycle_status] => not_triggered
[can_create_invoice] => 1
[can_create_package] =>
[can_create_shipment] =>
[shipment_preference] => Array
(
[default_carrier] =>
[send_notification] =>
[deliver_shipments] =>
)
[invoice_preference] => Array
(
[mark_as_sent] =>
[record_payment] =>
[payment_mode_id] => 499326000000000199
[payment_account_id] => 499326000000000349
)
)
[invoices] => Array
(
[0] => Array
(
[invoice_id] => 499326000049016176
[invoice_number] => INV-26125
[reference_number] => SO-00462
[status] => sent
[date] => 2025-10-03
[due_date] => 2025-10-10
[total] => 302.33
[balance] => 302.33
)
)
[can_show_kit_return] =>
[is_kit_partial_return] =>
[salesreturns] => Array
(
)
[payments] => Array
(
)
[creditnotes] => Array
(
)
[refunds] => Array
(
)
[contact] => Array
(
[customer_balance] => 1628.27
[credit_limit] => 0
[unused_customer_credits] => 0
[is_credit_limit_migration_completed] => 1
)
[balance] => 302.33
[approvers_list] => Array
(
)
[is_scheduled_for_quick_shipment_create] =>
)
)
Webhook - sourceUpdated script called at 2025-10-03 19:36:17
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048825178","salesorder_no":"SO-00455","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048825178","salesorder_no":"SO-00455","status":"invoiced"}}
EXT ID: 499326000048825178
REF: SO-00455
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048825178 (REF SO-00455)
Local order updated = 2025-10-03 18:35:43.000Z,
source updated = 2025-10-03T19:36:03+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00455
Processing order: qv5hgbux769xpa4, ref SO-00455
Syncing SO-00455
Using default start and end times
Time window: 2025-10-03T06:00:00+01:00 - 2025-10-03T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 03/10/2025 19:36 - Local updated: 2025-10-03 18:35:00.000Z - Source updated: 2025-10-03 18:35:43.000Z
Changed? yes
Current MaxOptra status: COMPLETED
Completed? yes
Previous status: ARRIVED
Status changed - mark for sync back to source
Updating local order POD and attachments...
Don't have local POD - fetching...
Updated POD
Getting attachments for SO-00455...
No new attachments found
Is allocated? yes
Local updated: 2025-10-03 18:35:00.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Communication error with MaxOptra (412)
orders/SO-00455
https://7daycellar.maxoptra.com/api/v6/orders/SO-00455
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000046966140
Array
(
[referenceNumber] => 499326000046966140
[name] => Concierge Events, Worle Football Club, Worle
[address] => BS22 6AH
)
499326000046966140
Error updating SO-00455
"{\"data\":null,\"errors\":[{\"code\":\"ORDER_IS_LOCKED\",\"name\":\"The order is locked\",\"details\":null,\"field\":null}],\"warnings\":[]}"
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00455
Done all.
Finished at 2025-10-03 19:36:19
Webhook - destinationUpdated script called at 2025-10-03 19:36:33
JSON: {"payload":{"orderReference":"SO-00462","status":"COMPLETED"},"timestamp":"2025-10-03T18:36:33Z"}
REF: SO-00462
Filter: refId="SO-00462"
200 response code sent
Local item: {"addons":[],"attachments":[],"collectionEnd":"","collectionId":"s93ukjlitoinx2e","collectionInstructions":"","collectionName":"orders","collectionStart":"","company":"1kmltj8w8rnhbfx","contactEmail":"info@yosc.co.uk","contactName":"Andy Lathall","contactNotes":"","contactPhone":"","created":"2025-10-01 08:59:17.505Z","custom":[],"customer":"2c3n2ko6gnqor0c","deliveryCity":"Yate","deliveryCounty":"","deliveryEnd":"2025-10-03 00:00:00.000Z","deliveryInstructions":"","deliveryName":"Yate Outdoor Sports Complex","deliveryPostcode":"BS37 7LB","deliveryStart":"2025-10-03 00:00:00.000Z","deliveryStreet":"Broad Lane","description":"","driverRef":"Lewis Newman","externalCustomerId":"499326000046812601","externalLocationId":"499326000046812607","externalOrderId":"499326000048962039","id":"4dmkrivudjy63aj","isCancelled":false,"isCollection":false,"isReadyToSync":true,"isScheduledCollection":false,"isScheduledDelivery":false,"isUntracked":false,"mergeRef":"","notes":"","orderedAt":"","overrideVolume":0,"overrideWeight":0,"paymentMethod":"","pendingSyncFromDestination":false,"pendingSyncFromSource":false,"pendingSyncToDestination":false,"pendingSyncToSource":false,"ref":"","refId":"SO-00462","requestedDeliveryDays":"","seqNo":"1","signature":"","signatureName":"","signatureTime":"","statusCollection":"","statusDelivery":"Pending","syncInCreated":"2025-10-01 08:58:49.000Z","syncInStatus":"closed","syncInUpdated":"2025-10-03 07:17:20.000Z","syncOutStatus":"UNALLOCATED","syncOutUpdated":"2025-10-03 07:17:00.000Z","timeWindows":[],"title":"Yate Outdoor Sports Complex","totalValue":302.32999999999998408384271897375583648681640625,"totalWeight":101,"type":"","updated":"2025-10-03 18:36:08.877Z","vehicleRef":"WD25HWY","what3Words":""}
Updating local order from MaxOptra - current local order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => info@yosc.co.uk
[contactName] => Andy Lathall
[contactNotes] =>
[contactPhone] =>
[created] => 2025-10-01 08:59:17.505Z
[custom] => Array
(
)
[customer] => 2c3n2ko6gnqor0c
[deliveryCity] => Yate
[deliveryCounty] =>
[deliveryEnd] => 2025-10-03 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Yate Outdoor Sports Complex
[deliveryPostcode] => BS37 7LB
[deliveryStart] => 2025-10-03 00:00:00.000Z
[deliveryStreet] => Broad Lane
[description] =>
[driverRef] => Lewis Newman
[externalCustomerId] => 499326000046812601
[externalLocationId] => 499326000046812607
[externalOrderId] => 499326000048962039
[id] => 4dmkrivudjy63aj
[isCancelled] =>
[isCollection] =>
[isReadyToSync] => 1
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] =>
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00462
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Pending
[syncInCreated] => 2025-10-01 08:58:49.000Z
[syncInStatus] => closed
[syncInUpdated] => 2025-10-03 07:17:20.000Z
[syncOutStatus] => UNALLOCATED
[syncOutUpdated] => 2025-10-03 07:17:00.000Z
[timeWindows] => Array
(
)
[title] => Yate Outdoor Sports Complex
[totalValue] => 302.33
[totalWeight] => 101
[type] =>
[updated] => 2025-10-03 18:36:08.877Z
[vehicleRef] => WD25HWY
[what3Words] =>
)
MaxOptra order details: Array
(
[0] => Array
(
[referenceNumber] => SO-00462
[consignmentReference] =>
[distributionCentreReference] => Head Office
[distributionCentreName] => Head Office
[task] => DELIVERY
[priority] => NORMAL
[vehicleRequirements] => Array
(
)
[additionalInstructions] =>
[clientName] => Yate Outdoors Sports Complex
[contactPerson] => Andy Lathall
[contactNumber] =>
[contactEmail] => info@yosc.co.uk
[additionalContactEmails] =>
[notificationPreferences] => Array
(
[allowSMS] => 1
[allowEmail] => 1
)
[customerLocation] => Array
(
[referenceNumber] => 499326000046812607
[name] => Yate Outdoor Sports Complex, Broad Lane, Yate
[address] => BS37 7LB
[w3wAddress] =>
[latitude] => 51.55152
[longitude] => -2.42615
)
[territoryReference] =>
[stopSequence] => ANY
[timeWindows] => Array
(
[0] => Array
(
[start] => 2025-10-03T06:00:00+01:00
[end] => 2025-10-03T23:00:00+01:00
)
)
[orderDate] =>
[capacity1] => 101
[capacity2] => 0
[price] => 0
[operationDuration] => 451
[customFields] => Array
(
[7DCPaidCash] => false
[7DCEmptiesGas] => 200
[7DCEmpties] => 9
)
[orderItems] => Array
(
[0] => Array
(
[itemReferenceNumber] => 499326000000061781
[orderReferenceNumber] => SO-00462
[name] => Peroni Nastro Azzuro 11g
[description] =>
[barcode] =>
[type] =>
[status] => CHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 156.99
[plannedQuantity] => 1
[factQuantity] => 1
[totalAmount] => 156.99
[height] => 0
[width] => 0
[length] => 0
[weight] => 62
[volume] => 0
)
[1] => Array
(
[itemReferenceNumber] => 499326000039253885
[orderReferenceNumber] => SO-00462
[name] => Level Head IPA
[description] =>
[barcode] =>
[type] =>
[status] => CHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 94.95
[plannedQuantity] => 1
[factQuantity] => 1
[totalAmount] => 94.95
[height] => 0
[width] => 0
[length] => 0
[weight] => 39
[volume] => 0
)
)
[widgetTrackingDetails] =>
)
)
MaxOptra schedule details: Array
(
[orderReferenceNumber] => SO-00462
[assignedDriverReference] => Lewis Newman
[assignedDriverName] => Lewis Newman
[assignedVehicleReference] => WD25HWY
[assignedVehicleName] => WD25HWY
[plannedArrivalTime] => 2025-10-03T20:47:32+01:00
[plannedCompletionTime] => 2025-10-03T20:55:03+01:00
[stopNumber] => 2
[totalStopsInRun] => 3
[runNumber] => 1
[runReference] => 857f789e3cd84449a35e057ccd96d6e0
[eta] => 2025-10-03T20:16:23+01:00
[factArrivalTimeGPS] =>
[factCompletionTimeGPS] =>
[factArrivalTimeReported] => 2025-10-03T19:36:07+01:00
[factCompletionTimeReported] => 2025-10-03T19:36:32+01:00
[failReason] =>
[failComment] =>
[status] => COMPLETED
[driver] => Lewis Newman
[arrival_planned] => 2025-10-03T20:47:32+01:00
[arrival_estimated] => 2025-10-03T20:16:23+01:00
[arrival_actual] => 2025-10-03T19:36:07+01:00
[totalStops] => 3
)
Updating order: SO-00462
Update ID 4dmkrivudjy63aj with: Array
(
[custom] => Array
(
[0] => Array
(
[id] => yt2l2o3cacu43wf
[value] => 9
)
[1] => Array
(
[id] => j381owny56syys6
[value] => 200
)
)
[driverRef] => Lewis Newman
[vehicleRef] => WD25HWY
[seqNo] => 1
)
Updated order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => info@yosc.co.uk
[contactName] => Andy Lathall
[contactNotes] =>
[contactPhone] =>
[created] => 2025-10-01 08:59:17.505Z
[custom] => Array
(
[0] => stdClass Object
(
[id] => yt2l2o3cacu43wf
[value] => 9
)
[1] => stdClass Object
(
[id] => j381owny56syys6
[value] => 200
)
)
[customer] => 2c3n2ko6gnqor0c
[deliveryCity] => Yate
[deliveryCounty] =>
[deliveryEnd] => 2025-10-03 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Yate Outdoor Sports Complex
[deliveryPostcode] => BS37 7LB
[deliveryStart] => 2025-10-03 00:00:00.000Z
[deliveryStreet] => Broad Lane
[description] =>
[driverRef] => Lewis Newman
[externalCustomerId] => 499326000046812601
[externalLocationId] => 499326000046812607
[externalOrderId] => 499326000048962039
[id] => 4dmkrivudjy63aj
[isCancelled] =>
[isCollection] =>
[isReadyToSync] => 1
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] =>
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00462
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Pending
[syncInCreated] => 2025-10-01 08:58:49.000Z
[syncInStatus] => closed
[syncInUpdated] => 2025-10-03 07:17:20.000Z
[syncOutStatus] => UNALLOCATED
[syncOutUpdated] => 2025-10-03 07:17:00.000Z
[timeWindows] => Array
(
)
[title] => Yate Outdoor Sports Complex
[totalValue] => 302.33
[totalWeight] => 101
[type] =>
[updated] => 2025-10-03 18:36:33.855Z
[vehicleRef] => WD25HWY
[what3Words] =>
)
Updating source from local order
Getting custom fields
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-07-18 02:35:52.065Z
[id] => nc7sndad5bhvi5x
[inCollection] => orders
[inField] => paymentMethod
[mappedField] => 7DCPayment
[name] => Payment method
[sourceField] =>
[syncFromSource] => 1
[syncToSource] =>
[type] => text
[updated] => 2025-07-18 02:35:52.065Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Processing field
Mapped field: 7DCEmpties
Custom fields: Array
(
[0] => Array
(
[id] => yt2l2o3cacu43wf
[value] => 9
)
[1] => Array
(
[id] => j381owny56syys6
[value] => 200
)
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Custom field: Array
(
[id] => yt2l2o3cacu43wf
[value] => 9
)
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
Processing field
Mapped field: 7DCEmptiesGas
Custom fields: Array
(
[0] => Array
(
[id] => yt2l2o3cacu43wf
[value] => 9
)
[1] => Array
(
[id] => j381owny56syys6
[value] => 200
)
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
Custom field: Array
(
[id] => j381owny56syys6
[value] => 200
)
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:03:34.631Z
[id] => pcn96l3kgkps4az
[inCollection] => orders
[inField] => driverRef
[mappedField] =>
[name] => Delivery driver
[sourceField] => cf_delivery_driver
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:03:34.631Z
)
Processing field
driverRef...
Value: Lewis Newman
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-08 04:52:51.399Z
[id] => hhrzcmytzs8p3kw
[inCollection] => orders
[inField] => seqNo
[mappedField] =>
[name] => Run number
[sourceField] => cf_run_number
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-08 04:52:51.399Z
)
Processing field
seqNo...
Value: 1
Finished processing field
Continue
Updating source order: Array
(
[custom_fields] => Array
(
[0] => Array
(
[api_name] => cf_empties_collected
[value] => 9
)
[1] => Array
(
[api_name] => cf_gas_empties_collected
[value] => 200
)
[2] => Array
(
[api_name] => cf_delivery_driver
[value] => Lewis Newman
)
[3] => Array
(
[api_name] => cf_run_number
[value] => 1
)
)
)
Update result: Array
(
[code] => 0
[message] => Sales Order has been updated.
[salesorder] => Array
(
[salesorder_id] => 499326000048962039
[is_viewed_in_mail] =>
[mail_first_viewed_time] =>
[mail_last_viewed_time] =>
[documents] => Array
(
)
[zcrm_potential_id] =>
[zcrm_potential_name] =>
[salesorder_number] => SO-00462
[date] => 2025-10-03
[offline_created_date_with_time] =>
[tracking_url] =>
[has_discount] =>
[status] => confirmed
[color_code] =>
[current_sub_status_id] =>
[current_sub_status] => closed
[sub_statuses] => Array
(
)
[shipment_date] => 2025-10-03
[reference_number] =>
[customer_id] => 499326000046812601
[customer_name] => Yate Outdoor Sports Complex
[contact_persons] => Array
(
[0] => 499326000047972643
)
[contact_persons_associated] => Array
(
[0] => Array
(
[contact_person_id] => 499326000047972643
[contact_person_email] => info@yosc.co.uk
[first_name] => Andy
[last_name] => Lathall
[mobile] =>
[communication_preference] => Array
(
[is_email_enabled] => 1
)
)
)
[contact_person_details] => Array
(
[0] => Array
(
[phone] =>
[mobile] =>
[last_name] => Lathall
[contact_person_id] => 499326000047972643
[first_name] => Andy
[email] => info@yosc.co.uk
)
)
[source] => Api
[contact_category] => uk
[is_taxable] =>
[has_shipping_address] => 1
[currency_id] => 499326000000000065
[currency_code] => GBP
[currency_symbol] => £
[exchange_rate] => 1
[is_discount_before_tax] => 1
[discount_type] => item_level
[estimate_id] =>
[delivery_method] =>
[delivery_method_id] =>
[vat_treatment] => uk
[is_inclusive_tax] =>
[tax_rounding] => entity_level
[tax_override_preference] => no_override
[order_status] => closed
[invoiced_status] => invoiced
[paid_status] => unpaid
[shipped_status] => pending
[sales_channel] => direct_sales
[sales_channel_formatted] => Direct Sales
[account_identifier] =>
[integration_id] =>
[is_dropshipped] =>
[is_backordered] =>
[is_manually_fulfilled] =>
[can_manually_fulfill] => 1
[has_qty_cancelled] =>
[is_reverse_charge_applied] =>
[shipping_details] => Array
(
)
[created_by_email] => sophie@7daycellar.co.uk
[created_by_name] => Sophie Redman
[branch_id] => 499326000023111007
[branch_name] => Head Office
[location_id] => 499326000023111007
[location_name] => Head Office
[total_quantity] => 2
[line_items] => Array
(
[0] => Array
(
[line_item_id] => 499326000048962045
[variant_id] => 499326000000061781
[track_batch_number] =>
[item_id] => 499326000000061781
[is_returnable] =>
[product_id] => 499326000000061781
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] => ASHI-PERO-50LK
[name] => Peroni Nastro Azzuro 11g
[group_name] => Peroni Nastro Azzuro 11g
[description] =>
[item_order] => 0
[bcy_rate] => 156.99
[rate] => 156.99
[sales_rate] => 174.95
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 31.4
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 156.99
[item_sub_total] => 156.99
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] => Peroni-fotor-20230731114457.jpg
[image_type] => jpg
[document_id] => 499326000044988787
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 1
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] => 62
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
[1] => Array
(
[line_item_id] => 499326000048962047
[variant_id] => 499326000039253885
[track_batch_number] =>
[item_id] => 499326000039253885
[is_returnable] =>
[product_id] => 499326000039253885
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] => GK-LLHD-30LK
[name] => Level Head IPA
[group_name] => Level Head IPA
[description] =>
[item_order] => 1
[bcy_rate] => 94.95
[rate] => 94.95
[sales_rate] => 94.95
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 18.99
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 94.95
[item_sub_total] => 94.95
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] => Level Head IPA.png
[image_type] => png
[document_id] => 499326000048546683
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 1
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] => 39
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
)
[is_advanced_tracking_missing] =>
[entity_tags] =>
[submitter_id] =>
[approver_id] =>
[submitted_date] =>
[submitted_by] =>
[submitted_by_name] =>
[submitted_by_email] =>
[submitted_by_photo_url] =>
[price_precision] => 2
[is_emailed] =>
[has_unconfirmed_line_item] =>
[picklists] => Array
(
)
[purchaseorders] => Array
(
)
[locations] => Array
(
[0] => Array
(
[location_id] => 499326000023111007
[location_name] => Head Office
[status] => active
)
[1] => Array
(
[location_id] => 499326000041689155
[location_name] => Bason Bridge Brewery Duty Bonded Warehouse
[status] => active
)
)
[billing_address_id] => 499326000046812607
[billing_address] => Array
(
[address] => Broad Lane
[street2] =>
[city] => Yate
[state] =>
[zip] => BS37 7LB
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[shipping_address_id] => 499326000046812609
[shipping_address] => Array
(
[company_name] =>
[address] =>
[street2] =>
[city] =>
[state] =>
[zip] =>
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[is_test_order] =>
[notes] => Account Name: 7 Day Cellar Ltd
Sort Code: 09-01-30
Account No: 10888924
[terms] =>
[payment_terms] => 7
[payment_terms_label] => Net 7
[custom_fields] => Array
(
[0] => Array
(
[field_id] => 499326000042690007
[customfield_id] => 499326000042690007
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 1
[label] => Automation Required
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[is_color_code_supported] =>
[api_name] => cf__ulrql_automation_required
[show_in_all_pdf] =>
[selected_option_id] => 499326000042690011
[value_formatted] => Yes
[search_entity] => salesorder
[data_type] => dropdown
[placeholder] => cf__ulrql_automation_required
[value] => Yes
[is_dependent_field] =>
)
[1] => Array
(
[field_id] => 499326000046047547
[customfield_id] => 499326000046047547
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 2
[label] => Keg Empties Collected
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_empties_collected
[show_in_all_pdf] =>
[value_formatted] => 9
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_empties_collected
[value] => 9
[is_dependent_field] =>
)
[2] => Array
(
[field_id] => 499326000046252153
[customfield_id] => 499326000046252153
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 3
[label] => Gas Empties Collected
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_gas_empties_collected
[show_in_all_pdf] =>
[value_formatted] => 200
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_gas_empties_collected
[value] => 200
[is_dependent_field] =>
)
[3] => Array
(
[field_id] => 499326000046252173
[customfield_id] => 499326000046252173
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 4
[label] => Delivery Driver
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_driver
[show_in_all_pdf] =>
[value_formatted] => Lewis Newman
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_driver
[value] => Lewis Newman
[is_dependent_field] =>
)
[4] => Array
(
[field_id] => 499326000047922345
[customfield_id] => 499326000047922345
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 5
[label] => Run Number
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_run_number
[show_in_all_pdf] =>
[value_formatted] => 1
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_run_number
[value] => 1
[is_dependent_field] =>
)
)
[custom_field_hash] => Array
(
[cf__ulrql_automation_required] => Yes
[cf__ulrql_automation_required_unformatted] => Yes
[cf_empties_collected] => 9
[cf_empties_collected_unformatted] => 9
[cf_gas_empties_collected] => 200
[cf_gas_empties_collected_unformatted] => 200
[cf_delivery_driver] => Lewis Newman
[cf_delivery_driver_unformatted] => Lewis Newman
[cf_run_number] => 1
[cf_run_number_unformatted] => 1
)
[template_id] => 499326000000000111
[template_name] => Standard Template
[page_width] => 8.27in
[page_height] => 11.69in
[orientation] => portrait
[template_type] => standard
[created_time] => 2025-10-01T09:58:49+0100
[last_modified_time] => 2025-10-03T19:36:34+0100
[created_by_id] => 499326000044308001
[created_date] => 2025-10-01
[last_modified_by_id] => 499326000044410001
[attachment_name] =>
[can_send_in_mail] =>
[salesperson_id] => 499326000044620336
[salesperson_name] => Sophie Redman
[merchant_id] =>
[merchant_name] =>
[pickup_location_id] =>
[discount] => 0
[discount_applied_on_amount] => 0
[is_adv_tracking_in_package] =>
[shipping_charge_taxes] => Array
(
)
[lock_details] => Array
(
[can_lock] =>
)
[locked_actions] => Array
(
)
[shipping_charge_tax_id] =>
[shipping_charge_tax_name] =>
[shipping_charge_tax_type] =>
[shipping_charge_tax_percentage] =>
[shipping_charge_tax_exemption_id] =>
[shipping_charge_tax_exemption_code] =>
[shipping_charge_tax] =>
[bcy_shipping_charge_tax] =>
[shipping_charge_exclusive_of_tax] => 0
[shipping_charge_inclusive_of_tax] => 0
[shipping_charge_tax_formatted] =>
[shipping_charge_exclusive_of_tax_formatted] => £0.00
[shipping_charge_inclusive_of_tax_formatted] => £0.00
[shipping_charge] => 0
[bcy_shipping_charge] => 0
[adjustment] => 0
[bcy_adjustment] => 0
[adjustment_description] => Adjustment
[roundoff_value] => 0
[transaction_rounding_type] => no_rounding
[rounding_mode] => round_half_up
[bcy_rounding_mode] => round_half_up
[sub_total] => 251.94
[bcy_sub_total] => 251.94
[sub_total_inclusive_of_tax] => 0
[sub_total_exclusive_of_discount] => 251.94
[discount_total] => 0
[bcy_discount_total] => 0
[discount_percent] => 0
[tax_total] => 50.39
[bcy_tax_total] => 50.39
[total] => 302.33
[computation_type] => basic
[bcy_total] => 302.33
[reverse_charge_tax_total] => 0
[taxes] => Array
(
[0] => Array
(
[tax_amount] => 50.39
[tax_name] => Standard Rate
[tax_amount_formatted] => £50.39
)
)
[tds_calculation_type] => tds_item_level
[packages] => Array
(
)
[so_cycle_preference] => Array
(
[is_feature_enabled] => 1
[socycle_status] => not_triggered
[can_create_invoice] => 1
[can_create_package] =>
[can_create_shipment] =>
[shipment_preference] => Array
(
[default_carrier] =>
[send_notification] =>
[deliver_shipments] =>
)
[invoice_preference] => Array
(
[mark_as_sent] =>
[record_payment] =>
[payment_mode_id] => 499326000000000199
[payment_account_id] => 499326000000000349
)
)
[invoices] => Array
(
[0] => Array
(
[invoice_id] => 499326000049016176
[invoice_number] => INV-26125
[reference_number] => SO-00462
[status] => sent
[date] => 2025-10-03
[due_date] => 2025-10-10
[total] => 302.33
[balance] => 302.33
)
)
[can_show_kit_return] =>
[is_kit_partial_return] =>
[salesreturns] => Array
(
)
[payments] => Array
(
)
[creditnotes] => Array
(
)
[refunds] => Array
(
)
[contact] => Array
(
[customer_balance] => 1628.27
[credit_limit] => 0
[unused_customer_credits] => 0
[is_credit_limit_migration_completed] => 1
)
[balance] => 302.33
[approvers_list] => Array
(
)
[is_scheduled_for_quick_shipment_create] =>
)
)
Webhook - destinationUpdated script called at 2025-10-03 19:36:37
JSON: {"payload":{"orderReference":"SO-00452","status":"DRIVING"},"timestamp":"2025-10-03T18:36:37Z"}
REF: SO-00452
Filter: refId="SO-00452"
200 response code sent
Local item: {"addons":[],"attachments":[],"collectionEnd":"","collectionId":"s93ukjlitoinx2e","collectionInstructions":"","collectionName":"orders","collectionStart":"","company":"1kmltj8w8rnhbfx","contactEmail":"","contactName":"The Horseshoe (Chipping Sodbury)","contactNotes":"","contactPhone":"","created":"2025-09-24 15:41:54.713Z","custom":[],"customer":"t5br1lbg1z8m7n3","deliveryCity":"Chipping Sodbury","deliveryCounty":"","deliveryEnd":"2025-10-03 00:00:00.000Z","deliveryInstructions":"","deliveryName":"The Horseshoe (Chipping Sodbury)","deliveryPostcode":"BS37 6AH","deliveryStart":"2025-10-03 00:00:00.000Z","deliveryStreet":"2 High Street","description":"","driverRef":"Lewis Newman","externalCustomerId":"499326000047045175","externalLocationId":"499326000047045177","externalOrderId":"499326000048549582","id":"3fhoq4qcndsfans","isCancelled":false,"isCollection":false,"isReadyToSync":false,"isScheduledCollection":false,"isScheduledDelivery":false,"isUntracked":false,"mergeRef":"","notes":"Front door open from 10am","orderedAt":"","overrideVolume":0,"overrideWeight":0,"paymentMethod":"","pendingSyncFromDestination":false,"pendingSyncFromSource":false,"pendingSyncToDestination":false,"pendingSyncToSource":false,"ref":"","refId":"SO-00452","requestedDeliveryDays":"","seqNo":"1","signature":"","signatureName":"","signatureTime":"","statusCollection":"","statusDelivery":"Pending","syncInCreated":"2025-09-24 15:41:46.000Z","syncInStatus":"closed","syncInUpdated":"2025-10-03 18:30:51.000Z","syncOutStatus":"UNALLOCATED","syncOutUpdated":"2025-09-30 09:03:00.000Z","timeWindows":[],"title":"The Horseshoe (Chipping Sodbury)","totalValue":292.720000000000027284841053187847137451171875,"totalWeight":153,"type":"","updated":"2025-10-03 18:33:32.465Z","vehicleRef":"WD25HWY","what3Words":""}
Updating local order from MaxOptra - current local order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] =>
[contactName] => The Horseshoe (Chipping Sodbury)
[contactNotes] =>
[contactPhone] =>
[created] => 2025-09-24 15:41:54.713Z
[custom] => Array
(
)
[customer] => t5br1lbg1z8m7n3
[deliveryCity] => Chipping Sodbury
[deliveryCounty] =>
[deliveryEnd] => 2025-10-03 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => The Horseshoe (Chipping Sodbury)
[deliveryPostcode] => BS37 6AH
[deliveryStart] => 2025-10-03 00:00:00.000Z
[deliveryStreet] => 2 High Street
[description] =>
[driverRef] => Lewis Newman
[externalCustomerId] => 499326000047045175
[externalLocationId] => 499326000047045177
[externalOrderId] => 499326000048549582
[id] => 3fhoq4qcndsfans
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] => Front door open from 10am
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] =>
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00452
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Pending
[syncInCreated] => 2025-09-24 15:41:46.000Z
[syncInStatus] => closed
[syncInUpdated] => 2025-10-03 18:30:51.000Z
[syncOutStatus] => UNALLOCATED
[syncOutUpdated] => 2025-09-30 09:03:00.000Z
[timeWindows] => Array
(
)
[title] => The Horseshoe (Chipping Sodbury)
[totalValue] => 292.72
[totalWeight] => 153
[type] =>
[updated] => 2025-10-03 18:33:32.465Z
[vehicleRef] => WD25HWY
[what3Words] =>
)
MaxOptra order details: Array
(
[0] => Array
(
[referenceNumber] => SO-00452
[consignmentReference] =>
[distributionCentreReference] => Head Office
[distributionCentreName] => Head Office
[task] => DELIVERY
[priority] => NORMAL
[vehicleRequirements] => Array
(
)
[additionalInstructions] => Front door open from 10am
[clientName] =>
[contactPerson] => The Horseshoe (Chipping Sodbury)
[contactNumber] =>
[contactEmail] =>
[additionalContactEmails] =>
[notificationPreferences] => Array
(
[allowSMS] => 1
[allowEmail] => 1
)
[customerLocation] => Array
(
[referenceNumber] => 499326000047045177
[name] => The Horseshoe (Chipping Sodbury), 2 High Street, Chipping Sodbury
[address] => BS37 6AH
[w3wAddress] =>
[latitude] => 51.53814
[longitude] => -2.3951
)
[territoryReference] =>
[stopSequence] => ANY
[timeWindows] => Array
(
[0] => Array
(
[start] => 2025-10-03T06:00:00+01:00
[end] => 2025-10-03T23:00:00+01:00
)
)
[orderDate] =>
[capacity1] => 153
[capacity2] => 0
[price] => 0
[operationDuration] => 529
[customFields] => Array
(
)
[orderItems] => Array
(
[0] => Array
(
[itemReferenceNumber] => 499326000021043799
[orderReferenceNumber] => SO-00452
[name] => Hardings Amber Ale 3.9% (9g)
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 79.95
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 0
[height] => 0
[width] => 0
[length] => 0
[weight] => 51
[volume] => 0
)
[1] => Array
(
[itemReferenceNumber] => 499326000021043786
[orderReferenceNumber] => SO-00452
[name] => Hardings Best 4.2% (9g)
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 79.99
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 0
[height] => 0
[width] => 0
[length] => 0
[weight] => 51
[volume] => 0
)
[2] => Array
(
[itemReferenceNumber] => 499326000044145711
[orderReferenceNumber] => SO-00452
[name] => Hardings Double Hopped 4.0% (9g)
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 83.99
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 0
[height] => 0
[width] => 0
[length] => 0
[weight] => 51
[volume] => 0
)
)
[widgetTrackingDetails] =>
)
)
MaxOptra schedule details: Array
(
[orderReferenceNumber] => SO-00452
[assignedDriverReference] => Lewis Newman
[assignedDriverName] => Lewis Newman
[assignedVehicleReference] => WD25HWY
[assignedVehicleName] => WD25HWY
[plannedArrivalTime] => 2025-10-03T20:59:36+01:00
[plannedCompletionTime] => 2025-10-03T21:08:25+01:00
[stopNumber] => 3
[totalStopsInRun] => 3
[runNumber] => 1
[runReference] => 857f789e3cd84449a35e057ccd96d6e0
[eta] => 2025-10-03T19:42:18+01:00
[factArrivalTimeGPS] =>
[factCompletionTimeGPS] =>
[factArrivalTimeReported] => 2025-10-03T19:36:37+01:00
[factCompletionTimeReported] =>
[failReason] =>
[failComment] =>
[status] => ARRIVED
[driver] => Lewis Newman
[arrival_planned] => 2025-10-03T20:59:36+01:00
[arrival_estimated] => 2025-10-03T19:42:18+01:00
[arrival_actual] => 2025-10-03T19:36:37+01:00
[totalStops] => 3
)
Updating order: SO-00452
Update ID 3fhoq4qcndsfans with: Array
(
[custom] => Array
(
)
[driverRef] => Lewis Newman
[vehicleRef] => WD25HWY
[seqNo] => 1
)
Updated order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] =>
[contactName] => The Horseshoe (Chipping Sodbury)
[contactNotes] =>
[contactPhone] =>
[created] => 2025-09-24 15:41:54.713Z
[custom] => Array
(
)
[customer] => t5br1lbg1z8m7n3
[deliveryCity] => Chipping Sodbury
[deliveryCounty] =>
[deliveryEnd] => 2025-10-03 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => The Horseshoe (Chipping Sodbury)
[deliveryPostcode] => BS37 6AH
[deliveryStart] => 2025-10-03 00:00:00.000Z
[deliveryStreet] => 2 High Street
[description] =>
[driverRef] => Lewis Newman
[externalCustomerId] => 499326000047045175
[externalLocationId] => 499326000047045177
[externalOrderId] => 499326000048549582
[id] => 3fhoq4qcndsfans
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] => Front door open from 10am
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] =>
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00452
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Pending
[syncInCreated] => 2025-09-24 15:41:46.000Z
[syncInStatus] => closed
[syncInUpdated] => 2025-10-03 18:30:51.000Z
[syncOutStatus] => UNALLOCATED
[syncOutUpdated] => 2025-09-30 09:03:00.000Z
[timeWindows] => Array
(
)
[title] => The Horseshoe (Chipping Sodbury)
[totalValue] => 292.72
[totalWeight] => 153
[type] =>
[updated] => 2025-10-03 18:36:38.134Z
[vehicleRef] => WD25HWY
[what3Words] =>
)
Updating source from local order
Getting custom fields
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-07-18 02:35:52.065Z
[id] => nc7sndad5bhvi5x
[inCollection] => orders
[inField] => paymentMethod
[mappedField] => 7DCPayment
[name] => Payment method
[sourceField] =>
[syncFromSource] => 1
[syncToSource] =>
[type] => text
[updated] => 2025-07-18 02:35:52.065Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Processing field
Mapped field: 7DCEmpties
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
Processing field
Mapped field: 7DCEmptiesGas
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:03:34.631Z
[id] => pcn96l3kgkps4az
[inCollection] => orders
[inField] => driverRef
[mappedField] =>
[name] => Delivery driver
[sourceField] => cf_delivery_driver
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:03:34.631Z
)
Processing field
driverRef...
Value: Lewis Newman
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-08 04:52:51.399Z
[id] => hhrzcmytzs8p3kw
[inCollection] => orders
[inField] => seqNo
[mappedField] =>
[name] => Run number
[sourceField] => cf_run_number
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-08 04:52:51.399Z
)
Processing field
seqNo...
Value: 1
Finished processing field
Continue
Updating source order: Array
(
[custom_fields] => Array
(
[0] => Array
(
[api_name] => cf_delivery_driver
[value] => Lewis Newman
)
[1] => Array
(
[api_name] => cf_run_number
[value] => 1
)
)
)
Update result: Array
(
[code] => 0
[message] => Sales Order has been updated.
[salesorder] => Array
(
[salesorder_id] => 499326000048549582
[is_viewed_in_mail] =>
[mail_first_viewed_time] =>
[mail_last_viewed_time] =>
[documents] => Array
(
)
[zcrm_potential_id] =>
[zcrm_potential_name] =>
[salesorder_number] => SO-00452
[date] => 2025-10-03
[offline_created_date_with_time] =>
[tracking_url] =>
[has_discount] =>
[status] => confirmed
[color_code] =>
[current_sub_status_id] =>
[current_sub_status] => closed
[sub_statuses] => Array
(
)
[shipment_date] => 2025-10-03
[reference_number] =>
[customer_id] => 499326000047045175
[customer_name] => The Horseshoe (Chipping Sodbury)
[contact_persons] => Array
(
)
[contact_persons_associated] => Array
(
)
[contact_person_details] => Array
(
)
[source] => Api
[contact_category] => uk
[is_taxable] =>
[has_shipping_address] => 1
[currency_id] => 499326000000000065
[currency_code] => GBP
[currency_symbol] => £
[exchange_rate] => 1
[is_discount_before_tax] => 1
[discount_type] => item_level
[estimate_id] =>
[delivery_method] =>
[delivery_method_id] =>
[vat_treatment] => uk
[is_inclusive_tax] =>
[tax_rounding] => entity_level
[tax_override_preference] => no_override
[order_status] => closed
[invoiced_status] => invoiced
[paid_status] => unpaid
[shipped_status] => pending
[sales_channel] => direct_sales
[sales_channel_formatted] => Direct Sales
[account_identifier] =>
[integration_id] =>
[is_dropshipped] =>
[is_backordered] =>
[is_manually_fulfilled] =>
[can_manually_fulfill] => 1
[has_qty_cancelled] =>
[is_reverse_charge_applied] =>
[shipping_details] => Array
(
)
[created_by_email] => sophie@7daycellar.co.uk
[created_by_name] => Sophie Redman
[branch_id] => 499326000023111007
[branch_name] => Head Office
[location_id] => 499326000023111007
[location_name] => Head Office
[total_quantity] => 3
[line_items] => Array
(
[0] => Array
(
[line_item_id] => 499326000048549588
[variant_id] => 499326000044145711
[track_batch_number] =>
[item_id] => 499326000044145711
[is_returnable] =>
[product_id] => 499326000044145711
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] => BB-HSDD-9G
[name] => Hardings Double Hopped 4.0% (9g)
[group_name] => Hardings Double Hopped 4.0% (9g)
[description] =>
[item_order] => 1
[bcy_rate] => 83.99
[rate] => 83.99
[sales_rate] => 83.99
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 16.8
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 83.99
[item_sub_total] => 83.99
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] => Harding’s Double Hopped.png
[image_type] => png
[document_id] => 499326000048604859
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 1
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] =>
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
[1] => Array
(
[line_item_id] => 499326000048549590
[variant_id] => 499326000021043799
[track_batch_number] =>
[item_id] => 499326000021043799
[is_returnable] =>
[product_id] => 499326000021043799
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] => BB-HSAR-9G
[name] => Hardings Amber Ale 3.9% (9g)
[group_name] => Hardings Amber Ale 3.9% (9g)
[description] =>
[item_order] => 2
[bcy_rate] => 79.95
[rate] => 79.95
[sales_rate] => 79.95
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 15.99
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 79.95
[item_sub_total] => 79.95
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] => Harding’s Amber Ale.png
[image_type] => png
[document_id] => 499326000048604629
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 1
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] => 51
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
[2] => Array
(
[line_item_id] => 499326000048549592
[variant_id] => 499326000021043786
[track_batch_number] =>
[item_id] => 499326000021043786
[is_returnable] =>
[product_id] => 499326000021043786
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] => BB-HSBT-9G
[name] => Hardings Best 4.2% (9g)
[group_name] => Hardings Best Bitter 4.2% (9g)
[description] =>
[item_order] => 3
[bcy_rate] => 79.99
[rate] => 79.99
[sales_rate] => 79.99
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 16
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 79.99
[item_sub_total] => 79.99
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] => Hardings Best Bitter.png
[image_type] => png
[document_id] => 499326000048604731
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 1
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] => 51
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
)
[is_advanced_tracking_missing] =>
[entity_tags] =>
[submitter_id] =>
[approver_id] =>
[submitted_date] =>
[submitted_by] =>
[submitted_by_name] =>
[submitted_by_email] =>
[submitted_by_photo_url] =>
[price_precision] => 2
[is_emailed] =>
[has_unconfirmed_line_item] =>
[picklists] => Array
(
)
[purchaseorders] => Array
(
)
[locations] => Array
(
[0] => Array
(
[location_id] => 499326000023111007
[location_name] => Head Office
[status] => active
)
[1] => Array
(
[location_id] => 499326000041689155
[location_name] => Bason Bridge Brewery Duty Bonded Warehouse
[status] => active
)
)
[billing_address_id] => 499326000047045177
[billing_address] => Array
(
[address] => 2 High Street
[street2] =>
[city] => Chipping Sodbury
[state] =>
[zip] => BS37 6AH
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[shipping_address_id] => 499326000047045179
[shipping_address] => Array
(
[company_name] =>
[address] =>
[street2] =>
[city] =>
[state] =>
[zip] =>
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[is_test_order] =>
[notes] => Account Name: 7 Day Cellar Ltd
Sort Code: 09-01-30
Account No: 10888924
[terms] =>
[payment_terms] => 0
[payment_terms_label] => Due On Receipt
[custom_fields] => Array
(
[0] => Array
(
[field_id] => 499326000042690007
[customfield_id] => 499326000042690007
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 1
[label] => Automation Required
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[is_color_code_supported] =>
[api_name] => cf__ulrql_automation_required
[show_in_all_pdf] =>
[selected_option_id] => 499326000042690011
[value_formatted] => Yes
[search_entity] => salesorder
[data_type] => dropdown
[placeholder] => cf__ulrql_automation_required
[value] => Yes
[is_dependent_field] =>
)
[1] => Array
(
[field_id] => 499326000046252143
[customfield_id] => 499326000046252143
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 2
[label] => Delivery Instructions
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_instructions
[show_in_all_pdf] =>
[value_formatted] => Front door open from 10am
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_instructions
[value] => Front door open from 10am
[is_dependent_field] =>
)
[2] => Array
(
[field_id] => 499326000046252173
[customfield_id] => 499326000046252173
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 3
[label] => Delivery Driver
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_driver
[show_in_all_pdf] =>
[value_formatted] => Lewis Newman
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_driver
[value] => Lewis Newman
[is_dependent_field] =>
)
[3] => Array
(
[field_id] => 499326000047922345
[customfield_id] => 499326000047922345
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 4
[label] => Run Number
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_run_number
[show_in_all_pdf] =>
[value_formatted] => 1
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_run_number
[value] => 1
[is_dependent_field] =>
)
)
[custom_field_hash] => Array
(
[cf__ulrql_automation_required] => Yes
[cf__ulrql_automation_required_unformatted] => Yes
[cf_delivery_instructions] => Front door open from 10am
[cf_delivery_instructions_unformatted] => Front door open from 10am
[cf_delivery_driver] => Lewis Newman
[cf_delivery_driver_unformatted] => Lewis Newman
[cf_run_number] => 1
[cf_run_number_unformatted] => 1
)
[template_id] => 499326000000000111
[template_name] => Standard Template
[page_width] => 8.27in
[page_height] => 11.69in
[orientation] => portrait
[template_type] => standard
[created_time] => 2025-09-24T16:41:46+0100
[last_modified_time] => 2025-10-03T19:36:38+0100
[created_by_id] => 499326000044308001
[created_date] => 2025-09-24
[last_modified_by_id] => 499326000044410001
[attachment_name] =>
[can_send_in_mail] =>
[salesperson_id] => 499326000044620336
[salesperson_name] => Sophie Redman
[merchant_id] =>
[merchant_name] =>
[pickup_location_id] =>
[discount] => 0
[discount_applied_on_amount] => 0
[is_adv_tracking_in_package] =>
[shipping_charge_taxes] => Array
(
)
[lock_details] => Array
(
[can_lock] =>
)
[locked_actions] => Array
(
)
[shipping_charge_tax_id] =>
[shipping_charge_tax_name] =>
[shipping_charge_tax_type] =>
[shipping_charge_tax_percentage] =>
[shipping_charge_tax_exemption_id] =>
[shipping_charge_tax_exemption_code] =>
[shipping_charge_tax] =>
[bcy_shipping_charge_tax] =>
[shipping_charge_exclusive_of_tax] => 0
[shipping_charge_inclusive_of_tax] => 0
[shipping_charge_tax_formatted] =>
[shipping_charge_exclusive_of_tax_formatted] => £0.00
[shipping_charge_inclusive_of_tax_formatted] => £0.00
[shipping_charge] => 0
[bcy_shipping_charge] => 0
[adjustment] => 0
[bcy_adjustment] => 0
[adjustment_description] => Adjustment
[roundoff_value] => 0
[transaction_rounding_type] => no_rounding
[rounding_mode] => round_half_up
[bcy_rounding_mode] => round_half_up
[sub_total] => 243.93
[bcy_sub_total] => 243.93
[sub_total_inclusive_of_tax] => 0
[sub_total_exclusive_of_discount] => 243.93
[discount_total] => 0
[bcy_discount_total] => 0
[discount_percent] => 0
[tax_total] => 48.79
[bcy_tax_total] => 48.79
[total] => 292.72
[computation_type] => basic
[bcy_total] => 292.72
[reverse_charge_tax_total] => 0
[taxes] => Array
(
[0] => Array
(
[tax_amount] => 48.79
[tax_name] => Standard Rate
[tax_amount_formatted] => £48.79
)
)
[tds_calculation_type] => tds_item_level
[packages] => Array
(
)
[so_cycle_preference] => Array
(
[is_feature_enabled] => 1
[socycle_status] => not_triggered
[can_create_invoice] => 1
[can_create_package] =>
[can_create_shipment] =>
[shipment_preference] => Array
(
[default_carrier] =>
[send_notification] =>
[deliver_shipments] =>
)
[invoice_preference] => Array
(
[mark_as_sent] =>
[record_payment] =>
[payment_mode_id] => 499326000000000199
[payment_account_id] => 499326000000000349
)
)
[invoices] => Array
(
[0] => Array
(
[invoice_id] => 499326000048908796
[invoice_number] => INV-26077
[reference_number] => SO-00452
[status] => sent
[date] => 2025-10-03
[due_date] => 2025-10-03
[total] => 287.92
[balance] => 287.92
)
)
[can_show_kit_return] =>
[is_kit_partial_return] =>
[salesreturns] => Array
(
)
[payments] => Array
(
)
[creditnotes] => Array
(
)
[refunds] => Array
(
)
[contact] => Array
(
[customer_balance] => 287.92
[credit_limit] => 0
[unused_customer_credits] => 0
[is_credit_limit_migration_completed] => 1
)
[balance] => 292.72
[approvers_list] => Array
(
)
[is_scheduled_for_quick_shipment_create] =>
)
)
Webhook - sourceUpdated script called at 2025-10-03 19:36:48
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048962039","salesorder_no":"SO-00462","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048962039","salesorder_no":"SO-00462","status":"invoiced"}}
EXT ID: 499326000048962039
REF: SO-00462
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048962039 (REF SO-00462)
Local order updated = 2025-10-03 07:17:20.000Z,
source updated = 2025-10-03T19:36:34+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => info@yosc.co.uk
[contactName] => Andy Lathall
[notes] =>
[externalOrderId] => 499326000048962039
[refId] => SO-00462
[externalCustomerId] => 499326000046812601
[externalLocationId] => 499326000046812607
[title] => Yate Outdoor Sports Complex
[deliveryStart] => 2025-10-03
[deliveryEnd] => 2025-10-03
[totalValue] => 302.33
[totalWeight] => 101
[syncInCreated] => 2025-10-01T09:58:49+0100
[syncInUpdated] => 2025-10-03T19:36:34+0100
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048962045
[externalProductId] => 499326000000061781
[sku] => ASHI-PERO-50LK
[title] => Peroni Nastro Azzuro 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 156.99
[price] => 156.99
)
[1] => Array
(
[externalOrderProductId] => 499326000048962047
[externalProductId] => 499326000039253885
[sku] => GK-LLHD-30LK
[title] => Level Head IPA
[notes] =>
[quantity] => 1
[weightKg] => 39
[weightTotal] => 39
[priceTotal] => 94.95
[price] => 94.95
)
)
[deliveryName] => Yate Outdoor Sports Complex
[deliveryStreet] => Broad Lane
[deliveryCity] => Yate
[deliveryCounty] =>
[deliveryPostcode] => BS37 7LB
)
Does this order already exist?
Yes
Existing custom fields: Array
(
[0] => Array
(
[id] => yt2l2o3cacu43wf
[value] => 9
)
[1] => Array
(
[id] => j381owny56syys6
[value] => 200
)
)
Is array
Merging custom fields...
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => info@yosc.co.uk
[contactName] => Andy Lathall
[notes] =>
[externalOrderId] => 499326000048962039
[refId] => SO-00462
[externalCustomerId] => 499326000046812601
[externalLocationId] => 499326000046812607
[title] => Yate Outdoor Sports Complex
[deliveryStart] => 2025-10-03
[deliveryEnd] => 2025-10-03
[totalValue] => 302.33
[totalWeight] => 101
[syncInCreated] => 2025-10-01T09:58:49+0100
[syncInUpdated] => 2025-10-03T19:36:34+0100
[syncInStatus] => closed
[deliveryName] => Yate Outdoor Sports Complex
[deliveryStreet] => Broad Lane
[deliveryCity] => Yate
[deliveryCounty] =>
[deliveryPostcode] => BS37 7LB
[syncOutUpdated] => 2025-10-03T19:36:48+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Andy Lathall
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => [{"id":"yt2l2o3cacu43wf","value":"9"},{"id":"j381owny56syys6","value":"200"}]
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000046812601
Getting products
Updating product 499326000000061781
Updating order product 499326000048962045
Updated
Updating product 499326000039253885
Updating order product 499326000048962047
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00462
Processing order: 4dmkrivudjy63aj, ref SO-00462
Syncing SO-00462
Using default start and end times
Time window: 2025-10-03T06:00:00+01:00 - 2025-10-03T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 03/10/2025 19:36 - Local updated: 2025-10-03 18:36:48.000Z - Source updated: 2025-10-03 18:36:34.000Z
Changed? yes
Current MaxOptra status: COMPLETED
Completed? yes
Previous status: UNALLOCATED
Status changed - mark for sync back to source
Updating local order POD and attachments...
Don't have local POD - fetching...
Updated POD
Getting attachments for SO-00462...
No new attachments found
Is allocated? yes
Local updated: 2025-10-03 18:36:48.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Communication error with MaxOptra (412)
orders/SO-00462
https://7daycellar.maxoptra.com/api/v6/orders/SO-00462
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000046812607
Array
(
[referenceNumber] => 499326000046812607
[name] => Yate Outdoor Sports Complex, Broad Lane, Yate
[address] => BS37 7LB
)
499326000046812607
Error updating SO-00462
"{\"data\":null,\"errors\":[{\"code\":\"ORDER_IS_LOCKED\",\"name\":\"The order is locked\",\"details\":null,\"field\":null}],\"warnings\":[]}"
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00462
Done all.
Finished at 2025-10-03 19:36:50
Webhook - sourceUpdated script called at 2025-10-03 19:37:52
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048549582","salesorder_no":"SO-00452","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048549582","salesorder_no":"SO-00452","status":"invoiced"}}
EXT ID: 499326000048549582
REF: SO-00452
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048549582 (REF SO-00452)
Local order updated = 2025-10-03 18:30:51.000Z,
source updated = 2025-10-03T19:36:38+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => The Horseshoe (Chipping Sodbury)
[notes] => Front door open from 10am
[externalOrderId] => 499326000048549582
[refId] => SO-00452
[externalCustomerId] => 499326000047045175
[externalLocationId] => 499326000047045177
[title] => The Horseshoe (Chipping Sodbury)
[deliveryStart] => 2025-10-03
[deliveryEnd] => 2025-10-03
[totalValue] => 292.72
[totalWeight] => 153
[syncInCreated] => 2025-09-24T16:41:46+0100
[syncInUpdated] => 2025-10-03T19:36:38+0100
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048549588
[externalProductId] => 499326000044145711
[sku] => BB-HSDD-9G
[title] => Hardings Double Hopped 4.0% (9g)
[notes] =>
[quantity] => 1
[weightKg] => 51
[weightTotal] => 51
[priceTotal] => 83.99
[price] => 83.99
)
[1] => Array
(
[externalOrderProductId] => 499326000048549590
[externalProductId] => 499326000021043799
[sku] => BB-HSAR-9G
[title] => Hardings Amber Ale 3.9% (9g)
[notes] =>
[quantity] => 1
[weightKg] => 51
[weightTotal] => 51
[priceTotal] => 79.95
[price] => 79.95
)
[2] => Array
(
[externalOrderProductId] => 499326000048549592
[externalProductId] => 499326000021043786
[sku] => BB-HSBT-9G
[title] => Hardings Best 4.2% (9g)
[notes] =>
[quantity] => 1
[weightKg] => 51
[weightTotal] => 51
[priceTotal] => 79.99
[price] => 79.99
)
)
[deliveryName] => The Horseshoe (Chipping Sodbury)
[deliveryStreet] => 2 High Street
[deliveryCity] => Chipping Sodbury
[deliveryCounty] =>
[deliveryPostcode] => BS37 6AH
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => The Horseshoe (Chipping Sodbury)
[notes] => Front door open from 10am
[externalOrderId] => 499326000048549582
[refId] => SO-00452
[externalCustomerId] => 499326000047045175
[externalLocationId] => 499326000047045177
[title] => The Horseshoe (Chipping Sodbury)
[deliveryStart] => 2025-10-03
[deliveryEnd] => 2025-10-03
[totalValue] => 292.72
[totalWeight] => 153
[syncInCreated] => 2025-09-24T16:41:46+0100
[syncInUpdated] => 2025-10-03T19:36:38+0100
[syncInStatus] => closed
[deliveryName] => The Horseshoe (Chipping Sodbury)
[deliveryStreet] => 2 High Street
[deliveryCity] => Chipping Sodbury
[deliveryCounty] =>
[deliveryPostcode] => BS37 6AH
[syncOutUpdated] => 2025-10-03T19:37:53+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => The Horseshoe (Chipping Sodbury)
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000047045175
Getting products
Updating product 499326000044145711
Updating order product 499326000048549588
Updated
Updating product 499326000021043799
Updating order product 499326000048549590
Updated
Updating product 499326000021043786
Updating order product 499326000048549592
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00452
Processing order: 3fhoq4qcndsfans, ref SO-00452
Syncing SO-00452
Using default start and end times
Time window: 2025-10-03T06:00:00+01:00 - 2025-10-03T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 03/10/2025 19:36 - Local updated: 2025-10-03 18:37:53.000Z - Source updated: 2025-10-03 18:36:38.000Z
Changed? yes
Current MaxOptra status: COMPLETED
Completed? yes
Previous status: UNALLOCATED
Status changed - mark for sync back to source
Updating local order POD and attachments...
Don't have local POD - fetching...
Updated POD
Getting attachments for SO-00452...
No new attachments found
Is allocated? yes
Local updated: 2025-10-03 18:37:53.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Communication error with MaxOptra (412)
orders/SO-00452
https://7daycellar.maxoptra.com/api/v6/orders/SO-00452
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000047045177
Array
(
[referenceNumber] => 499326000047045177
[name] => The Horseshoe (Chipping Sodbury), 2 High Street, Chipping Sodbury
[address] => BS37 6AH
)
499326000047045177
Error updating SO-00452
"{\"data\":null,\"errors\":[{\"code\":\"ORDER_IS_LOCKED\",\"name\":\"The order is locked\",\"details\":null,\"field\":null}],\"warnings\":[]}"
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00452
Done all.
Finished at 2025-10-03 19:37:54
Webhook - sourceUpdated script called at 2025-10-03 19:38:17
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048825178","salesorder_no":"SO-00455","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048825178","salesorder_no":"SO-00455","status":"invoiced"}}
EXT ID: 499326000048825178
REF: SO-00455
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048825178 (REF SO-00455)
Updates pending to source for order: 499326000048825178
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-10-03 18:35:43.000Z,
source updated = 2025-10-03T19:36:03+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00455
Processing order: qv5hgbux769xpa4, ref SO-00455
Syncing SO-00455
Using default start and end times
Time window: 2025-10-03T06:00:00+01:00 - 2025-10-03T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 03/10/2025 19:36 - Local updated: 2025-10-03 18:36:00.000Z - Source updated: 2025-10-03 18:35:43.000Z
Changed? yes
Current MaxOptra status: COMPLETED
Completed? yes
Previous status: COMPLETED
Updating local order POD and attachments...
Already have POD
Getting attachments for SO-00455...
No new attachments found
Webhook - sourceUpdated script called at 2025-10-03 19:38:19
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048825178","salesorder_no":"SO-00455","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048825178","salesorder_no":"SO-00455","status":"invoiced"}}
EXT ID: 499326000048825178
REF: SO-00455
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Is allocated? yes
Local updated: 2025-10-03 18:36:00.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Getting local orders...
------------------------
Processing order 499326000048825178 (REF SO-00455)
Local order updated = 2025-10-03 18:35:43.000Z,
source updated = 2025-10-03T19:38:17+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[contactName] => Wayne Hadley
[notes] => Collect 1 x Brue Keg and empties
[externalOrderId] => 499326000048825178
[refId] => SO-00455
[externalCustomerId] => 499326000046966136
[externalLocationId] => 499326000046966140
[title] => Concierge Events
[deliveryStart] => 2025-10-03
[deliveryEnd] => 2025-10-03
[totalValue] => 270
[totalWeight] => 124
[syncInCreated] => 2025-09-29T13:23:18+0100
[syncInUpdated] => 2025-10-03T19:38:17+0100
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048825184
[externalProductId] => 499326000000061367
[sku] => BBG-SNML-50LK
[title] => San Miguel 11G
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 130
[price] => 130
)
[1] => Array
(
[externalOrderProductId] => 499326000048825186
[externalProductId] => 499326000000063923
[sku] => TTCG-GOLD-50LK
[title] => Thatcher's Gold Cider 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 95
[price] => 95
)
)
[deliveryName] => Concierge Events
[deliveryStreet] => Worle Football Club
[deliveryCity] => Worle
[deliveryCounty] =>
[deliveryPostcode] => BS22 6AH
)
Does this order already exist?
Yes
Existing custom fields: Array
(
[0] => Array
(
[id] => yt2l2o3cacu43wf
[value] => 8
)
[1] => Array
(
[id] => j381owny56syys6
[value] => 1
)
)
Is array
Merging custom fields...
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[contactName] => Wayne Hadley
[notes] => Collect 1 x Brue Keg and empties
[externalOrderId] => 499326000048825178
[refId] => SO-00455
[externalCustomerId] => 499326000046966136
[externalLocationId] => 499326000046966140
[title] => Concierge Events
[deliveryStart] => 2025-10-03
[deliveryEnd] => 2025-10-03
[totalValue] => 270
[totalWeight] => 124
[syncInCreated] => 2025-09-29T13:23:18+0100
[syncInUpdated] => 2025-10-03T19:38:17+0100
[syncInStatus] => closed
[deliveryName] => Concierge Events
[deliveryStreet] => Worle Football Club
[deliveryCity] => Worle
[deliveryCounty] =>
[deliveryPostcode] => BS22 6AH
[syncOutUpdated] => 2025-10-03T19:38:19+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Wayne Hadley
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => [{"id":"yt2l2o3cacu43wf","value":"8"},{"id":"j381owny56syys6","value":"1"}]
)
Updating order
Getting customer details
Communication error with MaxOptra (412)
orders/SO-00455
https://7daycellar.maxoptra.com/api/v6/orders/SO-00455
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000046966140
Array
(
[referenceNumber] => 499326000046966140
[name] => Concierge Events, Worle Football Club, Worle
[address] => BS22 6AH
)
499326000046966140
Customer exists and has not changed (skipping): 499326000046966136
Getting products
Updating product 499326000000061367
Updating order product 499326000048825184
Error updating SO-00455
"{\"data\":null,\"errors\":[{\"code\":\"ORDER_IS_LOCKED\",\"name\":\"The order is locked\",\"details\":null,\"field\":null}],\"warnings\":[]}"
Updated
Updating product 499326000000063923
Updating local order status...
Updating order product 499326000048825186
Done
Finished syncing to MaxOptra for order SO-00455
Updated
Removing deleted order items
Done all.
Done
Finished at 2025-10-03 19:38:19
Syncing to MaxOptra
Sync to MaxOptra: SO-00455
Processing order: qv5hgbux769xpa4, ref SO-00455
Order is not marked to sync (possibly no longer in source)
Finished syncing to MaxOptra for order SO-00455
Done all.
Finished at 2025-10-03 19:38:20
Webhook - sourceUpdated script called at 2025-10-03 19:38:23
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048825178","salesorder_no":"SO-00455","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048825178","salesorder_no":"SO-00455","status":"invoiced"}}
EXT ID: 499326000048825178
REF: SO-00455
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048825178 (REF SO-00455)
Local order updated = 2025-10-03 18:38:17.000Z,
source updated = 2025-10-03T19:38:17+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00455
Processing order: qv5hgbux769xpa4, ref SO-00455
Syncing SO-00455
Using default start and end times
Time window: 2025-10-03T06:00:00+01:00 - 2025-10-03T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 03/10/2025 19:36 - Local updated: 2025-10-03 18:36:00.000Z - Source updated: 2025-10-03 18:38:17.000Z
Changed? yes
Current MaxOptra status: COMPLETED
Completed? yes
Previous status: COMPLETED
Updating local order POD and attachments...
Already have POD
Getting attachments for SO-00455...
No new attachments found
Is allocated? yes
Local updated: 2025-10-03 18:36:00.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Communication error with MaxOptra (412)
orders/SO-00455
https://7daycellar.maxoptra.com/api/v6/orders/SO-00455
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000046966140
Array
(
[referenceNumber] => 499326000046966140
[name] => Concierge Events, Worle Football Club, Worle
[address] => BS22 6AH
)
499326000046966140
Error updating SO-00455
"{\"data\":null,\"errors\":[{\"code\":\"ORDER_IS_LOCKED\",\"name\":\"The order is locked\",\"details\":null,\"field\":null}],\"warnings\":[]}"
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00455
Done all.
Finished at 2025-10-03 19:38:25
Webhook - sourceUpdated script called at 2025-10-03 19:38:29
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048825178","salesorder_no":"SO-00455","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048825178","salesorder_no":"SO-00455","status":"invoiced"}}
EXT ID: 499326000048825178
REF: SO-00455
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048825178 (REF SO-00455)
Local order updated = 2025-10-03 18:38:17.000Z,
source updated = 2025-10-03T19:38:17+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00455
Processing order: qv5hgbux769xpa4, ref SO-00455
Syncing SO-00455
Using default start and end times
Time window: 2025-10-03T06:00:00+01:00 - 2025-10-03T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 03/10/2025 19:36 - Local updated: 2025-10-03 18:36:00.000Z - Source updated: 2025-10-03 18:38:17.000Z
Changed? yes
Current MaxOptra status: COMPLETED
Completed? yes
Previous status: COMPLETED
Updating local order POD and attachments...
Already have POD
Getting attachments for SO-00455...
No new attachments found
Webhook - sourceUpdated script called at 2025-10-03 19:38:30
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048962039","salesorder_no":"SO-00462","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048962039","salesorder_no":"SO-00462","status":"invoiced"}}
EXT ID: 499326000048962039
REF: SO-00462
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Is allocated? yes
Local updated: 2025-10-03 18:36:00.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Getting local orders...
Communication error with MaxOptra (412)
orders/SO-00455
https://7daycellar.maxoptra.com/api/v6/orders/SO-00455
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000046966140
Array
(
[referenceNumber] => 499326000046966140
[name] => Concierge Events, Worle Football Club, Worle
[address] => BS22 6AH
)
499326000046966140
------------------------
Processing order 499326000048962039 (REF SO-00462)
Updates pending to source for order: 499326000048962039
Updates found - pushing to source
Error updating SO-00455
"{\"data\":null,\"errors\":[{\"code\":\"ORDER_IS_LOCKED\",\"name\":\"The order is locked\",\"details\":null,\"field\":null}],\"warnings\":[]}"
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00455
Done all.
Finished at 2025-10-03 19:38:31
Webhook - sourceUpdated script called at 2025-10-03 19:38:31
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048549582","salesorder_no":"SO-00452","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048549582","salesorder_no":"SO-00452","status":"invoiced"}}
EXT ID: 499326000048549582
REF: SO-00452
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Done updating. Proceeding to sync from source.
Local order updated = 2025-10-03 18:36:34.000Z,
source updated = 2025-10-03T19:36:34+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00462
Getting local orders...
------------------------
Processing order 499326000048549582 (REF SO-00452)
Updates pending to source for order: 499326000048549582
Updates found - pushing to source
Processing order: 4dmkrivudjy63aj, ref SO-00462
Syncing SO-00462
Using default start and end times
Time window: 2025-10-03T06:00:00+01:00 - 2025-10-03T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 03/10/2025 19:36 - Local updated: 2025-10-03 18:36:00.000Z - Source updated: 2025-10-03 18:36:34.000Z
Changed? yes
Current MaxOptra status: COMPLETED
Completed? yes
Previous status: COMPLETED
Updating local order POD and attachments...
Already have POD
Getting attachments for SO-00462...
No new attachments found
Is allocated? yes
Local updated: 2025-10-03 18:36:00.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Communication error with MaxOptra (412)
orders/SO-00462
https://7daycellar.maxoptra.com/api/v6/orders/SO-00462
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000046812607
Array
(
[referenceNumber] => 499326000046812607
[name] => Yate Outdoor Sports Complex, Broad Lane, Yate
[address] => BS37 7LB
)
499326000046812607
Done updating. Proceeding to sync from source.
Local order updated = 2025-10-03 18:36:38.000Z,
source updated = 2025-10-03T19:36:38+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00452
Error updating SO-00462
"{\"data\":null,\"errors\":[{\"code\":\"ORDER_IS_LOCKED\",\"name\":\"The order is locked\",\"details\":null,\"field\":null}],\"warnings\":[]}"
Webhook - sourceUpdated script called at 2025-10-03 19:38:33
Source: Zoho
Updating local order status...
Data: {"salesorder":{"salesorder_id":"499326000048549582","salesorder_no":"SO-00452","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048549582","salesorder_no":"SO-00452","status":"invoiced"}}
EXT ID: 499326000048549582
REF: SO-00452
200 response code sent
Syncing from Zoho to local database
Done
Getting source order from Zoho...
Finished syncing to MaxOptra for order SO-00462
Done all.
Finished at 2025-10-03 19:38:33
Processing order: 3fhoq4qcndsfans, ref SO-00452
Syncing SO-00452
Using default start and end times
Time window: 2025-10-03T06:00:00+01:00 - 2025-10-03T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 03/10/2025 19:36 - Local updated: 2025-10-03 18:36:00.000Z - Source updated: 2025-10-03 18:36:38.000Z
Changed? yes
Current MaxOptra status: COMPLETED
Completed? yes
Previous status: COMPLETED
Updating local order POD and attachments...
Already have POD
Getting attachments for SO-00452...
Getting local orders...
No new attachments found
------------------------
Processing order 499326000048549582 (REF SO-00452)
Local order updated = 2025-10-03 18:36:38.000Z,
source updated = 2025-10-03T19:38:32+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => The Horseshoe (Chipping Sodbury)
[notes] => Front door open from 10am
[externalOrderId] => 499326000048549582
[refId] => SO-00452
[externalCustomerId] => 499326000047045175
[externalLocationId] => 499326000047045177
[title] => The Horseshoe (Chipping Sodbury)
[deliveryStart] => 2025-10-03
[deliveryEnd] => 2025-10-03
[totalValue] => 292.72
[totalWeight] => 153
[syncInCreated] => 2025-09-24T16:41:46+0100
[syncInUpdated] => 2025-10-03T19:38:32+0100
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048549588
[externalProductId] => 499326000044145711
[sku] => BB-HSDD-9G
[title] => Hardings Double Hopped 4.0% (9g)
[notes] =>
[quantity] => 1
[weightKg] => 51
[weightTotal] => 51
[priceTotal] => 83.99
[price] => 83.99
)
[1] => Array
(
[externalOrderProductId] => 499326000048549590
[externalProductId] => 499326000021043799
[sku] => BB-HSAR-9G
[title] => Hardings Amber Ale 3.9% (9g)
[notes] =>
[quantity] => 1
[weightKg] => 51
[weightTotal] => 51
[priceTotal] => 79.95
[price] => 79.95
)
[2] => Array
(
[externalOrderProductId] => 499326000048549592
[externalProductId] => 499326000021043786
[sku] => BB-HSBT-9G
[title] => Hardings Best 4.2% (9g)
[notes] =>
[quantity] => 1
[weightKg] => 51
[weightTotal] => 51
[priceTotal] => 79.99
[price] => 79.99
)
)
[deliveryName] => The Horseshoe (Chipping Sodbury)
[deliveryStreet] => 2 High Street
[deliveryCity] => Chipping Sodbury
[deliveryCounty] =>
[deliveryPostcode] => BS37 6AH
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => The Horseshoe (Chipping Sodbury)
[notes] => Front door open from 10am
[externalOrderId] => 499326000048549582
[refId] => SO-00452
[externalCustomerId] => 499326000047045175
[externalLocationId] => 499326000047045177
[title] => The Horseshoe (Chipping Sodbury)
[deliveryStart] => 2025-10-03
[deliveryEnd] => 2025-10-03
[totalValue] => 292.72
[totalWeight] => 153
[syncInCreated] => 2025-09-24T16:41:46+0100
[syncInUpdated] => 2025-10-03T19:38:32+0100
[syncInStatus] => closed
[deliveryName] => The Horseshoe (Chipping Sodbury)
[deliveryStreet] => 2 High Street
[deliveryCity] => Chipping Sodbury
[deliveryCounty] =>
[deliveryPostcode] => BS37 6AH
[syncOutUpdated] => 2025-10-03T19:38:34+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => The Horseshoe (Chipping Sodbury)
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Is allocated? yes
Local updated: 2025-10-03 18:36:00.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Customer exists and has not changed (skipping): 499326000047045175
Getting products
Updating product 499326000044145711
Updating order product 499326000048549588
Updated
Updating product 499326000021043799
Updating order product 499326000048549590
Updated
Updating product 499326000021043786
Updating order product 499326000048549592
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00452
Communication error with MaxOptra (412)
orders/SO-00452
https://7daycellar.maxoptra.com/api/v6/orders/SO-00452
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000047045177
Array
(
[referenceNumber] => 499326000047045177
[name] => The Horseshoe (Chipping Sodbury), 2 High Street, Chipping Sodbury
[address] => BS37 6AH
)
499326000047045177
Error updating SO-00452
"{\"data\":null,\"errors\":[{\"code\":\"ORDER_IS_LOCKED\",\"name\":\"The order is locked\",\"details\":null,\"field\":null}],\"warnings\":[]}"
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00452
Done all.
Finished at 2025-10-03 19:38:34
Processing order: 3fhoq4qcndsfans, ref SO-00452
Order is not marked to sync (possibly no longer in source)
Finished syncing to MaxOptra for order SO-00452
Done all.
Finished at 2025-10-03 19:38:34
Webhook - sourceUpdated script called at 2025-10-03 19:38:49
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048962039","salesorder_no":"SO-00462","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048962039","salesorder_no":"SO-00462","status":"invoiced"}}
EXT ID: 499326000048962039
REF: SO-00462
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048962039 (REF SO-00462)
Local order updated = 2025-10-03 18:36:34.000Z,
source updated = 2025-10-03T19:38:31+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => info@yosc.co.uk
[contactName] => Andy Lathall
[notes] =>
[externalOrderId] => 499326000048962039
[refId] => SO-00462
[externalCustomerId] => 499326000046812601
[externalLocationId] => 499326000046812607
[title] => Yate Outdoor Sports Complex
[deliveryStart] => 2025-10-03
[deliveryEnd] => 2025-10-03
[totalValue] => 302.33
[totalWeight] => 101
[syncInCreated] => 2025-10-01T09:58:49+0100
[syncInUpdated] => 2025-10-03T19:38:31+0100
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048962045
[externalProductId] => 499326000000061781
[sku] => ASHI-PERO-50LK
[title] => Peroni Nastro Azzuro 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 156.99
[price] => 156.99
)
[1] => Array
(
[externalOrderProductId] => 499326000048962047
[externalProductId] => 499326000039253885
[sku] => GK-LLHD-30LK
[title] => Level Head IPA
[notes] =>
[quantity] => 1
[weightKg] => 39
[weightTotal] => 39
[priceTotal] => 94.95
[price] => 94.95
)
)
[deliveryName] => Yate Outdoor Sports Complex
[deliveryStreet] => Broad Lane
[deliveryCity] => Yate
[deliveryCounty] =>
[deliveryPostcode] => BS37 7LB
)
Does this order already exist?
Yes
Existing custom fields: Array
(
[0] => Array
(
[id] => yt2l2o3cacu43wf
[value] => 9
)
[1] => Array
(
[id] => j381owny56syys6
[value] => 200
)
)
Is array
Merging custom fields...
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => info@yosc.co.uk
[contactName] => Andy Lathall
[notes] =>
[externalOrderId] => 499326000048962039
[refId] => SO-00462
[externalCustomerId] => 499326000046812601
[externalLocationId] => 499326000046812607
[title] => Yate Outdoor Sports Complex
[deliveryStart] => 2025-10-03
[deliveryEnd] => 2025-10-03
[totalValue] => 302.33
[totalWeight] => 101
[syncInCreated] => 2025-10-01T09:58:49+0100
[syncInUpdated] => 2025-10-03T19:38:31+0100
[syncInStatus] => closed
[deliveryName] => Yate Outdoor Sports Complex
[deliveryStreet] => Broad Lane
[deliveryCity] => Yate
[deliveryCounty] =>
[deliveryPostcode] => BS37 7LB
[syncOutUpdated] => 2025-10-03T19:38:50+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Andy Lathall
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => [{"id":"yt2l2o3cacu43wf","value":"9"},{"id":"j381owny56syys6","value":"200"}]
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000046812601
Getting products
Updating product 499326000000061781
Updating order product 499326000048962045
Updated
Updating product 499326000039253885
Updating order product 499326000048962047
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00462
Processing order: 4dmkrivudjy63aj, ref SO-00462
Syncing SO-00462
Using default start and end times
Time window: 2025-10-03T06:00:00+01:00 - 2025-10-03T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 03/10/2025 19:36 - Local updated: 2025-10-03 18:38:50.000Z - Source updated: 2025-10-03 18:38:31.000Z
Changed? yes
Current MaxOptra status: COMPLETED
Completed? yes
Previous status: COMPLETED
Updating local order POD and attachments...
Already have POD
Getting attachments for SO-00462...
No new attachments found
Is allocated? yes
Local updated: 2025-10-03 18:38:50.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Communication error with MaxOptra (412)
orders/SO-00462
https://7daycellar.maxoptra.com/api/v6/orders/SO-00462
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000046812607
Array
(
[referenceNumber] => 499326000046812607
[name] => Yate Outdoor Sports Complex, Broad Lane, Yate
[address] => BS37 7LB
)
499326000046812607
Error updating SO-00462
"{\"data\":null,\"errors\":[{\"code\":\"ORDER_IS_LOCKED\",\"name\":\"The order is locked\",\"details\":null,\"field\":null}],\"warnings\":[]}"
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00462
Done all.
Finished at 2025-10-03 19:38:51
Webhook - sourceUpdated script called at 2025-10-03 19:40:49
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048825178","salesorder_no":"SO-00455","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048825178","salesorder_no":"SO-00455","status":"invoiced"}}
EXT ID: 499326000048825178
REF: SO-00455
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048825178 (REF SO-00455)
Local order updated = 2025-10-03 18:38:17.000Z,
source updated = 2025-10-03T19:38:17+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00455
Processing order: qv5hgbux769xpa4, ref SO-00455
Syncing SO-00455
Using default start and end times
Time window: 2025-10-03T06:00:00+01:00 - 2025-10-03T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 03/10/2025 19:36 - Local updated: 2025-10-03 18:36:00.000Z - Source updated: 2025-10-03 18:38:17.000Z
Changed? yes
Current MaxOptra status: COMPLETED
Completed? yes
Previous status: COMPLETED
Updating local order POD and attachments...
Already have POD
Getting attachments for SO-00455...
No new attachments found
Is allocated? yes
Local updated: 2025-10-03 18:36:00.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Communication error with MaxOptra (412)
orders/SO-00455
https://7daycellar.maxoptra.com/api/v6/orders/SO-00455
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000046966140
Array
(
[referenceNumber] => 499326000046966140
[name] => Concierge Events, Worle Football Club, Worle
[address] => BS22 6AH
)
499326000046966140
Error updating SO-00455
"{\"data\":null,\"errors\":[{\"code\":\"ORDER_IS_LOCKED\",\"name\":\"The order is locked\",\"details\":null,\"field\":null}],\"warnings\":[]}"
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00455
Done all.
Finished at 2025-10-03 19:40:51
Webhook - sourceUpdated script called at 2025-10-03 19:41:09
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048962039","salesorder_no":"SO-00462","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048962039","salesorder_no":"SO-00462","status":"invoiced"}}
EXT ID: 499326000048962039
REF: SO-00462
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048962039 (REF SO-00462)
Local order updated = 2025-10-03 18:38:31.000Z,
source updated = 2025-10-03T19:38:31+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00462
Webhook - sourceUpdated script called at 2025-10-03 19:41:09
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048962039","salesorder_no":"SO-00462","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048962039","salesorder_no":"SO-00462","status":"invoiced"}}
EXT ID: 499326000048962039
REF: SO-00462
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
Processing order: 4dmkrivudjy63aj, ref SO-00462
Syncing SO-00462
Using default start and end times
Time window: 2025-10-03T06:00:00+01:00 - 2025-10-03T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 03/10/2025 19:36 - Local updated: 2025-10-03 18:36:00.000Z - Source updated: 2025-10-03 18:38:31.000Z
Changed? yes
Current MaxOptra status: COMPLETED
Completed? yes
Previous status: COMPLETED
Updating local order POD and attachments...
Already have POD
Getting attachments for SO-00462...
------------------------
Processing order 499326000048962039 (REF SO-00462)
Local order updated = 2025-10-03 18:38:31.000Z,
source updated = 2025-10-03T19:38:31+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00462
No new attachments found
Is allocated? yes
Local updated: 2025-10-03 18:36:00.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Communication error with MaxOptra (412)
orders/SO-00462
https://7daycellar.maxoptra.com/api/v6/orders/SO-00462
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000046812607
Array
(
[referenceNumber] => 499326000046812607
[name] => Yate Outdoor Sports Complex, Broad Lane, Yate
[address] => BS37 7LB
)
499326000046812607
Processing order: 4dmkrivudjy63aj, ref SO-00462
Syncing SO-00462
Using default start and end times
Time window: 2025-10-03T06:00:00+01:00 - 2025-10-03T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 03/10/2025 19:36 - Local updated: 2025-10-03 18:36:00.000Z - Source updated: 2025-10-03 18:38:31.000Z
Changed? yes
Current MaxOptra status: COMPLETED
Completed? yes
Previous status: COMPLETED
Updating local order POD and attachments...
Already have POD
Getting attachments for SO-00462...
No new attachments found
Error updating SO-00462
"{\"data\":null,\"errors\":[{\"code\":\"ORDER_IS_LOCKED\",\"name\":\"The order is locked\",\"details\":null,\"field\":null}],\"warnings\":[]}"
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00462
Done all.
Finished at 2025-10-03 19:41:10
Is allocated? yes
Local updated: 2025-10-03 18:36:00.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Communication error with MaxOptra (412)
orders/SO-00462
https://7daycellar.maxoptra.com/api/v6/orders/SO-00462
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000046812607
Array
(
[referenceNumber] => 499326000046812607
[name] => Yate Outdoor Sports Complex, Broad Lane, Yate
[address] => BS37 7LB
)
499326000046812607
Error updating SO-00462
"{\"data\":null,\"errors\":[{\"code\":\"ORDER_IS_LOCKED\",\"name\":\"The order is locked\",\"details\":null,\"field\":null}],\"warnings\":[]}"
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00462
Done all.
Finished at 2025-10-03 19:41:11
Webhook - sourceUpdated script called at 2025-10-03 19:41:38
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048549582","salesorder_no":"SO-00452","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048549582","salesorder_no":"SO-00452","status":"invoiced"}}
EXT ID: 499326000048549582
REF: SO-00452
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048549582 (REF SO-00452)
Local order updated = 2025-10-03 18:38:32.000Z,
source updated = 2025-10-03T19:38:32+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00452
Processing order: 3fhoq4qcndsfans, ref SO-00452
Syncing SO-00452
Using default start and end times
Time window: 2025-10-03T06:00:00+01:00 - 2025-10-03T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 03/10/2025 19:36 - Local updated: 2025-10-03 18:36:00.000Z - Source updated: 2025-10-03 18:38:32.000Z
Changed? yes
Current MaxOptra status: COMPLETED
Completed? yes
Previous status: COMPLETED
Updating local order POD and attachments...
Already have POD
Getting attachments for SO-00452...
No new attachments found
Is allocated? yes
Local updated: 2025-10-03 18:36:00.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Communication error with MaxOptra (412)
orders/SO-00452
https://7daycellar.maxoptra.com/api/v6/orders/SO-00452
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000047045177
Array
(
[referenceNumber] => 499326000047045177
[name] => The Horseshoe (Chipping Sodbury), 2 High Street, Chipping Sodbury
[address] => BS37 6AH
)
499326000047045177
Error updating SO-00452
"{\"data\":null,\"errors\":[{\"code\":\"ORDER_IS_LOCKED\",\"name\":\"The order is locked\",\"details\":null,\"field\":null}],\"warnings\":[]}"
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00452
Done all.
Finished at 2025-10-03 19:41:40
Webhook - sourceUpdated script called at 2025-10-03 19:43:33
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048549582","salesorder_no":"SO-00452","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048549582","salesorder_no":"SO-00452","status":"invoiced"}}
EXT ID: 499326000048549582
REF: SO-00452
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048549582 (REF SO-00452)
Local order updated = 2025-10-03 18:38:32.000Z,
source updated = 2025-10-03T19:38:32+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00452
Processing order: 3fhoq4qcndsfans, ref SO-00452
Syncing SO-00452
Using default start and end times
Time window: 2025-10-03T06:00:00+01:00 - 2025-10-03T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 03/10/2025 19:36 - Local updated: 2025-10-03 18:36:00.000Z - Source updated: 2025-10-03 18:38:32.000Z
Changed? yes
Current MaxOptra status: COMPLETED
Completed? yes
Previous status: COMPLETED
Updating local order POD and attachments...
Already have POD
Getting attachments for SO-00452...
No new attachments found
Is allocated? yes
Local updated: 2025-10-03 18:36:00.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Communication error with MaxOptra (412)
orders/SO-00452
https://7daycellar.maxoptra.com/api/v6/orders/SO-00452
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000047045177
Array
(
[referenceNumber] => 499326000047045177
[name] => The Horseshoe (Chipping Sodbury), 2 High Street, Chipping Sodbury
[address] => BS37 6AH
)
499326000047045177
Error updating SO-00452
"{\"data\":null,\"errors\":[{\"code\":\"ORDER_IS_LOCKED\",\"name\":\"The order is locked\",\"details\":null,\"field\":null}],\"warnings\":[]}"
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00452
Done all.
Finished at 2025-10-03 19:43:35
Webhook - sourceUpdated script called at 2025-10-03 19:44:32
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048962039","salesorder_no":"SO-00462","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048962039","salesorder_no":"SO-00462","status":"invoiced"}}
EXT ID: 499326000048962039
REF: SO-00462
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048962039 (REF SO-00462)
Local order updated = 2025-10-03 18:38:31.000Z,
source updated = 2025-10-03T19:38:31+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00462
Processing order: 4dmkrivudjy63aj, ref SO-00462
Syncing SO-00462
Using default start and end times
Time window: 2025-10-03T06:00:00+01:00 - 2025-10-03T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 03/10/2025 19:36 - Local updated: 2025-10-03 18:36:00.000Z - Source updated: 2025-10-03 18:38:31.000Z
Changed? yes
Current MaxOptra status: COMPLETED
Completed? yes
Previous status: COMPLETED
Updating local order POD and attachments...
Already have POD
Getting attachments for SO-00462...
No new attachments found
Is allocated? yes
Local updated: 2025-10-03 18:36:00.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Communication error with MaxOptra (412)
orders/SO-00462
https://7daycellar.maxoptra.com/api/v6/orders/SO-00462
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000046812607
Array
(
[referenceNumber] => 499326000046812607
[name] => Yate Outdoor Sports Complex, Broad Lane, Yate
[address] => BS37 7LB
)
499326000046812607
Error updating SO-00462
"{\"data\":null,\"errors\":[{\"code\":\"ORDER_IS_LOCKED\",\"name\":\"The order is locked\",\"details\":null,\"field\":null}],\"warnings\":[]}"
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00462
Done all.
Finished at 2025-10-03 19:44:34
Webhook - sourceUpdated script called at 2025-10-04 12:58:15
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000047813019","salesorder_no":"SO-00429","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000047813019","salesorder_no":"SO-00429","status":"open"}}
EXT ID: 499326000047813019
REF: SO-00429
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000047813019 (REF SO-00429)
Local order updated = 2025-09-08 05:34:24.000Z,
source updated = 2025-10-04T12:58:06+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => ianhitchman@fastmail.com
[contactName] => Ian Hitchman
[notes] =>
[externalOrderId] => 499326000047813019
[refId] => SO-00429
[externalCustomerId] => 499326000046148036
[externalLocationId] =>
[title] => Test Company
[deliveryStart] => 2025-09-11
[deliveryEnd] => 2025-09-11
[totalValue] => 130.8
[totalWeight] => 62
[syncInCreated] => 2025-09-07T13:46:48+0100
[syncInUpdated] => 2025-10-04T12:58:06+0100
[syncInStatus] => confirmed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000047813025
[externalProductId] => 499326000000062474
[sku] => BB-LSPS-50LK
[title] => Los Perros 5% - 50Ltr
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 109
[price] => 109
)
)
[deliveryName] => test
[deliveryStreet] => 21 Broadlands
[deliveryCity] => Benfleet
[deliveryCounty] =>
[deliveryPostcode] => SS7 3BD
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => ianhitchman@fastmail.com
[contactName] => Ian Hitchman
[notes] =>
[externalOrderId] => 499326000047813019
[refId] => SO-00429
[externalCustomerId] => 499326000046148036
[externalLocationId] =>
[title] => Test Company
[deliveryStart] => 2025-09-11
[deliveryEnd] => 2025-09-11
[totalValue] => 130.8
[totalWeight] => 62
[syncInCreated] => 2025-09-07T13:46:48+0100
[syncInUpdated] => 2025-10-04T12:58:06+0100
[syncInStatus] => confirmed
[deliveryName] => test
[deliveryStreet] => 21 Broadlands
[deliveryCity] => Benfleet
[deliveryCounty] =>
[deliveryPostcode] => SS7 3BD
[syncOutUpdated] => 2025-10-04T12:58:15+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Ian Hitchman
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
2025-08-07 14:25:37.000Z != 2025-10-02T12:19:34+0100
Customer changed - updating 499326000046148036
Updating order contact details
Getting products
Updating product 499326000000062474
Updating order product 499326000047813025
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00429
Processing order: 21xnenw5xtarn65, ref SO-00429
Syncing SO-00429
Using default start and end times
Delivery start = 2025-09-11 00:00:00.000Z = 2025-09-11T06:00:00+01:00
Delivery end = 2025-09-11 00:00:00.000Z = 2025-09-11T20:00:00+01:00
Delivery is in the past. Skipping creation/update in MaxOptra.
Found order in MaxOptra? yes
MO updated: 08/09/2025 06:34 - Local updated: 2025-10-04 11:58:15.000Z - Source updated: 2025-10-04 11:58:06.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-10-04 11:58:15.000Z
Pending updates to MaxOptra? no
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00429
Done all.
Finished at 2025-10-04 12:58:16
Webhook - sourceUpdated script called at 2025-10-06 09:38:26
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048901093","salesorder_no":"SO-00460","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048901093","salesorder_no":"SO-00460","status":"open"}}
EXT ID: 499326000048901093
REF: SO-00460
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048901093 (REF SO-00460)
Local order updated = 2025-09-30 11:57:20.000Z,
source updated = 2025-10-06T09:38:19+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => Royal Oak
[notes] => Entrance located via car park
Steps opposite bin shed
please take in to pub
do not block doors
[externalOrderId] => 499326000048901093
[refId] => SO-00460
[externalCustomerId] => 499326000048888041
[externalLocationId] => 499326000048888047
[title] => Royal Oak
[deliveryStart] => 2025-10-06
[deliveryEnd] => 2025-10-06
[totalValue] => 98.4
[totalWeight] => 0
[syncInCreated] => 2025-09-30T12:57:20+0100
[syncInUpdated] => 2025-10-06T09:38:19+0100
[syncInStatus] => confirmed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048901099
[externalProductId] => 499326000044845196
[sku] =>
[title] => Harding's Golden Ale Pin 4.2%
[notes] =>
[quantity] => 2
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 82
[price] => 41
)
[1] => Array
(
[externalOrderProductId] => HEADER-499326000048901099
[externalProductId] => 499326000048901091
[sku] =>
[title] => Cellar entrance via car park on the right , please do not leave casks blocking doors
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
[2] => Array
(
[externalOrderProductId] => 499326000048901101
[externalProductId] => 499326000045233771
[sku] =>
[title] => POS Hardings Golden Ale Pump Clip
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
[3] => Array
(
[externalOrderProductId] => HEADER-499326000048901101
[externalProductId] => 499326000048901091
[sku] =>
[title] => Cellar entrance via car park on the right , please do not leave casks blocking doors
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
)
[deliveryName] => Royal Oak
[deliveryStreet] => Luxborough
[deliveryCity] => Watchet
[deliveryCounty] =>
[deliveryPostcode] => TA23 0SH
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => Royal Oak
[notes] => Entrance located via car park
Steps opposite bin shed
please take in to pub
do not block doors
[externalOrderId] => 499326000048901093
[refId] => SO-00460
[externalCustomerId] => 499326000048888041
[externalLocationId] => 499326000048888047
[title] => Royal Oak
[deliveryStart] => 2025-10-06
[deliveryEnd] => 2025-10-06
[totalValue] => 98.4
[totalWeight] => 0
[syncInCreated] => 2025-09-30T12:57:20+0100
[syncInUpdated] => 2025-10-06T09:38:19+0100
[syncInStatus] => confirmed
[deliveryName] => Royal Oak
[deliveryStreet] => Luxborough
[deliveryCity] => Watchet
[deliveryCounty] =>
[deliveryPostcode] => TA23 0SH
[syncOutUpdated] => 2025-10-06T09:38:27+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Royal Oak
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
2025-09-30 11:54:26.000Z != 2025-10-01T08:21:15+0100
Customer changed - updating 499326000048888041
Updating order contact details
Getting products
Updating product 499326000044845196
Updating order product 499326000048901099
Updated
Updating product 499326000048901091
Updating order product HEADER-499326000048901099
Updated
Updating product 499326000045233771
Updating order product 499326000048901101
Updated
Updating product 499326000048901091
Updating order product HEADER-499326000048901101
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00460
Processing order: pg2xpqkky3vq0mh, ref SO-00460
Syncing SO-00460
Using default start and end times
Time window: 2025-10-06T06:00:00+01:00 - 2025-10-06T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 30/09/2025 12:57 - Local updated: 2025-10-06 08:38:27.000Z - Source updated: 2025-10-06 08:38:19.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status:
Status changed - mark for sync back to source
Is allocated? no
Local updated: 2025-10-06 08:38:27.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000048888047
Array
(
[referenceNumber] => 499326000048888047
[name] => Royal Oak, Luxborough, Watchet
[address] => TA23 0SH
)
499326000048888047
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00460
Done all.
Finished at 2025-10-06 09:38:29
Webhook - sourceUpdated script called at 2025-10-06 09:39:58
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048901093","salesorder_no":"SO-00460","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048901093","salesorder_no":"SO-00460","status":"invoiced"}}
EXT ID: 499326000048901093
REF: SO-00460
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048901093 (REF SO-00460)
Updates pending to source for order: 499326000048901093
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-10-06 08:38:19.000Z,
source updated = 2025-10-06T09:39:30+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => Royal Oak
[notes] => Entrance located via car park
Steps opposite bin shed
please take in to pub
do not block doors
[externalOrderId] => 499326000048901093
[refId] => SO-00460
[externalCustomerId] => 499326000048888041
[externalLocationId] => 499326000048888047
[title] => Royal Oak
[deliveryStart] => 2025-10-06
[deliveryEnd] => 2025-10-06
[totalValue] => 98.4
[totalWeight] => 0
[syncInCreated] => 2025-09-30T12:57:20+0100
[syncInUpdated] => 2025-10-06T09:39:30+0100
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048901099
[externalProductId] => 499326000044845196
[sku] =>
[title] => Harding's Golden Ale Pin 4.2%
[notes] =>
[quantity] => 2
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 82
[price] => 41
)
[1] => Array
(
[externalOrderProductId] => HEADER-499326000048901099
[externalProductId] => 499326000048901091
[sku] =>
[title] => Cellar entrance via car park on the right , please do not leave casks blocking doors
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
[2] => Array
(
[externalOrderProductId] => 499326000048901101
[externalProductId] => 499326000045233771
[sku] =>
[title] => POS Hardings Golden Ale Pump Clip
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
[3] => Array
(
[externalOrderProductId] => HEADER-499326000048901101
[externalProductId] => 499326000048901091
[sku] =>
[title] => Cellar entrance via car park on the right , please do not leave casks blocking doors
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
)
[deliveryName] => Royal Oak
[deliveryStreet] => Luxborough
[deliveryCity] => Watchet
[deliveryCounty] =>
[deliveryPostcode] => TA23 0SH
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => Royal Oak
[notes] => Entrance located via car park
Steps opposite bin shed
please take in to pub
do not block doors
[externalOrderId] => 499326000048901093
[refId] => SO-00460
[externalCustomerId] => 499326000048888041
[externalLocationId] => 499326000048888047
[title] => Royal Oak
[deliveryStart] => 2025-10-06
[deliveryEnd] => 2025-10-06
[totalValue] => 98.4
[totalWeight] => 0
[syncInCreated] => 2025-09-30T12:57:20+0100
[syncInUpdated] => 2025-10-06T09:39:30+0100
[syncInStatus] => closed
[deliveryName] => Royal Oak
[deliveryStreet] => Luxborough
[deliveryCity] => Watchet
[deliveryCounty] =>
[deliveryPostcode] => TA23 0SH
[syncOutUpdated] => 2025-10-06T09:40:00+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Royal Oak
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000048888041
Getting products
Updating product 499326000044845196
Updating order product 499326000048901099
Updated
Updating product 499326000048901091
Updating order product HEADER-499326000048901099
Updated
Updating product 499326000045233771
Updating order product 499326000048901101
Updated
Updating product 499326000048901091
Updating order product HEADER-499326000048901101
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00460
Processing order: pg2xpqkky3vq0mh, ref SO-00460
Syncing SO-00460
Using default start and end times
Time window: 2025-10-06T06:00:00+01:00 - 2025-10-06T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 06/10/2025 09:38 - Local updated: 2025-10-06 08:40:00.000Z - Source updated: 2025-10-06 08:39:30.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-10-06 08:40:00.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000048888047
Array
(
[referenceNumber] => 499326000048888047
[name] => Royal Oak, Luxborough, Watchet
[address] => TA23 0SH
)
499326000048888047
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00460
Done all.
Finished at 2025-10-06 09:40:02
Webhook - sourceUpdated script called at 2025-10-06 09:40:29
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048901093","salesorder_no":"SO-00460","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048901093","salesorder_no":"SO-00460","status":"invoiced"}}
EXT ID: 499326000048901093
REF: SO-00460
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048901093 (REF SO-00460)
Local order updated = 2025-10-06 08:39:30.000Z,
source updated = 2025-10-06T09:39:59+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00460
Processing order: pg2xpqkky3vq0mh, ref SO-00460
Syncing SO-00460
Using default start and end times
Time window: 2025-10-06T06:00:00+01:00 - 2025-10-06T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 06/10/2025 09:40 - Local updated: 2025-10-06 08:38:00.000Z - Source updated: 2025-10-06 08:39:30.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-10-06 08:38:00.000Z
Pending updates to MaxOptra? no
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00460
Done all.
Finished at 2025-10-06 09:40:30
Webhook - sourceUpdated script called at 2025-10-06 09:44:31
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048901093","salesorder_no":"SO-00460","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048901093","salesorder_no":"SO-00460","status":"invoiced"}}
EXT ID: 499326000048901093
REF: SO-00460
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048901093 (REF SO-00460)
Local order updated = 2025-10-06 08:39:30.000Z,
source updated = 2025-10-06T09:39:59+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00460
Processing order: pg2xpqkky3vq0mh, ref SO-00460
Syncing SO-00460
Using default start and end times
Time window: 2025-10-06T06:00:00+01:00 - 2025-10-06T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 06/10/2025 09:40 - Local updated: 2025-10-06 08:40:00.000Z - Source updated: 2025-10-06 08:39:30.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00460
Done all.
Finished at 2025-10-06 09:44:32
Webhook - sourceUpdated script called at 2025-10-07 08:33:59
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048962011","salesorder_no":"SO-00461","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000048962011","salesorder_no":"SO-00461","status":"draft"}}
EXT ID: 499326000048962011
REF: SO-00461
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Error: API Error (404): Sorry! The item you are looking for is not available!
Error: Failed to sync source order
Finished at 2025-10-07 08:33:59
Webhook - sourceUpdated script called at 2025-10-07 09:10:29
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049193438","salesorder_no":"SO-00463","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000049193438","salesorder_no":"SO-00463","status":"draft"}}
EXT ID: 499326000049193438
REF: SO-00463
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049193438 (REF SO-00463)
Source order details: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => Swan (Taunton)
[notes] =>
[externalOrderId] => 499326000049193438
[refId] => SO-00463
[externalCustomerId] => 499326000026597291
[externalLocationId] => 499326000026597293
[title] => Swan (Taunton)
[deliveryStart] => 2025-10-08
[deliveryEnd] => 2025-10-08
[totalValue] => 0
[totalWeight] => 0
[syncInCreated] => 2025-10-07T09:10:15+0100
[syncInUpdated] => 2025-10-07T09:10:15+0100
[syncInStatus] => draft
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000049193448
[externalProductId] => 499326000021043887
[sku] =>
[title] => Collection of empties
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
)
[deliveryName] => Swan (Taunton)
[deliveryStreet] => Kingston St Mary
[deliveryCity] => Kingston St Mary
[deliveryCounty] =>
[deliveryPostcode] => TA2 8HW
)
Does this order already exist?
No
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => Swan (Taunton)
[notes] =>
[externalOrderId] => 499326000049193438
[refId] => SO-00463
[externalCustomerId] => 499326000026597291
[externalLocationId] => 499326000026597293
[title] => Swan (Taunton)
[deliveryStart] => 2025-10-08
[deliveryEnd] => 2025-10-08
[totalValue] => 0
[totalWeight] => 0
[syncInCreated] => 2025-10-07T09:10:15+0100
[syncInUpdated] => 2025-10-07T09:10:15+0100
[syncInStatus] => draft
[deliveryName] => Swan (Taunton)
[deliveryStreet] => Kingston St Mary
[deliveryCity] => Kingston St Mary
[deliveryCounty] =>
[deliveryPostcode] => TA2 8HW
[syncOutUpdated] => 2025-10-07T09:10:30+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Swan (Taunton)
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
New order
Marking order for sync with MaxOptra
Getting customer details
New customer 499326000026597291
Updating order contact details
Getting products
Updating product 499326000021043887
Creating new order product 499326000049193448
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00463
Processing order: tnhd60hz3inyc0m, ref SO-00463
Syncing SO-00463
Using default start and end times
Time window: 2025-10-08T06:00:00+01:00 - 2025-10-08T20:00:00+01:00
Found order in MaxOptra? no
Creating SO-00463
Done
Finished syncing to MaxOptra for order SO-00463
Done all.
Finished at 2025-10-07 09:10:31
Webhook - sourceUpdated script called at 2025-10-07 09:16:36
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049198086","salesorder_no":"SO-00464","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000049198086","salesorder_no":"SO-00464","status":"draft"}}
EXT ID: 499326000049198086
REF: SO-00464
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049198086 (REF SO-00464)
Source order details: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => The Horseshoe (Chipping Sodbury)
[notes] =>
[externalOrderId] => 499326000049198086
[refId] => SO-00464
[externalCustomerId] => 499326000047045175
[externalLocationId] => 499326000047045177
[title] => The Horseshoe (Chipping Sodbury)
[deliveryStart] => 2025-10-10
[deliveryEnd] => 2025-10-10
[totalValue] => 125.99
[totalWeight] => 0
[syncInCreated] => 2025-10-07T09:16:18+0100
[syncInUpdated] => 2025-10-07T09:16:18+0100
[syncInStatus] => draft
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000049198092
[externalProductId] => 499326000000062177
[sku] =>
[title] => ABK Weissbier 30ltr
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 104.99
[price] => 104.99
)
)
[deliveryName] => The Horseshoe (Chipping Sodbury)
[deliveryStreet] => 2 High Street
[deliveryCity] => Chipping Sodbury
[deliveryCounty] =>
[deliveryPostcode] => BS37 6AH
)
Does this order already exist?
No
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => The Horseshoe (Chipping Sodbury)
[notes] =>
[externalOrderId] => 499326000049198086
[refId] => SO-00464
[externalCustomerId] => 499326000047045175
[externalLocationId] => 499326000047045177
[title] => The Horseshoe (Chipping Sodbury)
[deliveryStart] => 2025-10-10
[deliveryEnd] => 2025-10-10
[totalValue] => 125.99
[totalWeight] => 0
[syncInCreated] => 2025-10-07T09:16:18+0100
[syncInUpdated] => 2025-10-07T09:16:18+0100
[syncInStatus] => draft
[deliveryName] => The Horseshoe (Chipping Sodbury)
[deliveryStreet] => 2 High Street
[deliveryCity] => Chipping Sodbury
[deliveryCounty] =>
[deliveryPostcode] => BS37 6AH
[syncOutUpdated] => 2025-10-07T09:16:37+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => The Horseshoe (Chipping Sodbury)
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
New order
Marking order for sync with MaxOptra
Getting customer details
2025-09-29 18:54:28.000Z != 2025-10-07T09:15:41+0100
Customer changed - updating 499326000047045175
Updating order contact details
Getting products
Creating product 499326000000062177
Creating new order product 499326000049198092
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00464
Processing order: kjvawbbepe3shbz, ref SO-00464
Syncing SO-00464
Using default start and end times
Time window: 2025-10-10T06:00:00+01:00 - 2025-10-10T20:00:00+01:00
Found order in MaxOptra? no
Creating SO-00464
Done
Finished syncing to MaxOptra for order SO-00464
Done all.
Finished at 2025-10-07 09:16:37
Webhook - sourceUpdated script called at 2025-10-07 10:06:26
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049213017","salesorder_no":"SO-00465","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000049213017","salesorder_no":"SO-00465","status":"draft"}}
EXT ID: 499326000049213017
REF: SO-00465
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Error: API Error (404): Sorry! The item you are looking for is not available!
Error: Failed to sync source order
Finished at 2025-10-07 10:06:26
Webhook - sourceUpdated script called at 2025-10-07 14:35:03
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049237011","salesorder_no":"SO-00466","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000049237011","salesorder_no":"SO-00466","status":"draft"}}
EXT ID: 499326000049237011
REF: SO-00466
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Error: API Error (404): Sorry! The item you are looking for is not available!
Error: Failed to sync source order
Finished at 2025-10-07 14:35:03
Webhook - sourceUpdated script called at 2025-10-07 16:28:11
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049243005","salesorder_no":"SO-00467","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000049243005","salesorder_no":"SO-00467","status":"draft"}}
EXT ID: 499326000049243005
REF: SO-00467
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049243005 (REF SO-00467)
Source order details: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => George & Dragon (Winterbourne)
[notes] =>
[externalOrderId] => 499326000049243005
[refId] => SO-00467
[externalCustomerId] => 499326000048652956
[externalLocationId] => 499326000048652962
[title] => George & Dragon (Winterbourne)
[deliveryStart] => 2025-10-09
[deliveryEnd] => 2025-10-09
[totalValue] => 385.16
[totalWeight] => 186
[syncInCreated] => 2025-10-07T16:28:08+0100
[syncInUpdated] => 2025-10-07T16:28:08+0100
[syncInStatus] => draft
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000049243011
[externalProductId] => 499326000022631148
[sku] => MCBC-DOOM-50LK
[title] => Doombar 50ltr
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 134.99
[price] => 134.99
)
[1] => Array
(
[externalOrderProductId] => 499326000049243013
[externalProductId] => 499326000000063923
[sku] => TTCG-GOLD-50LK
[title] => Thatcher's Gold Cider 11g
[notes] =>
[quantity] => 2
[weightKg] => 62
[weightTotal] => 124
[priceTotal] => 185.98
[price] => 92.99
)
)
[deliveryName] => George & Dragon (Winterbourne)
[deliveryStreet] => High Street
[deliveryCity] => Winterbourne
[deliveryCounty] =>
[deliveryPostcode] => BS36 1JW
)
Does this order already exist?
No
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => George & Dragon (Winterbourne)
[notes] =>
[externalOrderId] => 499326000049243005
[refId] => SO-00467
[externalCustomerId] => 499326000048652956
[externalLocationId] => 499326000048652962
[title] => George & Dragon (Winterbourne)
[deliveryStart] => 2025-10-09
[deliveryEnd] => 2025-10-09
[totalValue] => 385.16
[totalWeight] => 186
[syncInCreated] => 2025-10-07T16:28:08+0100
[syncInUpdated] => 2025-10-07T16:28:08+0100
[syncInStatus] => draft
[deliveryName] => George & Dragon (Winterbourne)
[deliveryStreet] => High Street
[deliveryCity] => Winterbourne
[deliveryCounty] =>
[deliveryPostcode] => BS36 1JW
[syncOutUpdated] => 2025-10-07T16:28:12+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => George & Dragon (Winterbourne)
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
New order
Marking order for sync with MaxOptra
Getting customer details
New customer 499326000048652956
Updating order contact details
Getting products
Creating product 499326000022631148
Creating new order product 499326000049243011
Updating product 499326000000063923
Creating new order product 499326000049243013
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00467
Processing order: 02kwknmriecvv6e, ref SO-00467
Syncing SO-00467
Using default start and end times
Time window: 2025-10-09T06:00:00+01:00 - 2025-10-09T20:00:00+01:00
Found order in MaxOptra? no
Creating SO-00467
Done
Finished syncing to MaxOptra for order SO-00467
Done all.
Finished at 2025-10-07 16:28:13
Webhook - sourceUpdated script called at 2025-10-07 18:46:43
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048875146","salesorder_no":"SO-00459","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048875146","salesorder_no":"SO-00459","status":"open"}}
EXT ID: 499326000048875146
REF: SO-00459
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048875146 (REF SO-00459)
Local order updated = 2025-09-30 11:16:12.000Z,
source updated = 2025-10-07T18:46:43+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => info@lambandflag1705.co.uk
[contactName] => Pat Carrol
[notes] =>
[externalOrderId] => 499326000048875146
[refId] => SO-00459
[externalCustomerId] => 499326000009949812
[externalLocationId] => 499326000009949814
[title] => Lamb & Flag (Taunton)
[deliveryStart] => 2025-10-08
[deliveryEnd] => 2025-10-08
[totalValue] => 93.6
[totalWeight] => 51
[syncInCreated] => 2025-09-30T12:16:12+0100
[syncInUpdated] => 2025-10-07T18:46:43+0100
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000048875152
[externalProductId] => 499326000021043786
[sku] => BB-HSBT-9G
[title] => Hardings Best Bitter 4.2% (9g)
[notes] =>
[quantity] => 1
[weightKg] => 51
[weightTotal] => 51
[priceTotal] => 78
[price] => 78
)
[1] => Array
(
[externalOrderProductId] => 499326000048875154
[externalProductId] => 499326000039456185
[sku] =>
[title] => POS Harding's Best Bitter 4.2% Pump Clip
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
)
[deliveryName] => Blagdon Hill
[deliveryStreet] =>
[deliveryCity] => Taunton
[deliveryCounty] =>
[deliveryPostcode] => TA3 7SL
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => info@lambandflag1705.co.uk
[contactName] => Pat Carrol
[notes] =>
[externalOrderId] => 499326000048875146
[refId] => SO-00459
[externalCustomerId] => 499326000009949812
[externalLocationId] => 499326000009949814
[title] => Lamb & Flag (Taunton)
[deliveryStart] => 2025-10-08
[deliveryEnd] => 2025-10-08
[totalValue] => 93.6
[totalWeight] => 51
[syncInCreated] => 2025-09-30T12:16:12+0100
[syncInUpdated] => 2025-10-07T18:46:43+0100
[syncInStatus] => closed
[deliveryName] => Blagdon Hill
[deliveryStreet] =>
[deliveryCity] => Taunton
[deliveryCounty] =>
[deliveryPostcode] => TA3 7SL
[syncOutUpdated] => 2025-10-07T18:46:44+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Pat Carrol
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000009949812
Getting products
Updating product 499326000021043786
Updating order product 499326000048875152
Updated
Updating product 499326000039456185
Updating order product 499326000048875154
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00459
Processing order: o0hftmtox80b4n2, ref SO-00459
Syncing SO-00459
Using default start and end times
Time window: 2025-10-08T06:00:00+01:00 - 2025-10-08T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 30/09/2025 12:16 - Local updated: 2025-10-07 17:46:44.000Z - Source updated: 2025-10-07 17:46:43.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status:
Status changed - mark for sync back to source
Is allocated? no
Local updated: 2025-10-07 17:46:44.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000009949814
Array
(
[referenceNumber] => 499326000009949814
[name] => Blagdon Hill, Taunton
[address] => TA3 7SL
)
499326000009949814
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00459
Done all.
Finished at 2025-10-07 18:46:46
Webhook - sourceUpdated script called at 2025-10-07 18:47:14
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048875146","salesorder_no":"SO-00459","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048875146","salesorder_no":"SO-00459","status":"invoiced"}}
EXT ID: 499326000048875146
REF: SO-00459
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048875146 (REF SO-00459)
Updates pending to source for order: 499326000048875146
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-10-07 17:46:43.000Z,
source updated = 2025-10-07T18:46:43+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00459
Processing order: o0hftmtox80b4n2, ref SO-00459
Syncing SO-00459
Using default start and end times
Time window: 2025-10-08T06:00:00+01:00 - 2025-10-08T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 07/10/2025 18:46 - Local updated: 2025-09-30 11:16:00.000Z - Source updated: 2025-10-07 17:46:43.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-09-30 11:16:00.000Z
Pending updates to MaxOptra? no
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00459
Done all.
Finished at 2025-10-07 18:47:16
Webhook - sourceUpdated script called at 2025-10-07 18:47:44
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048875146","salesorder_no":"SO-00459","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048875146","salesorder_no":"SO-00459","status":"invoiced"}}
EXT ID: 499326000048875146
REF: SO-00459
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048875146 (REF SO-00459)
Local order updated = 2025-10-07 17:46:43.000Z,
source updated = 2025-10-07T18:47:15+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00459
Processing order: o0hftmtox80b4n2, ref SO-00459
Syncing SO-00459
Using default start and end times
Time window: 2025-10-08T06:00:00+01:00 - 2025-10-08T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 07/10/2025 18:46 - Local updated: 2025-10-07 17:46:00.000Z - Source updated: 2025-10-07 17:46:43.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00459
Done all.
Finished at 2025-10-07 18:47:45
Webhook - sourceUpdated script called at 2025-10-07 18:49:44
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048962011","salesorder_no":"SO-00461","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048962011","salesorder_no":"SO-00461","status":"invoiced"}}
EXT ID: 499326000048962011
REF: SO-00461
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Error: API Error (404): Sorry! The item you are looking for is not available!
Error: Failed to sync source order
Finished at 2025-10-07 18:49:45
Webhook - sourceUpdated script called at 2025-10-07 18:50:14
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048962011","salesorder_no":"SO-00461","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048962011","salesorder_no":"SO-00461","status":"invoiced"}}
EXT ID: 499326000048962011
REF: SO-00461
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Error: API Error (404): Sorry! The item you are looking for is not available!
Error: Failed to sync source order
Finished at 2025-10-07 18:50:15
Webhook - sourceUpdated script called at 2025-10-07 18:50:44
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049213017","salesorder_no":"SO-00465","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000049213017","salesorder_no":"SO-00465","status":"open"}}
EXT ID: 499326000049213017
REF: SO-00465
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Error: API Error (404): Sorry! The item you are looking for is not available!
Error: Failed to sync source order
Finished at 2025-10-07 18:50:45
Webhook - sourceUpdated script called at 2025-10-07 18:51:15
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049213017","salesorder_no":"SO-00465","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000049213017","salesorder_no":"SO-00465","status":"invoiced"}}
EXT ID: 499326000049213017
REF: SO-00465
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Error: API Error (404): Sorry! The item you are looking for is not available!
Error: Failed to sync source order
Finished at 2025-10-07 18:51:15
Webhook - sourceUpdated script called at 2025-10-07 18:51:44
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048875146","salesorder_no":"SO-00459","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048875146","salesorder_no":"SO-00459","status":"invoiced"}}
EXT ID: 499326000048875146
REF: SO-00459
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048875146 (REF SO-00459)
Local order updated = 2025-10-07 17:46:43.000Z,
source updated = 2025-10-07T18:47:15+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00459
Webhook - sourceUpdated script called at 2025-10-07 18:51:45
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049213017","salesorder_no":"SO-00465","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000049213017","salesorder_no":"SO-00465","status":"invoiced"}}
EXT ID: 499326000049213017
REF: SO-00465
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Processing order: o0hftmtox80b4n2, ref SO-00459
Syncing SO-00459
Using default start and end times
Time window: 2025-10-08T06:00:00+01:00 - 2025-10-08T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 07/10/2025 18:46 - Local updated: 2025-10-07 17:46:00.000Z - Source updated: 2025-10-07 17:46:43.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00459
Done all.
Finished at 2025-10-07 18:51:45
Error: API Error (404): Sorry! The item you are looking for is not available!
Error: Failed to sync source order
Finished at 2025-10-07 18:51:45
Webhook - sourceUpdated script called at 2025-10-07 18:51:46
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048875146","salesorder_no":"SO-00459","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048875146","salesorder_no":"SO-00459","status":"invoiced"}}
EXT ID: 499326000048875146
REF: SO-00459
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048875146 (REF SO-00459)
Local order updated = 2025-10-07 17:46:43.000Z,
source updated = 2025-10-07T18:47:15+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00459
Processing order: o0hftmtox80b4n2, ref SO-00459
Syncing SO-00459
Using default start and end times
Time window: 2025-10-08T06:00:00+01:00 - 2025-10-08T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 07/10/2025 18:46 - Local updated: 2025-10-07 17:46:00.000Z - Source updated: 2025-10-07 17:46:43.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00459
Done all.
Finished at 2025-10-07 18:51:47
Webhook - sourceUpdated script called at 2025-10-07 18:52:30
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048962011","salesorder_no":"SO-00461","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000048962011","salesorder_no":"SO-00461","status":"open"}}
EXT ID: 499326000048962011
REF: SO-00461
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Error: API Error (404): Sorry! The item you are looking for is not available!
Error: Failed to sync source order
Finished at 2025-10-07 18:52:30
Webhook - sourceUpdated script called at 2025-10-07 18:55:11
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049193438","salesorder_no":"SO-00463","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000049193438","salesorder_no":"SO-00463","status":"open"}}
EXT ID: 499326000049193438
REF: SO-00463
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049193438 (REF SO-00463)
Local order updated = 2025-10-07 08:10:15.000Z,
source updated = 2025-10-07T18:50:13+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => Swan (Taunton)
[notes] =>
[externalOrderId] => 499326000049193438
[refId] => SO-00463
[externalCustomerId] => 499326000026597291
[externalLocationId] => 499326000026597293
[title] => Swan (Taunton)
[deliveryStart] => 2025-10-08
[deliveryEnd] => 2025-10-08
[totalValue] => 0
[totalWeight] => 0
[syncInCreated] => 2025-10-07T09:10:15+0100
[syncInUpdated] => 2025-10-07T18:50:13+0100
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000049193448
[externalProductId] => 499326000021043887
[sku] =>
[title] => Collection of empties
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
)
[deliveryName] => Swan (Taunton)
[deliveryStreet] => Kingston St Mary
[deliveryCity] => Kingston St Mary
[deliveryCounty] =>
[deliveryPostcode] => TA2 8HW
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => Swan (Taunton)
[notes] =>
[externalOrderId] => 499326000049193438
[refId] => SO-00463
[externalCustomerId] => 499326000026597291
[externalLocationId] => 499326000026597293
[title] => Swan (Taunton)
[deliveryStart] => 2025-10-08
[deliveryEnd] => 2025-10-08
[totalValue] => 0
[totalWeight] => 0
[syncInCreated] => 2025-10-07T09:10:15+0100
[syncInUpdated] => 2025-10-07T18:50:13+0100
[syncInStatus] => closed
[deliveryName] => Swan (Taunton)
[deliveryStreet] => Kingston St Mary
[deliveryCity] => Kingston St Mary
[deliveryCounty] =>
[deliveryPostcode] => TA2 8HW
[syncOutUpdated] => 2025-10-07T18:55:12+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Swan (Taunton)
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000026597291
Getting products
Updating product 499326000021043887
Updating order product 499326000049193448
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00463
Processing order: tnhd60hz3inyc0m, ref SO-00463
Syncing SO-00463
Using default start and end times
Time window: 2025-10-08T06:00:00+01:00 - 2025-10-08T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 07/10/2025 09:10 - Local updated: 2025-10-07 17:55:12.000Z - Source updated: 2025-10-07 17:50:13.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status:
Status changed - mark for sync back to source
Is allocated? no
Local updated: 2025-10-07 17:55:12.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000026597293
Array
(
[referenceNumber] => 499326000026597293
[name] => Swan (Taunton), Kingston St Mary, Kingston St Mary
[address] => TA2 8HW
)
499326000026597293
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00463
Done all.
Finished at 2025-10-07 18:55:13
Webhook - sourceUpdated script called at 2025-10-07 18:55:14
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049193438","salesorder_no":"SO-00463","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000049193438","salesorder_no":"SO-00463","status":"invoiced"}}
EXT ID: 499326000049193438
REF: SO-00463
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049193438 (REF SO-00463)
Updates pending to source for order: 499326000049193438
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-10-07 17:50:13.000Z,
source updated = 2025-10-07T18:50:13+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00463
Processing order: tnhd60hz3inyc0m, ref SO-00463
Syncing SO-00463
Using default start and end times
Time window: 2025-10-08T06:00:00+01:00 - 2025-10-08T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 07/10/2025 18:55 - Local updated: 2025-10-07 08:10:00.000Z - Source updated: 2025-10-07 17:50:13.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-10-07 08:10:00.000Z
Pending updates to MaxOptra? no
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00463
Done all.
Finished at 2025-10-07 18:55:16
Webhook - sourceUpdated script called at 2025-10-07 18:55:16
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049193438","salesorder_no":"SO-00463","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000049193438","salesorder_no":"SO-00463","status":"invoiced"}}
EXT ID: 499326000049193438
REF: SO-00463
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049193438 (REF SO-00463)
Local order updated = 2025-10-07 17:50:13.000Z,
source updated = 2025-10-07T18:50:13+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00463
Processing order: tnhd60hz3inyc0m, ref SO-00463
Syncing SO-00463
Using default start and end times
Time window: 2025-10-08T06:00:00+01:00 - 2025-10-08T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 07/10/2025 18:55 - Local updated: 2025-10-07 17:55:00.000Z - Source updated: 2025-10-07 17:50:13.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00463
Done all.
Finished at 2025-10-07 18:55:17
Webhook - sourceUpdated script called at 2025-10-07 18:55:18
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049193438","salesorder_no":"SO-00463","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000049193438","salesorder_no":"SO-00463","status":"invoiced"}}
EXT ID: 499326000049193438
REF: SO-00463
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049193438 (REF SO-00463)
Local order updated = 2025-10-07 17:50:13.000Z,
source updated = 2025-10-07T18:50:13+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00463
Processing order: tnhd60hz3inyc0m, ref SO-00463
Syncing SO-00463
Using default start and end times
Time window: 2025-10-08T06:00:00+01:00 - 2025-10-08T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 07/10/2025 18:55 - Local updated: 2025-10-07 17:55:00.000Z - Source updated: 2025-10-07 17:50:13.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00463
Done all.
Finished at 2025-10-07 18:55:19
Webhook - sourceUpdated script called at 2025-10-08 08:29:11
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049245049","salesorder_no":"SO-00468","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000049245049","salesorder_no":"SO-00468","status":"draft"}}
EXT ID: 499326000049245049
REF: SO-00468
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049245049 (REF SO-00468)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[contactName] => Wayne Hadley
[notes] =>
[externalOrderId] => 499326000049245049
[refId] => SO-00468
[externalCustomerId] => 499326000046966136
[externalLocationId] => 499326000046966140
[title] => Concierge Events
[deliveryStart] => 2025-10-10
[deliveryEnd] => 2025-10-10
[totalValue] => 309.53
[totalWeight] => 124
[syncInCreated] => 2025-10-08T08:28:59+0100
[syncInUpdated] => 2025-10-08T08:28:59+0100
[syncInStatus] => draft
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000049245055
[externalProductId] => 499326000000061367
[sku] => BBG-SNML-50LK
[title] => San Miguel 11G
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 146.95
[price] => 146.95
)
[1] => Array
(
[externalOrderProductId] => 499326000049245057
[externalProductId] => 499326000000063923
[sku] => TTCG-GOLD-50LK
[title] => Thatcher's Gold Cider 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 110.99
[price] => 110.99
)
)
[deliveryName] => Concierge Events
[deliveryStreet] => Worle Football Club
[deliveryCity] => Worle
[deliveryCounty] =>
[deliveryPostcode] => BS22 6AH
)
Does this order already exist?
No
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[contactName] => Wayne Hadley
[notes] =>
[externalOrderId] => 499326000049245049
[refId] => SO-00468
[externalCustomerId] => 499326000046966136
[externalLocationId] => 499326000046966140
[title] => Concierge Events
[deliveryStart] => 2025-10-10
[deliveryEnd] => 2025-10-10
[totalValue] => 309.53
[totalWeight] => 124
[syncInCreated] => 2025-10-08T08:28:59+0100
[syncInUpdated] => 2025-10-08T08:28:59+0100
[syncInStatus] => draft
[deliveryName] => Concierge Events
[deliveryStreet] => Worle Football Club
[deliveryCity] => Worle
[deliveryCounty] =>
[deliveryPostcode] => BS22 6AH
[syncOutUpdated] => 2025-10-08T08:29:12+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Wayne Hadley
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
New order
Marking order for sync with MaxOptra
Getting customer details
2025-09-29 18:54:27.000Z != 2025-10-08T08:27:58+0100
Customer changed - updating 499326000046966136
Updating order contact details
Getting products
Updating product 499326000000061367
Creating new order product 499326000049245055
Updating product 499326000000063923
Creating new order product 499326000049245057
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00468
Processing order: hh57uabuw9jb6fb, ref SO-00468
Syncing SO-00468
Using default start and end times
Time window: 2025-10-10T06:00:00+01:00 - 2025-10-10T20:00:00+01:00
Found order in MaxOptra? no
Creating SO-00468
Done
Finished syncing to MaxOptra for order SO-00468
Done all.
Finished at 2025-10-08 08:29:13
Webhook - sourceUpdated script called at 2025-10-08 08:30:12
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049245049","salesorder_no":"SO-00468","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000049245049","salesorder_no":"SO-00468","status":"draft"}}
EXT ID: 499326000049245049
REF: SO-00468
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049245049 (REF SO-00468)
Local order updated = 2025-10-08 07:28:59.000Z,
source updated = 2025-10-08T08:30:06+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[contactName] => Wayne Hadley
[notes] => Collect empties and FULL BRUE 50L
[externalOrderId] => 499326000049245049
[refId] => SO-00468
[externalCustomerId] => 499326000046966136
[externalLocationId] => 499326000046966140
[title] => Concierge Events
[deliveryStart] => 2025-10-10
[deliveryEnd] => 2025-10-10
[totalValue] => 270
[totalWeight] => 124
[syncInCreated] => 2025-10-08T08:28:59+0100
[syncInUpdated] => 2025-10-08T08:30:06+0100
[syncInStatus] => draft
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000049245055
[externalProductId] => 499326000000061367
[sku] => BBG-SNML-50LK
[title] => San Miguel 11G
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 130
[price] => 130
)
[1] => Array
(
[externalOrderProductId] => 499326000049245057
[externalProductId] => 499326000000063923
[sku] => TTCG-GOLD-50LK
[title] => Thatcher's Gold Cider 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 95
[price] => 95
)
)
[deliveryName] => Concierge Events
[deliveryStreet] => Worle Football Club
[deliveryCity] => Worle
[deliveryCounty] =>
[deliveryPostcode] => BS22 6AH
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[contactName] => Wayne Hadley
[notes] => Collect empties and FULL BRUE 50L
[externalOrderId] => 499326000049245049
[refId] => SO-00468
[externalCustomerId] => 499326000046966136
[externalLocationId] => 499326000046966140
[title] => Concierge Events
[deliveryStart] => 2025-10-10
[deliveryEnd] => 2025-10-10
[totalValue] => 270
[totalWeight] => 124
[syncInCreated] => 2025-10-08T08:28:59+0100
[syncInUpdated] => 2025-10-08T08:30:06+0100
[syncInStatus] => draft
[deliveryName] => Concierge Events
[deliveryStreet] => Worle Football Club
[deliveryCity] => Worle
[deliveryCounty] =>
[deliveryPostcode] => BS22 6AH
[syncOutUpdated] => 2025-10-08T08:30:13+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Wayne Hadley
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000046966136
Getting products
Updating product 499326000000061367
Updating order product 499326000049245055
Updated
Updating product 499326000000063923
Updating order product 499326000049245057
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00468
Processing order: hh57uabuw9jb6fb, ref SO-00468
Syncing SO-00468
Using default start and end times
Time window: 2025-10-10T06:00:00+01:00 - 2025-10-10T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 08/10/2025 08:29 - Local updated: 2025-10-08 07:30:13.000Z - Source updated: 2025-10-08 07:30:06.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status:
Status changed - mark for sync back to source
Is allocated? no
Local updated: 2025-10-08 07:30:13.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000046966140
Array
(
[referenceNumber] => 499326000046966140
[name] => Concierge Events, Worle Football Club, Worle
[address] => BS22 6AH
)
499326000046966140
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00468
Done all.
Finished at 2025-10-08 08:30:14
Webhook - sourceUpdated script called at 2025-10-08 08:44:13
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049242010","salesorder_no":"SO-00469","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000049242010","salesorder_no":"SO-00469","status":"draft"}}
EXT ID: 499326000049242010
REF: SO-00469
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049242010 (REF SO-00469)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => bookings@tauntonvale.com
[contactName] => Steve Archer
[notes] =>
[externalOrderId] => 499326000049242010
[refId] => SO-00469
[externalCustomerId] => 499326000041924781
[externalLocationId] => 499326000041924783
[title] => Taunton Vale Sports Club
[deliveryStart] => 2025-10-07
[deliveryEnd] => 2025-10-07
[totalValue] => 419.4
[totalWeight] => 186
[syncInCreated] => 2025-10-08T08:43:48+0100
[syncInUpdated] => 2025-10-08T08:43:48+0100
[syncInStatus] => draft
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000049242016
[externalProductId] => 499326000000063014
[sku] => SHPY-200-50LK
[title] => Sheppy's 200 cider 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 97.5
[price] => 97.5
)
[1] => Array
(
[externalOrderProductId] => 499326000049242018
[externalProductId] => 499326000000061367
[sku] => BBG-SNML-50LK
[title] => San Miguel 11G
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 129
[price] => 129
)
[2] => Array
(
[externalOrderProductId] => 499326000049242020
[externalProductId] => 499326000000061232
[sku] => HUK-AMST-50LK
[title] => Amstel Lager 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 123
[price] => 123
)
)
[deliveryName] => Taunton Vale Sports Club
[deliveryStreet] => Gipsy Ln
[deliveryCity] => Taunton
[deliveryCounty] =>
[deliveryPostcode] => TA2 6LL
)
Does this order already exist?
No
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => bookings@tauntonvale.com
[contactName] => Steve Archer
[notes] =>
[externalOrderId] => 499326000049242010
[refId] => SO-00469
[externalCustomerId] => 499326000041924781
[externalLocationId] => 499326000041924783
[title] => Taunton Vale Sports Club
[deliveryStart] => 2025-10-07
[deliveryEnd] => 2025-10-07
[totalValue] => 419.4
[totalWeight] => 186
[syncInCreated] => 2025-10-08T08:43:48+0100
[syncInUpdated] => 2025-10-08T08:43:48+0100
[syncInStatus] => draft
[deliveryName] => Taunton Vale Sports Club
[deliveryStreet] => Gipsy Ln
[deliveryCity] => Taunton
[deliveryCounty] =>
[deliveryPostcode] => TA2 6LL
[syncOutUpdated] => 2025-10-08T08:44:13+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Steve Archer
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
New order
Marking order for sync with MaxOptra
Getting customer details
2025-08-31 08:43:05.000Z != 2025-10-07T14:43:51+0100
Customer changed - updating 499326000041924781
Updating order contact details
Getting products
Updating product 499326000000063014
Creating new order product 499326000049242016
Updating product 499326000000061367
Creating new order product 499326000049242018
Updating product 499326000000061232
Creating new order product 499326000049242020
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00469
Processing order: zhd3bjekeqqgygh, ref SO-00469
Syncing SO-00469
Using default start and end times
Delivery start = 2025-10-07 00:00:00.000Z = 2025-10-07T06:00:00+01:00
Delivery end = 2025-10-07 00:00:00.000Z = 2025-10-07T20:00:00+01:00
Delivery is in the past. Skipping creation/update in MaxOptra.
Found order in MaxOptra? no
Done
Finished syncing to MaxOptra for order SO-00469
Done all.
Finished at 2025-10-08 08:44:14
Webhook - sourceUpdated script called at 2025-10-08 08:47:46
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049242010","salesorder_no":"SO-00469","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000049242010","salesorder_no":"SO-00469","status":"draft"}}
EXT ID: 499326000049242010
REF: SO-00469
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049242010 (REF SO-00469)
Local order updated = 2025-10-08 07:43:48.000Z,
source updated = 2025-10-08T08:47:43+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => bookings@tauntonvale.com
[contactName] => Steve Archer
[notes] =>
[externalOrderId] => 499326000049242010
[refId] => SO-00469
[externalCustomerId] => 499326000041924781
[externalLocationId] => 499326000041924783
[title] => Taunton Vale Sports Club
[deliveryStart] => 2025-10-07
[deliveryEnd] => 2025-10-07
[totalValue] => 704.98
[totalWeight] => 328
[syncInCreated] => 2025-10-08T08:43:48+0100
[syncInUpdated] => 2025-10-08T08:47:43+0100
[syncInStatus] => draft
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000049242016
[externalProductId] => 499326000000063014
[sku] => SHPY-200-50LK
[title] => Sheppy's 200 cider 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 97.5
[price] => 97.5
)
[1] => Array
(
[externalOrderProductId] => 499326000049242018
[externalProductId] => 499326000000061367
[sku] => BBG-SNML-50LK
[title] => San Miguel 11G
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 129
[price] => 129
)
[2] => Array
(
[externalOrderProductId] => 499326000049242020
[externalProductId] => 499326000000061232
[sku] => HUK-AMST-50LK
[title] => Amstel Lager 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 123
[price] => 123
)
[3] => Array
(
[externalOrderProductId] => 499326000049257005
[externalProductId] => 499326000021043185
[sku] =>
[title] => Bridge Double Hopped Pale Ale 4.2% 30L Keg
[notes] =>
[quantity] => 2
[weightKg] => 39
[weightTotal] => 78
[priceTotal] => 149.98
[price] => 74.99
)
[4] => Array
(
[externalOrderProductId] => 499326000049257007
[externalProductId] => 499326000000063959
[sku] => UKAL-70/3-10LC
[title] => 70/30 Mixed Gas - 10 Ltr
[notes] =>
[quantity] => 2
[weightKg] => 16
[weightTotal] => 32
[priceTotal] => 44
[price] => 22
)
[5] => Array
(
[externalOrderProductId] => 499326000049257009
[externalProductId] => 499326000000063941
[sku] => UKAL-60/4-10LC
[title] => 60/40 Mixed Gas 10 Ltr
[notes] =>
[quantity] => 2
[weightKg] => 16
[weightTotal] => 32
[priceTotal] => 44
[price] => 22
)
)
[deliveryName] => Taunton Vale Sports Club
[deliveryStreet] => Gipsy Ln
[deliveryCity] => Taunton
[deliveryCounty] =>
[deliveryPostcode] => TA2 6LL
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => bookings@tauntonvale.com
[contactName] => Steve Archer
[notes] =>
[externalOrderId] => 499326000049242010
[refId] => SO-00469
[externalCustomerId] => 499326000041924781
[externalLocationId] => 499326000041924783
[title] => Taunton Vale Sports Club
[deliveryStart] => 2025-10-07
[deliveryEnd] => 2025-10-07
[totalValue] => 704.98
[totalWeight] => 328
[syncInCreated] => 2025-10-08T08:43:48+0100
[syncInUpdated] => 2025-10-08T08:47:43+0100
[syncInStatus] => draft
[deliveryName] => Taunton Vale Sports Club
[deliveryStreet] => Gipsy Ln
[deliveryCity] => Taunton
[deliveryCounty] =>
[deliveryPostcode] => TA2 6LL
[syncOutUpdated] => 2025-10-08T08:47:47+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Steve Archer
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000041924781
Getting products
Updating product 499326000000063014
Updating order product 499326000049242016
Updated
Updating product 499326000000061367
Updating order product 499326000049242018
Updated
Updating product 499326000000061232
Updating order product 499326000049242020
Updated
Updating product 499326000021043185
Creating new order product 499326000049257005
Updating product 499326000000063959
Creating new order product 499326000049257007
Updating product 499326000000063941
Creating new order product 499326000049257009
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00469
Processing order: zhd3bjekeqqgygh, ref SO-00469
Syncing SO-00469
Using default start and end times
Delivery start = 2025-10-07 00:00:00.000Z = 2025-10-07T06:00:00+01:00
Delivery end = 2025-10-07 00:00:00.000Z = 2025-10-07T20:00:00+01:00
Delivery is in the past. Skipping creation/update in MaxOptra.
Found order in MaxOptra? no
Done
Finished syncing to MaxOptra for order SO-00469
Done all.
Finished at 2025-10-08 08:47:48
Webhook - sourceUpdated script called at 2025-10-08 10:09:43
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049242010","salesorder_no":"SO-00469","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000049242010","salesorder_no":"SO-00469","status":"draft"}}
EXT ID: 499326000049242010
REF: SO-00469
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049242010 (REF SO-00469)
Local order updated = 2025-10-08 07:47:43.000Z,
source updated = 2025-10-08T10:09:36+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => bookings@tauntonvale.com
[contactName] => Steve Archer
[notes] =>
[externalOrderId] => 499326000049242010
[refId] => SO-00469
[externalCustomerId] => 499326000041924781
[externalLocationId] => 499326000041924783
[title] => Taunton Vale Sports Club
[deliveryStart] => 2025-10-08
[deliveryEnd] => 2025-10-08
[totalValue] => 704.98
[totalWeight] => 328
[syncInCreated] => 2025-10-08T08:43:48+0100
[syncInUpdated] => 2025-10-08T10:09:36+0100
[syncInStatus] => draft
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000049242016
[externalProductId] => 499326000000063014
[sku] => SHPY-200-50LK
[title] => Sheppy's 200 cider 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 97.5
[price] => 97.5
)
[1] => Array
(
[externalOrderProductId] => 499326000049242018
[externalProductId] => 499326000000061367
[sku] => BBG-SNML-50LK
[title] => San Miguel 11G
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 129
[price] => 129
)
[2] => Array
(
[externalOrderProductId] => 499326000049242020
[externalProductId] => 499326000000061232
[sku] => HUK-AMST-50LK
[title] => Amstel Lager 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 123
[price] => 123
)
[3] => Array
(
[externalOrderProductId] => 499326000049257005
[externalProductId] => 499326000021043185
[sku] =>
[title] => Bridge Double Hopped Pale Ale 4.2% 30L Keg
[notes] =>
[quantity] => 2
[weightKg] => 39
[weightTotal] => 78
[priceTotal] => 149.98
[price] => 74.99
)
[4] => Array
(
[externalOrderProductId] => 499326000049257007
[externalProductId] => 499326000000063959
[sku] => UKAL-70/3-10LC
[title] => 70/30 Mixed Gas - 10 Ltr
[notes] =>
[quantity] => 2
[weightKg] => 16
[weightTotal] => 32
[priceTotal] => 44
[price] => 22
)
[5] => Array
(
[externalOrderProductId] => 499326000049257009
[externalProductId] => 499326000000063941
[sku] => UKAL-60/4-10LC
[title] => 60/40 Mixed Gas 10 Ltr
[notes] =>
[quantity] => 2
[weightKg] => 16
[weightTotal] => 32
[priceTotal] => 44
[price] => 22
)
)
[deliveryName] => Taunton Vale Sports Club
[deliveryStreet] => Gipsy Ln
[deliveryCity] => Taunton
[deliveryCounty] =>
[deliveryPostcode] => TA2 6LL
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => bookings@tauntonvale.com
[contactName] => Steve Archer
[notes] =>
[externalOrderId] => 499326000049242010
[refId] => SO-00469
[externalCustomerId] => 499326000041924781
[externalLocationId] => 499326000041924783
[title] => Taunton Vale Sports Club
[deliveryStart] => 2025-10-08
[deliveryEnd] => 2025-10-08
[totalValue] => 704.98
[totalWeight] => 328
[syncInCreated] => 2025-10-08T08:43:48+0100
[syncInUpdated] => 2025-10-08T10:09:36+0100
[syncInStatus] => draft
[deliveryName] => Taunton Vale Sports Club
[deliveryStreet] => Gipsy Ln
[deliveryCity] => Taunton
[deliveryCounty] =>
[deliveryPostcode] => TA2 6LL
[syncOutUpdated] => 2025-10-08T10:09:43+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Steve Archer
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000041924781
Getting products
Updating product 499326000000063014
Updating order product 499326000049242016
Updated
Updating product 499326000000061367
Updating order product 499326000049242018
Updated
Updating product 499326000000061232
Updating order product 499326000049242020
Updated
Updating product 499326000021043185
Updating order product 499326000049257005
Updated
Updating product 499326000000063959
Updating order product 499326000049257007
Updated
Updating product 499326000000063941
Updating order product 499326000049257009
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00469
Processing order: zhd3bjekeqqgygh, ref SO-00469
Syncing SO-00469
Using default start and end times
Time window: 2025-10-08T06:00:00+01:00 - 2025-10-08T20:00:00+01:00
Found order in MaxOptra? no
Creating SO-00469
Done
Finished syncing to MaxOptra for order SO-00469
Done all.
Finished at 2025-10-08 10:09:44
Webhook - sourceUpdated script called at 2025-10-08 10:42:27
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049242010","salesorder_no":"SO-00469","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000049242010","salesorder_no":"SO-00469","status":"draft"}}
EXT ID: 499326000049242010
REF: SO-00469
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049242010 (REF SO-00469)
Local order updated = 2025-10-08 09:09:36.000Z,
source updated = 2025-10-08T10:42:26+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => bookings@tauntonvale.com
[contactName] => Steve Archer
[notes] =>
[externalOrderId] => 499326000049242010
[refId] => SO-00469
[externalCustomerId] => 499326000041924781
[externalLocationId] => 499326000041924783
[title] => Taunton Vale Sports Club
[deliveryStart] => 2025-10-08
[deliveryEnd] => 2025-10-08
[totalValue] => 667.78
[totalWeight] => 328
[syncInCreated] => 2025-10-08T08:43:48+0100
[syncInUpdated] => 2025-10-08T10:42:26+0100
[syncInStatus] => confirmed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000049242016
[externalProductId] => 499326000000063014
[sku] => SHPY-200-50LK
[title] => Sheppy's 200 cider 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 97.5
[price] => 97.5
)
[1] => Array
(
[externalOrderProductId] => 499326000049242018
[externalProductId] => 499326000000061367
[sku] => BBG-SNML-50LK
[title] => San Miguel 11G
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 120
[price] => 120
)
[2] => Array
(
[externalOrderProductId] => 499326000049242020
[externalProductId] => 499326000000061232
[sku] => HUK-AMST-50LK
[title] => Amstel Lager 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 115
[price] => 115
)
[3] => Array
(
[externalOrderProductId] => 499326000049257005
[externalProductId] => 499326000021043185
[sku] =>
[title] => Bridge Double Hopped Pale Ale 4.2% 30L Keg
[notes] =>
[quantity] => 2
[weightKg] => 39
[weightTotal] => 78
[priceTotal] => 135.98
[price] => 67.99
)
[4] => Array
(
[externalOrderProductId] => 499326000049257007
[externalProductId] => 499326000000063959
[sku] => UKAL-70/3-10LC
[title] => 70/30 Mixed Gas - 10 Ltr
[notes] =>
[quantity] => 2
[weightKg] => 16
[weightTotal] => 32
[priceTotal] => 44
[price] => 22
)
[5] => Array
(
[externalOrderProductId] => 499326000049257009
[externalProductId] => 499326000000063941
[sku] => UKAL-60/4-10LC
[title] => 60/40 Mixed Gas 10 Ltr
[notes] =>
[quantity] => 2
[weightKg] => 16
[weightTotal] => 32
[priceTotal] => 44
[price] => 22
)
)
[deliveryName] => Taunton Vale Sports Club
[deliveryStreet] => Gipsy Ln
[deliveryCity] => Taunton
[deliveryCounty] =>
[deliveryPostcode] => TA2 6LL
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => bookings@tauntonvale.com
[contactName] => Steve Archer
[notes] =>
[externalOrderId] => 499326000049242010
[refId] => SO-00469
[externalCustomerId] => 499326000041924781
[externalLocationId] => 499326000041924783
[title] => Taunton Vale Sports Club
[deliveryStart] => 2025-10-08
[deliveryEnd] => 2025-10-08
[totalValue] => 667.78
[totalWeight] => 328
[syncInCreated] => 2025-10-08T08:43:48+0100
[syncInUpdated] => 2025-10-08T10:42:26+0100
[syncInStatus] => confirmed
[deliveryName] => Taunton Vale Sports Club
[deliveryStreet] => Gipsy Ln
[deliveryCity] => Taunton
[deliveryCounty] =>
[deliveryPostcode] => TA2 6LL
[syncOutUpdated] => 2025-10-08T10:42:27+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Steve Archer
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000041924781
Getting products
Updating product 499326000000063014
Updating order product 499326000049242016
Updated
Updating product 499326000000061367
Updating order product 499326000049242018
Updated
Updating product 499326000000061232
Updating order product 499326000049242020
Updated
Updating product 499326000021043185
Updating order product 499326000049257005
Updated
Updating product 499326000000063959
Updating order product 499326000049257007
Updated
Updating product 499326000000063941
Updating order product 499326000049257009
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00469
Processing order: zhd3bjekeqqgygh, ref SO-00469
Syncing SO-00469
Using default start and end times
Time window: 2025-10-08T06:00:00+01:00 - 2025-10-08T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 08/10/2025 10:09 - Local updated: 2025-10-08 09:42:27.000Z - Source updated: 2025-10-08 09:42:26.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status:
Status changed - mark for sync back to source
Is allocated? no
Local updated: 2025-10-08 09:42:27.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000041924783
Array
(
[referenceNumber] => 499326000041924783
[name] => Taunton Vale Sports Club, Gipsy Ln, Taunton
[address] => TA2 6LL
)
499326000041924783
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00469
Done all.
Finished at 2025-10-08 10:42:29
Webhook - sourceUpdated script called at 2025-10-08 10:42:57
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049242010","salesorder_no":"SO-00469","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000049242010","salesorder_no":"SO-00469","status":"open"}}
EXT ID: 499326000049242010
REF: SO-00469
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049242010 (REF SO-00469)
Updates pending to source for order: 499326000049242010
Updates found - pushing to source
Webhook - sourceUpdated script called at 2025-10-08 10:42:58
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049242010","salesorder_no":"SO-00469","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000049242010","salesorder_no":"SO-00469","status":"invoiced"}}
EXT ID: 499326000049242010
REF: SO-00469
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049242010 (REF SO-00469)
Updates pending to source for order: 499326000049242010
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-10-08 09:42:26.000Z,
source updated = 2025-10-08T10:42:37+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00469
Processing order: zhd3bjekeqqgygh, ref SO-00469
Syncing SO-00469
Using default start and end times
Time window: 2025-10-08T06:00:00+01:00 - 2025-10-08T20:00:00+01:00
Done updating. Proceeding to sync from source.
Found order in MaxOptra? yes
Local order updated = 2025-10-08 09:42:26.000Z,
source updated = 2025-10-08T10:42:37+0100,
has changed = no
MO updated: 08/10/2025 10:42 - Local updated: 2025-10-08 09:09:00.000Z - Source updated: 2025-10-08 09:42:26.000Z
Changed? yes
Marking order for sync with MaxOptra
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00469
Is allocated? no
Local updated: 2025-10-08 09:09:00.000Z
Pending updates to MaxOptra? no
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00469
Done all.
Finished at 2025-10-08 10:42:59
Processing order: zhd3bjekeqqgygh, ref SO-00469
Order is not marked to sync (possibly no longer in source)
Finished syncing to MaxOptra for order SO-00469
Done all.
Finished at 2025-10-08 10:42:59
Webhook - sourceUpdated script called at 2025-10-08 10:43:28
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049242010","salesorder_no":"SO-00469","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000049242010","salesorder_no":"SO-00469","status":"invoiced"}}
EXT ID: 499326000049242010
REF: SO-00469
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049242010 (REF SO-00469)
Local order updated = 2025-10-08 09:42:26.000Z,
source updated = 2025-10-08T10:42:58+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00469
Processing order: zhd3bjekeqqgygh, ref SO-00469
Syncing SO-00469
Using default start and end times
Time window: 2025-10-08T06:00:00+01:00 - 2025-10-08T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 08/10/2025 10:42 - Local updated: 2025-10-08 09:42:00.000Z - Source updated: 2025-10-08 09:42:26.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00469
Done all.
Finished at 2025-10-08 10:43:29
Webhook - sourceUpdated script called at 2025-10-08 10:47:37
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049242010","salesorder_no":"SO-00469","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000049242010","salesorder_no":"SO-00469","status":"invoiced"}}
EXT ID: 499326000049242010
REF: SO-00469
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049242010 (REF SO-00469)
Local order updated = 2025-10-08 09:42:26.000Z,
source updated = 2025-10-08T10:46:21+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => bookings@tauntonvale.com
[contactName] => Steve Archer
[notes] =>
[externalOrderId] => 499326000049242010
[refId] => SO-00469
[externalCustomerId] => 499326000041924781
[externalLocationId] => 499326000041924783
[title] => Taunton Vale Sports Club
[deliveryStart] => 2025-10-08
[deliveryEnd] => 2025-10-08
[totalValue] => 667.78
[totalWeight] => 328
[syncInCreated] => 2025-10-08T08:43:48+0100
[syncInUpdated] => 2025-10-08T10:46:21+0100
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000049242016
[externalProductId] => 499326000000063014
[sku] => SHPY-200-50LK
[title] => Sheppy's 200 cider 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 97.5
[price] => 97.5
)
[1] => Array
(
[externalOrderProductId] => 499326000049242018
[externalProductId] => 499326000000061367
[sku] => BBG-SNML-50LK
[title] => San Miguel 11G
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 120
[price] => 120
)
[2] => Array
(
[externalOrderProductId] => 499326000049242020
[externalProductId] => 499326000000061232
[sku] => HUK-AMST-50LK
[title] => Amstel Lager 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 115
[price] => 115
)
[3] => Array
(
[externalOrderProductId] => 499326000049257005
[externalProductId] => 499326000021043185
[sku] =>
[title] => Bridge Double Hopped Pale Ale 4.2% 30L Keg
[notes] =>
[quantity] => 2
[weightKg] => 39
[weightTotal] => 78
[priceTotal] => 135.98
[price] => 67.99
)
[4] => Array
(
[externalOrderProductId] => 499326000049257007
[externalProductId] => 499326000000063959
[sku] => UKAL-70/3-10LC
[title] => 70/30 Mixed Gas - 10 Ltr
[notes] =>
[quantity] => 2
[weightKg] => 16
[weightTotal] => 32
[priceTotal] => 44
[price] => 22
)
[5] => Array
(
[externalOrderProductId] => 499326000049257009
[externalProductId] => 499326000000063941
[sku] => UKAL-60/4-10LC
[title] => 60/40 Mixed Gas 10 Ltr
[notes] =>
[quantity] => 2
[weightKg] => 16
[weightTotal] => 32
[priceTotal] => 44
[price] => 22
)
)
[deliveryName] => Taunton Vale Sports Club
[deliveryStreet] => Gipsy Ln
[deliveryCity] => Taunton
[deliveryCounty] =>
[deliveryPostcode] => TA2 6LL
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => bookings@tauntonvale.com
[contactName] => Steve Archer
[notes] =>
[externalOrderId] => 499326000049242010
[refId] => SO-00469
[externalCustomerId] => 499326000041924781
[externalLocationId] => 499326000041924783
[title] => Taunton Vale Sports Club
[deliveryStart] => 2025-10-08
[deliveryEnd] => 2025-10-08
[totalValue] => 667.78
[totalWeight] => 328
[syncInCreated] => 2025-10-08T08:43:48+0100
[syncInUpdated] => 2025-10-08T10:46:21+0100
[syncInStatus] => closed
[deliveryName] => Taunton Vale Sports Club
[deliveryStreet] => Gipsy Ln
[deliveryCity] => Taunton
[deliveryCounty] =>
[deliveryPostcode] => TA2 6LL
[syncOutUpdated] => 2025-10-08T10:47:38+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Steve Archer
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000041924781
Getting products
Updating product 499326000000063014
Updating order product 499326000049242016
Updated
Updating product 499326000000061367
Updating order product 499326000049242018
Updated
Updating product 499326000000061232
Updating order product 499326000049242020
Updated
Updating product 499326000021043185
Updating order product 499326000049257005
Updated
Updating product 499326000000063959
Updating order product 499326000049257007
Updated
Updating product 499326000000063941
Updating order product 499326000049257009
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00469
Processing order: zhd3bjekeqqgygh, ref SO-00469
Syncing SO-00469
Using default start and end times
Time window: 2025-10-08T06:00:00+01:00 - 2025-10-08T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 08/10/2025 10:42 - Local updated: 2025-10-08 09:47:38.000Z - Source updated: 2025-10-08 09:46:21.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-10-08 09:47:38.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000041924783
Array
(
[referenceNumber] => 499326000041924783
[name] => Taunton Vale Sports Club, Gipsy Ln, Taunton
[address] => TA2 6LL
)
499326000041924783
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00469
Done all.
Finished at 2025-10-08 10:47:39
Webhook - sourceUpdated script called at 2025-10-08 10:47:42
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049242010","salesorder_no":"SO-00469","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000049242010","salesorder_no":"SO-00469","status":"invoiced"}}
EXT ID: 499326000049242010
REF: SO-00469
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049242010 (REF SO-00469)
Local order updated = 2025-10-08 09:46:21.000Z,
source updated = 2025-10-08T10:46:21+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00469
Processing order: zhd3bjekeqqgygh, ref SO-00469
Syncing SO-00469
Using default start and end times
Time window: 2025-10-08T06:00:00+01:00 - 2025-10-08T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 08/10/2025 10:47 - Local updated: 2025-10-08 09:42:00.000Z - Source updated: 2025-10-08 09:46:21.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-10-08 09:42:00.000Z
Pending updates to MaxOptra? no
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00469
Done all.
Finished at 2025-10-08 10:47:43
Webhook - sourceUpdated script called at 2025-10-08 10:47:58
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049242010","salesorder_no":"SO-00469","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000049242010","salesorder_no":"SO-00469","status":"invoiced"}}
EXT ID: 499326000049242010
REF: SO-00469
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049242010 (REF SO-00469)
Local order updated = 2025-10-08 09:46:21.000Z,
source updated = 2025-10-08T10:46:21+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00469
Processing order: zhd3bjekeqqgygh, ref SO-00469
Syncing SO-00469
Using default start and end times
Time window: 2025-10-08T06:00:00+01:00 - 2025-10-08T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 08/10/2025 10:47 - Local updated: 2025-10-08 09:47:00.000Z - Source updated: 2025-10-08 09:46:21.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00469
Done all.
Finished at 2025-10-08 10:47:59
Webhook - sourceUpdated script called at 2025-10-08 17:26:01
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049282357","salesorder_no":"SO-00470","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000049282357","salesorder_no":"SO-00470","status":"open"}}
EXT ID: 499326000049282357
REF: SO-00470
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049282357 (REF SO-00470)
Source order details: Array
(
[contactPhone] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[notes] =>
[externalOrderId] => 499326000049282357
[refId] => SO-00470
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[title] => Alex Cullum
[deliveryStart] => 2025-10-08
[deliveryEnd] => 2025-10-08
[totalValue] => 0
[totalWeight] => 11
[syncInCreated] => 2025-10-08T17:25:28+0100
[syncInUpdated] => 2025-10-08T17:25:43+0100
[syncInStatus] => confirmed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000049282363
[externalProductId] => 499326000009948730
[sku] => TD-BIB-10LB
[title] => Distribution Of Think Drinks BIB Carbonates
[notes] =>
[quantity] => 1
[weightKg] => 11
[weightTotal] => 11
[priceTotal] => 0
[price] => 0
)
)
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
)
Does this order already exist?
No
Order data prepared for sync: Array
(
[contactPhone] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[notes] =>
[externalOrderId] => 499326000049282357
[refId] => SO-00470
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[title] => Alex Cullum
[deliveryStart] => 2025-10-08
[deliveryEnd] => 2025-10-08
[totalValue] => 0
[totalWeight] => 11
[syncInCreated] => 2025-10-08T17:25:28+0100
[syncInUpdated] => 2025-10-08T17:25:43+0100
[syncInStatus] => confirmed
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
[syncOutUpdated] => 2025-10-08T17:26:01+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Alex Cullum
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
New order
Marking order for sync with MaxOptra
Getting customer details
Customer exists and has not changed (skipping): 499326000021060129
Updating order contact details
Getting products
Updating product 499326000009948730
Creating new order product 499326000049282363
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00470
Processing order: qykkbpflsvddknd, ref SO-00470
Syncing SO-00470
Using default start and end times
Time window: 2025-10-08T06:00:00+01:00 - 2025-10-08T20:00:00+01:00
Found order in MaxOptra? no
Creating SO-00470
Done
Finished syncing to MaxOptra for order SO-00470
Done all.
Finished at 2025-10-08 17:26:02
Webhook - destinationUpdated script called at 2025-10-08 21:41:59
JSON: {"payload":{"orderReference":"SO-00461","status":"ALLOCATED"},"timestamp":"2025-10-08T20:41:58Z"}
REF: SO-00461
Filter: refId="SO-00461"
200 response code sent
Local item: {"addons":[],"attachments":[],"collectionEnd":"","collectionId":"s93ukjlitoinx2e","collectionInstructions":"","collectionName":"orders","collectionStart":"","company":"1kmltj8w8rnhbfx","contactEmail":"","contactName":"James Hawthorne","contactNotes":"","contactPhone":"","created":"2025-10-01 08:44:06.762Z","custom":[],"customer":"08bz5kv24yoj7i7","deliveryCity":"Bishops Lydeard","deliveryCounty":"","deliveryEnd":"2025-10-08 00:00:00.000Z","deliveryInstructions":"","deliveryName":"James Hawthorne","deliveryPostcode":"TA4 3ND","deliveryStart":"2025-10-08 00:00:00.000Z","deliveryStreet":"Pound Farm","description":"","driverRef":"","externalCustomerId":"499326000046958545","externalLocationId":"499326000046958553","externalOrderId":"499326000048962011","id":"m0sasuaontu1ee9","isCancelled":false,"isCollection":false,"isReadyToSync":false,"isScheduledCollection":false,"isScheduledDelivery":false,"isUntracked":false,"mergeRef":"","notes":"","orderedAt":"","overrideVolume":0,"overrideWeight":0,"paymentMethod":"","pendingSyncFromDestination":false,"pendingSyncFromSource":false,"pendingSyncToDestination":true,"pendingSyncToSource":false,"ref":"","refId":"SO-00461","requestedDeliveryDays":"","seqNo":"","signature":"","signatureName":"","signatureTime":"","statusCollection":"","statusDelivery":"","syncInCreated":"2025-10-01 08:44:02.000Z","syncInStatus":"draft","syncInUpdated":"2025-10-01 08:44:02.000Z","syncOutStatus":"","syncOutUpdated":"2025-10-01 08:44:07.000Z","timeWindows":[],"title":"Quantock Point To Point","totalValue":240,"totalWeight":124,"type":"","updated":"2025-10-01 08:44:07.824Z","vehicleRef":"","what3Words":""}
Updating local order from MaxOptra - current local order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] =>
[contactName] => James Hawthorne
[contactNotes] =>
[contactPhone] =>
[created] => 2025-10-01 08:44:06.762Z
[custom] => Array
(
)
[customer] => 08bz5kv24yoj7i7
[deliveryCity] => Bishops Lydeard
[deliveryCounty] =>
[deliveryEnd] => 2025-10-08 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => James Hawthorne
[deliveryPostcode] => TA4 3ND
[deliveryStart] => 2025-10-08 00:00:00.000Z
[deliveryStreet] => Pound Farm
[description] =>
[driverRef] =>
[externalCustomerId] => 499326000046958545
[externalLocationId] => 499326000046958553
[externalOrderId] => 499326000048962011
[id] => m0sasuaontu1ee9
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00461
[requestedDeliveryDays] =>
[seqNo] =>
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] =>
[syncInCreated] => 2025-10-01 08:44:02.000Z
[syncInStatus] => draft
[syncInUpdated] => 2025-10-01 08:44:02.000Z
[syncOutStatus] =>
[syncOutUpdated] => 2025-10-01 08:44:07.000Z
[timeWindows] => Array
(
)
[title] => Quantock Point To Point
[totalValue] => 240
[totalWeight] => 124
[type] =>
[updated] => 2025-10-01 08:44:07.824Z
[vehicleRef] =>
[what3Words] =>
)
MaxOptra order details: Array
(
[0] => Array
(
[referenceNumber] => SO-00461
[consignmentReference] =>
[distributionCentreReference] => Head Office
[distributionCentreName] => Head Office
[task] => DELIVERY
[priority] => NORMAL
[vehicleRequirements] => Array
(
)
[additionalInstructions] =>
[clientName] =>
[contactPerson] => James Hawthorne
[contactNumber] =>
[contactEmail] =>
[additionalContactEmails] =>
[notificationPreferences] => Array
(
[allowSMS] => 1
[allowEmail] => 1
)
[customerLocation] => Array
(
[referenceNumber] => 499326000046958553
[name] => James Hawthorne, Pound Farm, Bishops Lydeard
[address] => TA4 3ND
[w3wAddress] =>
[latitude] => 51.0557
[longitude] => -3.2152
)
[territoryReference] =>
[stopSequence] => ANY
[timeWindows] => Array
(
[0] => Array
(
[start] => 2025-10-08T06:00:00+01:00
[end] => 2025-10-08T23:59:00+01:00
)
)
[orderDate] =>
[capacity1] => 124
[capacity2] => 0
[price] => 0
[operationDuration] => 486
[customFields] => Array
(
)
[orderItems] => Array
(
[0] => Array
(
[itemReferenceNumber] => 499326000000061277
[orderReferenceNumber] => SO-00461
[name] => Carlsberg Lager 11g
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 100
[plannedQuantity] => 2
[factQuantity] => 0
[totalAmount] => 200
[height] => 0
[width] => 0
[length] => 0
[weight] => 124
[volume] => 0
)
[1] => Array
(
[itemReferenceNumber] => 499326000048962009
[orderReferenceNumber] => SO-00461
[name] => Thatcher's Haze pump clip OVAL
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 0
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 0
[height] => 0
[width] => 0
[length] => 0
[weight] => 0
[volume] => 0
)
[2] => Array
(
[itemReferenceNumber] => 499326000021043887
[orderReferenceNumber] => SO-00461
[name] => Collection of empties
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 0
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 0
[height] => 0
[width] => 0
[length] => 0
[weight] => 0
[volume] => 0
)
[3] => Array
(
[itemReferenceNumber] => 499326000048962009
[orderReferenceNumber] => SO-00461
[name] => Thatcher's Haze pump clip OVAL
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 0
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 0
[height] => 0
[width] => 0
[length] => 0
[weight] => 0
[volume] => 0
)
)
[widgetTrackingDetails] =>
)
)
MaxOptra schedule details: Array
(
[orderReferenceNumber] => SO-00461
[assignedDriverReference] => TEST
[assignedDriverName] => TEST
[assignedVehicleReference] => TEST
[assignedVehicleName] => TEST
[plannedArrivalTime] => 2025-10-08T22:47:40+01:00
[plannedCompletionTime] => 2025-10-08T22:55:46+01:00
[stopNumber] => 2
[totalStopsInRun] => 3
[runNumber] => 1
[runReference] => c7c2047ca3eb4975aa2a2dee3381702f
[eta] =>
[factArrivalTimeGPS] =>
[factCompletionTimeGPS] =>
[factArrivalTimeReported] =>
[factCompletionTimeReported] =>
[failReason] =>
[failComment] =>
[status] => ALLOCATED
[driver] => TEST
[arrival_planned] => 2025-10-08T22:47:40+01:00
[arrival_estimated] =>
[arrival_actual] =>
[totalStops] => 3
)
Updating order: SO-00461
Update ID m0sasuaontu1ee9 with: Array
(
[custom] => Array
(
)
[driverRef] => TEST
[vehicleRef] => TEST
[seqNo] => 1
)
Updated order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] =>
[contactName] => James Hawthorne
[contactNotes] =>
[contactPhone] =>
[created] => 2025-10-01 08:44:06.762Z
[custom] => Array
(
)
[customer] => 08bz5kv24yoj7i7
[deliveryCity] => Bishops Lydeard
[deliveryCounty] =>
[deliveryEnd] => 2025-10-08 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => James Hawthorne
[deliveryPostcode] => TA4 3ND
[deliveryStart] => 2025-10-08 00:00:00.000Z
[deliveryStreet] => Pound Farm
[description] =>
[driverRef] => TEST
[externalCustomerId] => 499326000046958545
[externalLocationId] => 499326000046958553
[externalOrderId] => 499326000048962011
[id] => m0sasuaontu1ee9
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00461
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] =>
[syncInCreated] => 2025-10-01 08:44:02.000Z
[syncInStatus] => draft
[syncInUpdated] => 2025-10-01 08:44:02.000Z
[syncOutStatus] =>
[syncOutUpdated] => 2025-10-01 08:44:07.000Z
[timeWindows] => Array
(
)
[title] => Quantock Point To Point
[totalValue] => 240
[totalWeight] => 124
[type] =>
[updated] => 2025-10-08 20:41:59.522Z
[vehicleRef] => TEST
[what3Words] =>
)
Updating source from local order
Getting custom fields
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-07-18 02:35:52.065Z
[id] => nc7sndad5bhvi5x
[inCollection] => orders
[inField] => paymentMethod
[mappedField] => 7DCPayment
[name] => Payment method
[sourceField] =>
[syncFromSource] => 1
[syncToSource] =>
[type] => text
[updated] => 2025-07-18 02:35:52.065Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Processing field
Mapped field: 7DCEmpties
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
Processing field
Mapped field: 7DCEmptiesGas
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:03:34.631Z
[id] => pcn96l3kgkps4az
[inCollection] => orders
[inField] => driverRef
[mappedField] =>
[name] => Delivery driver
[sourceField] => cf_delivery_driver
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:03:34.631Z
)
Processing field
driverRef...
Value: TEST
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-08 04:52:51.399Z
[id] => hhrzcmytzs8p3kw
[inCollection] => orders
[inField] => seqNo
[mappedField] =>
[name] => Run number
[sourceField] => cf_run_number
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-08 04:52:51.399Z
)
Processing field
seqNo...
Value: 1
Finished processing field
Continue
Updating source order: Array
(
[custom_fields] => Array
(
[0] => Array
(
[api_name] => cf_delivery_driver
[value] => TEST
)
[1] => Array
(
[api_name] => cf_run_number
[value] => 1
)
)
)
Update result: Array
(
[code] => 0
[message] => Sales Order has been updated.
[salesorder] => Array
(
[salesorder_id] => 499326000048962011
[is_viewed_in_mail] =>
[mail_first_viewed_time] =>
[mail_last_viewed_time] =>
[documents] => Array
(
)
[zcrm_potential_id] =>
[zcrm_potential_name] =>
[salesorder_number] => SO-00461
[date] => 2025-10-08
[offline_created_date_with_time] =>
[tracking_url] =>
[has_discount] =>
[status] => confirmed
[color_code] =>
[current_sub_status_id] =>
[current_sub_status] => closed
[sub_statuses] => Array
(
)
[shipment_date] =>
[reference_number] =>
[customer_id] => 499326000046958545
[customer_name] => Quantock Point To Point
[contact_persons] => Array
(
)
[contact_persons_associated] => Array
(
)
[contact_person_details] => Array
(
)
[source] => Api
[contact_category] => uk
[is_taxable] =>
[has_shipping_address] => 1
[currency_id] => 499326000000000065
[currency_code] => GBP
[currency_symbol] => £
[exchange_rate] => 1
[is_discount_before_tax] => 1
[discount_type] => item_level
[estimate_id] =>
[delivery_method] =>
[delivery_method_id] =>
[vat_treatment] => uk
[is_inclusive_tax] =>
[tax_rounding] => entity_level
[tax_override_preference] => no_override
[order_status] => closed
[invoiced_status] => invoiced
[paid_status] => unpaid
[shipped_status] => pending
[sales_channel] => direct_sales
[sales_channel_formatted] => Direct Sales
[account_identifier] =>
[integration_id] =>
[is_dropshipped] =>
[is_backordered] =>
[is_manually_fulfilled] =>
[can_manually_fulfill] => 1
[has_qty_cancelled] =>
[is_reverse_charge_applied] =>
[shipping_details] => Array
(
)
[created_by_email] => jem@7daycellar.co.uk
[created_by_name] => Jem Glanvill
[branch_id] => 499326000023111007
[branch_name] => Head Office
[location_id] => 499326000023111007
[location_name] => Head Office
[total_quantity] => 5
[line_items] => Array
(
[0] => Array
(
[line_item_id] => 499326000048962017
[variant_id] => 499326000000061277
[track_batch_number] =>
[item_id] => 499326000000061277
[is_returnable] =>
[product_id] => 499326000000061277
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] => CBBC-CARL-50LK
[name] => Carlsberg Lager 11g
[group_name] => Carlsberg Lager 11g
[description] =>
[item_order] => 1
[bcy_rate] => 100
[rate] => 100
[sales_rate] => 112.95
[quantity] => 2
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] => 499326000048962009
[header_name] => Thatcher's Haze pump clip OVAL
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 40
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 200
[item_sub_total] => 200
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] => Carlsberg lager.png
[image_type] => png
[document_id] => 499326000048546081
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 2
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] => 62
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
[1] => Array
(
[line_item_id] => 499326000048962019
[variant_id] => 499326000021043887
[track_batch_number] =>
[item_id] => 499326000021043887
[is_returnable] =>
[product_id] => 499326000021043887
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] =>
[name] => Collection of empties
[group_name] => Collection of empties
[description] =>
[item_order] => 2
[bcy_rate] => 0
[rate] => 0
[sales_rate] => 0
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] => 499326000048962009
[header_name] => Thatcher's Haze pump clip OVAL
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] =>
[tax_name] =>
[tax_type] => tax
[tax_percentage] => 0
[line_item_taxes] => Array
(
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 0
[item_sub_total] => 0
[product_type] => goods
[line_item_type] => goods
[item_type] => sales
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] =>
[image_type] =>
[document_id] =>
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 1
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] =>
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
[2] => Array
(
[line_item_id] => 499326000049198051
[variant_id] => 499326000000063941
[track_batch_number] =>
[item_id] => 499326000000063941
[is_returnable] =>
[product_id] => 499326000000063941
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] => UKAL-60/4-10LC
[name] => 60/40 Mixed Gas 10 Ltr
[group_name] => 60/40 Mixed Gas 10 Ltr
[description] =>
[item_order] => 3
[bcy_rate] => 24.5
[rate] => 24.5
[sales_rate] => 24.5
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] => 499326000048962009
[header_name] => Thatcher's Haze pump clip OVAL
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 4.9
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 24.5
[item_sub_total] => 24.5
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] => 60 40 Gas.jpg
[image_type] => jpg
[document_id] => 499326000044988009
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 1
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] => 16
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
[3] => Array
(
[line_item_id] => 499326000049198053
[variant_id] => 499326000048604651
[track_batch_number] =>
[item_id] => 499326000048604651
[is_returnable] => 1
[product_id] => 499326000048604649
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] =>
[name] => Hardings Golden Ale 4.2% (9g)
[group_name] => Hardings Golden Ale 4.2% (9g)
[description] => BRIGHT
[item_order] => 4
[bcy_rate] => 79.99
[rate] => 79.99
[sales_rate] => 79.99
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] => 499326000048962009
[header_name] => Thatcher's Haze pump clip OVAL
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] =>
[tax_name] =>
[tax_type] => tax
[tax_percentage] => 0
[line_item_taxes] => Array
(
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 79.99
[item_sub_total] => 79.99
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] => Harding’s Golden Ale.png
[image_type] => png
[document_id] => 499326000048604693
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 1
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] =>
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
)
[is_advanced_tracking_missing] =>
[entity_tags] =>
[submitter_id] =>
[approver_id] =>
[submitted_date] =>
[submitted_by] =>
[submitted_by_name] =>
[submitted_by_email] =>
[submitted_by_photo_url] =>
[price_precision] => 2
[is_emailed] =>
[has_unconfirmed_line_item] =>
[picklists] => Array
(
)
[purchaseorders] => Array
(
)
[locations] => Array
(
[0] => Array
(
[location_id] => 499326000023111007
[location_name] => Head Office
[status] => active
)
[1] => Array
(
[location_id] => 499326000041689155
[location_name] => Bason Bridge Brewery Duty Bonded Warehouse
[status] => active
)
)
[billing_address_id] => 499326000046958551
[billing_address] => Array
(
[address] => Pound Farm, Pound Lane
[street2] =>
[city] => Bishops Lydeard
[state] =>
[zip] => TA4 3DN
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[shipping_address_id] => 499326000046958553
[shipping_address] => Array
(
[company_name] =>
[address] => Pound Farm
[street2] => Pound Lane
[city] => Bishops Lydeard
[state] => Somerset
[zip] => TA4 3ND
[country] => United Kingdom
[country_code] => GB
[county] =>
[state_code] => SOM
[fax] =>
[phone] => 07393691679
[attention] => James Hawthorne
)
[is_test_order] =>
[notes] => Account Name: 7 Day Cellar Ltd
Sort Code: 09-01-30
Account No: 10888924
[terms] =>
[payment_terms] => 0
[payment_terms_label] => Due On Receipt
[custom_fields] => Array
(
[0] => Array
(
[field_id] => 499326000042690007
[customfield_id] => 499326000042690007
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 1
[label] => Automation Required
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[is_color_code_supported] =>
[api_name] => cf__ulrql_automation_required
[show_in_all_pdf] =>
[selected_option_id] => 499326000042690011
[value_formatted] => Yes
[search_entity] => salesorder
[data_type] => dropdown
[placeholder] => cf__ulrql_automation_required
[value] => Yes
[is_dependent_field] =>
)
[1] => Array
(
[field_id] => 499326000046252173
[customfield_id] => 499326000046252173
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 2
[label] => Delivery Driver
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_driver
[show_in_all_pdf] =>
[value_formatted] => TEST
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_driver
[value] => TEST
[is_dependent_field] =>
)
[2] => Array
(
[field_id] => 499326000047922345
[customfield_id] => 499326000047922345
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 3
[label] => Run Number
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_run_number
[show_in_all_pdf] =>
[value_formatted] => 1
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_run_number
[value] => 1
[is_dependent_field] =>
)
)
[custom_field_hash] => Array
(
[cf__ulrql_automation_required] => Yes
[cf__ulrql_automation_required_unformatted] => Yes
[cf_delivery_driver] => TEST
[cf_delivery_driver_unformatted] => TEST
[cf_run_number] => 1
[cf_run_number_unformatted] => 1
)
[template_id] => 499326000000000111
[template_name] => Standard Template
[page_width] => 8.27in
[page_height] => 11.69in
[orientation] => portrait
[template_type] => standard
[created_time] => 2025-10-01T09:44:02+0100
[last_modified_time] => 2025-10-08T21:42:00+0100
[created_by_id] => 499326000044231001
[created_date] => 2025-10-01
[last_modified_by_id] => 499326000044410001
[attachment_name] =>
[can_send_in_mail] =>
[salesperson_id] => 499326000045029073
[salesperson_name] => Jem Glanvill
[merchant_id] =>
[merchant_name] =>
[pickup_location_id] =>
[discount] => 0
[discount_applied_on_amount] => 0
[is_adv_tracking_in_package] =>
[shipping_charge_taxes] => Array
(
)
[lock_details] => Array
(
[can_lock] =>
)
[locked_actions] => Array
(
)
[shipping_charge_tax_id] =>
[shipping_charge_tax_name] =>
[shipping_charge_tax_type] =>
[shipping_charge_tax_percentage] =>
[shipping_charge_tax_exemption_id] =>
[shipping_charge_tax_exemption_code] =>
[shipping_charge_tax] =>
[bcy_shipping_charge_tax] =>
[shipping_charge_exclusive_of_tax] => 0
[shipping_charge_inclusive_of_tax] => 0
[shipping_charge_tax_formatted] =>
[shipping_charge_exclusive_of_tax_formatted] => £0.00
[shipping_charge_inclusive_of_tax_formatted] => £0.00
[shipping_charge] => 0
[bcy_shipping_charge] => 0
[adjustment] => 0
[bcy_adjustment] => 0
[adjustment_description] => Adjustment
[roundoff_value] => 0
[transaction_rounding_type] => no_rounding
[rounding_mode] => round_half_up
[bcy_rounding_mode] => round_half_up
[sub_total] => 304.49
[bcy_sub_total] => 304.49
[sub_total_inclusive_of_tax] => 0
[sub_total_exclusive_of_discount] => 304.49
[discount_total] => 0
[bcy_discount_total] => 0
[discount_percent] => 0
[tax_total] => 44.9
[bcy_tax_total] => 44.9
[total] => 349.39
[computation_type] => basic
[bcy_total] => 349.39
[reverse_charge_tax_total] => 0
[taxes] => Array
(
[0] => Array
(
[tax_amount] => 44.9
[tax_name] => Standard Rate
[tax_amount_formatted] => £44.90
)
)
[tds_calculation_type] => tds_item_level
[packages] => Array
(
)
[so_cycle_preference] => Array
(
[is_feature_enabled] => 1
[socycle_status] => not_triggered
[can_create_invoice] => 1
[can_create_package] =>
[can_create_shipment] =>
[shipment_preference] => Array
(
[default_carrier] =>
[send_notification] =>
[deliver_shipments] =>
)
[invoice_preference] => Array
(
[mark_as_sent] =>
[record_payment] =>
[payment_mode_id] => 499326000000000199
[payment_account_id] => 499326000000000349
)
)
[invoices] => Array
(
[0] => Array
(
[invoice_id] => 499326000049240556
[invoice_number] => INV-26216
[reference_number] => SO-00461
[status] => sent
[date] => 2025-10-08
[due_date] => 2025-10-08
[total] => 349.39
[balance] => 349.39
)
)
[can_show_kit_return] =>
[is_kit_partial_return] =>
[salesreturns] => Array
(
)
[payments] => Array
(
)
[creditnotes] => Array
(
)
[refunds] => Array
(
)
[contact] => Array
(
[customer_balance] => 349.39
[credit_limit] => 0
[unused_customer_credits] => 0
[is_credit_limit_migration_completed] => 1
)
[balance] => 349.39
[approvers_list] => Array
(
)
[is_scheduled_for_quick_shipment_create] =>
)
)
Webhook - destinationUpdated script called at 2025-10-08 21:42:07
JSON: {"payload":{"orderReference":"SO-00463","status":"LOCKED"},"timestamp":"2025-10-08T20:42:07Z"}
REF: SO-00463
Filter: refId="SO-00463"
200 response code sent
Local item: {"addons":[],"attachments":[],"collectionEnd":"","collectionId":"s93ukjlitoinx2e","collectionInstructions":"","collectionName":"orders","collectionStart":"","company":"1kmltj8w8rnhbfx","contactEmail":"","contactName":"Swan (Taunton)","contactNotes":"","contactPhone":"","created":"2025-10-07 08:10:30.588Z","custom":[],"customer":"fnxuzv62tgh9bx9","deliveryCity":"Kingston St Mary","deliveryCounty":"","deliveryEnd":"2025-10-08 00:00:00.000Z","deliveryInstructions":"","deliveryName":"Swan (Taunton)","deliveryPostcode":"TA2 8HW","deliveryStart":"2025-10-08 00:00:00.000Z","deliveryStreet":"Kingston St Mary","description":"","driverRef":"","externalCustomerId":"499326000026597291","externalLocationId":"499326000026597293","externalOrderId":"499326000049193438","id":"tnhd60hz3inyc0m","isCancelled":false,"isCollection":false,"isReadyToSync":true,"isScheduledCollection":false,"isScheduledDelivery":false,"isUntracked":false,"mergeRef":"","notes":"","orderedAt":"","overrideVolume":0,"overrideWeight":0,"paymentMethod":"","pendingSyncFromDestination":false,"pendingSyncFromSource":false,"pendingSyncToDestination":false,"pendingSyncToSource":false,"ref":"","refId":"SO-00463","requestedDeliveryDays":"","seqNo":"","signature":"","signatureName":"","signatureTime":"","statusCollection":"","statusDelivery":"Pending","syncInCreated":"2025-10-07 08:10:15.000Z","syncInStatus":"closed","syncInUpdated":"2025-10-07 17:50:13.000Z","syncOutStatus":"UNALLOCATED","syncOutUpdated":"2025-10-07 17:55:00.000Z","timeWindows":[],"title":"Swan (Taunton)","totalValue":0,"totalWeight":0,"type":"","updated":"2025-10-07 17:55:19.385Z","vehicleRef":"","what3Words":""}
Updating local order from MaxOptra - current local order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] =>
[contactName] => Swan (Taunton)
[contactNotes] =>
[contactPhone] =>
[created] => 2025-10-07 08:10:30.588Z
[custom] => Array
(
)
[customer] => fnxuzv62tgh9bx9
[deliveryCity] => Kingston St Mary
[deliveryCounty] =>
[deliveryEnd] => 2025-10-08 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Swan (Taunton)
[deliveryPostcode] => TA2 8HW
[deliveryStart] => 2025-10-08 00:00:00.000Z
[deliveryStreet] => Kingston St Mary
[description] =>
[driverRef] =>
[externalCustomerId] => 499326000026597291
[externalLocationId] => 499326000026597293
[externalOrderId] => 499326000049193438
[id] => tnhd60hz3inyc0m
[isCancelled] =>
[isCollection] =>
[isReadyToSync] => 1
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] =>
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00463
[requestedDeliveryDays] =>
[seqNo] =>
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Pending
[syncInCreated] => 2025-10-07 08:10:15.000Z
[syncInStatus] => closed
[syncInUpdated] => 2025-10-07 17:50:13.000Z
[syncOutStatus] => UNALLOCATED
[syncOutUpdated] => 2025-10-07 17:55:00.000Z
[timeWindows] => Array
(
)
[title] => Swan (Taunton)
[totalValue] => 0
[totalWeight] => 0
[type] =>
[updated] => 2025-10-07 17:55:19.385Z
[vehicleRef] =>
[what3Words] =>
)
MaxOptra order details: Array
(
[0] => Array
(
[referenceNumber] => SO-00463
[consignmentReference] =>
[distributionCentreReference] => Head Office
[distributionCentreName] => Head Office
[task] => DELIVERY
[priority] => NORMAL
[vehicleRequirements] => Array
(
)
[additionalInstructions] =>
[clientName] => Swan (Taunton)
[contactPerson] => Swan (Taunton)
[contactNumber] =>
[contactEmail] =>
[additionalContactEmails] =>
[notificationPreferences] => Array
(
[allowSMS] => 1
[allowEmail] => 1
)
[customerLocation] => Array
(
[referenceNumber] => 499326000026597293
[name] => Swan (Taunton), Kingston St Mary, Kingston St Mary
[address] => TA2 8HW
[w3wAddress] =>
[latitude] => 51.06104
[longitude] => -3.11389
)
[territoryReference] =>
[stopSequence] => ANY
[timeWindows] => Array
(
[0] => Array
(
[start] => 2025-10-08T06:00:00+01:00
[end] => 2025-10-08T23:59:00+01:00
)
)
[orderDate] =>
[capacity1] => 0
[capacity2] => 0
[price] => 0
[operationDuration] => 300
[customFields] => Array
(
)
[orderItems] => Array
(
[0] => Array
(
[itemReferenceNumber] => 499326000021043887
[orderReferenceNumber] => SO-00463
[name] => Collection of empties
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 0
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 0
[height] => 0
[width] => 0
[length] => 0
[weight] => 0
[volume] => 0
)
)
[widgetTrackingDetails] =>
)
)
MaxOptra schedule details: Array
(
[orderReferenceNumber] => SO-00463
[assignedDriverReference] => TEST
[assignedDriverName] => TEST
[assignedVehicleReference] => TEST
[assignedVehicleName] => TEST
[plannedArrivalTime] => 2025-10-08T22:28:29+01:00
[plannedCompletionTime] => 2025-10-08T22:33:29+01:00
[stopNumber] => 1
[totalStopsInRun] => 3
[runNumber] => 1
[runReference] => c7c2047ca3eb4975aa2a2dee3381702f
[eta] =>
[factArrivalTimeGPS] =>
[factCompletionTimeGPS] =>
[factArrivalTimeReported] =>
[factCompletionTimeReported] =>
[failReason] =>
[failComment] =>
[status] => LOCKED
[driver] => TEST
[arrival_planned] => 2025-10-08T22:28:29+01:00
[arrival_estimated] =>
[arrival_actual] =>
[totalStops] => 3
)
Updating order: SO-00463
Update ID tnhd60hz3inyc0m with: Array
(
[custom] => Array
(
)
[driverRef] => TEST
[vehicleRef] => TEST
[seqNo] => 1
)
Updated order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] =>
[contactName] => Swan (Taunton)
[contactNotes] =>
[contactPhone] =>
[created] => 2025-10-07 08:10:30.588Z
[custom] => Array
(
)
[customer] => fnxuzv62tgh9bx9
[deliveryCity] => Kingston St Mary
[deliveryCounty] =>
[deliveryEnd] => 2025-10-08 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Swan (Taunton)
[deliveryPostcode] => TA2 8HW
[deliveryStart] => 2025-10-08 00:00:00.000Z
[deliveryStreet] => Kingston St Mary
[description] =>
[driverRef] => TEST
[externalCustomerId] => 499326000026597291
[externalLocationId] => 499326000026597293
[externalOrderId] => 499326000049193438
[id] => tnhd60hz3inyc0m
[isCancelled] =>
[isCollection] =>
[isReadyToSync] => 1
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] =>
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00463
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Pending
[syncInCreated] => 2025-10-07 08:10:15.000Z
[syncInStatus] => closed
[syncInUpdated] => 2025-10-07 17:50:13.000Z
[syncOutStatus] => UNALLOCATED
[syncOutUpdated] => 2025-10-07 17:55:00.000Z
[timeWindows] => Array
(
)
[title] => Swan (Taunton)
[totalValue] => 0
[totalWeight] => 0
[type] =>
[updated] => 2025-10-08 20:42:08.065Z
[vehicleRef] => TEST
[what3Words] =>
)
Updating source from local order
Getting custom fields
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-07-18 02:35:52.065Z
[id] => nc7sndad5bhvi5x
[inCollection] => orders
[inField] => paymentMethod
[mappedField] => 7DCPayment
[name] => Payment method
[sourceField] =>
[syncFromSource] => 1
[syncToSource] =>
[type] => text
[updated] => 2025-07-18 02:35:52.065Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Processing field
Mapped field: 7DCEmpties
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
Processing field
Mapped field: 7DCEmptiesGas
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:03:34.631Z
[id] => pcn96l3kgkps4az
[inCollection] => orders
[inField] => driverRef
[mappedField] =>
[name] => Delivery driver
[sourceField] => cf_delivery_driver
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:03:34.631Z
)
Processing field
driverRef...
Value: TEST
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-08 04:52:51.399Z
[id] => hhrzcmytzs8p3kw
[inCollection] => orders
[inField] => seqNo
[mappedField] =>
[name] => Run number
[sourceField] => cf_run_number
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-08 04:52:51.399Z
)
Processing field
seqNo...
Value: 1
Finished processing field
Continue
Updating source order: Array
(
[custom_fields] => Array
(
[0] => Array
(
[api_name] => cf_delivery_driver
[value] => TEST
)
[1] => Array
(
[api_name] => cf_run_number
[value] => 1
)
)
)
Update result: Array
(
[code] => 0
[message] => Sales Order has been updated.
[salesorder] => Array
(
[salesorder_id] => 499326000049193438
[is_viewed_in_mail] =>
[mail_first_viewed_time] =>
[mail_last_viewed_time] =>
[documents] => Array
(
)
[zcrm_potential_id] =>
[zcrm_potential_name] =>
[salesorder_number] => SO-00463
[date] => 2025-10-08
[offline_created_date_with_time] =>
[tracking_url] =>
[has_discount] =>
[status] => confirmed
[color_code] =>
[current_sub_status_id] =>
[current_sub_status] => closed
[sub_statuses] => Array
(
)
[shipment_date] =>
[reference_number] =>
[customer_id] => 499326000026597291
[customer_name] => Swan (Taunton)
[contact_persons] => Array
(
)
[contact_persons_associated] => Array
(
)
[contact_person_details] => Array
(
)
[source] => Api
[contact_category] => uk
[is_taxable] =>
[has_shipping_address] => 1
[currency_id] => 499326000000000065
[currency_code] => GBP
[currency_symbol] => £
[exchange_rate] => 1
[is_discount_before_tax] => 1
[discount_type] => item_level
[estimate_id] =>
[delivery_method] =>
[delivery_method_id] =>
[vat_treatment] => uk
[is_inclusive_tax] =>
[tax_rounding] => entity_level
[tax_override_preference] => no_override
[order_status] => closed
[invoiced_status] => invoiced
[paid_status] => paid
[shipped_status] => pending
[sales_channel] => direct_sales
[sales_channel_formatted] => Direct Sales
[account_identifier] =>
[integration_id] =>
[is_dropshipped] =>
[is_backordered] =>
[is_manually_fulfilled] =>
[can_manually_fulfill] => 1
[has_qty_cancelled] =>
[is_reverse_charge_applied] =>
[shipping_details] => Array
(
)
[created_by_email] => jem@7daycellar.co.uk
[created_by_name] => Jem Glanvill
[branch_id] => 499326000023111007
[branch_name] => Head Office
[location_id] => 499326000023111007
[location_name] => Head Office
[total_quantity] => 1
[line_items] => Array
(
[0] => Array
(
[line_item_id] => 499326000049193448
[variant_id] => 499326000021043887
[track_batch_number] =>
[item_id] => 499326000021043887
[is_returnable] =>
[product_id] => 499326000021043887
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] =>
[name] => Collection of empties
[group_name] => Collection of empties
[description] => please collect empties and gas bottles
[item_order] => 0
[bcy_rate] => 0
[rate] => 0
[sales_rate] => 0
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] =>
[tax_name] =>
[tax_type] => tax
[tax_percentage] => 0
[line_item_taxes] => Array
(
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 0
[item_sub_total] => 0
[product_type] => goods
[line_item_type] => goods
[item_type] => sales
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] =>
[image_type] =>
[document_id] =>
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 1
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] =>
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
)
[is_advanced_tracking_missing] =>
[entity_tags] =>
[submitter_id] =>
[approver_id] =>
[submitted_date] =>
[submitted_by] =>
[submitted_by_name] =>
[submitted_by_email] =>
[submitted_by_photo_url] =>
[price_precision] => 2
[is_emailed] =>
[has_unconfirmed_line_item] =>
[picklists] => Array
(
)
[purchaseorders] => Array
(
)
[locations] => Array
(
[0] => Array
(
[location_id] => 499326000023111007
[location_name] => Head Office
[status] => active
)
[1] => Array
(
[location_id] => 499326000041689155
[location_name] => Bason Bridge Brewery Duty Bonded Warehouse
[status] => active
)
)
[billing_address_id] => 499326000026597293
[billing_address] => Array
(
[address] => Kingston St Mary
[street2] =>
[city] => Kingston St Mary
[state] =>
[zip] => TA2 8HW
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[shipping_address_id] => 499326000026597295
[shipping_address] => Array
(
[company_name] =>
[address] =>
[street2] =>
[city] =>
[state] =>
[zip] =>
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[is_test_order] =>
[notes] => Account Name: 7 Day Cellar Ltd
Sort Code: 09-01-30
Account No: 10888924
[terms] =>
[payment_terms] => 30
[payment_terms_label] => Net 30
[custom_fields] => Array
(
[0] => Array
(
[field_id] => 499326000042690007
[customfield_id] => 499326000042690007
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 1
[label] => Automation Required
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[is_color_code_supported] =>
[api_name] => cf__ulrql_automation_required
[show_in_all_pdf] =>
[selected_option_id] => 499326000042690011
[value_formatted] => Yes
[search_entity] => salesorder
[data_type] => dropdown
[placeholder] => cf__ulrql_automation_required
[value] => Yes
[is_dependent_field] =>
)
[1] => Array
(
[field_id] => 499326000046252173
[customfield_id] => 499326000046252173
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 2
[label] => Delivery Driver
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_driver
[show_in_all_pdf] =>
[value_formatted] => TEST
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_driver
[value] => TEST
[is_dependent_field] =>
)
[2] => Array
(
[field_id] => 499326000047922345
[customfield_id] => 499326000047922345
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 3
[label] => Run Number
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_run_number
[show_in_all_pdf] =>
[value_formatted] => 1
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_run_number
[value] => 1
[is_dependent_field] =>
)
)
[custom_field_hash] => Array
(
[cf__ulrql_automation_required] => Yes
[cf__ulrql_automation_required_unformatted] => Yes
[cf_delivery_driver] => TEST
[cf_delivery_driver_unformatted] => TEST
[cf_run_number] => 1
[cf_run_number_unformatted] => 1
)
[template_id] => 499326000000000111
[template_name] => Standard Template
[page_width] => 8.27in
[page_height] => 11.69in
[orientation] => portrait
[template_type] => standard
[created_time] => 2025-10-07T09:10:15+0100
[last_modified_time] => 2025-10-08T21:42:08+0100
[created_by_id] => 499326000044231001
[created_date] => 2025-10-07
[last_modified_by_id] => 499326000044410001
[attachment_name] =>
[can_send_in_mail] =>
[salesperson_id] => 499326000045029073
[salesperson_name] => Jem Glanvill
[merchant_id] =>
[merchant_name] =>
[pickup_location_id] =>
[discount] => 0
[discount_applied_on_amount] => 0
[is_adv_tracking_in_package] =>
[shipping_charge_taxes] => Array
(
)
[lock_details] => Array
(
[can_lock] =>
)
[locked_actions] => Array
(
)
[shipping_charge_tax_id] =>
[shipping_charge_tax_name] =>
[shipping_charge_tax_type] =>
[shipping_charge_tax_percentage] =>
[shipping_charge_tax_exemption_id] =>
[shipping_charge_tax_exemption_code] =>
[shipping_charge_tax] =>
[bcy_shipping_charge_tax] =>
[shipping_charge_exclusive_of_tax] => 0
[shipping_charge_inclusive_of_tax] => 0
[shipping_charge_tax_formatted] =>
[shipping_charge_exclusive_of_tax_formatted] => £0.00
[shipping_charge_inclusive_of_tax_formatted] => £0.00
[shipping_charge] => 0
[bcy_shipping_charge] => 0
[adjustment] => 0
[bcy_adjustment] => 0
[adjustment_description] => Adjustment
[roundoff_value] => 0
[transaction_rounding_type] => no_rounding
[rounding_mode] => round_half_up
[bcy_rounding_mode] => round_half_up
[sub_total] => 0
[bcy_sub_total] => 0
[sub_total_inclusive_of_tax] => 0
[sub_total_exclusive_of_discount] => 0
[discount_total] => 0
[bcy_discount_total] => 0
[discount_percent] => 0
[tax_total] => 0
[bcy_tax_total] => 0
[total] => 0
[computation_type] => basic
[bcy_total] => 0
[reverse_charge_tax_total] => 0
[taxes] => Array
(
)
[tds_calculation_type] => tds_item_level
[packages] => Array
(
)
[so_cycle_preference] => Array
(
[is_feature_enabled] => 1
[socycle_status] => not_triggered
[can_create_invoice] => 1
[can_create_package] =>
[can_create_shipment] =>
[shipment_preference] => Array
(
[default_carrier] =>
[send_notification] =>
[deliver_shipments] =>
)
[invoice_preference] => Array
(
[mark_as_sent] =>
[record_payment] =>
[payment_mode_id] => 499326000000000199
[payment_account_id] => 499326000000000349
)
)
[invoices] => Array
(
[0] => Array
(
[invoice_id] => 499326000049240729
[invoice_number] => INV-26217
[reference_number] => SO-00463
[status] => draft
[date] => 2025-10-07
[due_date] => 2025-11-06
[total] => 0
[balance] => 0
)
)
[can_show_kit_return] =>
[is_kit_partial_return] =>
[salesreturns] => Array
(
)
[payments] => Array
(
)
[creditnotes] => Array
(
)
[refunds] => Array
(
)
[contact] => Array
(
[customer_balance] => 0
[credit_limit] => 0
[unused_customer_credits] => 0
[is_credit_limit_migration_completed] => 1
)
[balance] => 0
[approvers_list] => Array
(
)
[is_scheduled_for_quick_shipment_create] =>
)
)
Webhook - sourceUpdated script called at 2025-10-08 21:42:15
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048962011","salesorder_no":"SO-00461","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048962011","salesorder_no":"SO-00461","status":"invoiced"}}
EXT ID: 499326000048962011
REF: SO-00461
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Error: API Error (404): Sorry! The item you are looking for is not available!
Error: Failed to sync source order
Finished at 2025-10-08 21:42:15
Webhook - sourceUpdated script called at 2025-10-08 21:47:08
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049193438","salesorder_no":"SO-00463","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000049193438","salesorder_no":"SO-00463","status":"invoiced"}}
EXT ID: 499326000049193438
REF: SO-00463
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049193438 (REF SO-00463)
Local order updated = 2025-10-07 17:50:13.000Z,
source updated = 2025-10-08T21:42:08+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => Swan (Taunton)
[notes] =>
[externalOrderId] => 499326000049193438
[refId] => SO-00463
[externalCustomerId] => 499326000026597291
[externalLocationId] => 499326000026597293
[title] => Swan (Taunton)
[deliveryStart] => 2025-10-08
[deliveryEnd] => 2025-10-08
[totalValue] => 0
[totalWeight] => 0
[syncInCreated] => 2025-10-07T09:10:15+0100
[syncInUpdated] => 2025-10-08T21:42:08+0100
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000049193448
[externalProductId] => 499326000021043887
[sku] =>
[title] => Collection of empties
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
)
[deliveryName] => Swan (Taunton)
[deliveryStreet] => Kingston St Mary
[deliveryCity] => Kingston St Mary
[deliveryCounty] =>
[deliveryPostcode] => TA2 8HW
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => Swan (Taunton)
[notes] =>
[externalOrderId] => 499326000049193438
[refId] => SO-00463
[externalCustomerId] => 499326000026597291
[externalLocationId] => 499326000026597293
[title] => Swan (Taunton)
[deliveryStart] => 2025-10-08
[deliveryEnd] => 2025-10-08
[totalValue] => 0
[totalWeight] => 0
[syncInCreated] => 2025-10-07T09:10:15+0100
[syncInUpdated] => 2025-10-08T21:42:08+0100
[syncInStatus] => closed
[deliveryName] => Swan (Taunton)
[deliveryStreet] => Kingston St Mary
[deliveryCity] => Kingston St Mary
[deliveryCounty] =>
[deliveryPostcode] => TA2 8HW
[syncOutUpdated] => 2025-10-08T21:47:09+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Swan (Taunton)
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000026597291
Getting products
Updating product 499326000021043887
Updating order product 499326000049193448
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00463
Processing order: tnhd60hz3inyc0m, ref SO-00463
Syncing SO-00463
Using default start and end times
Delivery start = 2025-10-08 00:00:00.000Z = 2025-10-08T06:00:00+01:00
Delivery end = 2025-10-08 00:00:00.000Z = 2025-10-08T20:00:00+01:00
Delivery is in the past. Skipping creation/update in MaxOptra.
Found order in MaxOptra? yes
MO updated: 08/10/2025 21:42 - Local updated: 2025-10-08 20:47:09.000Z - Source updated: 2025-10-08 20:42:08.000Z
Changed? yes
Current MaxOptra status: ACCEPTED
Completed? no
Previous status: UNALLOCATED
Status changed - mark for sync back to source
Is allocated? yes
MO delivery date: 2025-10-08, Local delivery date: 2025-10-08
Local updated: 2025-10-08 20:47:09.000Z
Pending updates to MaxOptra? no
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00463
Done all.
Finished at 2025-10-08 21:47:10
Webhook - sourceUpdated script called at 2025-10-10 08:34:54
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049243005","salesorder_no":"SO-00467","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000049243005","salesorder_no":"SO-00467","status":"open"}}
EXT ID: 499326000049243005
REF: SO-00467
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049243005 (REF SO-00467)
Local order updated = 2025-10-07 15:28:08.000Z,
source updated = 2025-10-10T08:34:26+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => George & Dragon (Winterbourne)
[notes] =>
[externalOrderId] => 499326000049243005
[refId] => SO-00467
[externalCustomerId] => 499326000048652956
[externalLocationId] => 499326000048652962
[title] => George & Dragon (Winterbourne)
[deliveryStart] => 2025-10-09
[deliveryEnd] => 2025-10-09
[totalValue] => 385.16
[totalWeight] => 186
[syncInCreated] => 2025-10-07T16:28:08+0100
[syncInUpdated] => 2025-10-10T08:34:26+0100
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000049243011
[externalProductId] => 499326000022631148
[sku] => MCBC-DOOM-50LK
[title] => Doombar 50ltr
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 134.99
[price] => 134.99
)
[1] => Array
(
[externalOrderProductId] => 499326000049243013
[externalProductId] => 499326000000063923
[sku] => TTCG-GOLD-50LK
[title] => Thatcher's Gold Cider 11g
[notes] =>
[quantity] => 2
[weightKg] => 62
[weightTotal] => 124
[priceTotal] => 185.98
[price] => 92.99
)
)
[deliveryName] => George & Dragon (Winterbourne)
[deliveryStreet] => High Street
[deliveryCity] => Winterbourne
[deliveryCounty] =>
[deliveryPostcode] => BS36 1JW
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => George & Dragon (Winterbourne)
[notes] =>
[externalOrderId] => 499326000049243005
[refId] => SO-00467
[externalCustomerId] => 499326000048652956
[externalLocationId] => 499326000048652962
[title] => George & Dragon (Winterbourne)
[deliveryStart] => 2025-10-09
[deliveryEnd] => 2025-10-09
[totalValue] => 385.16
[totalWeight] => 186
[syncInCreated] => 2025-10-07T16:28:08+0100
[syncInUpdated] => 2025-10-10T08:34:26+0100
[syncInStatus] => closed
[deliveryName] => George & Dragon (Winterbourne)
[deliveryStreet] => High Street
[deliveryCity] => Winterbourne
[deliveryCounty] =>
[deliveryPostcode] => BS36 1JW
[syncOutUpdated] => 2025-10-10T08:34:54+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => George & Dragon (Winterbourne)
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
2025-10-07 15:26:22.000Z != 2025-10-08T10:36:26+0100
Customer changed - updating 499326000048652956
Updating order contact details
Getting products
Updating product 499326000022631148
Updating order product 499326000049243011
Updated
Updating product 499326000000063923
Updating order product 499326000049243013
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00467
Processing order: 02kwknmriecvv6e, ref SO-00467
Syncing SO-00467
Using default start and end times
Delivery start = 2025-10-09 00:00:00.000Z = 2025-10-09T06:00:00+01:00
Delivery end = 2025-10-09 00:00:00.000Z = 2025-10-09T20:00:00+01:00
Delivery is in the past. Skipping creation/update in MaxOptra.
Found order in MaxOptra? yes
MO updated: 07/10/2025 16:28 - Local updated: 2025-10-10 07:34:54.000Z - Source updated: 2025-10-10 07:34:26.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status:
Status changed - mark for sync back to source
Is allocated? no
Local updated: 2025-10-10 07:34:54.000Z
Pending updates to MaxOptra? no
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00467
Done all.
Finished at 2025-10-10 08:34:56
Webhook - sourceUpdated script called at 2025-10-10 08:34:56
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049243005","salesorder_no":"SO-00467","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000049243005","salesorder_no":"SO-00467","status":"invoiced"}}
EXT ID: 499326000049243005
REF: SO-00467
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049243005 (REF SO-00467)
Updates pending to source for order: 499326000049243005
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-10-10 07:34:26.000Z,
source updated = 2025-10-10T08:34:26+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00467
Processing order: 02kwknmriecvv6e, ref SO-00467
Syncing SO-00467
Using default start and end times
Delivery start = 2025-10-09 00:00:00.000Z = 2025-10-09T06:00:00+01:00
Delivery end = 2025-10-09 00:00:00.000Z = 2025-10-09T20:00:00+01:00
Delivery is in the past. Skipping creation/update in MaxOptra.
Found order in MaxOptra? yes
MO updated: 07/10/2025 16:28 - Local updated: 2025-10-07 15:28:00.000Z - Source updated: 2025-10-10 07:34:26.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00467
Done all.
Finished at 2025-10-10 08:34:58
Webhook - sourceUpdated script called at 2025-10-10 08:35:24
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049243005","salesorder_no":"SO-00467","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000049243005","salesorder_no":"SO-00467","status":"invoiced"}}
EXT ID: 499326000049243005
REF: SO-00467
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049243005 (REF SO-00467)
Local order updated = 2025-10-10 07:34:26.000Z,
source updated = 2025-10-10T08:34:57+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00467
Processing order: 02kwknmriecvv6e, ref SO-00467
Syncing SO-00467
Using default start and end times
Delivery start = 2025-10-09 00:00:00.000Z = 2025-10-09T06:00:00+01:00
Delivery end = 2025-10-09 00:00:00.000Z = 2025-10-09T20:00:00+01:00
Delivery is in the past. Skipping creation/update in MaxOptra.
Found order in MaxOptra? yes
MO updated: 07/10/2025 16:28 - Local updated: 2025-10-07 15:28:00.000Z - Source updated: 2025-10-10 07:34:26.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00467
Done all.
Finished at 2025-10-10 08:35:25
Webhook - sourceUpdated script called at 2025-10-10 08:35:54
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049198086","salesorder_no":"SO-00464","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000049198086","salesorder_no":"SO-00464","status":"invoiced"}}
EXT ID: 499326000049198086
REF: SO-00464
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049198086 (REF SO-00464)
Local order updated = 2025-10-07 08:16:18.000Z,
source updated = 2025-10-10T08:35:19+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => The Horseshoe (Chipping Sodbury)
[notes] =>
[externalOrderId] => 499326000049198086
[refId] => SO-00464
[externalCustomerId] => 499326000047045175
[externalLocationId] => 499326000047045177
[title] => The Horseshoe (Chipping Sodbury)
[deliveryStart] => 2025-10-10
[deliveryEnd] => 2025-10-10
[totalValue] => 125.99
[totalWeight] => 39
[syncInCreated] => 2025-10-07T09:16:18+0100
[syncInUpdated] => 2025-10-10T08:35:19+0100
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000049323667
[externalProductId] => 499326000049323314
[sku] =>
[title] => Weihenstephan 30L Weissbeer
[notes] =>
[quantity] => 1
[weightKg] => 39
[weightTotal] => 39
[priceTotal] => 104.99
[price] => 104.99
)
)
[deliveryName] => The Horseshoe (Chipping Sodbury)
[deliveryStreet] => 2 High Street
[deliveryCity] => Chipping Sodbury
[deliveryCounty] =>
[deliveryPostcode] => BS37 6AH
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => The Horseshoe (Chipping Sodbury)
[notes] =>
[externalOrderId] => 499326000049198086
[refId] => SO-00464
[externalCustomerId] => 499326000047045175
[externalLocationId] => 499326000047045177
[title] => The Horseshoe (Chipping Sodbury)
[deliveryStart] => 2025-10-10
[deliveryEnd] => 2025-10-10
[totalValue] => 125.99
[totalWeight] => 39
[syncInCreated] => 2025-10-07T09:16:18+0100
[syncInUpdated] => 2025-10-10T08:35:19+0100
[syncInStatus] => closed
[deliveryName] => The Horseshoe (Chipping Sodbury)
[deliveryStreet] => 2 High Street
[deliveryCity] => Chipping Sodbury
[deliveryCounty] =>
[deliveryPostcode] => BS37 6AH
[syncOutUpdated] => 2025-10-10T08:35:55+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => The Horseshoe (Chipping Sodbury)
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000047045175
Getting products
Creating product 499326000049323314
Creating new order product 499326000049323667
Removing deleted order items
Removing order item 499326000049198092
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00464
Processing order: kjvawbbepe3shbz, ref SO-00464
Syncing SO-00464
Using default start and end times
Time window: 2025-10-10T06:00:00+01:00 - 2025-10-10T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 07/10/2025 09:16 - Local updated: 2025-10-10 07:35:55.000Z - Source updated: 2025-10-10 07:35:19.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status:
Status changed - mark for sync back to source
Is allocated? no
Local updated: 2025-10-10 07:35:55.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000047045177
Array
(
[referenceNumber] => 499326000047045177
[name] => The Horseshoe (Chipping Sodbury), 2 High Street, Chipping Sodbury
[address] => BS37 6AH
)
499326000047045177
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00464
Done all.
Finished at 2025-10-10 08:35:56
Webhook - sourceUpdated script called at 2025-10-10 08:36:25
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049245049","salesorder_no":"SO-00468","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000049245049","salesorder_no":"SO-00468","status":"draft"}}
EXT ID: 499326000049245049
REF: SO-00468
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049245049 (REF SO-00468)
Updates pending to source for order: 499326000049245049
Updates found - pushing to source
Webhook - sourceUpdated script called at 2025-10-10 08:36:26
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049245049","salesorder_no":"SO-00468","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000049245049","salesorder_no":"SO-00468","status":"invoiced"}}
EXT ID: 499326000049245049
REF: SO-00468
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
Done updating. Proceeding to sync from source.
Local order updated = 2025-10-08 07:30:06.000Z,
source updated = 2025-10-10T08:36:14+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[contactName] => Wayne Hadley
[notes] => Collect empties and FULL BRUE 50L
[externalOrderId] => 499326000049245049
[refId] => SO-00468
[externalCustomerId] => 499326000046966136
[externalLocationId] => 499326000046966140
[title] => Concierge Events
[deliveryStart] => 2025-10-10
[deliveryEnd] => 2025-10-10
[totalValue] => 264
[totalWeight] => 124
[syncInCreated] => 2025-10-08T08:28:59+0100
[syncInUpdated] => 2025-10-10T08:36:14+0100
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000049245055
[externalProductId] => 499326000000061367
[sku] => BBG-SNML-50LK
[title] => San Miguel 11G
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 130
[price] => 130
)
[1] => Array
(
[externalOrderProductId] => 499326000049245057
[externalProductId] => 499326000000063923
[sku] => TTCG-GOLD-50LK
[title] => Thatcher's Gold Cider 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 90
[price] => 90
)
)
[deliveryName] => Concierge Events
[deliveryStreet] => Worle Football Club
[deliveryCity] => Worle
[deliveryCounty] =>
[deliveryPostcode] => BS22 6AH
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[contactName] => Wayne Hadley
[notes] => Collect empties and FULL BRUE 50L
[externalOrderId] => 499326000049245049
[refId] => SO-00468
[externalCustomerId] => 499326000046966136
[externalLocationId] => 499326000046966140
[title] => Concierge Events
[deliveryStart] => 2025-10-10
[deliveryEnd] => 2025-10-10
[totalValue] => 264
[totalWeight] => 124
[syncInCreated] => 2025-10-08T08:28:59+0100
[syncInUpdated] => 2025-10-10T08:36:14+0100
[syncInStatus] => closed
[deliveryName] => Concierge Events
[deliveryStreet] => Worle Football Club
[deliveryCity] => Worle
[deliveryCounty] =>
[deliveryPostcode] => BS22 6AH
[syncOutUpdated] => 2025-10-10T08:36:27+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Wayne Hadley
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
------------------------
Processing order 499326000049245049 (REF SO-00468)
Updates pending to source for order: 499326000049245049
Updates found - pushing to source
Customer exists and has not changed (skipping): 499326000046966136
Getting products
Updating product 499326000000061367
Updating order product 499326000049245055
Updated
Updating product 499326000000063923
Updating order product 499326000049245057
Updated
Webhook - sourceUpdated script called at 2025-10-10 08:36:27
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049245049","salesorder_no":"SO-00468","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000049245049","salesorder_no":"SO-00468","status":"invoiced"}}
EXT ID: 499326000049245049
REF: SO-00468
Removing deleted order items
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00468
Getting local orders...
------------------------
Processing order 499326000049245049 (REF SO-00468)
Local order updated = 2025-10-10 07:36:14.000Z,
source updated = 2025-10-10T08:36:26+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Done updating. Proceeding to sync from source.
Local order updated = 2025-10-08 07:30:06.000Z,
source updated = 2025-10-10T08:36:14+0100,
has changed = yes
Marking order for sync with MaxOptra
Syncing to MaxOptra
Sync to MaxOptra: SO-00468
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[contactName] => Wayne Hadley
[notes] => Collect empties and FULL BRUE 50L
[externalOrderId] => 499326000049245049
[refId] => SO-00468
[externalCustomerId] => 499326000046966136
[externalLocationId] => 499326000046966140
[title] => Concierge Events
[deliveryStart] => 2025-10-10
[deliveryEnd] => 2025-10-10
[totalValue] => 264
[totalWeight] => 124
[syncInCreated] => 2025-10-08T08:28:59+0100
[syncInUpdated] => 2025-10-10T08:36:14+0100
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000049245055
[externalProductId] => 499326000000061367
[sku] => BBG-SNML-50LK
[title] => San Miguel 11G
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 130
[price] => 130
)
[1] => Array
(
[externalOrderProductId] => 499326000049245057
[externalProductId] => 499326000000063923
[sku] => TTCG-GOLD-50LK
[title] => Thatcher's Gold Cider 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 90
[price] => 90
)
)
[deliveryName] => Concierge Events
[deliveryStreet] => Worle Football Club
[deliveryCity] => Worle
[deliveryCounty] =>
[deliveryPostcode] => BS22 6AH
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[contactName] => Wayne Hadley
[notes] => Collect empties and FULL BRUE 50L
[externalOrderId] => 499326000049245049
[refId] => SO-00468
[externalCustomerId] => 499326000046966136
[externalLocationId] => 499326000046966140
[title] => Concierge Events
[deliveryStart] => 2025-10-10
[deliveryEnd] => 2025-10-10
[totalValue] => 264
[totalWeight] => 124
[syncInCreated] => 2025-10-08T08:28:59+0100
[syncInUpdated] => 2025-10-10T08:36:14+0100
[syncInStatus] => closed
[deliveryName] => Concierge Events
[deliveryStreet] => Worle Football Club
[deliveryCity] => Worle
[deliveryCounty] =>
[deliveryPostcode] => BS22 6AH
[syncOutUpdated] => 2025-10-10T08:36:27+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Wayne Hadley
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Processing order: hh57uabuw9jb6fb, ref SO-00468
Syncing SO-00468
Using default start and end times
Time window: 2025-10-10T06:00:00+01:00 - 2025-10-10T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 08/10/2025 08:30 - Local updated: 2025-10-10 07:36:27.000Z - Source updated: 2025-10-10 07:36:14.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-10-10 07:36:27.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Customer exists and has not changed (skipping): 499326000046966136
Getting products
Updating product 499326000000061367
Updating order product 499326000049245055
Updated
Updating product 499326000000063923
Updating order product 499326000049245057
Webhook - sourceUpdated script called at 2025-10-10 08:36:28
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049245049","salesorder_no":"SO-00468","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000049245049","salesorder_no":"SO-00468","status":"invoiced"}}
EXT ID: 499326000049245049
Updated
REF: SO-00468
Removing deleted order items
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00468
Processing order: hh57uabuw9jb6fb, ref SO-00468
Syncing SO-00468
Using default start and end times
Time window: 2025-10-10T06:00:00+01:00 - 2025-10-10T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 08/10/2025 08:30 - Local updated: 2025-10-10 07:36:27.000Z - Source updated: 2025-10-10 07:36:14.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Getting local orders...
Updated
Replacing location address in MaxOptra: 499326000046966140
Array
(
[referenceNumber] => 499326000046966140
[name] => Concierge Events, Worle Football Club, Worle
[address] => BS22 6AH
)
499326000046966140
Is allocated? no
Local updated: 2025-10-10 07:36:27.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00468
Done all.
------------------------
Processing order 499326000049245049 (REF SO-00468)
Local order updated = 2025-10-10 07:36:14.000Z,
source updated = 2025-10-10T08:36:27+0100,
has changed = no
Marking order for sync with MaxOptra
Finished at 2025-10-10 08:36:28
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00468
Processing order: hh57uabuw9jb6fb, ref SO-00468
Order is not marked to sync (possibly no longer in source)
Finished syncing to MaxOptra for order SO-00468
Done all.
Finished at 2025-10-10 08:36:28
Updated
Replacing location address in MaxOptra: 499326000046966140
Array
(
[referenceNumber] => 499326000046966140
[name] => Concierge Events, Worle Football Club, Worle
[address] => BS22 6AH
)
499326000046966140
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00468
Done all.
Finished at 2025-10-10 08:36:28
Processing order: hh57uabuw9jb6fb, ref SO-00468
Order is not marked to sync (possibly no longer in source)
Finished syncing to MaxOptra for order SO-00468
Done all.
Finished at 2025-10-10 08:36:29
Webhook - sourceUpdated script called at 2025-10-10 08:39:55
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049243005","salesorder_no":"SO-00467","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000049243005","salesorder_no":"SO-00467","status":"invoiced"}}
EXT ID: 499326000049243005
REF: SO-00467
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049243005 (REF SO-00467)
Local order updated = 2025-10-10 07:34:26.000Z,
source updated = 2025-10-10T08:34:57+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00467
Processing order: 02kwknmriecvv6e, ref SO-00467
Syncing SO-00467
Using default start and end times
Delivery start = 2025-10-09 00:00:00.000Z = 2025-10-09T06:00:00+01:00
Delivery end = 2025-10-09 00:00:00.000Z = 2025-10-09T20:00:00+01:00
Delivery is in the past. Skipping creation/update in MaxOptra.
Found order in MaxOptra? yes
MO updated: 07/10/2025 16:28 - Local updated: 2025-10-07 15:28:00.000Z - Source updated: 2025-10-10 07:34:26.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00467
Done all.
Finished at 2025-10-10 08:39:56
Webhook - sourceUpdated script called at 2025-10-10 08:40:14
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049198086","salesorder_no":"SO-00464","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000049198086","salesorder_no":"SO-00464","status":"draft"}}
EXT ID: 499326000049198086
REF: SO-00464
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049198086 (REF SO-00464)
Updates pending to source for order: 499326000049198086
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-10-10 07:35:19.000Z,
source updated = 2025-10-10T08:35:19+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00464
Webhook - sourceUpdated script called at 2025-10-10 08:40:16
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049198086","salesorder_no":"SO-00464","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000049198086","salesorder_no":"SO-00464","status":"open"}}
EXT ID: 499326000049198086
REF: SO-00464
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Processing order: kjvawbbepe3shbz, ref SO-00464
Syncing SO-00464
Using default start and end times
Time window: 2025-10-10T06:00:00+01:00 - 2025-10-10T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 10/10/2025 08:35 - Local updated: 2025-10-07 08:16:00.000Z - Source updated: 2025-10-10 07:35:19.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-10-07 08:16:00.000Z
Pending updates to MaxOptra? no
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00464
Done all.
Finished at 2025-10-10 08:40:16
Getting local orders...
------------------------
Processing order 499326000049198086 (REF SO-00464)
Local order updated = 2025-10-10 07:35:19.000Z,
source updated = 2025-10-10T08:40:15+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => The Horseshoe (Chipping Sodbury)
[notes] =>
[externalOrderId] => 499326000049198086
[refId] => SO-00464
[externalCustomerId] => 499326000047045175
[externalLocationId] => 499326000047045177
[title] => The Horseshoe (Chipping Sodbury)
[deliveryStart] => 2025-10-10
[deliveryEnd] => 2025-10-10
[totalValue] => 125.99
[totalWeight] => 39
[syncInCreated] => 2025-10-07T09:16:18+0100
[syncInUpdated] => 2025-10-10T08:40:15+0100
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000049323667
[externalProductId] => 499326000049323314
[sku] =>
[title] => Weihenstephan 30L Weissbeer
[notes] =>
[quantity] => 1
[weightKg] => 39
[weightTotal] => 39
[priceTotal] => 104.99
[price] => 104.99
)
)
[deliveryName] => The Horseshoe (Chipping Sodbury)
[deliveryStreet] => 2 High Street
[deliveryCity] => Chipping Sodbury
[deliveryCounty] =>
[deliveryPostcode] => BS37 6AH
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => The Horseshoe (Chipping Sodbury)
[notes] =>
[externalOrderId] => 499326000049198086
[refId] => SO-00464
[externalCustomerId] => 499326000047045175
[externalLocationId] => 499326000047045177
[title] => The Horseshoe (Chipping Sodbury)
[deliveryStart] => 2025-10-10
[deliveryEnd] => 2025-10-10
[totalValue] => 125.99
[totalWeight] => 39
[syncInCreated] => 2025-10-07T09:16:18+0100
[syncInUpdated] => 2025-10-10T08:40:15+0100
[syncInStatus] => closed
[deliveryName] => The Horseshoe (Chipping Sodbury)
[deliveryStreet] => 2 High Street
[deliveryCity] => Chipping Sodbury
[deliveryCounty] =>
[deliveryPostcode] => BS37 6AH
[syncOutUpdated] => 2025-10-10T08:40:17+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => The Horseshoe (Chipping Sodbury)
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000047045175
Getting products
Updating product 499326000049323314
Updating order product 499326000049323667
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00464
Processing order: kjvawbbepe3shbz, ref SO-00464
Syncing SO-00464
Using default start and end times
Time window: 2025-10-10T06:00:00+01:00 - 2025-10-10T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 10/10/2025 08:35 - Local updated: 2025-10-10 07:40:17.000Z - Source updated: 2025-10-10 07:40:15.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-10-10 07:40:17.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000047045177
Array
(
[referenceNumber] => 499326000047045177
[name] => The Horseshoe (Chipping Sodbury), 2 High Street, Chipping Sodbury
[address] => BS37 6AH
)
499326000047045177
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00464
Done all.
Finished at 2025-10-10 08:40:18
Webhook - sourceUpdated script called at 2025-10-10 08:40:20
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049198086","salesorder_no":"SO-00464","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000049198086","salesorder_no":"SO-00464","status":"invoiced"}}
EXT ID: 499326000049198086
REF: SO-00464
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049198086 (REF SO-00464)
Local order updated = 2025-10-10 07:40:15.000Z,
source updated = 2025-10-10T08:40:15+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00464
Processing order: kjvawbbepe3shbz, ref SO-00464
Syncing SO-00464
Using default start and end times
Time window: 2025-10-10T06:00:00+01:00 - 2025-10-10T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 10/10/2025 08:40 - Local updated: 2025-10-10 07:35:00.000Z - Source updated: 2025-10-10 07:40:15.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-10-10 07:35:00.000Z
Pending updates to MaxOptra? no
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00464
Done all.
Finished at 2025-10-10 08:40:21
Webhook - sourceUpdated script called at 2025-10-10 08:40:37
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049198086","salesorder_no":"SO-00464","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000049198086","salesorder_no":"SO-00464","status":"invoiced"}}
EXT ID: 499326000049198086
REF: SO-00464
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049198086 (REF SO-00464)
Local order updated = 2025-10-10 07:40:15.000Z,
source updated = 2025-10-10T08:40:15+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00464
Processing order: kjvawbbepe3shbz, ref SO-00464
Syncing SO-00464
Using default start and end times
Time window: 2025-10-10T06:00:00+01:00 - 2025-10-10T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 10/10/2025 08:40 - Local updated: 2025-10-10 07:40:00.000Z - Source updated: 2025-10-10 07:40:15.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00464
Done all.
Finished at 2025-10-10 08:40:38
Webhook - sourceUpdated script called at 2025-10-10 08:41:12
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049245049","salesorder_no":"SO-00468","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000049245049","salesorder_no":"SO-00468","status":"open"}}
EXT ID: 499326000049245049
REF: SO-00468
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049245049 (REF SO-00468)
Local order updated = 2025-10-10 07:36:14.000Z,
source updated = 2025-10-10T08:36:27+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00468
Processing order: hh57uabuw9jb6fb, ref SO-00468
Syncing SO-00468
Using default start and end times
Time window: 2025-10-10T06:00:00+01:00 - 2025-10-10T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 10/10/2025 08:36 - Local updated: 2025-10-08 07:30:00.000Z - Source updated: 2025-10-10 07:36:14.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-10-08 07:30:00.000Z
Pending updates to MaxOptra? no
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00468
Done all.
Finished at 2025-10-10 08:41:13
Webhook - sourceUpdated script called at 2025-10-10 08:41:27
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049245049","salesorder_no":"SO-00468","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000049245049","salesorder_no":"SO-00468","status":"invoiced"}}
EXT ID: 499326000049245049
REF: SO-00468
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049245049 (REF SO-00468)
Local order updated = 2025-10-10 07:36:14.000Z,
source updated = 2025-10-10T08:36:27+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00468
Processing order: hh57uabuw9jb6fb, ref SO-00468
Syncing SO-00468
Using default start and end times
Time window: 2025-10-10T06:00:00+01:00 - 2025-10-10T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 10/10/2025 08:36 - Local updated: 2025-10-10 07:36:00.000Z - Source updated: 2025-10-10 07:36:14.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00468
Done all.
Finished at 2025-10-10 08:41:28
Webhook - sourceUpdated script called at 2025-10-13 08:59:59
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049237011","salesorder_no":"SO-00466","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000049237011","salesorder_no":"SO-00466","status":"open"}}
EXT ID: 499326000049237011
REF: SO-00466
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Error: API Error (404): Sorry! The item you are looking for is not available!
Error: Failed to sync source order
Finished at 2025-10-13 08:59:59
Webhook - sourceUpdated script called at 2025-10-13 09:00:30
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049237011","salesorder_no":"SO-00466","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000049237011","salesorder_no":"SO-00466","status":"invoiced"}}
EXT ID: 499326000049237011
REF: SO-00466
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Error: API Error (404): Sorry! The item you are looking for is not available!
Error: Failed to sync source order
Finished at 2025-10-13 09:00:30
Webhook - sourceUpdated script called at 2025-10-13 09:00:31
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049237011","salesorder_no":"SO-00466","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000049237011","salesorder_no":"SO-00466","status":"invoiced"}}
EXT ID: 499326000049237011
REF: SO-00466
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Error: API Error (404): Sorry! The item you are looking for is not available!
Error: Failed to sync source order
Finished at 2025-10-13 09:00:31
Webhook - sourceUpdated script called at 2025-10-14 08:39:17
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049564001","salesorder_no":"SO-00471","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000049564001","salesorder_no":"SO-00471","status":"draft"}}
EXT ID: 499326000049564001
REF: SO-00471
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049564001 (REF SO-00471)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => info@lambandflag1705.co.uk
[contactName] => Pat Carrol
[notes] =>
[externalOrderId] => 499326000049564001
[refId] => SO-00471
[externalCustomerId] => 499326000009949812
[externalLocationId] => 499326000009949814
[title] => Lamb & Flag (Taunton)
[deliveryStart] => 2025-10-15
[deliveryEnd] => 2025-10-15
[totalValue] => 321.59
[totalWeight] => 126
[syncInCreated] => 2025-10-14T08:39:03+0100
[syncInUpdated] => 2025-10-14T08:39:03+0100
[syncInStatus] => draft
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000049564007
[externalProductId] => 499326000000061574
[sku] => DIAG-GUIN-50LK
[title] => Draught Guinness 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 169.99
[price] => 169.99
)
[1] => Array
(
[externalOrderProductId] => 499326000049564009
[externalProductId] => 499326000000063941
[sku] => UKAL-60/4-10LC
[title] => 60/40 Mixed Gas 10 Ltr
[notes] =>
[quantity] => 2
[weightKg] => 16
[weightTotal] => 32
[priceTotal] => 49
[price] => 24.5
)
[2] => Array
(
[externalOrderProductId] => 499326000049564011
[externalProductId] => 499326000000063959
[sku] => UKAL-70/3-10LC
[title] => 70/30 Mixed Gas - 10 Ltr
[notes] =>
[quantity] => 1
[weightKg] => 16
[weightTotal] => 16
[priceTotal] => 24.5
[price] => 24.5
)
[3] => Array
(
[externalOrderProductId] => 499326000049564013
[externalProductId] => 499326000000063932
[sku] => UKAL-CO2-10LC
[title] => CO2 Cylinder Gas 10ltr
[notes] =>
[quantity] => 1
[weightKg] => 16
[weightTotal] => 16
[priceTotal] => 24.5
[price] => 24.5
)
)
[deliveryName] => Blagdon Hill
[deliveryStreet] =>
[deliveryCity] => Taunton
[deliveryCounty] =>
[deliveryPostcode] => TA3 7SL
)
Does this order already exist?
No
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => info@lambandflag1705.co.uk
[contactName] => Pat Carrol
[notes] =>
[externalOrderId] => 499326000049564001
[refId] => SO-00471
[externalCustomerId] => 499326000009949812
[externalLocationId] => 499326000009949814
[title] => Lamb & Flag (Taunton)
[deliveryStart] => 2025-10-15
[deliveryEnd] => 2025-10-15
[totalValue] => 321.59
[totalWeight] => 126
[syncInCreated] => 2025-10-14T08:39:03+0100
[syncInUpdated] => 2025-10-14T08:39:03+0100
[syncInStatus] => draft
[deliveryName] => Blagdon Hill
[deliveryStreet] =>
[deliveryCity] => Taunton
[deliveryCounty] =>
[deliveryPostcode] => TA3 7SL
[syncOutUpdated] => 2025-10-14T08:39:17+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Pat Carrol
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
New order
Marking order for sync with MaxOptra
Getting customer details
2025-09-30 11:15:29.000Z != 2025-10-14T08:36:39+0100
Customer changed - updating 499326000009949812
Updating order contact details
Getting products
Updating product 499326000000061574
Creating new order product 499326000049564007
Updating product 499326000000063941
Creating new order product 499326000049564009
Updating product 499326000000063959
Creating new order product 499326000049564011
Updating product 499326000000063932
Creating new order product 499326000049564013
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00471
Processing order: wp5hozw9id1dyup, ref SO-00471
Syncing SO-00471
Using default start and end times
Time window: 2025-10-15T06:00:00+01:00 - 2025-10-15T20:00:00+01:00
Found order in MaxOptra? no
Creating SO-00471
Done
Finished syncing to MaxOptra for order SO-00471
Done all.
Finished at 2025-10-14 08:39:19
Webhook - sourceUpdated script called at 2025-10-14 08:41:18
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049564001","salesorder_no":"SO-00471","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000049564001","salesorder_no":"SO-00471","status":"draft"}}
EXT ID: 499326000049564001
REF: SO-00471
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049564001 (REF SO-00471)
Local order updated = 2025-10-14 07:39:03.000Z,
source updated = 2025-10-14T08:40:52+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => info@lambandflag1705.co.uk
[contactName] => Pat Carrol
[notes] =>
[externalOrderId] => 499326000049564001
[refId] => SO-00471
[externalCustomerId] => 499326000009949812
[externalLocationId] => 499326000009949814
[title] => Lamb & Flag (Taunton)
[deliveryStart] => 2025-10-15
[deliveryEnd] => 2025-10-15
[totalValue] => 291
[totalWeight] => 126
[syncInCreated] => 2025-10-14T08:39:03+0100
[syncInUpdated] => 2025-10-14T08:40:52+0100
[syncInStatus] => draft
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000049564007
[externalProductId] => 499326000000061574
[sku] => DIAG-GUIN-50LK
[title] => Draught Guinness 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 162.5
[price] => 162.5
)
[1] => Array
(
[externalOrderProductId] => 499326000049564009
[externalProductId] => 499326000000063941
[sku] => UKAL-60/4-10LC
[title] => 60/40 Mixed Gas 10 Ltr
[notes] =>
[quantity] => 2
[weightKg] => 16
[weightTotal] => 32
[priceTotal] => 40
[price] => 20
)
[2] => Array
(
[externalOrderProductId] => 499326000049564011
[externalProductId] => 499326000000063959
[sku] => UKAL-70/3-10LC
[title] => 70/30 Mixed Gas - 10 Ltr
[notes] =>
[quantity] => 1
[weightKg] => 16
[weightTotal] => 16
[priceTotal] => 20
[price] => 20
)
[3] => Array
(
[externalOrderProductId] => 499326000049564013
[externalProductId] => 499326000000063932
[sku] => UKAL-CO2-10LC
[title] => CO2 Cylinder Gas 10ltr
[notes] =>
[quantity] => 1
[weightKg] => 16
[weightTotal] => 16
[priceTotal] => 20
[price] => 20
)
)
[deliveryName] => Blagdon Hill
[deliveryStreet] =>
[deliveryCity] => Taunton
[deliveryCounty] =>
[deliveryPostcode] => TA3 7SL
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => info@lambandflag1705.co.uk
[contactName] => Pat Carrol
[notes] =>
[externalOrderId] => 499326000049564001
[refId] => SO-00471
[externalCustomerId] => 499326000009949812
[externalLocationId] => 499326000009949814
[title] => Lamb & Flag (Taunton)
[deliveryStart] => 2025-10-15
[deliveryEnd] => 2025-10-15
[totalValue] => 291
[totalWeight] => 126
[syncInCreated] => 2025-10-14T08:39:03+0100
[syncInUpdated] => 2025-10-14T08:40:52+0100
[syncInStatus] => draft
[deliveryName] => Blagdon Hill
[deliveryStreet] =>
[deliveryCity] => Taunton
[deliveryCounty] =>
[deliveryPostcode] => TA3 7SL
[syncOutUpdated] => 2025-10-14T08:41:18+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Pat Carrol
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000009949812
Getting products
Updating product 499326000000061574
Updating order product 499326000049564007
Updated
Updating product 499326000000063941
Updating order product 499326000049564009
Updated
Updating product 499326000000063959
Updating order product 499326000049564011
Updated
Updating product 499326000000063932
Updating order product 499326000049564013
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00471
Processing order: wp5hozw9id1dyup, ref SO-00471
Syncing SO-00471
Using default start and end times
Time window: 2025-10-15T06:00:00+01:00 - 2025-10-15T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 14/10/2025 08:39 - Local updated: 2025-10-14 07:41:18.000Z - Source updated: 2025-10-14 07:40:52.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status:
Status changed - mark for sync back to source
Is allocated? no
Local updated: 2025-10-14 07:41:18.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000009949814
Array
(
[referenceNumber] => 499326000009949814
[name] => Blagdon Hill, Taunton
[address] => TA3 7SL
)
499326000009949814
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00471
Done all.
Finished at 2025-10-14 08:41:20
Webhook - sourceUpdated script called at 2025-10-15 10:32:20
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049564001","salesorder_no":"SO-00471","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000049564001","salesorder_no":"SO-00471","status":"open"}}
EXT ID: 499326000049564001
REF: SO-00471
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049564001 (REF SO-00471)
Updates pending to source for order: 499326000049564001
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-10-14 07:40:52.000Z,
source updated = 2025-10-15T10:31:56+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => info@lambandflag1705.co.uk
[contactName] => Pat Carrol
[notes] =>
[externalOrderId] => 499326000049564001
[refId] => SO-00471
[externalCustomerId] => 499326000009949812
[externalLocationId] => 499326000009949814
[title] => Lamb & Flag (Taunton)
[deliveryStart] => 2025-10-15
[deliveryEnd] => 2025-10-15
[totalValue] => 291
[totalWeight] => 126
[syncInCreated] => 2025-10-14T08:39:03+0100
[syncInUpdated] => 2025-10-15T10:31:56+0100
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000049564007
[externalProductId] => 499326000000061574
[sku] => DIAG-GUIN-50LK
[title] => Draught Guinness 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 162.5
[price] => 162.5
)
[1] => Array
(
[externalOrderProductId] => 499326000049564009
[externalProductId] => 499326000000063941
[sku] => UKAL-60/4-10LC
[title] => 60/40 Mixed Gas 10 Ltr
[notes] =>
[quantity] => 2
[weightKg] => 16
[weightTotal] => 32
[priceTotal] => 40
[price] => 20
)
[2] => Array
(
[externalOrderProductId] => 499326000049564011
[externalProductId] => 499326000000063959
[sku] => UKAL-70/3-10LC
[title] => 70/30 Mixed Gas - 10 Ltr
[notes] =>
[quantity] => 1
[weightKg] => 16
[weightTotal] => 16
[priceTotal] => 20
[price] => 20
)
[3] => Array
(
[externalOrderProductId] => 499326000049564013
[externalProductId] => 499326000000063932
[sku] => UKAL-CO2-10LC
[title] => CO2 Cylinder Gas 10ltr
[notes] =>
[quantity] => 1
[weightKg] => 16
[weightTotal] => 16
[priceTotal] => 20
[price] => 20
)
)
[deliveryName] => Blagdon Hill
[deliveryStreet] =>
[deliveryCity] => Taunton
[deliveryCounty] =>
[deliveryPostcode] => TA3 7SL
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => info@lambandflag1705.co.uk
[contactName] => Pat Carrol
[notes] =>
[externalOrderId] => 499326000049564001
[refId] => SO-00471
[externalCustomerId] => 499326000009949812
[externalLocationId] => 499326000009949814
[title] => Lamb & Flag (Taunton)
[deliveryStart] => 2025-10-15
[deliveryEnd] => 2025-10-15
[totalValue] => 291
[totalWeight] => 126
[syncInCreated] => 2025-10-14T08:39:03+0100
[syncInUpdated] => 2025-10-15T10:31:56+0100
[syncInStatus] => closed
[deliveryName] => Blagdon Hill
[deliveryStreet] =>
[deliveryCity] => Taunton
[deliveryCounty] =>
[deliveryPostcode] => TA3 7SL
[syncOutUpdated] => 2025-10-15T10:32:21+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Pat Carrol
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000009949812
Getting products
Updating product 499326000000061574
Updating order product 499326000049564007
Updated
Updating product 499326000000063941
Updating order product 499326000049564009
Updated
Updating product 499326000000063959
Updating order product 499326000049564011
Updated
Updating product 499326000000063932
Updating order product 499326000049564013
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00471
Processing order: wp5hozw9id1dyup, ref SO-00471
Syncing SO-00471
Using default start and end times
Time window: 2025-10-15T06:00:00+01:00 - 2025-10-15T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 14/10/2025 08:41 - Local updated: 2025-10-15 09:32:21.000Z - Source updated: 2025-10-15 09:31:56.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-10-15 09:32:21.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000009949814
Array
(
[referenceNumber] => 499326000009949814
[name] => Blagdon Hill, Taunton
[address] => TA3 7SL
)
499326000009949814
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00471
Done all.
Finished at 2025-10-15 10:32:23
Webhook - sourceUpdated script called at 2025-10-15 10:32:50
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049564001","salesorder_no":"SO-00471","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000049564001","salesorder_no":"SO-00471","status":"invoiced"}}
EXT ID: 499326000049564001
REF: SO-00471
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049564001 (REF SO-00471)
Local order updated = 2025-10-15 09:31:56.000Z,
source updated = 2025-10-15T10:32:21+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00471
Processing order: wp5hozw9id1dyup, ref SO-00471
Syncing SO-00471
Using default start and end times
Time window: 2025-10-15T06:00:00+01:00 - 2025-10-15T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 15/10/2025 10:32 - Local updated: 2025-10-14 07:41:00.000Z - Source updated: 2025-10-15 09:31:56.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-10-14 07:41:00.000Z
Pending updates to MaxOptra? no
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00471
Done all.
Finished at 2025-10-15 10:32:51
Webhook - sourceUpdated script called at 2025-10-15 10:36:57
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049564001","salesorder_no":"SO-00471","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000049564001","salesorder_no":"SO-00471","status":"invoiced"}}
EXT ID: 499326000049564001
REF: SO-00471
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049564001 (REF SO-00471)
Local order updated = 2025-10-15 09:31:56.000Z,
source updated = 2025-10-15T10:32:21+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00471
Processing order: wp5hozw9id1dyup, ref SO-00471
Syncing SO-00471
Using default start and end times
Time window: 2025-10-15T06:00:00+01:00 - 2025-10-15T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 15/10/2025 10:32 - Local updated: 2025-10-15 09:32:00.000Z - Source updated: 2025-10-15 09:31:56.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00471
Done all.
Finished at 2025-10-15 10:36:58
Webhook - sourceUpdated script called at 2025-10-15 10:37:15
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049564001","salesorder_no":"SO-00471","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000049564001","salesorder_no":"SO-00471","status":"invoiced"}}
EXT ID: 499326000049564001
REF: SO-00471
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049564001 (REF SO-00471)
Local order updated = 2025-10-15 09:31:56.000Z,
source updated = 2025-10-15T10:32:21+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00471
Processing order: wp5hozw9id1dyup, ref SO-00471
Syncing SO-00471
Using default start and end times
Time window: 2025-10-15T06:00:00+01:00 - 2025-10-15T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 15/10/2025 10:32 - Local updated: 2025-10-15 09:32:00.000Z - Source updated: 2025-10-15 09:31:56.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00471
Done all.
Finished at 2025-10-15 10:37:16
Webhook - sourceUpdated script called at 2025-10-15 18:04:20
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000048366404","salesorder_no":"SO-00446","status":"partially_invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000048366404","salesorder_no":"SO-00446","status":"partially_invoiced"}}
EXT ID: 499326000048366404
REF: SO-00446
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000048366404 (REF SO-00446)
Local order updated = 2025-09-23 07:52:06.000Z,
source updated = 2025-09-23T08:52:06+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00446
Processing order: q95nsbovefnbwcs, ref SO-00446
Syncing SO-00446
Using default start and end times
Delivery start = 2025-09-24 00:00:00.000Z = 2025-09-24T06:00:00+01:00
Delivery end = 2025-09-24 00:00:00.000Z = 2025-09-24T20:00:00+01:00
Delivery is in the past. Skipping creation/update in MaxOptra.
Found order in MaxOptra? yes
MO updated: 23/09/2025 08:52 - Local updated: 2025-09-23 07:51:00.000Z - Source updated: 2025-09-23 07:52:06.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00446
Done all.
Finished at 2025-10-15 18:04:22
Webhook - sourceUpdated script called at 2025-10-16 00:00:39
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049282357","salesorder_no":"SO-00470","status":"overdue"}}
JSON: {"salesorder":{"salesorder_id":"499326000049282357","salesorder_no":"SO-00470","status":"overdue"}}
EXT ID: 499326000049282357
REF: SO-00470
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049282357 (REF SO-00470)
Local order updated = 2025-10-08 16:25:43.000Z,
source updated = 2025-10-08T17:25:43+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00470
Processing order: qykkbpflsvddknd, ref SO-00470
Syncing SO-00470
Using default start and end times
Delivery start = 2025-10-08 00:00:00.000Z = 2025-10-08T06:00:00+01:00
Delivery end = 2025-10-08 00:00:00.000Z = 2025-10-08T20:00:00+01:00
Delivery is in the past. Skipping creation/update in MaxOptra.
Found order in MaxOptra? yes
MO updated: 08/10/2025 21:42 - Local updated: 2025-10-08 20:42:00.000Z - Source updated: 2025-10-08 16:25:43.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00470
Done all.
Finished at 2025-10-16 00:00:40
Webhook - sourceUpdated script called at 2025-10-16 08:43:14
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049652001","salesorder_no":"SO-00472","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000049652001","salesorder_no":"SO-00472","status":"draft"}}
EXT ID: 499326000049652001
REF: SO-00472
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049652001 (REF SO-00472)
Source order details: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => Royal Oak
[notes] => Entrance located via car park
Steps opposite bin shed
please take in to pub
do not block doors
[externalOrderId] => 499326000049652001
[refId] => SO-00472
[externalCustomerId] => 499326000048888041
[externalLocationId] => 499326000048888047
[title] => Royal Oak
[deliveryStart] => 2025-10-16
[deliveryEnd] => 2025-10-16
[totalValue] => 192
[totalWeight] => 0
[syncInCreated] => 2025-10-16T08:42:50+0100
[syncInUpdated] => 2025-10-16T08:42:50+0100
[syncInStatus] => draft
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000049652007
[externalProductId] => 499326000043516456
[sku] =>
[title] => Harding's Golden Ale 4.2%
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 78
[price] => 78
)
[1] => Array
(
[externalOrderProductId] => 499326000049652009
[externalProductId] => 499326000039456185
[sku] =>
[title] => POS Harding's Best Bitter 4.2% Pump Clip
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
[2] => Array
(
[externalOrderProductId] => 499326000049652011
[externalProductId] => 499326000021043887
[sku] =>
[title] => Collection of empties
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
[3] => Array
(
[externalOrderProductId] => 499326000049652013
[externalProductId] => 499326000009950208
[sku] =>
[title] => Hardings Best Bitter 4.2% (4.5g)
[notes] =>
[quantity] => 2
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 82
[price] => 41
)
)
[deliveryName] => Royal Oak
[deliveryStreet] => Luxborough
[deliveryCity] => Watchet
[deliveryCounty] =>
[deliveryPostcode] => TA23 0SH
)
Does this order already exist?
No
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => Royal Oak
[notes] => Entrance located via car park
Steps opposite bin shed
please take in to pub
do not block doors
[externalOrderId] => 499326000049652001
[refId] => SO-00472
[externalCustomerId] => 499326000048888041
[externalLocationId] => 499326000048888047
[title] => Royal Oak
[deliveryStart] => 2025-10-16
[deliveryEnd] => 2025-10-16
[totalValue] => 192
[totalWeight] => 0
[syncInCreated] => 2025-10-16T08:42:50+0100
[syncInUpdated] => 2025-10-16T08:42:50+0100
[syncInStatus] => draft
[deliveryName] => Royal Oak
[deliveryStreet] => Luxborough
[deliveryCity] => Watchet
[deliveryCounty] =>
[deliveryPostcode] => TA23 0SH
[syncOutUpdated] => 2025-10-16T08:43:15+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Royal Oak
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
New order
Marking order for sync with MaxOptra
Getting customer details
2025-10-01 07:21:15.000Z != 2025-10-16T08:37:18+0100
Customer changed - updating 499326000048888041
Updating order contact details
Getting products
Updating product 499326000043516456
Creating new order product 499326000049652007
Updating product 499326000039456185
Creating new order product 499326000049652009
Updating product 499326000021043887
Creating new order product 499326000049652011
Creating product 499326000009950208
Creating new order product 499326000049652013
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00472
Processing order: viklb2nbh5b61jc, ref SO-00472
Syncing SO-00472
Using default start and end times
Time window: 2025-10-16T06:00:00+01:00 - 2025-10-16T20:00:00+01:00
Found order in MaxOptra? no
Creating SO-00472
Done
Finished syncing to MaxOptra for order SO-00472
Done all.
Finished at 2025-10-16 08:43:16
Webhook - sourceUpdated script called at 2025-10-16 09:03:40
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049652001","salesorder_no":"SO-00472","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000049652001","salesorder_no":"SO-00472","status":"draft"}}
EXT ID: 499326000049652001
REF: SO-00472
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049652001 (REF SO-00472)
Local order updated = 2025-10-16 07:42:50.000Z,
source updated = 2025-10-16T09:03:20+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => Royal Oak
[notes] => Entrance located via car park
Steps opposite bin shed
please take in to pub
do not block doors
[externalOrderId] => 499326000049652001
[refId] => SO-00472
[externalCustomerId] => 499326000048888041
[externalLocationId] => 499326000048888047
[title] => Royal Oak
[deliveryStart] => 2025-10-16
[deliveryEnd] => 2025-10-16
[totalValue] => 312
[totalWeight] => 62
[syncInCreated] => 2025-10-16T08:42:50+0100
[syncInUpdated] => 2025-10-16T09:03:20+0100
[syncInStatus] => draft
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000049652007
[externalProductId] => 499326000043516456
[sku] =>
[title] => Harding's Golden Ale 4.2%
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 78
[price] => 78
)
[1] => Array
(
[externalOrderProductId] => 499326000049652009
[externalProductId] => 499326000039456185
[sku] =>
[title] => POS Harding's Best Bitter 4.2% Pump Clip
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
[2] => Array
(
[externalOrderProductId] => 499326000049652011
[externalProductId] => 499326000021043887
[sku] =>
[title] => Collection of empties
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
[3] => Array
(
[externalOrderProductId] => 499326000049652013
[externalProductId] => 499326000009950208
[sku] =>
[title] => Hardings Best Bitter 4.2% (4.5g)
[notes] =>
[quantity] => 2
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 82
[price] => 41
)
[4] => Array
(
[externalOrderProductId] => 499326000049652037
[externalProductId] => 499326000000063446
[sku] => SHPY-CLAS-50LK
[title] => Sheppy's Classic Cider 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 100
[price] => 100
)
)
[deliveryName] => Royal Oak
[deliveryStreet] => Luxborough
[deliveryCity] => Watchet
[deliveryCounty] =>
[deliveryPostcode] => TA23 0SH
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => Royal Oak
[notes] => Entrance located via car park
Steps opposite bin shed
please take in to pub
do not block doors
[externalOrderId] => 499326000049652001
[refId] => SO-00472
[externalCustomerId] => 499326000048888041
[externalLocationId] => 499326000048888047
[title] => Royal Oak
[deliveryStart] => 2025-10-16
[deliveryEnd] => 2025-10-16
[totalValue] => 312
[totalWeight] => 62
[syncInCreated] => 2025-10-16T08:42:50+0100
[syncInUpdated] => 2025-10-16T09:03:20+0100
[syncInStatus] => draft
[deliveryName] => Royal Oak
[deliveryStreet] => Luxborough
[deliveryCity] => Watchet
[deliveryCounty] =>
[deliveryPostcode] => TA23 0SH
[syncOutUpdated] => 2025-10-16T09:03:41+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Royal Oak
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
2025-10-16 07:37:18.000Z != 2025-10-16T08:50:14+0100
Customer changed - updating 499326000048888041
Updating order contact details
Getting products
Updating product 499326000043516456
Updating order product 499326000049652007
Updated
Updating product 499326000039456185
Updating order product 499326000049652009
Updated
Updating product 499326000021043887
Updating order product 499326000049652011
Updated
Updating product 499326000009950208
Updating order product 499326000049652013
Updated
Updating product 499326000000063446
Creating new order product 499326000049652037
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00472
Processing order: viklb2nbh5b61jc, ref SO-00472
Syncing SO-00472
Using default start and end times
Time window: 2025-10-16T06:00:00+01:00 - 2025-10-16T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 16/10/2025 08:43 - Local updated: 2025-10-16 08:03:41.000Z - Source updated: 2025-10-16 08:03:20.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status:
Status changed - mark for sync back to source
Is allocated? no
Local updated: 2025-10-16 08:03:41.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000048888047
Array
(
[referenceNumber] => 499326000048888047
[name] => Royal Oak, Luxborough, Watchet
[address] => TA23 0SH
)
499326000048888047
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00472
Done all.
Finished at 2025-10-16 09:03:42
Webhook - sourceUpdated script called at 2025-10-16 09:07:43
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049652001","salesorder_no":"SO-00472","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000049652001","salesorder_no":"SO-00472","status":"draft"}}
EXT ID: 499326000049652001
REF: SO-00472
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049652001 (REF SO-00472)
Updates pending to source for order: 499326000049652001
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-10-16 08:03:20.000Z,
source updated = 2025-10-16T09:07:22+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => Royal Oak
[notes] => Entrance located via car park
Steps opposite bin shed
please take in to pub
do not block doors
[externalOrderId] => 499326000049652001
[refId] => SO-00472
[externalCustomerId] => 499326000048888041
[externalLocationId] => 499326000048888047
[title] => Royal Oak
[deliveryStart] => 2025-10-16
[deliveryEnd] => 2025-10-16
[totalValue] => 312
[totalWeight] => 62
[syncInCreated] => 2025-10-16T08:42:50+0100
[syncInUpdated] => 2025-10-16T09:07:22+0100
[syncInStatus] => draft
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000049652007
[externalProductId] => 499326000043516456
[sku] =>
[title] => Harding's Golden Ale 4.2%
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 78
[price] => 78
)
[1] => Array
(
[externalOrderProductId] => 499326000049652009
[externalProductId] => 499326000039456185
[sku] =>
[title] => POS Harding's Best Bitter 4.2% Pump Clip
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
[2] => Array
(
[externalOrderProductId] => 499326000049652011
[externalProductId] => 499326000021043887
[sku] =>
[title] => Collection of empties
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
[3] => Array
(
[externalOrderProductId] => 499326000049652013
[externalProductId] => 499326000009950208
[sku] =>
[title] => Hardings Best Bitter 4.2% (4.5g)
[notes] =>
[quantity] => 2
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 82
[price] => 41
)
[4] => Array
(
[externalOrderProductId] => 499326000049652037
[externalProductId] => 499326000000063446
[sku] => SHPY-CLAS-50LK
[title] => Sheppy's Classic Cider 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 100
[price] => 100
)
)
[deliveryName] => Royal Oak
[deliveryStreet] => Luxborough
[deliveryCity] => Watchet
[deliveryCounty] =>
[deliveryPostcode] => TA23 0SH
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => Royal Oak
[notes] => Entrance located via car park
Steps opposite bin shed
please take in to pub
do not block doors
[externalOrderId] => 499326000049652001
[refId] => SO-00472
[externalCustomerId] => 499326000048888041
[externalLocationId] => 499326000048888047
[title] => Royal Oak
[deliveryStart] => 2025-10-16
[deliveryEnd] => 2025-10-16
[totalValue] => 312
[totalWeight] => 62
[syncInCreated] => 2025-10-16T08:42:50+0100
[syncInUpdated] => 2025-10-16T09:07:22+0100
[syncInStatus] => draft
[deliveryName] => Royal Oak
[deliveryStreet] => Luxborough
[deliveryCity] => Watchet
[deliveryCounty] =>
[deliveryPostcode] => TA23 0SH
[syncOutUpdated] => 2025-10-16T09:07:45+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Royal Oak
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000048888041
Getting products
Updating product 499326000043516456
Updating order product 499326000049652007
Updated
Updating product 499326000039456185
Updating order product 499326000049652009
Updated
Updating product 499326000021043887
Updating order product 499326000049652011
Updated
Updating product 499326000009950208
Updating order product 499326000049652013
Updated
Updating product 499326000000063446
Updating order product 499326000049652037
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00472
Processing order: viklb2nbh5b61jc, ref SO-00472
Syncing SO-00472
Using default start and end times
Time window: 2025-10-16T06:00:00+01:00 - 2025-10-16T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 16/10/2025 09:03 - Local updated: 2025-10-16 08:07:45.000Z - Source updated: 2025-10-16 08:07:22.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-10-16 08:07:45.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000048888047
Array
(
[referenceNumber] => 499326000048888047
[name] => Royal Oak, Luxborough, Watchet
[address] => TA23 0SH
)
499326000048888047
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00472
Done all.
Finished at 2025-10-16 09:07:46
Webhook - sourceUpdated script called at 2025-10-16 09:08:14
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049652001","salesorder_no":"SO-00472","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000049652001","salesorder_no":"SO-00472","status":"draft"}}
EXT ID: 499326000049652001
REF: SO-00472
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049652001 (REF SO-00472)
Local order updated = 2025-10-16 08:07:22.000Z,
source updated = 2025-10-16T09:07:44+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00472
Processing order: viklb2nbh5b61jc, ref SO-00472
Syncing SO-00472
Using default start and end times
Time window: 2025-10-16T06:00:00+01:00 - 2025-10-16T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 16/10/2025 09:07 - Local updated: 2025-10-16 08:03:00.000Z - Source updated: 2025-10-16 08:07:22.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-10-16 08:03:00.000Z
Pending updates to MaxOptra? no
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00472
Done all.
Finished at 2025-10-16 09:08:16
Webhook - sourceUpdated script called at 2025-10-16 11:17:08
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049652001","salesorder_no":"SO-00472","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000049652001","salesorder_no":"SO-00472","status":"invoiced"}}
EXT ID: 499326000049652001
REF: SO-00472
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049652001 (REF SO-00472)
Local order updated = 2025-10-16 08:07:22.000Z,
source updated = 2025-10-16T11:17:06+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => Royal Oak
[notes] => Entrance located via car park
Steps opposite bin shed
please take in to pub
do not block doors
[externalOrderId] => 499326000049652001
[refId] => SO-00472
[externalCustomerId] => 499326000048888041
[externalLocationId] => 499326000048888047
[title] => Royal Oak
[deliveryStart] => 2025-10-16
[deliveryEnd] => 2025-10-16
[totalValue] => 312
[totalWeight] => 62
[syncInCreated] => 2025-10-16T08:42:50+0100
[syncInUpdated] => 2025-10-16T11:17:06+0100
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000049652007
[externalProductId] => 499326000043516456
[sku] =>
[title] => Harding's Golden Ale 4.2%
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 78
[price] => 78
)
[1] => Array
(
[externalOrderProductId] => 499326000049652009
[externalProductId] => 499326000039456185
[sku] =>
[title] => POS Harding's Best Bitter 4.2% Pump Clip
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
[2] => Array
(
[externalOrderProductId] => 499326000049652011
[externalProductId] => 499326000021043887
[sku] =>
[title] => Collection of empties
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
[3] => Array
(
[externalOrderProductId] => 499326000049652013
[externalProductId] => 499326000009950208
[sku] =>
[title] => Hardings Best Bitter 4.2% (4.5g)
[notes] =>
[quantity] => 2
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 82
[price] => 41
)
[4] => Array
(
[externalOrderProductId] => 499326000049652037
[externalProductId] => 499326000000063446
[sku] => SHPY-CLAS-50LK
[title] => Sheppy's Classic Cider 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 100
[price] => 100
)
)
[deliveryName] => Royal Oak
[deliveryStreet] => Luxborough
[deliveryCity] => Watchet
[deliveryCounty] =>
[deliveryPostcode] => TA23 0SH
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => Royal Oak
[notes] => Entrance located via car park
Steps opposite bin shed
please take in to pub
do not block doors
[externalOrderId] => 499326000049652001
[refId] => SO-00472
[externalCustomerId] => 499326000048888041
[externalLocationId] => 499326000048888047
[title] => Royal Oak
[deliveryStart] => 2025-10-16
[deliveryEnd] => 2025-10-16
[totalValue] => 312
[totalWeight] => 62
[syncInCreated] => 2025-10-16T08:42:50+0100
[syncInUpdated] => 2025-10-16T11:17:06+0100
[syncInStatus] => closed
[deliveryName] => Royal Oak
[deliveryStreet] => Luxborough
[deliveryCity] => Watchet
[deliveryCounty] =>
[deliveryPostcode] => TA23 0SH
[syncOutUpdated] => 2025-10-16T11:17:09+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Royal Oak
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000048888041
Getting products
Updating product 499326000043516456
Updating order product 499326000049652007
Updated
Updating product 499326000039456185
Updating order product 499326000049652009
Updated
Updating product 499326000021043887
Updating order product 499326000049652011
Updated
Updating product 499326000009950208
Updating order product 499326000049652013
Updated
Updating product 499326000000063446
Updating order product 499326000049652037
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00472
Processing order: viklb2nbh5b61jc, ref SO-00472
Syncing SO-00472
Using default start and end times
Time window: 2025-10-16T06:00:00+01:00 - 2025-10-16T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 16/10/2025 09:07 - Local updated: 2025-10-16 10:17:09.000Z - Source updated: 2025-10-16 10:17:06.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-10-16 10:17:09.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000048888047
Array
(
[referenceNumber] => 499326000048888047
[name] => Royal Oak, Luxborough, Watchet
[address] => TA23 0SH
)
499326000048888047
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00472
Done all.
Finished at 2025-10-16 11:17:11
Webhook - sourceUpdated script called at 2025-10-16 11:17:39
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049652001","salesorder_no":"SO-00472","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000049652001","salesorder_no":"SO-00472","status":"invoiced"}}
EXT ID: 499326000049652001
REF: SO-00472
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049652001 (REF SO-00472)
Local order updated = 2025-10-16 10:17:06.000Z,
source updated = 2025-10-16T11:17:06+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00472
Processing order: viklb2nbh5b61jc, ref SO-00472
Syncing SO-00472
Using default start and end times
Time window: 2025-10-16T06:00:00+01:00 - 2025-10-16T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 16/10/2025 11:17 - Local updated: 2025-10-16 08:07:00.000Z - Source updated: 2025-10-16 10:17:06.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-10-16 08:07:00.000Z
Pending updates to MaxOptra? no
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00472
Done all.
Finished at 2025-10-16 11:17:41
Webhook - sourceUpdated script called at 2025-10-16 17:23:35
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049652001","salesorder_no":"SO-00472","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000049652001","salesorder_no":"SO-00472","status":"invoiced"}}
EXT ID: 499326000049652001
REF: SO-00472
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049652001 (REF SO-00472)
Local order updated = 2025-10-16 10:17:06.000Z,
source updated = 2025-10-16T11:17:06+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00472
Processing order: viklb2nbh5b61jc, ref SO-00472
Syncing SO-00472
Using default start and end times
Time window: 2025-10-16T06:00:00+01:00 - 2025-10-16T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 16/10/2025 11:17 - Local updated: 2025-10-16 10:17:00.000Z - Source updated: 2025-10-16 10:17:06.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00472
Done all.
Finished at 2025-10-16 17:23:37
Webhook - sourceDeleted script called at 2025-10-18 19:53:09
Source: Zoho
Data: {"salesorder":{"salesorder_no":"SO-00247"}}
JSON: {"salesorder":{"salesorder_no":"SO-00247"}}
REF: SO-00247
200 response code sent
Deleting order: SO-00247
Deleting from MaxOptra
Deleted order SO-00247. Deleting from local database.
Finished at 2025-10-18 19:53:10
Webhook - sourceUpdated script called at 2025-10-20 09:07:57
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049804060","salesorder_no":"SO-00473","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000049804060","salesorder_no":"SO-00473","status":"draft"}}
EXT ID: 499326000049804060
REF: SO-00473
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049804060 (REF SO-00473)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => enquiries@ritzsocialclub.co.uk
[contactName] => Sean Lithgrow
[notes] =>
[externalOrderId] => 499326000049804060
[refId] => SO-00473
[externalCustomerId] => 499326000000422615
[externalLocationId] => 499326000000422618
[title] => Ritz Social Club (Burnham)
[deliveryStart] => 2025-10-24
[deliveryEnd] => 2025-10-24
[totalValue] => 150
[totalWeight] => 62
[syncInCreated] => 2025-10-20T09:07:34+0100
[syncInUpdated] => 2025-10-20T09:07:34+0100
[syncInStatus] => draft
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000049804066
[externalProductId] => 499326000000062168
[sku] => ABK-PILS-50LK
[title] => ABK Pilsner - 50ltr Steel
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 125
[price] => 125
)
)
[deliveryName] => Ritz Social Club (Burnham)
[deliveryStreet] => 24 Victoria St
[deliveryCity] => Somerset
[deliveryCounty] =>
[deliveryPostcode] => TA8 1AN
)
Does this order already exist?
No
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => enquiries@ritzsocialclub.co.uk
[contactName] => Sean Lithgrow
[notes] =>
[externalOrderId] => 499326000049804060
[refId] => SO-00473
[externalCustomerId] => 499326000000422615
[externalLocationId] => 499326000000422618
[title] => Ritz Social Club (Burnham)
[deliveryStart] => 2025-10-24
[deliveryEnd] => 2025-10-24
[totalValue] => 150
[totalWeight] => 62
[syncInCreated] => 2025-10-20T09:07:34+0100
[syncInUpdated] => 2025-10-20T09:07:34+0100
[syncInStatus] => draft
[deliveryName] => Ritz Social Club (Burnham)
[deliveryStreet] => 24 Victoria St
[deliveryCity] => Somerset
[deliveryCounty] =>
[deliveryPostcode] => TA8 1AN
[syncOutUpdated] => 2025-10-20T09:07:57+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Sean Lithgrow
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
New order
Marking order for sync with MaxOptra
Getting customer details
2025-09-29 09:08:20.000Z != 2025-10-20T09:07:11+0100
Customer changed - updating 499326000000422615
Updating order contact details
Getting products
Updating product 499326000000062168
Creating new order product 499326000049804066
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00473
Processing order: ji88k5kxj5gh4th, ref SO-00473
Syncing SO-00473
Using default start and end times
Time window: 2025-10-24T06:00:00+01:00 - 2025-10-24T20:00:00+01:00
Found order in MaxOptra? no
Creating SO-00473
Done
Finished syncing to MaxOptra for order SO-00473
Done all.
Finished at 2025-10-20 09:07:58
Webhook - sourceUpdated script called at 2025-10-20 09:15:11
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049837813","salesorder_no":"SO-00474","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000049837813","salesorder_no":"SO-00474","status":"draft"}}
EXT ID: 499326000049837813
REF: SO-00474
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049837813 (REF SO-00474)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[contactName] => Wayne Hadley
[notes] =>
[externalOrderId] => 499326000049837813
[refId] => SO-00474
[externalCustomerId] => 499326000046966136
[externalLocationId] => 499326000046966140
[title] => Concierge Events
[deliveryStart] => 2025-10-24
[deliveryEnd] => 2025-10-24
[totalValue] => 264
[totalWeight] => 124
[syncInCreated] => 2025-10-20T09:15:08+0100
[syncInUpdated] => 2025-10-20T09:15:08+0100
[syncInStatus] => draft
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000049837819
[externalProductId] => 499326000000061367
[sku] => BBG-SNML-50LK
[title] => San Miguel 11G
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 130
[price] => 130
)
[1] => Array
(
[externalOrderProductId] => 499326000049837821
[externalProductId] => 499326000000063923
[sku] => TTCG-GOLD-50LK
[title] => Thatcher's Gold Cider 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 90
[price] => 90
)
)
[deliveryName] => Concierge Events
[deliveryStreet] => Worle Football Club
[deliveryCity] => Worle
[deliveryCounty] =>
[deliveryPostcode] => BS22 6AH
)
Does this order already exist?
No
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[contactName] => Wayne Hadley
[notes] =>
[externalOrderId] => 499326000049837813
[refId] => SO-00474
[externalCustomerId] => 499326000046966136
[externalLocationId] => 499326000046966140
[title] => Concierge Events
[deliveryStart] => 2025-10-24
[deliveryEnd] => 2025-10-24
[totalValue] => 264
[totalWeight] => 124
[syncInCreated] => 2025-10-20T09:15:08+0100
[syncInUpdated] => 2025-10-20T09:15:08+0100
[syncInStatus] => draft
[deliveryName] => Concierge Events
[deliveryStreet] => Worle Football Club
[deliveryCity] => Worle
[deliveryCounty] =>
[deliveryPostcode] => BS22 6AH
[syncOutUpdated] => 2025-10-20T09:15:11+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Wayne Hadley
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
New order
Marking order for sync with MaxOptra
Getting customer details
2025-10-08 07:27:58.000Z != 2025-10-20T09:14:41+0100
Customer changed - updating 499326000046966136
Updating order contact details
Getting products
Updating product 499326000000061367
Creating new order product 499326000049837819
Updating product 499326000000063923
Creating new order product 499326000049837821
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00474
Processing order: 3iflgw5i98o86dw, ref SO-00474
Syncing SO-00474
Using default start and end times
Time window: 2025-10-24T06:00:00+01:00 - 2025-10-24T20:00:00+01:00
Found order in MaxOptra? no
Creating SO-00474
Done
Finished syncing to MaxOptra for order SO-00474
Done all.
Finished at 2025-10-20 09:15:12
Webhook - sourceUpdated script called at 2025-10-21 09:48:32
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049865463","salesorder_no":"SO-00475","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000049865463","salesorder_no":"SO-00475","status":"draft"}}
EXT ID: 499326000049865463
REF: SO-00475
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049865463 (REF SO-00475)
Source order details: Array
(
[contactPhone] => 07572961803
[contactEmail] =>
[contactName] => Dean .
[notes] =>
[externalOrderId] => 499326000049865463
[refId] => SO-00475
[externalCustomerId] => 499326000045513029
[externalLocationId] => 499326000045513031
[title] => Pebbles Tavern
[deliveryStart] => 2025-10-27
[deliveryEnd] => 2025-10-27
[totalValue] => 119.99
[totalWeight] => 0
[syncInCreated] => 2025-10-21T09:48:26+0100
[syncInUpdated] => 2025-10-21T09:48:26+0100
[syncInStatus] => draft
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000049865469
[externalProductId] => 499326000046845341
[sku] =>
[title] => Oakham Ales Citra 4.2%
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 99.99
[price] => 99.99
)
[1] => Array
(
[externalOrderProductId] => HEADER-499326000049865469
[externalProductId] => 499326000049865461
[sku] =>
[title] => Oakham citra pump clip
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
)
[deliveryName] => Pebbles Tavern
[deliveryStreet] => 24 Market St
[deliveryCity] => Watchet
[deliveryCounty] =>
[deliveryPostcode] => TA23 0AN
)
Does this order already exist?
No
Order data prepared for sync: Array
(
[contactPhone] => 07572961803
[contactEmail] =>
[contactName] => Dean .
[notes] =>
[externalOrderId] => 499326000049865463
[refId] => SO-00475
[externalCustomerId] => 499326000045513029
[externalLocationId] => 499326000045513031
[title] => Pebbles Tavern
[deliveryStart] => 2025-10-27
[deliveryEnd] => 2025-10-27
[totalValue] => 119.99
[totalWeight] => 0
[syncInCreated] => 2025-10-21T09:48:26+0100
[syncInUpdated] => 2025-10-21T09:48:26+0100
[syncInStatus] => draft
[deliveryName] => Pebbles Tavern
[deliveryStreet] => 24 Market St
[deliveryCity] => Watchet
[deliveryCounty] =>
[deliveryPostcode] => TA23 0AN
[syncOutUpdated] => 2025-10-21T09:48:33+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Dean .
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
New order
Marking order for sync with MaxOptra
Getting customer details
2025-08-10 15:45:12.000Z != 2025-10-21T09:46:51+0100
Customer changed - updating 499326000045513029
Updating order contact details
Getting products
Updating product 499326000046845341
Creating new order product 499326000049865469
Creating product 499326000049865461
Creating new order product HEADER-499326000049865469
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00475
Processing order: vu21q3gbcjjulxn, ref SO-00475
Syncing SO-00475
Using default start and end times
Time window: 2025-10-27T06:00:00+00:00 - 2025-10-27T20:00:00+00:00
Found order in MaxOptra? no
Creating SO-00475
Done
Finished syncing to MaxOptra for order SO-00475
Done all.
Finished at 2025-10-21 09:48:34
Webhook - sourceUpdated script called at 2025-10-21 10:35:43
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049800233","salesorder_no":"SO-00476","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000049800233","salesorder_no":"SO-00476","status":"draft"}}
EXT ID: 499326000049800233
REF: SO-00476
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049800233 (REF SO-00476)
Source order details: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => Ring Of Bells (Taunton)
[notes] =>
[externalOrderId] => 499326000049800233
[refId] => SO-00476
[externalCustomerId] => 499326000046202946
[externalLocationId] => 499326000046202948
[title] => Ring Of Bells (Taunton)
[deliveryStart] => 2025-10-22
[deliveryEnd] => 2025-10-22
[totalValue] => 455.95
[totalWeight] => 0
[syncInCreated] => 2025-10-21T10:35:37+0100
[syncInUpdated] => 2025-10-21T10:35:37+0100
[syncInStatus] => draft
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000049800239
[externalProductId] => 499326000046845341
[sku] =>
[title] => Oakham Ales Citra 4.2%
[notes] =>
[quantity] => 4
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 379.96
[price] => 94.99
)
[1] => Array
(
[externalOrderProductId] => HEADER-499326000049800239
[externalProductId] => 499326000049799287
[sku] =>
[title] => MUST HAVE 4 PUMP CLIPS
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
)
[deliveryName] => Ring Of Bells (Taunton)
[deliveryStreet] => St James Street
[deliveryCity] => Taunton
[deliveryCounty] =>
[deliveryPostcode] => TA1 1JS
)
Does this order already exist?
No
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => Ring Of Bells (Taunton)
[notes] =>
[externalOrderId] => 499326000049800233
[refId] => SO-00476
[externalCustomerId] => 499326000046202946
[externalLocationId] => 499326000046202948
[title] => Ring Of Bells (Taunton)
[deliveryStart] => 2025-10-22
[deliveryEnd] => 2025-10-22
[totalValue] => 455.95
[totalWeight] => 0
[syncInCreated] => 2025-10-21T10:35:37+0100
[syncInUpdated] => 2025-10-21T10:35:37+0100
[syncInStatus] => draft
[deliveryName] => Ring Of Bells (Taunton)
[deliveryStreet] => St James Street
[deliveryCity] => Taunton
[deliveryCounty] =>
[deliveryPostcode] => TA1 1JS
[syncOutUpdated] => 2025-10-21T10:35:44+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Ring Of Bells (Taunton)
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
New order
Marking order for sync with MaxOptra
Getting customer details
New customer 499326000046202946
Updating order contact details
Getting products
Updating product 499326000046845341
Creating new order product 499326000049800239
Creating product 499326000049799287
Creating new order product HEADER-499326000049800239
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00476
Processing order: 3o7k4rcfz2tw8qu, ref SO-00476
Syncing SO-00476
Using default start and end times
Time window: 2025-10-22T06:00:00+01:00 - 2025-10-22T20:00:00+01:00
Found order in MaxOptra? no
Creating SO-00476
Done
Finished syncing to MaxOptra for order SO-00476
Done all.
Finished at 2025-10-21 10:35:45
Webhook - sourceUpdated script called at 2025-10-21 10:36:44
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049799289","salesorder_no":"SO-00477","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000049799289","salesorder_no":"SO-00477","status":"draft"}}
EXT ID: 499326000049799289
REF: SO-00477
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049799289 (REF SO-00477)
Source order details: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => St Andrews Mens Club
[notes] =>
[externalOrderId] => 499326000049799289
[refId] => SO-00477
[externalCustomerId] => 499326000046676086
[externalLocationId] => 499326000046676092
[title] => St Andrews Mens Club
[deliveryStart] => 2025-10-22
[deliveryEnd] => 2025-10-22
[totalValue] => 187.2
[totalWeight] => 0
[syncInCreated] => 2025-10-21T10:36:27+0100
[syncInUpdated] => 2025-10-21T10:36:27+0100
[syncInStatus] => draft
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000049799295
[externalProductId] => 499326000043516456
[sku] =>
[title] => Harding's Golden Ale 4.2%
[notes] =>
[quantity] => 2
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 156
[price] => 78
)
[1] => Array
(
[externalOrderProductId] => 499326000049799297
[externalProductId] => 499326000021043887
[sku] =>
[title] => Collection of empties
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
)
[deliveryName] => St Andrews Mens Club
[deliveryStreet] => 6 Kingston Road
[deliveryCity] => Taunton
[deliveryCounty] =>
[deliveryPostcode] => TA2 7SB
)
Does this order already exist?
No
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => St Andrews Mens Club
[notes] =>
[externalOrderId] => 499326000049799289
[refId] => SO-00477
[externalCustomerId] => 499326000046676086
[externalLocationId] => 499326000046676092
[title] => St Andrews Mens Club
[deliveryStart] => 2025-10-22
[deliveryEnd] => 2025-10-22
[totalValue] => 187.2
[totalWeight] => 0
[syncInCreated] => 2025-10-21T10:36:27+0100
[syncInUpdated] => 2025-10-21T10:36:27+0100
[syncInStatus] => draft
[deliveryName] => St Andrews Mens Club
[deliveryStreet] => 6 Kingston Road
[deliveryCity] => Taunton
[deliveryCounty] =>
[deliveryPostcode] => TA2 7SB
[syncOutUpdated] => 2025-10-21T10:36:45+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => St Andrews Mens Club
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
New order
Marking order for sync with MaxOptra
Getting customer details
New customer 499326000046676086
Updating order contact details
Getting products
Updating product 499326000043516456
Creating new order product 499326000049799295
Updating product 499326000021043887
Creating new order product 499326000049799297
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00477
Processing order: 6edgvct8sdcgc33, ref SO-00477
Syncing SO-00477
Using default start and end times
Time window: 2025-10-22T06:00:00+01:00 - 2025-10-22T20:00:00+01:00
Found order in MaxOptra? no
Creating SO-00477
Done
Finished syncing to MaxOptra for order SO-00477
Done all.
Finished at 2025-10-21 10:36:46
Webhook - sourceUpdated script called at 2025-10-21 13:24:23
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049804060","salesorder_no":"SO-00473","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000049804060","salesorder_no":"SO-00473","status":"open"}}
EXT ID: 499326000049804060
REF: SO-00473
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049804060 (REF SO-00473)
Local order updated = 2025-10-20 08:07:34.000Z,
source updated = 2025-10-21T13:24:13+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => enquiries@ritzsocialclub.co.uk
[contactName] => Sean Lithgrow
[notes] =>
[externalOrderId] => 499326000049804060
[refId] => SO-00473
[externalCustomerId] => 499326000000422615
[externalLocationId] => 499326000000422618
[title] => Ritz Social Club (Burnham)
[deliveryStart] => 2025-10-24
[deliveryEnd] => 2025-10-24
[totalValue] => 150
[totalWeight] => 62
[syncInCreated] => 2025-10-20T09:07:34+0100
[syncInUpdated] => 2025-10-21T13:24:13+0100
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000049804066
[externalProductId] => 499326000000062168
[sku] => ABK-PILS-50LK
[title] => ABK Pilsner - 50ltr Steel
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 125
[price] => 125
)
)
[deliveryName] => Ritz Social Club (Burnham)
[deliveryStreet] => 24 Victoria St
[deliveryCity] => Somerset
[deliveryCounty] =>
[deliveryPostcode] => TA8 1AN
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => enquiries@ritzsocialclub.co.uk
[contactName] => Sean Lithgrow
[notes] =>
[externalOrderId] => 499326000049804060
[refId] => SO-00473
[externalCustomerId] => 499326000000422615
[externalLocationId] => 499326000000422618
[title] => Ritz Social Club (Burnham)
[deliveryStart] => 2025-10-24
[deliveryEnd] => 2025-10-24
[totalValue] => 150
[totalWeight] => 62
[syncInCreated] => 2025-10-20T09:07:34+0100
[syncInUpdated] => 2025-10-21T13:24:13+0100
[syncInStatus] => closed
[deliveryName] => Ritz Social Club (Burnham)
[deliveryStreet] => 24 Victoria St
[deliveryCity] => Somerset
[deliveryCounty] =>
[deliveryPostcode] => TA8 1AN
[syncOutUpdated] => 2025-10-21T13:24:23+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Sean Lithgrow
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000000422615
Getting products
Updating product 499326000000062168
Updating order product 499326000049804066
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00473
Processing order: ji88k5kxj5gh4th, ref SO-00473
Syncing SO-00473
Using default start and end times
Time window: 2025-10-24T06:00:00+01:00 - 2025-10-24T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 20/10/2025 09:07 - Local updated: 2025-10-21 12:24:23.000Z - Source updated: 2025-10-21 12:24:13.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status:
Status changed - mark for sync back to source
Is allocated? no
Local updated: 2025-10-21 12:24:23.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000000422618
Array
(
[referenceNumber] => 499326000000422618
[name] => Ritz Social Club (Burnham), 24 Victoria St, Somerset
[address] => TA8 1AN
)
499326000000422618
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00473
Done all.
Finished at 2025-10-21 13:24:25
Webhook - sourceUpdated script called at 2025-10-21 13:24:54
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049804060","salesorder_no":"SO-00473","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000049804060","salesorder_no":"SO-00473","status":"invoiced"}}
EXT ID: 499326000049804060
REF: SO-00473
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049804060 (REF SO-00473)
Updates pending to source for order: 499326000049804060
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-10-21 12:24:13.000Z,
source updated = 2025-10-21T13:24:13+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00473
Processing order: ji88k5kxj5gh4th, ref SO-00473
Syncing SO-00473
Using default start and end times
Time window: 2025-10-24T06:00:00+01:00 - 2025-10-24T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 21/10/2025 13:24 - Local updated: 2025-10-20 08:07:00.000Z - Source updated: 2025-10-21 12:24:13.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-10-20 08:07:00.000Z
Pending updates to MaxOptra? no
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00473
Done all.
Finished at 2025-10-21 13:24:56
Webhook - sourceUpdated script called at 2025-10-21 13:25:25
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049804060","salesorder_no":"SO-00473","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000049804060","salesorder_no":"SO-00473","status":"invoiced"}}
EXT ID: 499326000049804060
REF: SO-00473
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049804060 (REF SO-00473)
Local order updated = 2025-10-21 12:24:13.000Z,
source updated = 2025-10-21T13:24:55+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00473
Processing order: ji88k5kxj5gh4th, ref SO-00473
Syncing SO-00473
Using default start and end times
Time window: 2025-10-24T06:00:00+01:00 - 2025-10-24T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 21/10/2025 13:24 - Local updated: 2025-10-21 12:24:00.000Z - Source updated: 2025-10-21 12:24:13.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00473
Done all.
Finished at 2025-10-21 13:25:26
Webhook - sourceUpdated script called at 2025-10-21 13:29:06
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049804060","salesorder_no":"SO-00473","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000049804060","salesorder_no":"SO-00473","status":"invoiced"}}
EXT ID: 499326000049804060
REF: SO-00473
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049804060 (REF SO-00473)
Local order updated = 2025-10-21 12:24:13.000Z,
source updated = 2025-10-21T13:24:55+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00473
Processing order: ji88k5kxj5gh4th, ref SO-00473
Syncing SO-00473
Using default start and end times
Time window: 2025-10-24T06:00:00+01:00 - 2025-10-24T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 21/10/2025 13:24 - Local updated: 2025-10-21 12:24:00.000Z - Source updated: 2025-10-21 12:24:13.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00473
Done all.
Finished at 2025-10-21 13:29:07
Webhook - sourceUpdated script called at 2025-10-21 13:29:07
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049800233","salesorder_no":"SO-00476","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000049800233","salesorder_no":"SO-00476","status":"open"}}
EXT ID: 499326000049800233
REF: SO-00476
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049800233 (REF SO-00476)
Local order updated = 2025-10-21 09:35:37.000Z,
source updated = 2025-10-21T13:29:06+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => Ring Of Bells (Taunton)
[notes] =>
[externalOrderId] => 499326000049800233
[refId] => SO-00476
[externalCustomerId] => 499326000046202946
[externalLocationId] => 499326000046202948
[title] => Ring Of Bells (Taunton)
[deliveryStart] => 2025-10-22
[deliveryEnd] => 2025-10-22
[totalValue] => 455.95
[totalWeight] => 0
[syncInCreated] => 2025-10-21T10:35:37+0100
[syncInUpdated] => 2025-10-21T13:29:06+0100
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000049800239
[externalProductId] => 499326000046845341
[sku] =>
[title] => Oakham Ales Citra 4.2%
[notes] =>
[quantity] => 4
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 379.96
[price] => 94.99
)
[1] => Array
(
[externalOrderProductId] => HEADER-499326000049800239
[externalProductId] => 499326000049799287
[sku] =>
[title] => MUST HAVE 4 PUMP CLIPS
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
)
[deliveryName] => Ring Of Bells (Taunton)
[deliveryStreet] => St James Street
[deliveryCity] => Taunton
[deliveryCounty] =>
[deliveryPostcode] => TA1 1JS
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => Ring Of Bells (Taunton)
[notes] =>
[externalOrderId] => 499326000049800233
[refId] => SO-00476
[externalCustomerId] => 499326000046202946
[externalLocationId] => 499326000046202948
[title] => Ring Of Bells (Taunton)
[deliveryStart] => 2025-10-22
[deliveryEnd] => 2025-10-22
[totalValue] => 455.95
[totalWeight] => 0
[syncInCreated] => 2025-10-21T10:35:37+0100
[syncInUpdated] => 2025-10-21T13:29:06+0100
[syncInStatus] => closed
[deliveryName] => Ring Of Bells (Taunton)
[deliveryStreet] => St James Street
[deliveryCity] => Taunton
[deliveryCounty] =>
[deliveryPostcode] => TA1 1JS
[syncOutUpdated] => 2025-10-21T13:29:08+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Ring Of Bells (Taunton)
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000046202946
Getting products
Updating product 499326000046845341
Updating order product 499326000049800239
Updated
Updating product 499326000049799287
Updating order product HEADER-499326000049800239
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00476
Processing order: 3o7k4rcfz2tw8qu, ref SO-00476
Syncing SO-00476
Using default start and end times
Time window: 2025-10-22T06:00:00+01:00 - 2025-10-22T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 21/10/2025 10:35 - Local updated: 2025-10-21 12:29:08.000Z - Source updated: 2025-10-21 12:29:06.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status:
Status changed - mark for sync back to source
Is allocated? no
Local updated: 2025-10-21 12:29:08.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000046202948
Array
(
[referenceNumber] => 499326000046202948
[name] => Ring Of Bells (Taunton), St James Street, Taunton
[address] => TA1 1JS
)
499326000046202948
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00476
Done all.
Finished at 2025-10-21 13:29:09
Webhook - sourceUpdated script called at 2025-10-21 13:29:14
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049804060","salesorder_no":"SO-00473","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000049804060","salesorder_no":"SO-00473","status":"invoiced"}}
EXT ID: 499326000049804060
REF: SO-00473
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049804060 (REF SO-00473)
Local order updated = 2025-10-21 12:24:13.000Z,
source updated = 2025-10-21T13:24:55+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00473
Processing order: ji88k5kxj5gh4th, ref SO-00473
Syncing SO-00473
Using default start and end times
Time window: 2025-10-24T06:00:00+01:00 - 2025-10-24T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 21/10/2025 13:24 - Local updated: 2025-10-21 12:24:00.000Z - Source updated: 2025-10-21 12:24:13.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00473
Done all.
Finished at 2025-10-21 13:29:15
Webhook - sourceUpdated script called at 2025-10-21 13:29:37
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049800233","salesorder_no":"SO-00476","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000049800233","salesorder_no":"SO-00476","status":"invoiced"}}
EXT ID: 499326000049800233
REF: SO-00476
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049800233 (REF SO-00476)
Updates pending to source for order: 499326000049800233
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-10-21 12:29:06.000Z,
source updated = 2025-10-21T13:29:12+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00476
Processing order: 3o7k4rcfz2tw8qu, ref SO-00476
Syncing SO-00476
Using default start and end times
Time window: 2025-10-22T06:00:00+01:00 - 2025-10-22T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 21/10/2025 13:29 - Local updated: 2025-10-21 09:35:00.000Z - Source updated: 2025-10-21 12:29:06.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-10-21 09:35:00.000Z
Pending updates to MaxOptra? no
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00476
Done all.
Finished at 2025-10-21 13:29:39
Webhook - sourceUpdated script called at 2025-10-21 13:30:08
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049800233","salesorder_no":"SO-00476","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000049800233","salesorder_no":"SO-00476","status":"invoiced"}}
EXT ID: 499326000049800233
REF: SO-00476
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049800233 (REF SO-00476)
Local order updated = 2025-10-21 12:29:06.000Z,
source updated = 2025-10-21T13:29:38+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00476
Processing order: 3o7k4rcfz2tw8qu, ref SO-00476
Syncing SO-00476
Using default start and end times
Time window: 2025-10-22T06:00:00+01:00 - 2025-10-22T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 21/10/2025 13:29 - Local updated: 2025-10-21 12:29:00.000Z - Source updated: 2025-10-21 12:29:06.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00476
Done all.
Finished at 2025-10-21 13:30:09
Webhook - sourceUpdated script called at 2025-10-21 13:30:38
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049799289","salesorder_no":"SO-00477","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000049799289","salesorder_no":"SO-00477","status":"invoiced"}}
EXT ID: 499326000049799289
REF: SO-00477
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049799289 (REF SO-00477)
Local order updated = 2025-10-21 09:36:27.000Z,
source updated = 2025-10-21T13:29:59+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => St Andrews Mens Club
[notes] =>
[externalOrderId] => 499326000049799289
[refId] => SO-00477
[externalCustomerId] => 499326000046676086
[externalLocationId] => 499326000046676092
[title] => St Andrews Mens Club
[deliveryStart] => 2025-10-22
[deliveryEnd] => 2025-10-22
[totalValue] => 187.2
[totalWeight] => 0
[syncInCreated] => 2025-10-21T10:36:27+0100
[syncInUpdated] => 2025-10-21T13:29:59+0100
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000049799295
[externalProductId] => 499326000043516456
[sku] =>
[title] => Harding's Golden Ale 4.2%
[notes] =>
[quantity] => 2
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 156
[price] => 78
)
[1] => Array
(
[externalOrderProductId] => 499326000049799297
[externalProductId] => 499326000021043887
[sku] =>
[title] => Collection of empties
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
)
[deliveryName] => St Andrews Mens Club
[deliveryStreet] => 6 Kingston Road
[deliveryCity] => Taunton
[deliveryCounty] =>
[deliveryPostcode] => TA2 7SB
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => St Andrews Mens Club
[notes] =>
[externalOrderId] => 499326000049799289
[refId] => SO-00477
[externalCustomerId] => 499326000046676086
[externalLocationId] => 499326000046676092
[title] => St Andrews Mens Club
[deliveryStart] => 2025-10-22
[deliveryEnd] => 2025-10-22
[totalValue] => 187.2
[totalWeight] => 0
[syncInCreated] => 2025-10-21T10:36:27+0100
[syncInUpdated] => 2025-10-21T13:29:59+0100
[syncInStatus] => closed
[deliveryName] => St Andrews Mens Club
[deliveryStreet] => 6 Kingston Road
[deliveryCity] => Taunton
[deliveryCounty] =>
[deliveryPostcode] => TA2 7SB
[syncOutUpdated] => 2025-10-21T13:30:39+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => St Andrews Mens Club
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000046676086
Getting products
Updating product 499326000043516456
Updating order product 499326000049799295
Updated
Updating product 499326000021043887
Updating order product 499326000049799297
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00477
Processing order: 6edgvct8sdcgc33, ref SO-00477
Syncing SO-00477
Using default start and end times
Time window: 2025-10-22T06:00:00+01:00 - 2025-10-22T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 21/10/2025 10:36 - Local updated: 2025-10-21 12:30:39.000Z - Source updated: 2025-10-21 12:29:59.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status:
Status changed - mark for sync back to source
Is allocated? no
Local updated: 2025-10-21 12:30:39.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000046676092
Array
(
[referenceNumber] => 499326000046676092
[name] => St Andrews Mens Club, 6 Kingston Road, Taunton
[address] => TA2 7SB
)
499326000046676092
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00477
Done all.
Finished at 2025-10-21 13:30:41
Webhook - sourceUpdated script called at 2025-10-21 13:34:07
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049800233","salesorder_no":"SO-00476","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000049800233","salesorder_no":"SO-00476","status":"invoiced"}}
EXT ID: 499326000049800233
REF: SO-00476
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049800233 (REF SO-00476)
Local order updated = 2025-10-21 12:29:06.000Z,
source updated = 2025-10-21T13:29:38+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00476
Processing order: 3o7k4rcfz2tw8qu, ref SO-00476
Syncing SO-00476
Using default start and end times
Time window: 2025-10-22T06:00:00+01:00 - 2025-10-22T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 21/10/2025 13:29 - Local updated: 2025-10-21 12:29:00.000Z - Source updated: 2025-10-21 12:29:06.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00476
Done all.
Finished at 2025-10-21 13:34:08
Webhook - sourceUpdated script called at 2025-10-21 13:34:27
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049800233","salesorder_no":"SO-00476","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000049800233","salesorder_no":"SO-00476","status":"invoiced"}}
EXT ID: 499326000049800233
REF: SO-00476
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049800233 (REF SO-00476)
Local order updated = 2025-10-21 12:29:06.000Z,
source updated = 2025-10-21T13:29:38+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00476
Processing order: 3o7k4rcfz2tw8qu, ref SO-00476
Syncing SO-00476
Using default start and end times
Time window: 2025-10-22T06:00:00+01:00 - 2025-10-22T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 21/10/2025 13:29 - Local updated: 2025-10-21 12:29:00.000Z - Source updated: 2025-10-21 12:29:06.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00476
Done all.
Finished at 2025-10-21 13:34:29
Webhook - sourceUpdated script called at 2025-10-21 13:34:33
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049800233","salesorder_no":"SO-00476","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000049800233","salesorder_no":"SO-00476","status":"invoiced"}}
EXT ID: 499326000049800233
REF: SO-00476
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049800233 (REF SO-00476)
Local order updated = 2025-10-21 12:29:06.000Z,
source updated = 2025-10-21T13:29:38+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00476
Processing order: 3o7k4rcfz2tw8qu, ref SO-00476
Syncing SO-00476
Using default start and end times
Time window: 2025-10-22T06:00:00+01:00 - 2025-10-22T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 21/10/2025 13:29 - Local updated: 2025-10-21 12:29:00.000Z - Source updated: 2025-10-21 12:29:06.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00476
Done all.
Finished at 2025-10-21 13:34:34
Webhook - sourceUpdated script called at 2025-10-21 13:34:48
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049799289","salesorder_no":"SO-00477","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000049799289","salesorder_no":"SO-00477","status":"open"}}
EXT ID: 499326000049799289
REF: SO-00477
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049799289 (REF SO-00477)
Updates pending to source for order: 499326000049799289
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-10-21 12:29:59.000Z,
source updated = 2025-10-21T13:29:59+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00477
Processing order: 6edgvct8sdcgc33, ref SO-00477
Syncing SO-00477
Using default start and end times
Time window: 2025-10-22T06:00:00+01:00 - 2025-10-22T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 21/10/2025 13:30 - Local updated: 2025-10-21 09:36:00.000Z - Source updated: 2025-10-21 12:29:59.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-10-21 09:36:00.000Z
Pending updates to MaxOptra? no
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00477
Done all.
Finished at 2025-10-21 13:34:51
Webhook - sourceUpdated script called at 2025-10-21 13:35:00
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049799289","salesorder_no":"SO-00477","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000049799289","salesorder_no":"SO-00477","status":"invoiced"}}
EXT ID: 499326000049799289
REF: SO-00477
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049799289 (REF SO-00477)
Local order updated = 2025-10-21 12:29:59.000Z,
source updated = 2025-10-21T13:34:49+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => St Andrews Mens Club
[notes] =>
[externalOrderId] => 499326000049799289
[refId] => SO-00477
[externalCustomerId] => 499326000046676086
[externalLocationId] => 499326000046676092
[title] => St Andrews Mens Club
[deliveryStart] => 2025-10-22
[deliveryEnd] => 2025-10-22
[totalValue] => 187.2
[totalWeight] => 0
[syncInCreated] => 2025-10-21T10:36:27+0100
[syncInUpdated] => 2025-10-21T13:34:49+0100
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000049799295
[externalProductId] => 499326000043516456
[sku] =>
[title] => Harding's Golden Ale 4.2%
[notes] =>
[quantity] => 2
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 156
[price] => 78
)
[1] => Array
(
[externalOrderProductId] => 499326000049799297
[externalProductId] => 499326000021043887
[sku] =>
[title] => Collection of empties
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
)
[deliveryName] => St Andrews Mens Club
[deliveryStreet] => 6 Kingston Road
[deliveryCity] => Taunton
[deliveryCounty] =>
[deliveryPostcode] => TA2 7SB
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => St Andrews Mens Club
[notes] =>
[externalOrderId] => 499326000049799289
[refId] => SO-00477
[externalCustomerId] => 499326000046676086
[externalLocationId] => 499326000046676092
[title] => St Andrews Mens Club
[deliveryStart] => 2025-10-22
[deliveryEnd] => 2025-10-22
[totalValue] => 187.2
[totalWeight] => 0
[syncInCreated] => 2025-10-21T10:36:27+0100
[syncInUpdated] => 2025-10-21T13:34:49+0100
[syncInStatus] => closed
[deliveryName] => St Andrews Mens Club
[deliveryStreet] => 6 Kingston Road
[deliveryCity] => Taunton
[deliveryCounty] =>
[deliveryPostcode] => TA2 7SB
[syncOutUpdated] => 2025-10-21T13:35:01+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => St Andrews Mens Club
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000046676086
Getting products
Updating product 499326000043516456
Updating order product 499326000049799295
Updated
Updating product 499326000021043887
Updating order product 499326000049799297
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00477
Processing order: 6edgvct8sdcgc33, ref SO-00477
Syncing SO-00477
Using default start and end times
Time window: 2025-10-22T06:00:00+01:00 - 2025-10-22T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 21/10/2025 13:30 - Local updated: 2025-10-21 12:35:01.000Z - Source updated: 2025-10-21 12:34:49.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-10-21 12:35:01.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000046676092
Array
(
[referenceNumber] => 499326000046676092
[name] => St Andrews Mens Club, 6 Kingston Road, Taunton
[address] => TA2 7SB
)
499326000046676092
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00477
Done all.
Finished at 2025-10-21 13:35:02
Webhook - sourceUpdated script called at 2025-10-21 13:35:03
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049799289","salesorder_no":"SO-00477","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000049799289","salesorder_no":"SO-00477","status":"invoiced"}}
EXT ID: 499326000049799289
REF: SO-00477
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049799289 (REF SO-00477)
Local order updated = 2025-10-21 12:34:49.000Z,
source updated = 2025-10-21T13:34:49+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00477
Processing order: 6edgvct8sdcgc33, ref SO-00477
Syncing SO-00477
Using default start and end times
Time window: 2025-10-22T06:00:00+01:00 - 2025-10-22T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 21/10/2025 13:35 - Local updated: 2025-10-21 12:30:00.000Z - Source updated: 2025-10-21 12:34:49.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-10-21 12:30:00.000Z
Pending updates to MaxOptra? no
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00477
Done all.
Finished at 2025-10-21 13:35:05
Webhook - sourceUpdated script called at 2025-10-21 13:35:16
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049799289","salesorder_no":"SO-00477","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000049799289","salesorder_no":"SO-00477","status":"invoiced"}}
EXT ID: 499326000049799289
REF: SO-00477
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049799289 (REF SO-00477)
Local order updated = 2025-10-21 12:34:49.000Z,
source updated = 2025-10-21T13:34:49+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00477
Processing order: 6edgvct8sdcgc33, ref SO-00477
Syncing SO-00477
Using default start and end times
Time window: 2025-10-22T06:00:00+01:00 - 2025-10-22T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 21/10/2025 13:35 - Local updated: 2025-10-21 12:35:00.000Z - Source updated: 2025-10-21 12:34:49.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00477
Done all.
Finished at 2025-10-21 13:35:17
Webhook - sourceUpdated script called at 2025-10-21 15:19:01
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049837813","salesorder_no":"SO-00474","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000049837813","salesorder_no":"SO-00474","status":"invoiced"}}
EXT ID: 499326000049837813
REF: SO-00474
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049837813 (REF SO-00474)
Local order updated = 2025-10-20 08:15:08.000Z,
source updated = 2025-10-21T15:18:46+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[contactName] => Wayne Hadley
[notes] =>
[externalOrderId] => 499326000049837813
[refId] => SO-00474
[externalCustomerId] => 499326000046966136
[externalLocationId] => 499326000046966140
[title] => Concierge Events
[deliveryStart] => 2025-10-24
[deliveryEnd] => 2025-10-24
[totalValue] => 264
[totalWeight] => 124
[syncInCreated] => 2025-10-20T09:15:08+0100
[syncInUpdated] => 2025-10-21T15:18:46+0100
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000049837819
[externalProductId] => 499326000000061367
[sku] => BBG-SNML-50LK
[title] => San Miguel 11G
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 130
[price] => 130
)
[1] => Array
(
[externalOrderProductId] => 499326000049837821
[externalProductId] => 499326000000063923
[sku] => TTCG-GOLD-50LK
[title] => Thatcher's Gold Cider 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 90
[price] => 90
)
)
[deliveryName] => Concierge Events
[deliveryStreet] => Worle Football Club
[deliveryCity] => Worle
[deliveryCounty] =>
[deliveryPostcode] => BS22 6AH
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => wayne.hadley@conciergeuk.co.uk
[contactName] => Wayne Hadley
[notes] =>
[externalOrderId] => 499326000049837813
[refId] => SO-00474
[externalCustomerId] => 499326000046966136
[externalLocationId] => 499326000046966140
[title] => Concierge Events
[deliveryStart] => 2025-10-24
[deliveryEnd] => 2025-10-24
[totalValue] => 264
[totalWeight] => 124
[syncInCreated] => 2025-10-20T09:15:08+0100
[syncInUpdated] => 2025-10-21T15:18:46+0100
[syncInStatus] => closed
[deliveryName] => Concierge Events
[deliveryStreet] => Worle Football Club
[deliveryCity] => Worle
[deliveryCounty] =>
[deliveryPostcode] => BS22 6AH
[syncOutUpdated] => 2025-10-21T15:19:02+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Wayne Hadley
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000046966136
Getting products
Updating product 499326000000061367
Updating order product 499326000049837819
Updated
Updating product 499326000000063923
Updating order product 499326000049837821
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00474
Processing order: 3iflgw5i98o86dw, ref SO-00474
Syncing SO-00474
Using default start and end times
Time window: 2025-10-24T06:00:00+01:00 - 2025-10-24T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 20/10/2025 09:15 - Local updated: 2025-10-21 14:19:02.000Z - Source updated: 2025-10-21 14:18:46.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status:
Status changed - mark for sync back to source
Is allocated? no
Local updated: 2025-10-21 14:19:02.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000046966140
Array
(
[referenceNumber] => 499326000046966140
[name] => Concierge Events, Worle Football Club, Worle
[address] => BS22 6AH
)
499326000046966140
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00474
Done all.
Finished at 2025-10-21 15:19:03
Webhook - sourceUpdated script called at 2025-10-21 15:19:31
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049837813","salesorder_no":"SO-00474","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000049837813","salesorder_no":"SO-00474","status":"invoiced"}}
EXT ID: 499326000049837813
REF: SO-00474
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049837813 (REF SO-00474)
Updates pending to source for order: 499326000049837813
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-10-21 14:18:46.000Z,
source updated = 2025-10-21T15:18:46+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00474
Processing order: 3iflgw5i98o86dw, ref SO-00474
Syncing SO-00474
Using default start and end times
Time window: 2025-10-24T06:00:00+01:00 - 2025-10-24T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 21/10/2025 15:19 - Local updated: 2025-10-20 08:15:00.000Z - Source updated: 2025-10-21 14:18:46.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-10-20 08:15:00.000Z
Pending updates to MaxOptra? no
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00474
Done all.
Finished at 2025-10-21 15:19:33
Webhook - sourceUpdated script called at 2025-10-21 15:20:01
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049837813","salesorder_no":"SO-00474","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000049837813","salesorder_no":"SO-00474","status":"invoiced"}}
EXT ID: 499326000049837813
REF: SO-00474
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049837813 (REF SO-00474)
Local order updated = 2025-10-21 14:18:46.000Z,
source updated = 2025-10-21T15:19:32+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00474
Processing order: 3iflgw5i98o86dw, ref SO-00474
Syncing SO-00474
Using default start and end times
Time window: 2025-10-24T06:00:00+01:00 - 2025-10-24T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 21/10/2025 15:19 - Local updated: 2025-10-21 14:19:00.000Z - Source updated: 2025-10-21 14:18:46.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00474
Done all.
Finished at 2025-10-21 15:20:02
Webhook - sourceUpdated script called at 2025-10-21 15:23:44
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049837813","salesorder_no":"SO-00474","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000049837813","salesorder_no":"SO-00474","status":"open"}}
EXT ID: 499326000049837813
REF: SO-00474
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049837813 (REF SO-00474)
Local order updated = 2025-10-21 14:18:46.000Z,
source updated = 2025-10-21T15:19:32+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00474
Processing order: 3iflgw5i98o86dw, ref SO-00474
Syncing SO-00474
Using default start and end times
Time window: 2025-10-24T06:00:00+01:00 - 2025-10-24T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 21/10/2025 15:19 - Local updated: 2025-10-21 14:19:00.000Z - Source updated: 2025-10-21 14:18:46.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00474
Done all.
Finished at 2025-10-21 15:23:45
Webhook - sourceUpdated script called at 2025-10-21 15:23:57
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049837813","salesorder_no":"SO-00474","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000049837813","salesorder_no":"SO-00474","status":"invoiced"}}
EXT ID: 499326000049837813
REF: SO-00474
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049837813 (REF SO-00474)
Local order updated = 2025-10-21 14:18:46.000Z,
source updated = 2025-10-21T15:19:32+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00474
Processing order: 3iflgw5i98o86dw, ref SO-00474
Syncing SO-00474
Using default start and end times
Time window: 2025-10-24T06:00:00+01:00 - 2025-10-24T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 21/10/2025 15:19 - Local updated: 2025-10-21 14:19:00.000Z - Source updated: 2025-10-21 14:18:46.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00474
Done all.
Finished at 2025-10-21 15:23:58
Webhook - sourceUpdated script called at 2025-10-21 16:23:08
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049899684","salesorder_no":"SO-00478","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000049899684","salesorder_no":"SO-00478","status":"open"}}
EXT ID: 499326000049899684
REF: SO-00478
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049899684 (REF SO-00478)
Source order details: Array
(
[contactPhone] => 07566237123
[contactEmail] => alexcullum02@gmail.com
[contactName] => Alex Cullum
[notes] =>
[externalOrderId] => 499326000049899684
[refId] => SO-00478
[externalCustomerId] => 499326000049463001
[externalLocationId] => 499326000049464010
[title] => Alex Cullum
[deliveryStart] => 2025-10-22
[deliveryEnd] => 2025-10-22
[totalValue] => 2
[totalWeight] => 0
[syncInCreated] => 2025-10-21T16:23:03+0100
[syncInUpdated] => 2025-10-21T16:23:06+0100
[syncInStatus] => confirmed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000049899694
[externalProductId] => 499326000047467258
[sku] =>
[title] => test-item-2
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 2
[price] => 2
)
)
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
Badgeworth, nr Axbridge
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
)
Does this order already exist?
No
Order data prepared for sync: Array
(
[contactPhone] => 07566237123
[contactEmail] => alexcullum02@gmail.com
[contactName] => Alex Cullum
[notes] =>
[externalOrderId] => 499326000049899684
[refId] => SO-00478
[externalCustomerId] => 499326000049463001
[externalLocationId] => 499326000049464010
[title] => Alex Cullum
[deliveryStart] => 2025-10-22
[deliveryEnd] => 2025-10-22
[totalValue] => 2
[totalWeight] => 0
[syncInCreated] => 2025-10-21T16:23:03+0100
[syncInUpdated] => 2025-10-21T16:23:06+0100
[syncInStatus] => confirmed
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
Badgeworth, nr Axbridge
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
[syncOutUpdated] => 2025-10-21T16:23:09+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Alex Cullum
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
New order
Marking order for sync with MaxOptra
Getting customer details
New customer 499326000049463001
Updating order contact details
Getting products
Creating product 499326000047467258
Creating new order product 499326000049899694
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00478
Processing order: e2m18gg4fe0u6gr, ref SO-00478
Syncing SO-00478
Using default start and end times
Time window: 2025-10-22T06:00:00+01:00 - 2025-10-22T20:00:00+01:00
Found order in MaxOptra? no
Creating SO-00478
Done
Finished syncing to MaxOptra for order SO-00478
Done all.
Finished at 2025-10-21 16:23:10
Webhook - sourceUpdated script called at 2025-10-21 16:24:09
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049899684","salesorder_no":"SO-00478","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000049899684","salesorder_no":"SO-00478","status":"open"}}
EXT ID: 499326000049899684
REF: SO-00478
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049899684 (REF SO-00478)
Local order updated = 2025-10-21 15:23:06.000Z,
source updated = 2025-10-21T16:24:09+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] => 07566237123
[contactEmail] => alexcullum02@gmail.com
[contactName] => Alex Cullum
[notes] =>
[externalOrderId] => 499326000049899684
[refId] => SO-00478
[externalCustomerId] => 499326000049463001
[externalLocationId] => 499326000049464010
[title] => Alex Cullum
[deliveryStart] => 2025-10-21
[deliveryEnd] => 2025-10-21
[totalValue] => 2
[totalWeight] => 0
[syncInCreated] => 2025-10-21T16:23:03+0100
[syncInUpdated] => 2025-10-21T16:24:09+0100
[syncInStatus] => confirmed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000049899694
[externalProductId] => 499326000047467258
[sku] =>
[title] => test-item-2
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 2
[price] => 2
)
)
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
Badgeworth, nr Axbridge
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] => 07566237123
[contactEmail] => alexcullum02@gmail.com
[contactName] => Alex Cullum
[notes] =>
[externalOrderId] => 499326000049899684
[refId] => SO-00478
[externalCustomerId] => 499326000049463001
[externalLocationId] => 499326000049464010
[title] => Alex Cullum
[deliveryStart] => 2025-10-21
[deliveryEnd] => 2025-10-21
[totalValue] => 2
[totalWeight] => 0
[syncInCreated] => 2025-10-21T16:23:03+0100
[syncInUpdated] => 2025-10-21T16:24:09+0100
[syncInStatus] => confirmed
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
Badgeworth, nr Axbridge
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
[syncOutUpdated] => 2025-10-21T16:24:10+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Alex Cullum
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000049463001
Getting products
Updating product 499326000047467258
Updating order product 499326000049899694
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00478
Processing order: e2m18gg4fe0u6gr, ref SO-00478
Syncing SO-00478
Using default start and end times
Time window: 2025-10-21T06:00:00+01:00 - 2025-10-21T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 21/10/2025 16:23 - Local updated: 2025-10-21 15:24:10.000Z - Source updated: 2025-10-21 15:24:09.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status:
Status changed - mark for sync back to source
Is allocated? no
Local updated: 2025-10-21 15:24:10.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000049464010
Array
(
[referenceNumber] => 499326000049464010
[name] => Alex Cullum, The Old Rectory, Church Lane
Badgeworth, nr Axbridge, Bristol
[address] => BS26 2QP
)
499326000049464010
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00478
Done all.
Finished at 2025-10-21 16:24:12
Webhook - destinationUpdated script called at 2025-10-21 16:24:23
JSON: {"payload":{"orderReference":"SO-00478","status":"ALLOCATED"},"timestamp":"2025-10-21T15:24:23Z"}
REF: SO-00478
Filter: refId="SO-00478"
200 response code sent
Local item: {"addons":[],"attachments":[],"collectionEnd":"","collectionId":"s93ukjlitoinx2e","collectionInstructions":"","collectionName":"orders","collectionStart":"","company":"1kmltj8w8rnhbfx","contactEmail":"alexcullum02@gmail.com","contactName":"Alex Cullum","contactNotes":"","contactPhone":"07566237123","created":"2025-10-21 15:23:09.477Z","custom":[],"customer":"8cpfwnil4yuq6em","deliveryCity":"Bristol","deliveryCounty":"","deliveryEnd":"2025-10-21 00:00:00.000Z","deliveryInstructions":"","deliveryName":"Alex Cullum","deliveryPostcode":"BS26 2QP","deliveryStart":"2025-10-21 00:00:00.000Z","deliveryStreet":"The Old Rectory, Church Lane\nBadgeworth, nr Axbridge","description":"","driverRef":"","externalCustomerId":"499326000049463001","externalLocationId":"499326000049464010","externalOrderId":"499326000049899684","id":"e2m18gg4fe0u6gr","isCancelled":false,"isCollection":false,"isReadyToSync":false,"isScheduledCollection":false,"isScheduledDelivery":false,"isUntracked":false,"mergeRef":"","notes":"","orderedAt":"","overrideVolume":0,"overrideWeight":0,"paymentMethod":"","pendingSyncFromDestination":false,"pendingSyncFromSource":false,"pendingSyncToDestination":false,"pendingSyncToSource":true,"ref":"","refId":"SO-00478","requestedDeliveryDays":"","seqNo":"","signature":"","signatureName":"","signatureTime":"","statusCollection":"","statusDelivery":"Pending","syncInCreated":"2025-10-21 15:23:03.000Z","syncInStatus":"confirmed","syncInUpdated":"2025-10-21 15:24:09.000Z","syncOutStatus":"UNALLOCATED","syncOutUpdated":"2025-10-21 15:23:00.000Z","timeWindows":[],"title":"Alex Cullum","totalValue":2,"totalWeight":0,"type":"","updated":"2025-10-21 15:24:12.180Z","vehicleRef":"","what3Words":""}
Updating local order from MaxOptra - current local order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => alexcullum02@gmail.com
[contactName] => Alex Cullum
[contactNotes] =>
[contactPhone] => 07566237123
[created] => 2025-10-21 15:23:09.477Z
[custom] => Array
(
)
[customer] => 8cpfwnil4yuq6em
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryEnd] => 2025-10-21 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Alex Cullum
[deliveryPostcode] => BS26 2QP
[deliveryStart] => 2025-10-21 00:00:00.000Z
[deliveryStreet] => The Old Rectory, Church Lane
Badgeworth, nr Axbridge
[description] =>
[driverRef] =>
[externalCustomerId] => 499326000049463001
[externalLocationId] => 499326000049464010
[externalOrderId] => 499326000049899684
[id] => e2m18gg4fe0u6gr
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] =>
[pendingSyncToSource] => 1
[ref] =>
[refId] => SO-00478
[requestedDeliveryDays] =>
[seqNo] =>
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Pending
[syncInCreated] => 2025-10-21 15:23:03.000Z
[syncInStatus] => confirmed
[syncInUpdated] => 2025-10-21 15:24:09.000Z
[syncOutStatus] => UNALLOCATED
[syncOutUpdated] => 2025-10-21 15:23:00.000Z
[timeWindows] => Array
(
)
[title] => Alex Cullum
[totalValue] => 2
[totalWeight] => 0
[type] =>
[updated] => 2025-10-21 15:24:12.180Z
[vehicleRef] =>
[what3Words] =>
)
MaxOptra order details: Array
(
[0] => Array
(
[referenceNumber] => SO-00478
[consignmentReference] =>
[distributionCentreReference] => Head Office
[distributionCentreName] => Head Office
[task] => DELIVERY
[priority] => NORMAL
[vehicleRequirements] => Array
(
)
[additionalInstructions] =>
[clientName] =>
[contactPerson] => Alex Cullum
[contactNumber] => 07566237123
[contactEmail] => alexcullum02@gmail.com
[additionalContactEmails] =>
[notificationPreferences] => Array
(
[allowSMS] => 1
[allowEmail] => 1
)
[customerLocation] => Array
(
[referenceNumber] => 499326000049464010
[name] => Alex Cullum, The Old Rectory, Church Lane
Badgeworth, nr Axbridge, Bristol
[address] => BS26 2QP
[w3wAddress] =>
[latitude] => 51.26857
[longitude] => -2.86747
)
[territoryReference] =>
[stopSequence] => ANY
[timeWindows] => Array
(
[0] => Array
(
[start] => 2025-10-21T06:00:00+01:00
[end] => 2025-10-21T20:00:00+01:00
)
)
[orderDate] =>
[capacity1] => 0
[capacity2] => 0
[price] =>
[operationDuration] => 300
[customFields] => Array
(
)
[orderItems] => Array
(
[0] => Array
(
[itemReferenceNumber] => 499326000047467258
[orderReferenceNumber] => SO-00478
[name] => test-item-2
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 2
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 2
[height] => 0
[width] => 0
[length] => 0
[weight] => 0
[volume] => 0
)
)
[widgetTrackingDetails] =>
)
)
MaxOptra schedule details: Array
(
[orderReferenceNumber] => SO-00478
[assignedDriverReference] => Lewis Newman
[assignedDriverName] => Lewis Newman
[assignedVehicleReference] => WD25HWY
[assignedVehicleName] => WD25HWY
[plannedArrivalTime] => 2025-10-21T16:47:33+01:00
[plannedCompletionTime] => 2025-10-21T16:52:33+01:00
[stopNumber] => 1
[totalStopsInRun] => 1
[runNumber] => 1
[runReference] => 9ccbfb7db70e4b968ace5441bc4146d0
[eta] =>
[factArrivalTimeGPS] =>
[factCompletionTimeGPS] =>
[factArrivalTimeReported] =>
[factCompletionTimeReported] =>
[failReason] =>
[failComment] =>
[status] => ALLOCATED
[driver] => Lewis Newman
[arrival_planned] => 2025-10-21T16:47:33+01:00
[arrival_estimated] =>
[arrival_actual] =>
[totalStops] => 1
)
Updating order: SO-00478
Update ID e2m18gg4fe0u6gr with: Array
(
[custom] => Array
(
)
[driverRef] => Lewis Newman
[vehicleRef] => WD25HWY
[seqNo] => 1
)
Updated order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => alexcullum02@gmail.com
[contactName] => Alex Cullum
[contactNotes] =>
[contactPhone] => 07566237123
[created] => 2025-10-21 15:23:09.477Z
[custom] => Array
(
)
[customer] => 8cpfwnil4yuq6em
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryEnd] => 2025-10-21 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Alex Cullum
[deliveryPostcode] => BS26 2QP
[deliveryStart] => 2025-10-21 00:00:00.000Z
[deliveryStreet] => The Old Rectory, Church Lane
Badgeworth, nr Axbridge
[description] =>
[driverRef] => Lewis Newman
[externalCustomerId] => 499326000049463001
[externalLocationId] => 499326000049464010
[externalOrderId] => 499326000049899684
[id] => e2m18gg4fe0u6gr
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] =>
[pendingSyncToSource] => 1
[ref] =>
[refId] => SO-00478
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Pending
[syncInCreated] => 2025-10-21 15:23:03.000Z
[syncInStatus] => confirmed
[syncInUpdated] => 2025-10-21 15:24:09.000Z
[syncOutStatus] => UNALLOCATED
[syncOutUpdated] => 2025-10-21 15:23:00.000Z
[timeWindows] => Array
(
)
[title] => Alex Cullum
[totalValue] => 2
[totalWeight] => 0
[type] =>
[updated] => 2025-10-21 15:24:24.248Z
[vehicleRef] => WD25HWY
[what3Words] =>
)
Updating source from local order
Getting custom fields
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-07-18 02:35:52.065Z
[id] => nc7sndad5bhvi5x
[inCollection] => orders
[inField] => paymentMethod
[mappedField] => 7DCPayment
[name] => Payment method
[sourceField] =>
[syncFromSource] => 1
[syncToSource] =>
[type] => text
[updated] => 2025-07-18 02:35:52.065Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Processing field
Mapped field: 7DCEmpties
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
Processing field
Mapped field: 7DCEmptiesGas
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:03:34.631Z
[id] => pcn96l3kgkps4az
[inCollection] => orders
[inField] => driverRef
[mappedField] =>
[name] => Delivery driver
[sourceField] => cf_delivery_driver
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:03:34.631Z
)
Processing field
driverRef...
Value: Lewis Newman
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-08 04:52:51.399Z
[id] => hhrzcmytzs8p3kw
[inCollection] => orders
[inField] => seqNo
[mappedField] =>
[name] => Run number
[sourceField] => cf_run_number
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-08 04:52:51.399Z
)
Processing field
seqNo...
Value: 1
Finished processing field
Continue
Updating source order: Array
(
[custom_fields] => Array
(
[0] => Array
(
[api_name] => cf_delivery_driver
[value] => Lewis Newman
)
[1] => Array
(
[api_name] => cf_run_number
[value] => 1
)
)
)
Update result: Array
(
[code] => 0
[message] => Sales Order has been updated.
[salesorder] => Array
(
[salesorder_id] => 499326000049899684
[is_viewed_in_mail] =>
[mail_first_viewed_time] =>
[mail_last_viewed_time] =>
[documents] => Array
(
)
[zcrm_potential_id] =>
[zcrm_potential_name] =>
[salesorder_number] => SO-00478
[date] => 2025-10-21
[offline_created_date_with_time] =>
[tracking_url] =>
[has_discount] =>
[status] => confirmed
[color_code] =>
[current_sub_status_id] =>
[current_sub_status] => confirmed
[sub_statuses] => Array
(
)
[shipment_date] =>
[reference_number] =>
[customer_id] => 499326000049463001
[customer_name] => Alex Cullum
[contact_persons] => Array
(
[0] => 499326000049463003
)
[contact_persons_associated] => Array
(
[0] => Array
(
[contact_person_id] => 499326000049463003
[contact_person_email] => alexcullum02@gmail.com
[first_name] => Alex
[last_name] => Cullum
[mobile] => 07566237123
[communication_preference] => Array
(
[is_email_enabled] => 1
)
)
)
[contact_person_details] => Array
(
[0] => Array
(
[phone] => 07566237123
[mobile] => 07566237123
[last_name] => Cullum
[contact_person_id] => 499326000049463003
[first_name] => Alex
[email] => alexcullum02@gmail.com
)
)
[source] => Client
[contact_category] => uk
[is_taxable] =>
[has_shipping_address] => 1
[currency_id] => 499326000000000065
[currency_code] => GBP
[currency_symbol] => £
[exchange_rate] => 1
[is_discount_before_tax] => 1
[discount_type] => item_level
[estimate_id] =>
[delivery_method] =>
[delivery_method_id] =>
[vat_treatment] => uk
[is_inclusive_tax] =>
[tax_rounding] => entity_level
[tax_override_preference] => no_override
[order_status] => confirmed
[invoiced_status] => not_invoiced
[paid_status] => unpaid
[shipped_status] => pending
[sales_channel] => direct_sales
[sales_channel_formatted] => Direct Sales
[account_identifier] =>
[integration_id] =>
[is_dropshipped] =>
[is_backordered] =>
[is_manually_fulfilled] =>
[can_manually_fulfill] => 1
[has_qty_cancelled] =>
[is_reverse_charge_applied] =>
[shipping_details] => Array
(
)
[created_by_email] => alex@7daycellar.co.uk
[created_by_name] => Alex C
[branch_id] => 499326000023111007
[branch_name] => Head Office
[location_id] => 499326000023111007
[location_name] => Head Office
[total_quantity] => 1
[line_items] => Array
(
[0] => Array
(
[line_item_id] => 499326000049899694
[variant_id] => 499326000047467258
[track_batch_number] =>
[item_id] => 499326000047467258
[is_returnable] => 1
[product_id] => 499326000047467258
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] =>
[name] => test-item-2
[group_name] => test-item-2
[description] => this is a test Item
[item_order] => 1
[bcy_rate] => 2
[rate] => 2
[sales_rate] => 2
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] => box
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] =>
[tax_name] =>
[tax_type] => tax
[tax_percentage] => 0
[line_item_taxes] => Array
(
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 2
[item_sub_total] => 2
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] =>
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] =>
[image_type] =>
[document_id] =>
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 0
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] =>
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
)
[is_advanced_tracking_missing] =>
[entity_tags] =>
[submitter_id] =>
[approver_id] =>
[submitted_date] =>
[submitted_by] =>
[submitted_by_name] =>
[submitted_by_email] =>
[submitted_by_photo_url] =>
[price_precision] => 2
[is_emailed] =>
[has_unconfirmed_line_item] =>
[picklists] => Array
(
)
[purchaseorders] => Array
(
)
[locations] => Array
(
[0] => Array
(
[location_id] => 499326000023111007
[location_name] => Head Office
[status] => active
)
[1] => Array
(
[location_id] => 499326000041689155
[location_name] => Bason Bridge Brewery Duty Bonded Warehouse
[status] => active
)
)
[billing_address_id] => 499326000049463004
[billing_address] => Array
(
[address] =>
[street2] =>
[city] =>
[state] =>
[zip] =>
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[shipping_address_id] => 499326000049464010
[shipping_address] => Array
(
[company_name] =>
[address] => The Old Rectory, Church Lane
Badgeworth, nr Axbridge
[street2] =>
[city] => Bristol
[state] =>
[zip] => BS26 2QP
[country] => United Kingdom
[country_code] => GB
[county] =>
[state_code] =>
[fax] =>
[phone] => 07566237123
[attention] => Alex Cullum
)
[is_test_order] =>
[notes] => Account Name: 7 Day Cellar Ltd
Sort Code: 09-01-30
Account No: 10888924
[terms] =>
[payment_terms] => 0
[payment_terms_label] => Due On Receipt
[custom_fields] => Array
(
[0] => Array
(
[field_id] => 499326000042690007
[customfield_id] => 499326000042690007
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 1
[label] => Automation Required
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[is_color_code_supported] =>
[api_name] => cf__ulrql_automation_required
[show_in_all_pdf] =>
[selected_option_id] => 499326000042690011
[value_formatted] => Yes
[search_entity] => salesorder
[data_type] => dropdown
[placeholder] => cf__ulrql_automation_required
[value] => Yes
[is_dependent_field] =>
)
[1] => Array
(
[field_id] => 499326000046252173
[customfield_id] => 499326000046252173
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 2
[label] => Delivery Driver
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_driver
[show_in_all_pdf] =>
[value_formatted] => Lewis Newman
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_driver
[value] => Lewis Newman
[is_dependent_field] =>
)
[2] => Array
(
[field_id] => 499326000047922345
[customfield_id] => 499326000047922345
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 3
[label] => Run Number
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_run_number
[show_in_all_pdf] =>
[value_formatted] => 1
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_run_number
[value] => 1
[is_dependent_field] =>
)
)
[custom_field_hash] => Array
(
[cf__ulrql_automation_required] => Yes
[cf__ulrql_automation_required_unformatted] => Yes
[cf_delivery_driver] => Lewis Newman
[cf_delivery_driver_unformatted] => Lewis Newman
[cf_run_number] => 1
[cf_run_number_unformatted] => 1
)
[template_id] => 499326000000000111
[template_name] => Standard Template
[page_width] => 8.27in
[page_height] => 11.69in
[orientation] => portrait
[template_type] => standard
[created_time] => 2025-10-21T16:23:03+0100
[last_modified_time] => 2025-10-21T16:24:24+0100
[created_by_id] => 499326000000047001
[created_date] => 2025-10-21
[last_modified_by_id] => 499326000044410001
[attachment_name] =>
[can_send_in_mail] =>
[salesperson_id] => 499326000026596043
[salesperson_name] => Alex Cullum
[merchant_id] =>
[merchant_name] =>
[pickup_location_id] =>
[discount] => 0
[discount_applied_on_amount] => 0
[is_adv_tracking_in_package] =>
[shipping_charge_taxes] => Array
(
)
[lock_details] => Array
(
[can_lock] =>
)
[locked_actions] => Array
(
)
[shipping_charge_tax_id] =>
[shipping_charge_tax_name] =>
[shipping_charge_tax_type] =>
[shipping_charge_tax_percentage] =>
[shipping_charge_tax_exemption_id] =>
[shipping_charge_tax_exemption_code] =>
[shipping_charge_tax] =>
[bcy_shipping_charge_tax] =>
[shipping_charge_exclusive_of_tax] => 0
[shipping_charge_inclusive_of_tax] => 0
[shipping_charge_tax_formatted] =>
[shipping_charge_exclusive_of_tax_formatted] => £0.00
[shipping_charge_inclusive_of_tax_formatted] => £0.00
[shipping_charge] => 0
[bcy_shipping_charge] => 0
[adjustment] => 0
[bcy_adjustment] => 0
[adjustment_description] => Adjustment
[roundoff_value] => 0
[transaction_rounding_type] => no_rounding
[rounding_mode] => round_half_up
[bcy_rounding_mode] => round_half_up
[sub_total] => 2
[bcy_sub_total] => 2
[sub_total_inclusive_of_tax] => 0
[sub_total_exclusive_of_discount] => 2
[discount_total] => 0
[bcy_discount_total] => 0
[discount_percent] => 0
[tax_total] => 0
[bcy_tax_total] => 0
[total] => 2
[computation_type] => basic
[bcy_total] => 2
[reverse_charge_tax_total] => 0
[taxes] => Array
(
)
[tds_calculation_type] => tds_item_level
[packages] => Array
(
)
[so_cycle_preference] => Array
(
[is_feature_enabled] => 1
[socycle_status] => not_triggered
[can_create_invoice] => 1
[can_create_package] =>
[can_create_shipment] =>
[shipment_preference] => Array
(
[default_carrier] =>
[send_notification] =>
[deliver_shipments] =>
)
[invoice_preference] => Array
(
[mark_as_sent] =>
[record_payment] =>
[payment_mode_id] => 499326000000000199
[payment_account_id] => 499326000000000349
)
)
[invoices] => Array
(
)
[can_show_kit_return] =>
[is_kit_partial_return] =>
[salesreturns] => Array
(
)
[payments] => Array
(
)
[creditnotes] => Array
(
)
[refunds] => Array
(
)
[contact] => Array
(
[contact_number] => CUS-00753
[customer_balance] => 0
[credit_limit] => 0
[unused_customer_credits] => 0
[is_credit_limit_migration_completed] => 1
)
[balance] => 2
[approvers_list] => Array
(
)
[is_scheduled_for_quick_shipment_create] =>
)
)
Webhook - destinationUpdated script called at 2025-10-21 16:24:31
JSON: {"payload":{"orderReference":"SO-00478","status":"LOCKED"},"timestamp":"2025-10-21T15:24:31Z"}
REF: SO-00478
Filter: refId="SO-00478"
200 response code sent
Local item: {"addons":[],"attachments":[],"collectionEnd":"","collectionId":"s93ukjlitoinx2e","collectionInstructions":"","collectionName":"orders","collectionStart":"","company":"1kmltj8w8rnhbfx","contactEmail":"alexcullum02@gmail.com","contactName":"Alex Cullum","contactNotes":"","contactPhone":"07566237123","created":"2025-10-21 15:23:09.477Z","custom":[],"customer":"8cpfwnil4yuq6em","deliveryCity":"Bristol","deliveryCounty":"","deliveryEnd":"2025-10-21 00:00:00.000Z","deliveryInstructions":"","deliveryName":"Alex Cullum","deliveryPostcode":"BS26 2QP","deliveryStart":"2025-10-21 00:00:00.000Z","deliveryStreet":"The Old Rectory, Church Lane\nBadgeworth, nr Axbridge","description":"","driverRef":"Lewis Newman","externalCustomerId":"499326000049463001","externalLocationId":"499326000049464010","externalOrderId":"499326000049899684","id":"e2m18gg4fe0u6gr","isCancelled":false,"isCollection":false,"isReadyToSync":false,"isScheduledCollection":false,"isScheduledDelivery":false,"isUntracked":false,"mergeRef":"","notes":"","orderedAt":"","overrideVolume":0,"overrideWeight":0,"paymentMethod":"","pendingSyncFromDestination":false,"pendingSyncFromSource":false,"pendingSyncToDestination":false,"pendingSyncToSource":true,"ref":"","refId":"SO-00478","requestedDeliveryDays":"","seqNo":"1","signature":"","signatureName":"","signatureTime":"","statusCollection":"","statusDelivery":"Pending","syncInCreated":"2025-10-21 15:23:03.000Z","syncInStatus":"confirmed","syncInUpdated":"2025-10-21 15:24:09.000Z","syncOutStatus":"UNALLOCATED","syncOutUpdated":"2025-10-21 15:23:00.000Z","timeWindows":[],"title":"Alex Cullum","totalValue":2,"totalWeight":0,"type":"","updated":"2025-10-21 15:24:24.248Z","vehicleRef":"WD25HWY","what3Words":""}
Updating local order from MaxOptra - current local order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => alexcullum02@gmail.com
[contactName] => Alex Cullum
[contactNotes] =>
[contactPhone] => 07566237123
[created] => 2025-10-21 15:23:09.477Z
[custom] => Array
(
)
[customer] => 8cpfwnil4yuq6em
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryEnd] => 2025-10-21 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Alex Cullum
[deliveryPostcode] => BS26 2QP
[deliveryStart] => 2025-10-21 00:00:00.000Z
[deliveryStreet] => The Old Rectory, Church Lane
Badgeworth, nr Axbridge
[description] =>
[driverRef] => Lewis Newman
[externalCustomerId] => 499326000049463001
[externalLocationId] => 499326000049464010
[externalOrderId] => 499326000049899684
[id] => e2m18gg4fe0u6gr
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] =>
[pendingSyncToSource] => 1
[ref] =>
[refId] => SO-00478
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Pending
[syncInCreated] => 2025-10-21 15:23:03.000Z
[syncInStatus] => confirmed
[syncInUpdated] => 2025-10-21 15:24:09.000Z
[syncOutStatus] => UNALLOCATED
[syncOutUpdated] => 2025-10-21 15:23:00.000Z
[timeWindows] => Array
(
)
[title] => Alex Cullum
[totalValue] => 2
[totalWeight] => 0
[type] =>
[updated] => 2025-10-21 15:24:24.248Z
[vehicleRef] => WD25HWY
[what3Words] =>
)
MaxOptra order details: Array
(
[0] => Array
(
[referenceNumber] => SO-00478
[consignmentReference] =>
[distributionCentreReference] => Head Office
[distributionCentreName] => Head Office
[task] => DELIVERY
[priority] => NORMAL
[vehicleRequirements] => Array
(
)
[additionalInstructions] =>
[clientName] =>
[contactPerson] => Alex Cullum
[contactNumber] => 07566237123
[contactEmail] => alexcullum02@gmail.com
[additionalContactEmails] =>
[notificationPreferences] => Array
(
[allowSMS] => 1
[allowEmail] => 1
)
[customerLocation] => Array
(
[referenceNumber] => 499326000049464010
[name] => Alex Cullum, The Old Rectory, Church Lane
Badgeworth, nr Axbridge, Bristol
[address] => BS26 2QP
[w3wAddress] =>
[latitude] => 51.26857
[longitude] => -2.86747
)
[territoryReference] =>
[stopSequence] => ANY
[timeWindows] => Array
(
[0] => Array
(
[start] => 2025-10-21T06:00:00+01:00
[end] => 2025-10-21T20:00:00+01:00
)
)
[orderDate] =>
[capacity1] => 0
[capacity2] => 0
[price] =>
[operationDuration] => 300
[customFields] => Array
(
)
[orderItems] => Array
(
[0] => Array
(
[itemReferenceNumber] => 499326000047467258
[orderReferenceNumber] => SO-00478
[name] => test-item-2
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 2
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 2
[height] => 0
[width] => 0
[length] => 0
[weight] => 0
[volume] => 0
)
)
[widgetTrackingDetails] =>
)
)
MaxOptra schedule details: Array
(
[orderReferenceNumber] => SO-00478
[assignedDriverReference] => Lewis Newman
[assignedDriverName] => Lewis Newman
[assignedVehicleReference] => WD25HWY
[assignedVehicleName] => WD25HWY
[plannedArrivalTime] => 2025-10-21T16:47:33+01:00
[plannedCompletionTime] => 2025-10-21T16:52:33+01:00
[stopNumber] => 1
[totalStopsInRun] => 1
[runNumber] => 1
[runReference] => 9ccbfb7db70e4b968ace5441bc4146d0
[eta] =>
[factArrivalTimeGPS] =>
[factCompletionTimeGPS] =>
[factArrivalTimeReported] =>
[factCompletionTimeReported] =>
[failReason] =>
[failComment] =>
[status] => LOCKED
[driver] => Lewis Newman
[arrival_planned] => 2025-10-21T16:47:33+01:00
[arrival_estimated] =>
[arrival_actual] =>
[totalStops] => 1
)
Updating order: SO-00478
Update ID e2m18gg4fe0u6gr with: Array
(
[custom] => Array
(
)
[driverRef] => Lewis Newman
[vehicleRef] => WD25HWY
[seqNo] => 1
)
Updated order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => alexcullum02@gmail.com
[contactName] => Alex Cullum
[contactNotes] =>
[contactPhone] => 07566237123
[created] => 2025-10-21 15:23:09.477Z
[custom] => Array
(
)
[customer] => 8cpfwnil4yuq6em
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryEnd] => 2025-10-21 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Alex Cullum
[deliveryPostcode] => BS26 2QP
[deliveryStart] => 2025-10-21 00:00:00.000Z
[deliveryStreet] => The Old Rectory, Church Lane
Badgeworth, nr Axbridge
[description] =>
[driverRef] => Lewis Newman
[externalCustomerId] => 499326000049463001
[externalLocationId] => 499326000049464010
[externalOrderId] => 499326000049899684
[id] => e2m18gg4fe0u6gr
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] =>
[pendingSyncToSource] => 1
[ref] =>
[refId] => SO-00478
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Pending
[syncInCreated] => 2025-10-21 15:23:03.000Z
[syncInStatus] => confirmed
[syncInUpdated] => 2025-10-21 15:24:09.000Z
[syncOutStatus] => UNALLOCATED
[syncOutUpdated] => 2025-10-21 15:23:00.000Z
[timeWindows] => Array
(
)
[title] => Alex Cullum
[totalValue] => 2
[totalWeight] => 0
[type] =>
[updated] => 2025-10-21 15:24:32.281Z
[vehicleRef] => WD25HWY
[what3Words] =>
)
Updating source from local order
Getting custom fields
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-07-18 02:35:52.065Z
[id] => nc7sndad5bhvi5x
[inCollection] => orders
[inField] => paymentMethod
[mappedField] => 7DCPayment
[name] => Payment method
[sourceField] =>
[syncFromSource] => 1
[syncToSource] =>
[type] => text
[updated] => 2025-07-18 02:35:52.065Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Processing field
Mapped field: 7DCEmpties
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
Processing field
Mapped field: 7DCEmptiesGas
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:03:34.631Z
[id] => pcn96l3kgkps4az
[inCollection] => orders
[inField] => driverRef
[mappedField] =>
[name] => Delivery driver
[sourceField] => cf_delivery_driver
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:03:34.631Z
)
Processing field
driverRef...
Value: Lewis Newman
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-08 04:52:51.399Z
[id] => hhrzcmytzs8p3kw
[inCollection] => orders
[inField] => seqNo
[mappedField] =>
[name] => Run number
[sourceField] => cf_run_number
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-08 04:52:51.399Z
)
Processing field
seqNo...
Value: 1
Finished processing field
Continue
Updating source order: Array
(
[custom_fields] => Array
(
[0] => Array
(
[api_name] => cf_delivery_driver
[value] => Lewis Newman
)
[1] => Array
(
[api_name] => cf_run_number
[value] => 1
)
)
)
Update result: Array
(
[code] => 0
[message] => Sales Order has been updated.
[salesorder] => Array
(
[salesorder_id] => 499326000049899684
[is_viewed_in_mail] =>
[mail_first_viewed_time] =>
[mail_last_viewed_time] =>
[documents] => Array
(
)
[zcrm_potential_id] =>
[zcrm_potential_name] =>
[salesorder_number] => SO-00478
[date] => 2025-10-21
[offline_created_date_with_time] =>
[tracking_url] =>
[has_discount] =>
[status] => confirmed
[color_code] =>
[current_sub_status_id] =>
[current_sub_status] => confirmed
[sub_statuses] => Array
(
)
[shipment_date] =>
[reference_number] =>
[customer_id] => 499326000049463001
[customer_name] => Alex Cullum
[contact_persons] => Array
(
[0] => 499326000049463003
)
[contact_persons_associated] => Array
(
[0] => Array
(
[contact_person_id] => 499326000049463003
[contact_person_email] => alexcullum02@gmail.com
[first_name] => Alex
[last_name] => Cullum
[mobile] => 07566237123
[communication_preference] => Array
(
[is_email_enabled] => 1
)
)
)
[contact_person_details] => Array
(
[0] => Array
(
[phone] => 07566237123
[mobile] => 07566237123
[last_name] => Cullum
[contact_person_id] => 499326000049463003
[first_name] => Alex
[email] => alexcullum02@gmail.com
)
)
[source] => Client
[contact_category] => uk
[is_taxable] =>
[has_shipping_address] => 1
[currency_id] => 499326000000000065
[currency_code] => GBP
[currency_symbol] => £
[exchange_rate] => 1
[is_discount_before_tax] => 1
[discount_type] => item_level
[estimate_id] =>
[delivery_method] =>
[delivery_method_id] =>
[vat_treatment] => uk
[is_inclusive_tax] =>
[tax_rounding] => entity_level
[tax_override_preference] => no_override
[order_status] => confirmed
[invoiced_status] => not_invoiced
[paid_status] => unpaid
[shipped_status] => pending
[sales_channel] => direct_sales
[sales_channel_formatted] => Direct Sales
[account_identifier] =>
[integration_id] =>
[is_dropshipped] =>
[is_backordered] =>
[is_manually_fulfilled] =>
[can_manually_fulfill] => 1
[has_qty_cancelled] =>
[is_reverse_charge_applied] =>
[shipping_details] => Array
(
)
[created_by_email] => alex@7daycellar.co.uk
[created_by_name] => Alex C
[branch_id] => 499326000023111007
[branch_name] => Head Office
[location_id] => 499326000023111007
[location_name] => Head Office
[total_quantity] => 1
[line_items] => Array
(
[0] => Array
(
[line_item_id] => 499326000049899694
[variant_id] => 499326000047467258
[track_batch_number] =>
[item_id] => 499326000047467258
[is_returnable] => 1
[product_id] => 499326000047467258
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] =>
[name] => test-item-2
[group_name] => test-item-2
[description] => this is a test Item
[item_order] => 1
[bcy_rate] => 2
[rate] => 2
[sales_rate] => 2
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] => box
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] =>
[tax_name] =>
[tax_type] => tax
[tax_percentage] => 0
[line_item_taxes] => Array
(
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 2
[item_sub_total] => 2
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] =>
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] =>
[image_type] =>
[document_id] =>
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 0
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] =>
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
)
[is_advanced_tracking_missing] =>
[entity_tags] =>
[submitter_id] =>
[approver_id] =>
[submitted_date] =>
[submitted_by] =>
[submitted_by_name] =>
[submitted_by_email] =>
[submitted_by_photo_url] =>
[price_precision] => 2
[is_emailed] =>
[has_unconfirmed_line_item] =>
[picklists] => Array
(
)
[purchaseorders] => Array
(
)
[locations] => Array
(
[0] => Array
(
[location_id] => 499326000023111007
[location_name] => Head Office
[status] => active
)
[1] => Array
(
[location_id] => 499326000041689155
[location_name] => Bason Bridge Brewery Duty Bonded Warehouse
[status] => active
)
)
[billing_address_id] => 499326000049463004
[billing_address] => Array
(
[address] =>
[street2] =>
[city] =>
[state] =>
[zip] =>
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[shipping_address_id] => 499326000049464010
[shipping_address] => Array
(
[company_name] =>
[address] => The Old Rectory, Church Lane
Badgeworth, nr Axbridge
[street2] =>
[city] => Bristol
[state] =>
[zip] => BS26 2QP
[country] => United Kingdom
[country_code] => GB
[county] =>
[state_code] =>
[fax] =>
[phone] => 07566237123
[attention] => Alex Cullum
)
[is_test_order] =>
[notes] => Account Name: 7 Day Cellar Ltd
Sort Code: 09-01-30
Account No: 10888924
[terms] =>
[payment_terms] => 0
[payment_terms_label] => Due On Receipt
[custom_fields] => Array
(
[0] => Array
(
[field_id] => 499326000042690007
[customfield_id] => 499326000042690007
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 1
[label] => Automation Required
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[is_color_code_supported] =>
[api_name] => cf__ulrql_automation_required
[show_in_all_pdf] =>
[selected_option_id] => 499326000042690011
[value_formatted] => Yes
[search_entity] => salesorder
[data_type] => dropdown
[placeholder] => cf__ulrql_automation_required
[value] => Yes
[is_dependent_field] =>
)
[1] => Array
(
[field_id] => 499326000046252173
[customfield_id] => 499326000046252173
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 2
[label] => Delivery Driver
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_driver
[show_in_all_pdf] =>
[value_formatted] => Lewis Newman
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_driver
[value] => Lewis Newman
[is_dependent_field] =>
)
[2] => Array
(
[field_id] => 499326000047922345
[customfield_id] => 499326000047922345
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 3
[label] => Run Number
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_run_number
[show_in_all_pdf] =>
[value_formatted] => 1
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_run_number
[value] => 1
[is_dependent_field] =>
)
)
[custom_field_hash] => Array
(
[cf__ulrql_automation_required] => Yes
[cf__ulrql_automation_required_unformatted] => Yes
[cf_delivery_driver] => Lewis Newman
[cf_delivery_driver_unformatted] => Lewis Newman
[cf_run_number] => 1
[cf_run_number_unformatted] => 1
)
[template_id] => 499326000000000111
[template_name] => Standard Template
[page_width] => 8.27in
[page_height] => 11.69in
[orientation] => portrait
[template_type] => standard
[created_time] => 2025-10-21T16:23:03+0100
[last_modified_time] => 2025-10-21T16:24:32+0100
[created_by_id] => 499326000000047001
[created_date] => 2025-10-21
[last_modified_by_id] => 499326000044410001
[attachment_name] =>
[can_send_in_mail] =>
[salesperson_id] => 499326000026596043
[salesperson_name] => Alex Cullum
[merchant_id] =>
[merchant_name] =>
[pickup_location_id] =>
[discount] => 0
[discount_applied_on_amount] => 0
[is_adv_tracking_in_package] =>
[shipping_charge_taxes] => Array
(
)
[lock_details] => Array
(
[can_lock] =>
)
[locked_actions] => Array
(
)
[shipping_charge_tax_id] =>
[shipping_charge_tax_name] =>
[shipping_charge_tax_type] =>
[shipping_charge_tax_percentage] =>
[shipping_charge_tax_exemption_id] =>
[shipping_charge_tax_exemption_code] =>
[shipping_charge_tax] =>
[bcy_shipping_charge_tax] =>
[shipping_charge_exclusive_of_tax] => 0
[shipping_charge_inclusive_of_tax] => 0
[shipping_charge_tax_formatted] =>
[shipping_charge_exclusive_of_tax_formatted] => £0.00
[shipping_charge_inclusive_of_tax_formatted] => £0.00
[shipping_charge] => 0
[bcy_shipping_charge] => 0
[adjustment] => 0
[bcy_adjustment] => 0
[adjustment_description] => Adjustment
[roundoff_value] => 0
[transaction_rounding_type] => no_rounding
[rounding_mode] => round_half_up
[bcy_rounding_mode] => round_half_up
[sub_total] => 2
[bcy_sub_total] => 2
[sub_total_inclusive_of_tax] => 0
[sub_total_exclusive_of_discount] => 2
[discount_total] => 0
[bcy_discount_total] => 0
[discount_percent] => 0
[tax_total] => 0
[bcy_tax_total] => 0
[total] => 2
[computation_type] => basic
[bcy_total] => 2
[reverse_charge_tax_total] => 0
[taxes] => Array
(
)
[tds_calculation_type] => tds_item_level
[packages] => Array
(
)
[so_cycle_preference] => Array
(
[is_feature_enabled] => 1
[socycle_status] => not_triggered
[can_create_invoice] => 1
[can_create_package] =>
[can_create_shipment] =>
[shipment_preference] => Array
(
[default_carrier] =>
[send_notification] =>
[deliver_shipments] =>
)
[invoice_preference] => Array
(
[mark_as_sent] =>
[record_payment] =>
[payment_mode_id] => 499326000000000199
[payment_account_id] => 499326000000000349
)
)
[invoices] => Array
(
)
[can_show_kit_return] =>
[is_kit_partial_return] =>
[salesreturns] => Array
(
)
[payments] => Array
(
)
[creditnotes] => Array
(
)
[refunds] => Array
(
)
[contact] => Array
(
[contact_number] => CUS-00753
[customer_balance] => 0
[credit_limit] => 0
[unused_customer_credits] => 0
[is_credit_limit_migration_completed] => 1
)
[balance] => 2
[approvers_list] => Array
(
)
[is_scheduled_for_quick_shipment_create] =>
)
)
Webhook - destinationUpdated script called at 2025-10-21 16:24:34
JSON: {"payload":{"orderReference":"SO-00478","status":"SENDING"},"timestamp":"2025-10-21T15:24:34Z"}
REF: SO-00478
Filter: refId="SO-00478"
200 response code sent
Local item: {"addons":[],"attachments":[],"collectionEnd":"","collectionId":"s93ukjlitoinx2e","collectionInstructions":"","collectionName":"orders","collectionStart":"","company":"1kmltj8w8rnhbfx","contactEmail":"alexcullum02@gmail.com","contactName":"Alex Cullum","contactNotes":"","contactPhone":"07566237123","created":"2025-10-21 15:23:09.477Z","custom":[],"customer":"8cpfwnil4yuq6em","deliveryCity":"Bristol","deliveryCounty":"","deliveryEnd":"2025-10-21 00:00:00.000Z","deliveryInstructions":"","deliveryName":"Alex Cullum","deliveryPostcode":"BS26 2QP","deliveryStart":"2025-10-21 00:00:00.000Z","deliveryStreet":"The Old Rectory, Church Lane\nBadgeworth, nr Axbridge","description":"","driverRef":"Lewis Newman","externalCustomerId":"499326000049463001","externalLocationId":"499326000049464010","externalOrderId":"499326000049899684","id":"e2m18gg4fe0u6gr","isCancelled":false,"isCollection":false,"isReadyToSync":false,"isScheduledCollection":false,"isScheduledDelivery":false,"isUntracked":false,"mergeRef":"","notes":"","orderedAt":"","overrideVolume":0,"overrideWeight":0,"paymentMethod":"","pendingSyncFromDestination":false,"pendingSyncFromSource":false,"pendingSyncToDestination":false,"pendingSyncToSource":true,"ref":"","refId":"SO-00478","requestedDeliveryDays":"","seqNo":"1","signature":"","signatureName":"","signatureTime":"","statusCollection":"","statusDelivery":"Pending","syncInCreated":"2025-10-21 15:23:03.000Z","syncInStatus":"confirmed","syncInUpdated":"2025-10-21 15:24:09.000Z","syncOutStatus":"UNALLOCATED","syncOutUpdated":"2025-10-21 15:23:00.000Z","timeWindows":[],"title":"Alex Cullum","totalValue":2,"totalWeight":0,"type":"","updated":"2025-10-21 15:24:32.281Z","vehicleRef":"WD25HWY","what3Words":""}
Updating local order from MaxOptra - current local order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => alexcullum02@gmail.com
[contactName] => Alex Cullum
[contactNotes] =>
[contactPhone] => 07566237123
[created] => 2025-10-21 15:23:09.477Z
[custom] => Array
(
)
[customer] => 8cpfwnil4yuq6em
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryEnd] => 2025-10-21 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Alex Cullum
[deliveryPostcode] => BS26 2QP
[deliveryStart] => 2025-10-21 00:00:00.000Z
[deliveryStreet] => The Old Rectory, Church Lane
Badgeworth, nr Axbridge
[description] =>
[driverRef] => Lewis Newman
[externalCustomerId] => 499326000049463001
[externalLocationId] => 499326000049464010
[externalOrderId] => 499326000049899684
[id] => e2m18gg4fe0u6gr
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] =>
[pendingSyncToSource] => 1
[ref] =>
[refId] => SO-00478
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Pending
[syncInCreated] => 2025-10-21 15:23:03.000Z
[syncInStatus] => confirmed
[syncInUpdated] => 2025-10-21 15:24:09.000Z
[syncOutStatus] => UNALLOCATED
[syncOutUpdated] => 2025-10-21 15:23:00.000Z
[timeWindows] => Array
(
)
[title] => Alex Cullum
[totalValue] => 2
[totalWeight] => 0
[type] =>
[updated] => 2025-10-21 15:24:32.281Z
[vehicleRef] => WD25HWY
[what3Words] =>
)
MaxOptra order details: Array
(
[0] => Array
(
[referenceNumber] => SO-00478
[consignmentReference] =>
[distributionCentreReference] => Head Office
[distributionCentreName] => Head Office
[task] => DELIVERY
[priority] => NORMAL
[vehicleRequirements] => Array
(
)
[additionalInstructions] =>
[clientName] =>
[contactPerson] => Alex Cullum
[contactNumber] => 07566237123
[contactEmail] => alexcullum02@gmail.com
[additionalContactEmails] =>
[notificationPreferences] => Array
(
[allowSMS] => 1
[allowEmail] => 1
)
[customerLocation] => Array
(
[referenceNumber] => 499326000049464010
[name] => Alex Cullum, The Old Rectory, Church Lane
Badgeworth, nr Axbridge, Bristol
[address] => BS26 2QP
[w3wAddress] =>
[latitude] => 51.26857
[longitude] => -2.86747
)
[territoryReference] =>
[stopSequence] => ANY
[timeWindows] => Array
(
[0] => Array
(
[start] => 2025-10-21T06:00:00+01:00
[end] => 2025-10-21T20:00:00+01:00
)
)
[orderDate] =>
[capacity1] => 0
[capacity2] => 0
[price] =>
[operationDuration] => 300
[customFields] => Array
(
)
[orderItems] => Array
(
[0] => Array
(
[itemReferenceNumber] => 499326000047467258
[orderReferenceNumber] => SO-00478
[name] => test-item-2
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 2
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 2
[height] => 0
[width] => 0
[length] => 0
[weight] => 0
[volume] => 0
)
)
[widgetTrackingDetails] =>
)
)
MaxOptra schedule details: Array
(
[orderReferenceNumber] => SO-00478
[assignedDriverReference] => Lewis Newman
[assignedDriverName] => Lewis Newman
[assignedVehicleReference] => WD25HWY
[assignedVehicleName] => WD25HWY
[plannedArrivalTime] => 2025-10-21T16:47:33+01:00
[plannedCompletionTime] => 2025-10-21T16:52:33+01:00
[stopNumber] => 1
[totalStopsInRun] => 1
[runNumber] => 1
[runReference] => 9ccbfb7db70e4b968ace5441bc4146d0
[eta] =>
[factArrivalTimeGPS] =>
[factCompletionTimeGPS] =>
[factArrivalTimeReported] =>
[factCompletionTimeReported] =>
[failReason] =>
[failComment] =>
[status] => ACCEPTED
[driver] => Lewis Newman
[arrival_planned] => 2025-10-21T16:47:33+01:00
[arrival_estimated] =>
[arrival_actual] =>
[totalStops] => 1
)
Updating order: SO-00478
Update ID e2m18gg4fe0u6gr with: Array
(
[custom] => Array
(
)
[driverRef] => Lewis Newman
[vehicleRef] => WD25HWY
[seqNo] => 1
)
Updated order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => alexcullum02@gmail.com
[contactName] => Alex Cullum
[contactNotes] =>
[contactPhone] => 07566237123
[created] => 2025-10-21 15:23:09.477Z
[custom] => Array
(
)
[customer] => 8cpfwnil4yuq6em
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryEnd] => 2025-10-21 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Alex Cullum
[deliveryPostcode] => BS26 2QP
[deliveryStart] => 2025-10-21 00:00:00.000Z
[deliveryStreet] => The Old Rectory, Church Lane
Badgeworth, nr Axbridge
[description] =>
[driverRef] => Lewis Newman
[externalCustomerId] => 499326000049463001
[externalLocationId] => 499326000049464010
[externalOrderId] => 499326000049899684
[id] => e2m18gg4fe0u6gr
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] =>
[pendingSyncToSource] => 1
[ref] =>
[refId] => SO-00478
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Pending
[syncInCreated] => 2025-10-21 15:23:03.000Z
[syncInStatus] => confirmed
[syncInUpdated] => 2025-10-21 15:24:09.000Z
[syncOutStatus] => UNALLOCATED
[syncOutUpdated] => 2025-10-21 15:23:00.000Z
[timeWindows] => Array
(
)
[title] => Alex Cullum
[totalValue] => 2
[totalWeight] => 0
[type] =>
[updated] => 2025-10-21 15:24:35.137Z
[vehicleRef] => WD25HWY
[what3Words] =>
)
Updating source from local order
Getting custom fields
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-07-18 02:35:52.065Z
[id] => nc7sndad5bhvi5x
[inCollection] => orders
[inField] => paymentMethod
[mappedField] => 7DCPayment
[name] => Payment method
[sourceField] =>
[syncFromSource] => 1
[syncToSource] =>
[type] => text
[updated] => 2025-07-18 02:35:52.065Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Processing field
Mapped field: 7DCEmpties
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
Processing field
Mapped field: 7DCEmptiesGas
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:03:34.631Z
[id] => pcn96l3kgkps4az
[inCollection] => orders
[inField] => driverRef
[mappedField] =>
[name] => Delivery driver
[sourceField] => cf_delivery_driver
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:03:34.631Z
)
Processing field
driverRef...
Value: Lewis Newman
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-08 04:52:51.399Z
[id] => hhrzcmytzs8p3kw
[inCollection] => orders
[inField] => seqNo
[mappedField] =>
[name] => Run number
[sourceField] => cf_run_number
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-08 04:52:51.399Z
)
Processing field
seqNo...
Value: 1
Finished processing field
Continue
Updating source order: Array
(
[custom_fields] => Array
(
[0] => Array
(
[api_name] => cf_delivery_driver
[value] => Lewis Newman
)
[1] => Array
(
[api_name] => cf_run_number
[value] => 1
)
)
)
Update result: Array
(
[code] => 0
[message] => Sales Order has been updated.
[salesorder] => Array
(
[salesorder_id] => 499326000049899684
[is_viewed_in_mail] =>
[mail_first_viewed_time] =>
[mail_last_viewed_time] =>
[documents] => Array
(
)
[zcrm_potential_id] =>
[zcrm_potential_name] =>
[salesorder_number] => SO-00478
[date] => 2025-10-21
[offline_created_date_with_time] =>
[tracking_url] =>
[has_discount] =>
[status] => confirmed
[color_code] =>
[current_sub_status_id] =>
[current_sub_status] => confirmed
[sub_statuses] => Array
(
)
[shipment_date] =>
[reference_number] =>
[customer_id] => 499326000049463001
[customer_name] => Alex Cullum
[contact_persons] => Array
(
[0] => 499326000049463003
)
[contact_persons_associated] => Array
(
[0] => Array
(
[contact_person_id] => 499326000049463003
[contact_person_email] => alexcullum02@gmail.com
[first_name] => Alex
[last_name] => Cullum
[mobile] => 07566237123
[communication_preference] => Array
(
[is_email_enabled] => 1
)
)
)
[contact_person_details] => Array
(
[0] => Array
(
[phone] => 07566237123
[mobile] => 07566237123
[last_name] => Cullum
[contact_person_id] => 499326000049463003
[first_name] => Alex
[email] => alexcullum02@gmail.com
)
)
[source] => Client
[contact_category] => uk
[is_taxable] =>
[has_shipping_address] => 1
[currency_id] => 499326000000000065
[currency_code] => GBP
[currency_symbol] => £
[exchange_rate] => 1
[is_discount_before_tax] => 1
[discount_type] => item_level
[estimate_id] =>
[delivery_method] =>
[delivery_method_id] =>
[vat_treatment] => uk
[is_inclusive_tax] =>
[tax_rounding] => entity_level
[tax_override_preference] => no_override
[order_status] => confirmed
[invoiced_status] => not_invoiced
[paid_status] => unpaid
[shipped_status] => pending
[sales_channel] => direct_sales
[sales_channel_formatted] => Direct Sales
[account_identifier] =>
[integration_id] =>
[is_dropshipped] =>
[is_backordered] =>
[is_manually_fulfilled] =>
[can_manually_fulfill] => 1
[has_qty_cancelled] =>
[is_reverse_charge_applied] =>
[shipping_details] => Array
(
)
[created_by_email] => alex@7daycellar.co.uk
[created_by_name] => Alex C
[branch_id] => 499326000023111007
[branch_name] => Head Office
[location_id] => 499326000023111007
[location_name] => Head Office
[total_quantity] => 1
[line_items] => Array
(
[0] => Array
(
[line_item_id] => 499326000049899694
[variant_id] => 499326000047467258
[track_batch_number] =>
[item_id] => 499326000047467258
[is_returnable] => 1
[product_id] => 499326000047467258
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] =>
[name] => test-item-2
[group_name] => test-item-2
[description] => this is a test Item
[item_order] => 1
[bcy_rate] => 2
[rate] => 2
[sales_rate] => 2
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] => box
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] =>
[tax_name] =>
[tax_type] => tax
[tax_percentage] => 0
[line_item_taxes] => Array
(
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 2
[item_sub_total] => 2
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] =>
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] =>
[image_type] =>
[document_id] =>
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 0
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] =>
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
)
[is_advanced_tracking_missing] =>
[entity_tags] =>
[submitter_id] =>
[approver_id] =>
[submitted_date] =>
[submitted_by] =>
[submitted_by_name] =>
[submitted_by_email] =>
[submitted_by_photo_url] =>
[price_precision] => 2
[is_emailed] =>
[has_unconfirmed_line_item] =>
[picklists] => Array
(
)
[purchaseorders] => Array
(
)
[locations] => Array
(
[0] => Array
(
[location_id] => 499326000023111007
[location_name] => Head Office
[status] => active
)
[1] => Array
(
[location_id] => 499326000041689155
[location_name] => Bason Bridge Brewery Duty Bonded Warehouse
[status] => active
)
)
[billing_address_id] => 499326000049463004
[billing_address] => Array
(
[address] =>
[street2] =>
[city] =>
[state] =>
[zip] =>
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[shipping_address_id] => 499326000049464010
[shipping_address] => Array
(
[company_name] =>
[address] => The Old Rectory, Church Lane
Badgeworth, nr Axbridge
[street2] =>
[city] => Bristol
[state] =>
[zip] => BS26 2QP
[country] => United Kingdom
[country_code] => GB
[county] =>
[state_code] =>
[fax] =>
[phone] => 07566237123
[attention] => Alex Cullum
)
[is_test_order] =>
[notes] => Account Name: 7 Day Cellar Ltd
Sort Code: 09-01-30
Account No: 10888924
[terms] =>
[payment_terms] => 0
[payment_terms_label] => Due On Receipt
[custom_fields] => Array
(
[0] => Array
(
[field_id] => 499326000042690007
[customfield_id] => 499326000042690007
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 1
[label] => Automation Required
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[is_color_code_supported] =>
[api_name] => cf__ulrql_automation_required
[show_in_all_pdf] =>
[selected_option_id] => 499326000042690011
[value_formatted] => Yes
[search_entity] => salesorder
[data_type] => dropdown
[placeholder] => cf__ulrql_automation_required
[value] => Yes
[is_dependent_field] =>
)
[1] => Array
(
[field_id] => 499326000046252173
[customfield_id] => 499326000046252173
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 2
[label] => Delivery Driver
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_driver
[show_in_all_pdf] =>
[value_formatted] => Lewis Newman
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_driver
[value] => Lewis Newman
[is_dependent_field] =>
)
[2] => Array
(
[field_id] => 499326000047922345
[customfield_id] => 499326000047922345
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 3
[label] => Run Number
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_run_number
[show_in_all_pdf] =>
[value_formatted] => 1
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_run_number
[value] => 1
[is_dependent_field] =>
)
)
[custom_field_hash] => Array
(
[cf__ulrql_automation_required] => Yes
[cf__ulrql_automation_required_unformatted] => Yes
[cf_delivery_driver] => Lewis Newman
[cf_delivery_driver_unformatted] => Lewis Newman
[cf_run_number] => 1
[cf_run_number_unformatted] => 1
)
[template_id] => 499326000000000111
[template_name] => Standard Template
[page_width] => 8.27in
[page_height] => 11.69in
[orientation] => portrait
[template_type] => standard
[created_time] => 2025-10-21T16:23:03+0100
[last_modified_time] => 2025-10-21T16:24:35+0100
[created_by_id] => 499326000000047001
[created_date] => 2025-10-21
[last_modified_by_id] => 499326000044410001
[attachment_name] =>
[can_send_in_mail] =>
[salesperson_id] => 499326000026596043
[salesperson_name] => Alex Cullum
[merchant_id] =>
[merchant_name] =>
[pickup_location_id] =>
[discount] => 0
[discount_applied_on_amount] => 0
[is_adv_tracking_in_package] =>
[shipping_charge_taxes] => Array
(
)
[lock_details] => Array
(
[can_lock] =>
)
[locked_actions] => Array
(
)
[shipping_charge_tax_id] =>
[shipping_charge_tax_name] =>
[shipping_charge_tax_type] =>
[shipping_charge_tax_percentage] =>
[shipping_charge_tax_exemption_id] =>
[shipping_charge_tax_exemption_code] =>
[shipping_charge_tax] =>
[bcy_shipping_charge_tax] =>
[shipping_charge_exclusive_of_tax] => 0
[shipping_charge_inclusive_of_tax] => 0
[shipping_charge_tax_formatted] =>
[shipping_charge_exclusive_of_tax_formatted] => £0.00
[shipping_charge_inclusive_of_tax_formatted] => £0.00
[shipping_charge] => 0
[bcy_shipping_charge] => 0
[adjustment] => 0
[bcy_adjustment] => 0
[adjustment_description] => Adjustment
[roundoff_value] => 0
[transaction_rounding_type] => no_rounding
[rounding_mode] => round_half_up
[bcy_rounding_mode] => round_half_up
[sub_total] => 2
[bcy_sub_total] => 2
[sub_total_inclusive_of_tax] => 0
[sub_total_exclusive_of_discount] => 2
[discount_total] => 0
[bcy_discount_total] => 0
[discount_percent] => 0
[tax_total] => 0
[bcy_tax_total] => 0
[total] => 2
[computation_type] => basic
[bcy_total] => 2
[reverse_charge_tax_total] => 0
[taxes] => Array
(
)
[tds_calculation_type] => tds_item_level
[packages] => Array
(
)
[so_cycle_preference] => Array
(
[is_feature_enabled] => 1
[socycle_status] => not_triggered
[can_create_invoice] => 1
[can_create_package] =>
[can_create_shipment] =>
[shipment_preference] => Array
(
[default_carrier] =>
[send_notification] =>
[deliver_shipments] =>
)
[invoice_preference] => Array
(
[mark_as_sent] =>
[record_payment] =>
[payment_mode_id] => 499326000000000199
[payment_account_id] => 499326000000000349
)
)
[invoices] => Array
(
)
[can_show_kit_return] =>
[is_kit_partial_return] =>
[salesreturns] => Array
(
)
[payments] => Array
(
)
[creditnotes] => Array
(
)
[refunds] => Array
(
)
[contact] => Array
(
[contact_number] => CUS-00753
[customer_balance] => 0
[credit_limit] => 0
[unused_customer_credits] => 0
[is_credit_limit_migration_completed] => 1
)
[balance] => 2
[approvers_list] => Array
(
)
[is_scheduled_for_quick_shipment_create] =>
)
)
Webhook - sourceUpdated script called at 2025-10-21 16:24:40
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049899684","salesorder_no":"SO-00478","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000049899684","salesorder_no":"SO-00478","status":"open"}}
EXT ID: 499326000049899684
REF: SO-00478
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049899684 (REF SO-00478)
Updates pending to source for order: 499326000049899684
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-10-21 15:24:09.000Z,
source updated = 2025-10-21T16:24:35+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00478
Processing order: e2m18gg4fe0u6gr, ref SO-00478
Syncing SO-00478
Using default start and end times
Time window: 2025-10-21T06:00:00+01:00 - 2025-10-21T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 21/10/2025 16:24 - Local updated: 2025-10-21 15:23:00.000Z - Source updated: 2025-10-21 15:24:09.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00478
Done all.
Finished at 2025-10-21 16:24:42
Webhook - sourceUpdated script called at 2025-10-21 16:25:10
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049899684","salesorder_no":"SO-00478","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000049899684","salesorder_no":"SO-00478","status":"open"}}
EXT ID: 499326000049899684
REF: SO-00478
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049899684 (REF SO-00478)
Local order updated = 2025-10-21 15:24:09.000Z,
source updated = 2025-10-21T16:24:41+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00478
Processing order: e2m18gg4fe0u6gr, ref SO-00478
Syncing SO-00478
Using default start and end times
Time window: 2025-10-21T06:00:00+01:00 - 2025-10-21T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 21/10/2025 16:24 - Local updated: 2025-10-21 15:23:00.000Z - Source updated: 2025-10-21 15:24:09.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00478
Done all.
Finished at 2025-10-21 16:25:12
Webhook - destinationUpdated script called at 2025-10-21 16:26:09
JSON: {"payload":{"orderReference":"SO-00478","status":"DRIVING"},"timestamp":"2025-10-21T15:26:09Z"}
REF: SO-00478
Filter: refId="SO-00478"
200 response code sent
Local item: {"addons":[],"attachments":[],"collectionEnd":"","collectionId":"s93ukjlitoinx2e","collectionInstructions":"","collectionName":"orders","collectionStart":"","company":"1kmltj8w8rnhbfx","contactEmail":"alexcullum02@gmail.com","contactName":"Alex Cullum","contactNotes":"","contactPhone":"07566237123","created":"2025-10-21 15:23:09.477Z","custom":[],"customer":"8cpfwnil4yuq6em","deliveryCity":"Bristol","deliveryCounty":"","deliveryEnd":"2025-10-21 00:00:00.000Z","deliveryInstructions":"","deliveryName":"Alex Cullum","deliveryPostcode":"BS26 2QP","deliveryStart":"2025-10-21 00:00:00.000Z","deliveryStreet":"The Old Rectory, Church Lane\nBadgeworth, nr Axbridge","description":"","driverRef":"Lewis Newman","externalCustomerId":"499326000049463001","externalLocationId":"499326000049464010","externalOrderId":"499326000049899684","id":"e2m18gg4fe0u6gr","isCancelled":false,"isCollection":false,"isReadyToSync":true,"isScheduledCollection":false,"isScheduledDelivery":false,"isUntracked":false,"mergeRef":"","notes":"","orderedAt":"","overrideVolume":0,"overrideWeight":0,"paymentMethod":"","pendingSyncFromDestination":false,"pendingSyncFromSource":false,"pendingSyncToDestination":false,"pendingSyncToSource":false,"ref":"","refId":"SO-00478","requestedDeliveryDays":"","seqNo":"1","signature":"","signatureName":"","signatureTime":"","statusCollection":"","statusDelivery":"Pending","syncInCreated":"2025-10-21 15:23:03.000Z","syncInStatus":"confirmed","syncInUpdated":"2025-10-21 15:24:09.000Z","syncOutStatus":"UNALLOCATED","syncOutUpdated":"2025-10-21 15:23:00.000Z","timeWindows":[],"title":"Alex Cullum","totalValue":2,"totalWeight":0,"type":"","updated":"2025-10-21 15:25:11.587Z","vehicleRef":"WD25HWY","what3Words":""}
Updating local order from MaxOptra - current local order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => alexcullum02@gmail.com
[contactName] => Alex Cullum
[contactNotes] =>
[contactPhone] => 07566237123
[created] => 2025-10-21 15:23:09.477Z
[custom] => Array
(
)
[customer] => 8cpfwnil4yuq6em
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryEnd] => 2025-10-21 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Alex Cullum
[deliveryPostcode] => BS26 2QP
[deliveryStart] => 2025-10-21 00:00:00.000Z
[deliveryStreet] => The Old Rectory, Church Lane
Badgeworth, nr Axbridge
[description] =>
[driverRef] => Lewis Newman
[externalCustomerId] => 499326000049463001
[externalLocationId] => 499326000049464010
[externalOrderId] => 499326000049899684
[id] => e2m18gg4fe0u6gr
[isCancelled] =>
[isCollection] =>
[isReadyToSync] => 1
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] =>
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00478
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Pending
[syncInCreated] => 2025-10-21 15:23:03.000Z
[syncInStatus] => confirmed
[syncInUpdated] => 2025-10-21 15:24:09.000Z
[syncOutStatus] => UNALLOCATED
[syncOutUpdated] => 2025-10-21 15:23:00.000Z
[timeWindows] => Array
(
)
[title] => Alex Cullum
[totalValue] => 2
[totalWeight] => 0
[type] =>
[updated] => 2025-10-21 15:25:11.587Z
[vehicleRef] => WD25HWY
[what3Words] =>
)
MaxOptra order details: Array
(
[0] => Array
(
[referenceNumber] => SO-00478
[consignmentReference] =>
[distributionCentreReference] => Head Office
[distributionCentreName] => Head Office
[task] => DELIVERY
[priority] => NORMAL
[vehicleRequirements] => Array
(
)
[additionalInstructions] =>
[clientName] =>
[contactPerson] => Alex Cullum
[contactNumber] => 07566237123
[contactEmail] => alexcullum02@gmail.com
[additionalContactEmails] =>
[notificationPreferences] => Array
(
[allowSMS] => 1
[allowEmail] => 1
)
[customerLocation] => Array
(
[referenceNumber] => 499326000049464010
[name] => Alex Cullum, The Old Rectory, Church Lane
Badgeworth, nr Axbridge, Bristol
[address] => BS26 2QP
[w3wAddress] =>
[latitude] => 51.26857
[longitude] => -2.86747
)
[territoryReference] =>
[stopSequence] => ANY
[timeWindows] => Array
(
[0] => Array
(
[start] => 2025-10-21T06:00:00+01:00
[end] => 2025-10-21T20:00:00+01:00
)
)
[orderDate] =>
[capacity1] => 0
[capacity2] => 0
[price] =>
[operationDuration] => 300
[customFields] => Array
(
)
[orderItems] => Array
(
[0] => Array
(
[itemReferenceNumber] => 499326000047467258
[orderReferenceNumber] => SO-00478
[name] => test-item-2
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 2
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 2
[height] => 0
[width] => 0
[length] => 0
[weight] => 0
[volume] => 0
)
)
[widgetTrackingDetails] =>
)
)
MaxOptra schedule details: Array
(
[orderReferenceNumber] => SO-00478
[assignedDriverReference] => Lewis Newman
[assignedDriverName] => Lewis Newman
[assignedVehicleReference] => WD25HWY
[assignedVehicleName] => WD25HWY
[plannedArrivalTime] => 2025-10-21T16:47:33+01:00
[plannedCompletionTime] => 2025-10-21T16:52:33+01:00
[stopNumber] => 1
[totalStopsInRun] => 1
[runNumber] => 1
[runReference] => 9ccbfb7db70e4b968ace5441bc4146d0
[eta] => 2025-10-21T16:42:49+01:00
[factArrivalTimeGPS] =>
[factCompletionTimeGPS] =>
[factArrivalTimeReported] =>
[factCompletionTimeReported] =>
[failReason] =>
[failComment] =>
[status] => DRIVING
[driver] => Lewis Newman
[arrival_planned] => 2025-10-21T16:47:33+01:00
[arrival_estimated] => 2025-10-21T16:42:49+01:00
[arrival_actual] =>
[totalStops] => 1
)
Updating order: SO-00478
Update ID e2m18gg4fe0u6gr with: Array
(
[custom] => Array
(
)
[driverRef] => Lewis Newman
[vehicleRef] => WD25HWY
[seqNo] => 1
)
Updated order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => alexcullum02@gmail.com
[contactName] => Alex Cullum
[contactNotes] =>
[contactPhone] => 07566237123
[created] => 2025-10-21 15:23:09.477Z
[custom] => Array
(
)
[customer] => 8cpfwnil4yuq6em
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryEnd] => 2025-10-21 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Alex Cullum
[deliveryPostcode] => BS26 2QP
[deliveryStart] => 2025-10-21 00:00:00.000Z
[deliveryStreet] => The Old Rectory, Church Lane
Badgeworth, nr Axbridge
[description] =>
[driverRef] => Lewis Newman
[externalCustomerId] => 499326000049463001
[externalLocationId] => 499326000049464010
[externalOrderId] => 499326000049899684
[id] => e2m18gg4fe0u6gr
[isCancelled] =>
[isCollection] =>
[isReadyToSync] => 1
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] =>
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00478
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Pending
[syncInCreated] => 2025-10-21 15:23:03.000Z
[syncInStatus] => confirmed
[syncInUpdated] => 2025-10-21 15:24:09.000Z
[syncOutStatus] => UNALLOCATED
[syncOutUpdated] => 2025-10-21 15:23:00.000Z
[timeWindows] => Array
(
)
[title] => Alex Cullum
[totalValue] => 2
[totalWeight] => 0
[type] =>
[updated] => 2025-10-21 15:26:09.907Z
[vehicleRef] => WD25HWY
[what3Words] =>
)
Updating source from local order
Getting custom fields
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-07-18 02:35:52.065Z
[id] => nc7sndad5bhvi5x
[inCollection] => orders
[inField] => paymentMethod
[mappedField] => 7DCPayment
[name] => Payment method
[sourceField] =>
[syncFromSource] => 1
[syncToSource] =>
[type] => text
[updated] => 2025-07-18 02:35:52.065Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Processing field
Mapped field: 7DCEmpties
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
Processing field
Mapped field: 7DCEmptiesGas
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:03:34.631Z
[id] => pcn96l3kgkps4az
[inCollection] => orders
[inField] => driverRef
[mappedField] =>
[name] => Delivery driver
[sourceField] => cf_delivery_driver
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:03:34.631Z
)
Processing field
driverRef...
Value: Lewis Newman
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-08 04:52:51.399Z
[id] => hhrzcmytzs8p3kw
[inCollection] => orders
[inField] => seqNo
[mappedField] =>
[name] => Run number
[sourceField] => cf_run_number
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-08 04:52:51.399Z
)
Processing field
seqNo...
Value: 1
Finished processing field
Continue
Updating source order: Array
(
[custom_fields] => Array
(
[0] => Array
(
[api_name] => cf_delivery_driver
[value] => Lewis Newman
)
[1] => Array
(
[api_name] => cf_run_number
[value] => 1
)
)
)
Update result: Array
(
[code] => 0
[message] => Sales Order has been updated.
[salesorder] => Array
(
[salesorder_id] => 499326000049899684
[is_viewed_in_mail] =>
[mail_first_viewed_time] =>
[mail_last_viewed_time] =>
[documents] => Array
(
)
[zcrm_potential_id] =>
[zcrm_potential_name] =>
[salesorder_number] => SO-00478
[date] => 2025-10-21
[offline_created_date_with_time] =>
[tracking_url] =>
[has_discount] =>
[status] => confirmed
[color_code] =>
[current_sub_status_id] =>
[current_sub_status] => confirmed
[sub_statuses] => Array
(
)
[shipment_date] =>
[reference_number] =>
[customer_id] => 499326000049463001
[customer_name] => Alex Cullum
[contact_persons] => Array
(
[0] => 499326000049463003
)
[contact_persons_associated] => Array
(
[0] => Array
(
[contact_person_id] => 499326000049463003
[contact_person_email] => alexcullum02@gmail.com
[first_name] => Alex
[last_name] => Cullum
[mobile] => 07566237123
[communication_preference] => Array
(
[is_email_enabled] => 1
)
)
)
[contact_person_details] => Array
(
[0] => Array
(
[phone] => 07566237123
[mobile] => 07566237123
[last_name] => Cullum
[contact_person_id] => 499326000049463003
[first_name] => Alex
[email] => alexcullum02@gmail.com
)
)
[source] => Client
[contact_category] => uk
[is_taxable] =>
[has_shipping_address] => 1
[currency_id] => 499326000000000065
[currency_code] => GBP
[currency_symbol] => £
[exchange_rate] => 1
[is_discount_before_tax] => 1
[discount_type] => item_level
[estimate_id] =>
[delivery_method] =>
[delivery_method_id] =>
[vat_treatment] => uk
[is_inclusive_tax] =>
[tax_rounding] => entity_level
[tax_override_preference] => no_override
[order_status] => confirmed
[invoiced_status] => not_invoiced
[paid_status] => unpaid
[shipped_status] => pending
[sales_channel] => direct_sales
[sales_channel_formatted] => Direct Sales
[account_identifier] =>
[integration_id] =>
[is_dropshipped] =>
[is_backordered] =>
[is_manually_fulfilled] =>
[can_manually_fulfill] => 1
[has_qty_cancelled] =>
[is_reverse_charge_applied] =>
[shipping_details] => Array
(
)
[created_by_email] => alex@7daycellar.co.uk
[created_by_name] => Alex C
[branch_id] => 499326000023111007
[branch_name] => Head Office
[location_id] => 499326000023111007
[location_name] => Head Office
[total_quantity] => 1
[line_items] => Array
(
[0] => Array
(
[line_item_id] => 499326000049899694
[variant_id] => 499326000047467258
[track_batch_number] =>
[item_id] => 499326000047467258
[is_returnable] => 1
[product_id] => 499326000047467258
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] =>
[name] => test-item-2
[group_name] => test-item-2
[description] => this is a test Item
[item_order] => 1
[bcy_rate] => 2
[rate] => 2
[sales_rate] => 2
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] => box
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] =>
[tax_name] =>
[tax_type] => tax
[tax_percentage] => 0
[line_item_taxes] => Array
(
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 2
[item_sub_total] => 2
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] =>
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] =>
[image_type] =>
[document_id] =>
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 0
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] =>
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
)
[is_advanced_tracking_missing] =>
[entity_tags] =>
[submitter_id] =>
[approver_id] =>
[submitted_date] =>
[submitted_by] =>
[submitted_by_name] =>
[submitted_by_email] =>
[submitted_by_photo_url] =>
[price_precision] => 2
[is_emailed] =>
[has_unconfirmed_line_item] =>
[picklists] => Array
(
)
[purchaseorders] => Array
(
)
[locations] => Array
(
[0] => Array
(
[location_id] => 499326000023111007
[location_name] => Head Office
[status] => active
)
[1] => Array
(
[location_id] => 499326000041689155
[location_name] => Bason Bridge Brewery Duty Bonded Warehouse
[status] => active
)
)
[billing_address_id] => 499326000049463004
[billing_address] => Array
(
[address] =>
[street2] =>
[city] =>
[state] =>
[zip] =>
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[shipping_address_id] => 499326000049464010
[shipping_address] => Array
(
[company_name] =>
[address] => The Old Rectory, Church Lane
Badgeworth, nr Axbridge
[street2] =>
[city] => Bristol
[state] =>
[zip] => BS26 2QP
[country] => United Kingdom
[country_code] => GB
[county] =>
[state_code] =>
[fax] =>
[phone] => 07566237123
[attention] => Alex Cullum
)
[is_test_order] =>
[notes] => Account Name: 7 Day Cellar Ltd
Sort Code: 09-01-30
Account No: 10888924
[terms] =>
[payment_terms] => 0
[payment_terms_label] => Due On Receipt
[custom_fields] => Array
(
[0] => Array
(
[field_id] => 499326000042690007
[customfield_id] => 499326000042690007
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 1
[label] => Automation Required
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[is_color_code_supported] =>
[api_name] => cf__ulrql_automation_required
[show_in_all_pdf] =>
[selected_option_id] => 499326000042690011
[value_formatted] => Yes
[search_entity] => salesorder
[data_type] => dropdown
[placeholder] => cf__ulrql_automation_required
[value] => Yes
[is_dependent_field] =>
)
[1] => Array
(
[field_id] => 499326000046252173
[customfield_id] => 499326000046252173
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 2
[label] => Delivery Driver
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_driver
[show_in_all_pdf] =>
[value_formatted] => Lewis Newman
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_driver
[value] => Lewis Newman
[is_dependent_field] =>
)
[2] => Array
(
[field_id] => 499326000047922345
[customfield_id] => 499326000047922345
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 3
[label] => Run Number
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_run_number
[show_in_all_pdf] =>
[value_formatted] => 1
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_run_number
[value] => 1
[is_dependent_field] =>
)
)
[custom_field_hash] => Array
(
[cf__ulrql_automation_required] => Yes
[cf__ulrql_automation_required_unformatted] => Yes
[cf_delivery_driver] => Lewis Newman
[cf_delivery_driver_unformatted] => Lewis Newman
[cf_run_number] => 1
[cf_run_number_unformatted] => 1
)
[template_id] => 499326000000000111
[template_name] => Standard Template
[page_width] => 8.27in
[page_height] => 11.69in
[orientation] => portrait
[template_type] => standard
[created_time] => 2025-10-21T16:23:03+0100
[last_modified_time] => 2025-10-21T16:26:10+0100
[created_by_id] => 499326000000047001
[created_date] => 2025-10-21
[last_modified_by_id] => 499326000044410001
[attachment_name] =>
[can_send_in_mail] =>
[salesperson_id] => 499326000026596043
[salesperson_name] => Alex Cullum
[merchant_id] =>
[merchant_name] =>
[pickup_location_id] =>
[discount] => 0
[discount_applied_on_amount] => 0
[is_adv_tracking_in_package] =>
[shipping_charge_taxes] => Array
(
)
[lock_details] => Array
(
[can_lock] =>
)
[locked_actions] => Array
(
)
[shipping_charge_tax_id] =>
[shipping_charge_tax_name] =>
[shipping_charge_tax_type] =>
[shipping_charge_tax_percentage] =>
[shipping_charge_tax_exemption_id] =>
[shipping_charge_tax_exemption_code] =>
[shipping_charge_tax] =>
[bcy_shipping_charge_tax] =>
[shipping_charge_exclusive_of_tax] => 0
[shipping_charge_inclusive_of_tax] => 0
[shipping_charge_tax_formatted] =>
[shipping_charge_exclusive_of_tax_formatted] => £0.00
[shipping_charge_inclusive_of_tax_formatted] => £0.00
[shipping_charge] => 0
[bcy_shipping_charge] => 0
[adjustment] => 0
[bcy_adjustment] => 0
[adjustment_description] => Adjustment
[roundoff_value] => 0
[transaction_rounding_type] => no_rounding
[rounding_mode] => round_half_up
[bcy_rounding_mode] => round_half_up
[sub_total] => 2
[bcy_sub_total] => 2
[sub_total_inclusive_of_tax] => 0
[sub_total_exclusive_of_discount] => 2
[discount_total] => 0
[bcy_discount_total] => 0
[discount_percent] => 0
[tax_total] => 0
[bcy_tax_total] => 0
[total] => 2
[computation_type] => basic
[bcy_total] => 2
[reverse_charge_tax_total] => 0
[taxes] => Array
(
)
[tds_calculation_type] => tds_item_level
[packages] => Array
(
)
[so_cycle_preference] => Array
(
[is_feature_enabled] => 1
[socycle_status] => not_triggered
[can_create_invoice] => 1
[can_create_package] =>
[can_create_shipment] =>
[shipment_preference] => Array
(
[default_carrier] =>
[send_notification] =>
[deliver_shipments] =>
)
[invoice_preference] => Array
(
[mark_as_sent] =>
[record_payment] =>
[payment_mode_id] => 499326000000000199
[payment_account_id] => 499326000000000349
)
)
[invoices] => Array
(
)
[can_show_kit_return] =>
[is_kit_partial_return] =>
[salesreturns] => Array
(
)
[payments] => Array
(
)
[creditnotes] => Array
(
)
[refunds] => Array
(
)
[contact] => Array
(
[contact_number] => CUS-00753
[customer_balance] => 0
[credit_limit] => 0
[unused_customer_credits] => 0
[is_credit_limit_migration_completed] => 1
)
[balance] => 2
[approvers_list] => Array
(
)
[is_scheduled_for_quick_shipment_create] =>
)
)
Webhook - sourceUpdated script called at 2025-10-21 16:26:11
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049899684","salesorder_no":"SO-00478","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000049899684","salesorder_no":"SO-00478","status":"open"}}
EXT ID: 499326000049899684
REF: SO-00478
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049899684 (REF SO-00478)
Local order updated = 2025-10-21 15:24:09.000Z,
source updated = 2025-10-21T16:26:10+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] => 07566237123
[contactEmail] => alexcullum02@gmail.com
[contactName] => Alex Cullum
[notes] =>
[externalOrderId] => 499326000049899684
[refId] => SO-00478
[externalCustomerId] => 499326000049463001
[externalLocationId] => 499326000049464010
[title] => Alex Cullum
[deliveryStart] => 2025-10-21
[deliveryEnd] => 2025-10-21
[totalValue] => 2
[totalWeight] => 0
[syncInCreated] => 2025-10-21T16:23:03+0100
[syncInUpdated] => 2025-10-21T16:26:10+0100
[syncInStatus] => confirmed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000049899694
[externalProductId] => 499326000047467258
[sku] =>
[title] => test-item-2
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 2
[price] => 2
)
)
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
Badgeworth, nr Axbridge
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] => 07566237123
[contactEmail] => alexcullum02@gmail.com
[contactName] => Alex Cullum
[notes] =>
[externalOrderId] => 499326000049899684
[refId] => SO-00478
[externalCustomerId] => 499326000049463001
[externalLocationId] => 499326000049464010
[title] => Alex Cullum
[deliveryStart] => 2025-10-21
[deliveryEnd] => 2025-10-21
[totalValue] => 2
[totalWeight] => 0
[syncInCreated] => 2025-10-21T16:23:03+0100
[syncInUpdated] => 2025-10-21T16:26:10+0100
[syncInStatus] => confirmed
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
Badgeworth, nr Axbridge
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
[syncOutUpdated] => 2025-10-21T16:26:12+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Alex Cullum
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000049463001
Getting products
Updating product 499326000047467258
Updating order product 499326000049899694
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00478
Processing order: e2m18gg4fe0u6gr, ref SO-00478
Syncing SO-00478
Using default start and end times
Time window: 2025-10-21T06:00:00+01:00 - 2025-10-21T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 21/10/2025 16:26 - Local updated: 2025-10-21 15:26:12.000Z - Source updated: 2025-10-21 15:26:10.000Z
Changed? yes
Current MaxOptra status: DRIVING
Completed? no
Previous status: UNALLOCATED
Status changed - mark for sync back to source
Is allocated? yes
MO delivery date: 2025-10-21, Local delivery date: 2025-10-21
Local updated: 2025-10-21 15:26:12.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Communication error with MaxOptra (412)
orders/SO-00478
https://7daycellar.maxoptra.com/api/v6/orders/SO-00478
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000049464010
Array
(
[referenceNumber] => 499326000049464010
[name] => Alex Cullum, The Old Rectory, Church Lane
Badgeworth, nr Axbridge, Bristol
[address] => BS26 2QP
)
499326000049464010
Error updating SO-00478
"{\"data\":null,\"errors\":[{\"code\":\"ORDER_IS_LOCKED\",\"name\":\"The order is locked\",\"details\":null,\"field\":null}],\"warnings\":[]}"
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00478
Done all.
Finished at 2025-10-21 16:26:13
Webhook - destinationUpdated script called at 2025-10-21 16:26:19
JSON: {"payload":{"orderReference":"SO-00478","status":"ARRIVED"},"timestamp":"2025-10-21T15:26:19Z"}
REF: SO-00478
Filter: refId="SO-00478"
200 response code sent
Local item: {"addons":[],"attachments":[],"collectionEnd":"","collectionId":"s93ukjlitoinx2e","collectionInstructions":"","collectionName":"orders","collectionStart":"","company":"1kmltj8w8rnhbfx","contactEmail":"alexcullum02@gmail.com","contactName":"Alex Cullum","contactNotes":"","contactPhone":"07566237123","created":"2025-10-21 15:23:09.477Z","custom":[],"customer":"8cpfwnil4yuq6em","deliveryCity":"Bristol","deliveryCounty":"","deliveryEnd":"2025-10-21 00:00:00.000Z","deliveryInstructions":"","deliveryName":"Alex Cullum","deliveryPostcode":"BS26 2QP","deliveryStart":"2025-10-21 00:00:00.000Z","deliveryStreet":"The Old Rectory, Church Lane\nBadgeworth, nr Axbridge","description":"","driverRef":"Lewis Newman","externalCustomerId":"499326000049463001","externalLocationId":"499326000049464010","externalOrderId":"499326000049899684","id":"e2m18gg4fe0u6gr","isCancelled":false,"isCollection":false,"isReadyToSync":false,"isScheduledCollection":false,"isScheduledDelivery":false,"isUntracked":false,"mergeRef":"","notes":"","orderedAt":"","overrideVolume":0,"overrideWeight":0,"paymentMethod":"","pendingSyncFromDestination":false,"pendingSyncFromSource":false,"pendingSyncToDestination":true,"pendingSyncToSource":true,"ref":"","refId":"SO-00478","requestedDeliveryDays":"","seqNo":"1","signature":"","signatureName":"","signatureTime":"","statusCollection":"","statusDelivery":"In transit","syncInCreated":"2025-10-21 15:23:03.000Z","syncInStatus":"confirmed","syncInUpdated":"2025-10-21 15:26:10.000Z","syncOutStatus":"DRIVING","syncOutUpdated":"2025-10-21 15:26:00.000Z","timeWindows":[],"title":"Alex Cullum","totalValue":2,"totalWeight":0,"type":"","updated":"2025-10-21 15:26:13.941Z","vehicleRef":"WD25HWY","what3Words":""}
Updating local order from MaxOptra - current local order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => alexcullum02@gmail.com
[contactName] => Alex Cullum
[contactNotes] =>
[contactPhone] => 07566237123
[created] => 2025-10-21 15:23:09.477Z
[custom] => Array
(
)
[customer] => 8cpfwnil4yuq6em
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryEnd] => 2025-10-21 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Alex Cullum
[deliveryPostcode] => BS26 2QP
[deliveryStart] => 2025-10-21 00:00:00.000Z
[deliveryStreet] => The Old Rectory, Church Lane
Badgeworth, nr Axbridge
[description] =>
[driverRef] => Lewis Newman
[externalCustomerId] => 499326000049463001
[externalLocationId] => 499326000049464010
[externalOrderId] => 499326000049899684
[id] => e2m18gg4fe0u6gr
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] => 1
[ref] =>
[refId] => SO-00478
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => In transit
[syncInCreated] => 2025-10-21 15:23:03.000Z
[syncInStatus] => confirmed
[syncInUpdated] => 2025-10-21 15:26:10.000Z
[syncOutStatus] => DRIVING
[syncOutUpdated] => 2025-10-21 15:26:00.000Z
[timeWindows] => Array
(
)
[title] => Alex Cullum
[totalValue] => 2
[totalWeight] => 0
[type] =>
[updated] => 2025-10-21 15:26:13.941Z
[vehicleRef] => WD25HWY
[what3Words] =>
)
MaxOptra order details: Array
(
[0] => Array
(
[referenceNumber] => SO-00478
[consignmentReference] =>
[distributionCentreReference] => Head Office
[distributionCentreName] => Head Office
[task] => DELIVERY
[priority] => NORMAL
[vehicleRequirements] => Array
(
)
[additionalInstructions] =>
[clientName] =>
[contactPerson] => Alex Cullum
[contactNumber] => 07566237123
[contactEmail] => alexcullum02@gmail.com
[additionalContactEmails] =>
[notificationPreferences] => Array
(
[allowSMS] => 1
[allowEmail] => 1
)
[customerLocation] => Array
(
[referenceNumber] => 499326000049464010
[name] => Alex Cullum, The Old Rectory, Church Lane
Badgeworth, nr Axbridge, Bristol
[address] => BS26 2QP
[w3wAddress] =>
[latitude] => 51.26857
[longitude] => -2.86747
)
[territoryReference] =>
[stopSequence] => ANY
[timeWindows] => Array
(
[0] => Array
(
[start] => 2025-10-21T06:00:00+01:00
[end] => 2025-10-21T20:00:00+01:00
)
)
[orderDate] =>
[capacity1] => 0
[capacity2] => 0
[price] =>
[operationDuration] => 300
[customFields] => Array
(
)
[orderItems] => Array
(
[0] => Array
(
[itemReferenceNumber] => 499326000047467258
[orderReferenceNumber] => SO-00478
[name] => test-item-2
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 2
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 2
[height] => 0
[width] => 0
[length] => 0
[weight] => 0
[volume] => 0
)
)
[widgetTrackingDetails] =>
)
)
MaxOptra schedule details: Array
(
[orderReferenceNumber] => SO-00478
[assignedDriverReference] => Lewis Newman
[assignedDriverName] => Lewis Newman
[assignedVehicleReference] => WD25HWY
[assignedVehicleName] => WD25HWY
[plannedArrivalTime] => 2025-10-21T16:47:33+01:00
[plannedCompletionTime] => 2025-10-21T16:52:33+01:00
[stopNumber] => 1
[totalStopsInRun] => 1
[runNumber] => 1
[runReference] => 9ccbfb7db70e4b968ace5441bc4146d0
[eta] => 2025-10-21T16:42:49+01:00
[factArrivalTimeGPS] =>
[factCompletionTimeGPS] =>
[factArrivalTimeReported] => 2025-10-21T16:26:19+01:00
[factCompletionTimeReported] =>
[failReason] =>
[failComment] =>
[status] => ARRIVED
[driver] => Lewis Newman
[arrival_planned] => 2025-10-21T16:47:33+01:00
[arrival_estimated] => 2025-10-21T16:42:49+01:00
[arrival_actual] => 2025-10-21T16:26:19+01:00
[totalStops] => 1
)
Updating order: SO-00478
Update ID e2m18gg4fe0u6gr with: Array
(
[custom] => Array
(
)
[driverRef] => Lewis Newman
[vehicleRef] => WD25HWY
[seqNo] => 1
)
Updated order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => alexcullum02@gmail.com
[contactName] => Alex Cullum
[contactNotes] =>
[contactPhone] => 07566237123
[created] => 2025-10-21 15:23:09.477Z
[custom] => Array
(
)
[customer] => 8cpfwnil4yuq6em
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryEnd] => 2025-10-21 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Alex Cullum
[deliveryPostcode] => BS26 2QP
[deliveryStart] => 2025-10-21 00:00:00.000Z
[deliveryStreet] => The Old Rectory, Church Lane
Badgeworth, nr Axbridge
[description] =>
[driverRef] => Lewis Newman
[externalCustomerId] => 499326000049463001
[externalLocationId] => 499326000049464010
[externalOrderId] => 499326000049899684
[id] => e2m18gg4fe0u6gr
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] => 1
[ref] =>
[refId] => SO-00478
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => In transit
[syncInCreated] => 2025-10-21 15:23:03.000Z
[syncInStatus] => confirmed
[syncInUpdated] => 2025-10-21 15:26:10.000Z
[syncOutStatus] => DRIVING
[syncOutUpdated] => 2025-10-21 15:26:00.000Z
[timeWindows] => Array
(
)
[title] => Alex Cullum
[totalValue] => 2
[totalWeight] => 0
[type] =>
[updated] => 2025-10-21 15:26:20.016Z
[vehicleRef] => WD25HWY
[what3Words] =>
)
Updating source from local order
Getting custom fields
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-07-18 02:35:52.065Z
[id] => nc7sndad5bhvi5x
[inCollection] => orders
[inField] => paymentMethod
[mappedField] => 7DCPayment
[name] => Payment method
[sourceField] =>
[syncFromSource] => 1
[syncToSource] =>
[type] => text
[updated] => 2025-07-18 02:35:52.065Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Processing field
Mapped field: 7DCEmpties
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
Processing field
Mapped field: 7DCEmptiesGas
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:03:34.631Z
[id] => pcn96l3kgkps4az
[inCollection] => orders
[inField] => driverRef
[mappedField] =>
[name] => Delivery driver
[sourceField] => cf_delivery_driver
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:03:34.631Z
)
Processing field
driverRef...
Value: Lewis Newman
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-08 04:52:51.399Z
[id] => hhrzcmytzs8p3kw
[inCollection] => orders
[inField] => seqNo
[mappedField] =>
[name] => Run number
[sourceField] => cf_run_number
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-08 04:52:51.399Z
)
Processing field
seqNo...
Value: 1
Finished processing field
Continue
Updating source order: Array
(
[custom_fields] => Array
(
[0] => Array
(
[api_name] => cf_delivery_driver
[value] => Lewis Newman
)
[1] => Array
(
[api_name] => cf_run_number
[value] => 1
)
)
)
Update result: Array
(
[code] => 0
[message] => Sales Order has been updated.
[salesorder] => Array
(
[salesorder_id] => 499326000049899684
[is_viewed_in_mail] =>
[mail_first_viewed_time] =>
[mail_last_viewed_time] =>
[documents] => Array
(
)
[zcrm_potential_id] =>
[zcrm_potential_name] =>
[salesorder_number] => SO-00478
[date] => 2025-10-21
[offline_created_date_with_time] =>
[tracking_url] =>
[has_discount] =>
[status] => confirmed
[color_code] =>
[current_sub_status_id] =>
[current_sub_status] => confirmed
[sub_statuses] => Array
(
)
[shipment_date] =>
[reference_number] =>
[customer_id] => 499326000049463001
[customer_name] => Alex Cullum
[contact_persons] => Array
(
[0] => 499326000049463003
)
[contact_persons_associated] => Array
(
[0] => Array
(
[contact_person_id] => 499326000049463003
[contact_person_email] => alexcullum02@gmail.com
[first_name] => Alex
[last_name] => Cullum
[mobile] => 07566237123
[communication_preference] => Array
(
[is_email_enabled] => 1
)
)
)
[contact_person_details] => Array
(
[0] => Array
(
[phone] => 07566237123
[mobile] => 07566237123
[last_name] => Cullum
[contact_person_id] => 499326000049463003
[first_name] => Alex
[email] => alexcullum02@gmail.com
)
)
[source] => Client
[contact_category] => uk
[is_taxable] =>
[has_shipping_address] => 1
[currency_id] => 499326000000000065
[currency_code] => GBP
[currency_symbol] => £
[exchange_rate] => 1
[is_discount_before_tax] => 1
[discount_type] => item_level
[estimate_id] =>
[delivery_method] =>
[delivery_method_id] =>
[vat_treatment] => uk
[is_inclusive_tax] =>
[tax_rounding] => entity_level
[tax_override_preference] => no_override
[order_status] => confirmed
[invoiced_status] => not_invoiced
[paid_status] => unpaid
[shipped_status] => pending
[sales_channel] => direct_sales
[sales_channel_formatted] => Direct Sales
[account_identifier] =>
[integration_id] =>
[is_dropshipped] =>
[is_backordered] =>
[is_manually_fulfilled] =>
[can_manually_fulfill] => 1
[has_qty_cancelled] =>
[is_reverse_charge_applied] =>
[shipping_details] => Array
(
)
[created_by_email] => alex@7daycellar.co.uk
[created_by_name] => Alex C
[branch_id] => 499326000023111007
[branch_name] => Head Office
[location_id] => 499326000023111007
[location_name] => Head Office
[total_quantity] => 1
[line_items] => Array
(
[0] => Array
(
[line_item_id] => 499326000049899694
[variant_id] => 499326000047467258
[track_batch_number] =>
[item_id] => 499326000047467258
[is_returnable] => 1
[product_id] => 499326000047467258
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] =>
[name] => test-item-2
[group_name] => test-item-2
[description] => this is a test Item
[item_order] => 1
[bcy_rate] => 2
[rate] => 2
[sales_rate] => 2
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] => box
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] =>
[tax_name] =>
[tax_type] => tax
[tax_percentage] => 0
[line_item_taxes] => Array
(
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 2
[item_sub_total] => 2
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] =>
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] =>
[image_type] =>
[document_id] =>
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 0
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] =>
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
)
[is_advanced_tracking_missing] =>
[entity_tags] =>
[submitter_id] =>
[approver_id] =>
[submitted_date] =>
[submitted_by] =>
[submitted_by_name] =>
[submitted_by_email] =>
[submitted_by_photo_url] =>
[price_precision] => 2
[is_emailed] =>
[has_unconfirmed_line_item] =>
[picklists] => Array
(
)
[purchaseorders] => Array
(
)
[locations] => Array
(
[0] => Array
(
[location_id] => 499326000023111007
[location_name] => Head Office
[status] => active
)
[1] => Array
(
[location_id] => 499326000041689155
[location_name] => Bason Bridge Brewery Duty Bonded Warehouse
[status] => active
)
)
[billing_address_id] => 499326000049463004
[billing_address] => Array
(
[address] =>
[street2] =>
[city] =>
[state] =>
[zip] =>
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[shipping_address_id] => 499326000049464010
[shipping_address] => Array
(
[company_name] =>
[address] => The Old Rectory, Church Lane
Badgeworth, nr Axbridge
[street2] =>
[city] => Bristol
[state] =>
[zip] => BS26 2QP
[country] => United Kingdom
[country_code] => GB
[county] =>
[state_code] =>
[fax] =>
[phone] => 07566237123
[attention] => Alex Cullum
)
[is_test_order] =>
[notes] => Account Name: 7 Day Cellar Ltd
Sort Code: 09-01-30
Account No: 10888924
[terms] =>
[payment_terms] => 0
[payment_terms_label] => Due On Receipt
[custom_fields] => Array
(
[0] => Array
(
[field_id] => 499326000042690007
[customfield_id] => 499326000042690007
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 1
[label] => Automation Required
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[is_color_code_supported] =>
[api_name] => cf__ulrql_automation_required
[show_in_all_pdf] =>
[selected_option_id] => 499326000042690011
[value_formatted] => Yes
[search_entity] => salesorder
[data_type] => dropdown
[placeholder] => cf__ulrql_automation_required
[value] => Yes
[is_dependent_field] =>
)
[1] => Array
(
[field_id] => 499326000046252173
[customfield_id] => 499326000046252173
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 2
[label] => Delivery Driver
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_driver
[show_in_all_pdf] =>
[value_formatted] => Lewis Newman
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_driver
[value] => Lewis Newman
[is_dependent_field] =>
)
[2] => Array
(
[field_id] => 499326000047922345
[customfield_id] => 499326000047922345
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 3
[label] => Run Number
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_run_number
[show_in_all_pdf] =>
[value_formatted] => 1
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_run_number
[value] => 1
[is_dependent_field] =>
)
)
[custom_field_hash] => Array
(
[cf__ulrql_automation_required] => Yes
[cf__ulrql_automation_required_unformatted] => Yes
[cf_delivery_driver] => Lewis Newman
[cf_delivery_driver_unformatted] => Lewis Newman
[cf_run_number] => 1
[cf_run_number_unformatted] => 1
)
[template_id] => 499326000000000111
[template_name] => Standard Template
[page_width] => 8.27in
[page_height] => 11.69in
[orientation] => portrait
[template_type] => standard
[created_time] => 2025-10-21T16:23:03+0100
[last_modified_time] => 2025-10-21T16:26:20+0100
[created_by_id] => 499326000000047001
[created_date] => 2025-10-21
[last_modified_by_id] => 499326000044410001
[attachment_name] =>
[can_send_in_mail] =>
[salesperson_id] => 499326000026596043
[salesperson_name] => Alex Cullum
[merchant_id] =>
[merchant_name] =>
[pickup_location_id] =>
[discount] => 0
[discount_applied_on_amount] => 0
[is_adv_tracking_in_package] =>
[shipping_charge_taxes] => Array
(
)
[lock_details] => Array
(
[can_lock] =>
)
[locked_actions] => Array
(
)
[shipping_charge_tax_id] =>
[shipping_charge_tax_name] =>
[shipping_charge_tax_type] =>
[shipping_charge_tax_percentage] =>
[shipping_charge_tax_exemption_id] =>
[shipping_charge_tax_exemption_code] =>
[shipping_charge_tax] =>
[bcy_shipping_charge_tax] =>
[shipping_charge_exclusive_of_tax] => 0
[shipping_charge_inclusive_of_tax] => 0
[shipping_charge_tax_formatted] =>
[shipping_charge_exclusive_of_tax_formatted] => £0.00
[shipping_charge_inclusive_of_tax_formatted] => £0.00
[shipping_charge] => 0
[bcy_shipping_charge] => 0
[adjustment] => 0
[bcy_adjustment] => 0
[adjustment_description] => Adjustment
[roundoff_value] => 0
[transaction_rounding_type] => no_rounding
[rounding_mode] => round_half_up
[bcy_rounding_mode] => round_half_up
[sub_total] => 2
[bcy_sub_total] => 2
[sub_total_inclusive_of_tax] => 0
[sub_total_exclusive_of_discount] => 2
[discount_total] => 0
[bcy_discount_total] => 0
[discount_percent] => 0
[tax_total] => 0
[bcy_tax_total] => 0
[total] => 2
[computation_type] => basic
[bcy_total] => 2
[reverse_charge_tax_total] => 0
[taxes] => Array
(
)
[tds_calculation_type] => tds_item_level
[packages] => Array
(
)
[so_cycle_preference] => Array
(
[is_feature_enabled] => 1
[socycle_status] => not_triggered
[can_create_invoice] => 1
[can_create_package] =>
[can_create_shipment] =>
[shipment_preference] => Array
(
[default_carrier] =>
[send_notification] =>
[deliver_shipments] =>
)
[invoice_preference] => Array
(
[mark_as_sent] =>
[record_payment] =>
[payment_mode_id] => 499326000000000199
[payment_account_id] => 499326000000000349
)
)
[invoices] => Array
(
)
[can_show_kit_return] =>
[is_kit_partial_return] =>
[salesreturns] => Array
(
)
[payments] => Array
(
)
[creditnotes] => Array
(
)
[refunds] => Array
(
)
[contact] => Array
(
[contact_number] => CUS-00753
[customer_balance] => 0
[credit_limit] => 0
[unused_customer_credits] => 0
[is_credit_limit_migration_completed] => 1
)
[balance] => 2
[approvers_list] => Array
(
)
[is_scheduled_for_quick_shipment_create] =>
)
)
Webhook - sourceUpdated script called at 2025-10-21 16:26:41
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049899684","salesorder_no":"SO-00478","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000049899684","salesorder_no":"SO-00478","status":"open"}}
EXT ID: 499326000049899684
REF: SO-00478
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049899684 (REF SO-00478)
Updates pending to source for order: 499326000049899684
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-10-21 15:26:10.000Z,
source updated = 2025-10-21T16:26:20+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00478
Processing order: e2m18gg4fe0u6gr, ref SO-00478
Syncing SO-00478
Using default start and end times
Time window: 2025-10-21T06:00:00+01:00 - 2025-10-21T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 21/10/2025 16:26 - Local updated: 2025-10-21 15:26:00.000Z - Source updated: 2025-10-21 15:26:10.000Z
Changed? yes
Current MaxOptra status: ARRIVED
Completed? no
Previous status: DRIVING
Status changed - mark for sync back to source
Is allocated? yes
MO delivery date: 2025-10-21, Local delivery date: 2025-10-21
Local updated: 2025-10-21 15:26:00.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Communication error with MaxOptra (412)
orders/SO-00478
https://7daycellar.maxoptra.com/api/v6/orders/SO-00478
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000049464010
Array
(
[referenceNumber] => 499326000049464010
[name] => Alex Cullum, The Old Rectory, Church Lane
Badgeworth, nr Axbridge, Bristol
[address] => BS26 2QP
)
499326000049464010
Error updating SO-00478
"{\"data\":null,\"errors\":[{\"code\":\"ORDER_IS_LOCKED\",\"name\":\"The order is locked\",\"details\":null,\"field\":null}],\"warnings\":[]}"
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00478
Done all.
Finished at 2025-10-21 16:26:44
Webhook - destinationUpdated script called at 2025-10-21 16:26:54
JSON: {"payload":{"orderReference":"SO-00478","status":"COMPLETED"},"timestamp":"2025-10-21T15:26:53Z"}
REF: SO-00478
Filter: refId="SO-00478"
200 response code sent
Local item: {"addons":[],"attachments":[],"collectionEnd":"","collectionId":"s93ukjlitoinx2e","collectionInstructions":"","collectionName":"orders","collectionStart":"","company":"1kmltj8w8rnhbfx","contactEmail":"alexcullum02@gmail.com","contactName":"Alex Cullum","contactNotes":"","contactPhone":"07566237123","created":"2025-10-21 15:23:09.477Z","custom":[],"customer":"8cpfwnil4yuq6em","deliveryCity":"Bristol","deliveryCounty":"","deliveryEnd":"2025-10-21 00:00:00.000Z","deliveryInstructions":"","deliveryName":"Alex Cullum","deliveryPostcode":"BS26 2QP","deliveryStart":"2025-10-21 00:00:00.000Z","deliveryStreet":"The Old Rectory, Church Lane\nBadgeworth, nr Axbridge","description":"","driverRef":"Lewis Newman","externalCustomerId":"499326000049463001","externalLocationId":"499326000049464010","externalOrderId":"499326000049899684","id":"e2m18gg4fe0u6gr","isCancelled":false,"isCollection":false,"isReadyToSync":false,"isScheduledCollection":false,"isScheduledDelivery":false,"isUntracked":false,"mergeRef":"","notes":"","orderedAt":"","overrideVolume":0,"overrideWeight":0,"paymentMethod":"","pendingSyncFromDestination":false,"pendingSyncFromSource":false,"pendingSyncToDestination":true,"pendingSyncToSource":true,"ref":"","refId":"SO-00478","requestedDeliveryDays":"","seqNo":"1","signature":"","signatureName":"","signatureTime":"","statusCollection":"","statusDelivery":"Delivered","syncInCreated":"2025-10-21 15:23:03.000Z","syncInStatus":"confirmed","syncInUpdated":"2025-10-21 15:26:10.000Z","syncOutStatus":"ARRIVED","syncOutUpdated":"2025-10-21 15:26:00.000Z","timeWindows":[],"title":"Alex Cullum","totalValue":2,"totalWeight":0,"type":"","updated":"2025-10-21 15:26:44.540Z","vehicleRef":"WD25HWY","what3Words":""}
Updating local order from MaxOptra - current local order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => alexcullum02@gmail.com
[contactName] => Alex Cullum
[contactNotes] =>
[contactPhone] => 07566237123
[created] => 2025-10-21 15:23:09.477Z
[custom] => Array
(
)
[customer] => 8cpfwnil4yuq6em
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryEnd] => 2025-10-21 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Alex Cullum
[deliveryPostcode] => BS26 2QP
[deliveryStart] => 2025-10-21 00:00:00.000Z
[deliveryStreet] => The Old Rectory, Church Lane
Badgeworth, nr Axbridge
[description] =>
[driverRef] => Lewis Newman
[externalCustomerId] => 499326000049463001
[externalLocationId] => 499326000049464010
[externalOrderId] => 499326000049899684
[id] => e2m18gg4fe0u6gr
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] => 1
[ref] =>
[refId] => SO-00478
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Delivered
[syncInCreated] => 2025-10-21 15:23:03.000Z
[syncInStatus] => confirmed
[syncInUpdated] => 2025-10-21 15:26:10.000Z
[syncOutStatus] => ARRIVED
[syncOutUpdated] => 2025-10-21 15:26:00.000Z
[timeWindows] => Array
(
)
[title] => Alex Cullum
[totalValue] => 2
[totalWeight] => 0
[type] =>
[updated] => 2025-10-21 15:26:44.540Z
[vehicleRef] => WD25HWY
[what3Words] =>
)
MaxOptra order details: Array
(
[0] => Array
(
[referenceNumber] => SO-00478
[consignmentReference] =>
[distributionCentreReference] => Head Office
[distributionCentreName] => Head Office
[task] => DELIVERY
[priority] => NORMAL
[vehicleRequirements] => Array
(
)
[additionalInstructions] =>
[clientName] =>
[contactPerson] => Alex Cullum
[contactNumber] => 07566237123
[contactEmail] => alexcullum02@gmail.com
[additionalContactEmails] =>
[notificationPreferences] => Array
(
[allowSMS] => 1
[allowEmail] => 1
)
[customerLocation] => Array
(
[referenceNumber] => 499326000049464010
[name] => Alex Cullum, The Old Rectory, Church Lane
Badgeworth, nr Axbridge, Bristol
[address] => BS26 2QP
[w3wAddress] =>
[latitude] => 51.26857
[longitude] => -2.86747
)
[territoryReference] =>
[stopSequence] => ANY
[timeWindows] => Array
(
[0] => Array
(
[start] => 2025-10-21T06:00:00+01:00
[end] => 2025-10-21T20:00:00+01:00
)
)
[orderDate] =>
[capacity1] => 0
[capacity2] => 0
[price] =>
[operationDuration] => 300
[customFields] => Array
(
[7DCEmpties] => 1
)
[orderItems] => Array
(
[0] => Array
(
[itemReferenceNumber] => 499326000047467258
[orderReferenceNumber] => SO-00478
[name] => test-item-2
[description] =>
[barcode] =>
[type] =>
[status] => CHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 2
[plannedQuantity] => 1
[factQuantity] => 1
[totalAmount] => 2
[height] => 0
[width] => 0
[length] => 0
[weight] => 0
[volume] => 0
)
)
[widgetTrackingDetails] =>
)
)
MaxOptra schedule details: Array
(
[orderReferenceNumber] => SO-00478
[assignedDriverReference] => Lewis Newman
[assignedDriverName] => Lewis Newman
[assignedVehicleReference] => WD25HWY
[assignedVehicleName] => WD25HWY
[plannedArrivalTime] => 2025-10-21T16:47:33+01:00
[plannedCompletionTime] => 2025-10-21T16:52:33+01:00
[stopNumber] => 1
[totalStopsInRun] => 1
[runNumber] => 1
[runReference] => 9ccbfb7db70e4b968ace5441bc4146d0
[eta] => 2025-10-21T16:42:49+01:00
[factArrivalTimeGPS] =>
[factCompletionTimeGPS] =>
[factArrivalTimeReported] => 2025-10-21T16:26:19+01:00
[factCompletionTimeReported] => 2025-10-21T16:26:53+01:00
[failReason] =>
[failComment] =>
[status] => COMPLETED
[driver] => Lewis Newman
[arrival_planned] => 2025-10-21T16:47:33+01:00
[arrival_estimated] => 2025-10-21T16:42:49+01:00
[arrival_actual] => 2025-10-21T16:26:19+01:00
[totalStops] => 1
)
Updating order: SO-00478
Update ID e2m18gg4fe0u6gr with: Array
(
[custom] => Array
(
[0] => Array
(
[id] => yt2l2o3cacu43wf
[value] => 1
)
)
[driverRef] => Lewis Newman
[vehicleRef] => WD25HWY
[seqNo] => 1
)
Updated order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => alexcullum02@gmail.com
[contactName] => Alex Cullum
[contactNotes] =>
[contactPhone] => 07566237123
[created] => 2025-10-21 15:23:09.477Z
[custom] => Array
(
[0] => stdClass Object
(
[id] => yt2l2o3cacu43wf
[value] => 1
)
)
[customer] => 8cpfwnil4yuq6em
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryEnd] => 2025-10-21 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Alex Cullum
[deliveryPostcode] => BS26 2QP
[deliveryStart] => 2025-10-21 00:00:00.000Z
[deliveryStreet] => The Old Rectory, Church Lane
Badgeworth, nr Axbridge
[description] =>
[driverRef] => Lewis Newman
[externalCustomerId] => 499326000049463001
[externalLocationId] => 499326000049464010
[externalOrderId] => 499326000049899684
[id] => e2m18gg4fe0u6gr
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] => 1
[ref] =>
[refId] => SO-00478
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Delivered
[syncInCreated] => 2025-10-21 15:23:03.000Z
[syncInStatus] => confirmed
[syncInUpdated] => 2025-10-21 15:26:10.000Z
[syncOutStatus] => ARRIVED
[syncOutUpdated] => 2025-10-21 15:26:00.000Z
[timeWindows] => Array
(
)
[title] => Alex Cullum
[totalValue] => 2
[totalWeight] => 0
[type] =>
[updated] => 2025-10-21 15:26:54.711Z
[vehicleRef] => WD25HWY
[what3Words] =>
)
Updating source from local order
Getting custom fields
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-07-18 02:35:52.065Z
[id] => nc7sndad5bhvi5x
[inCollection] => orders
[inField] => paymentMethod
[mappedField] => 7DCPayment
[name] => Payment method
[sourceField] =>
[syncFromSource] => 1
[syncToSource] =>
[type] => text
[updated] => 2025-07-18 02:35:52.065Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Processing field
Mapped field: 7DCEmpties
Custom fields: Array
(
[0] => Array
(
[id] => yt2l2o3cacu43wf
[value] => 1
)
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Custom field: Array
(
[id] => yt2l2o3cacu43wf
[value] => 1
)
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
Processing field
Mapped field: 7DCEmptiesGas
Custom fields: Array
(
[0] => Array
(
[id] => yt2l2o3cacu43wf
[value] => 1
)
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:03:34.631Z
[id] => pcn96l3kgkps4az
[inCollection] => orders
[inField] => driverRef
[mappedField] =>
[name] => Delivery driver
[sourceField] => cf_delivery_driver
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:03:34.631Z
)
Processing field
driverRef...
Value: Lewis Newman
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-08 04:52:51.399Z
[id] => hhrzcmytzs8p3kw
[inCollection] => orders
[inField] => seqNo
[mappedField] =>
[name] => Run number
[sourceField] => cf_run_number
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-08 04:52:51.399Z
)
Processing field
seqNo...
Value: 1
Finished processing field
Continue
Updating source order: Array
(
[custom_fields] => Array
(
[0] => Array
(
[api_name] => cf_empties_collected
[value] => 1
)
[1] => Array
(
[api_name] => cf_delivery_driver
[value] => Lewis Newman
)
[2] => Array
(
[api_name] => cf_run_number
[value] => 1
)
)
)
Update result: Array
(
[code] => 0
[message] => Sales Order has been updated.
[salesorder] => Array
(
[salesorder_id] => 499326000049899684
[is_viewed_in_mail] =>
[mail_first_viewed_time] =>
[mail_last_viewed_time] =>
[documents] => Array
(
)
[zcrm_potential_id] =>
[zcrm_potential_name] =>
[salesorder_number] => SO-00478
[date] => 2025-10-21
[offline_created_date_with_time] =>
[tracking_url] =>
[has_discount] =>
[status] => confirmed
[color_code] =>
[current_sub_status_id] =>
[current_sub_status] => confirmed
[sub_statuses] => Array
(
)
[shipment_date] =>
[reference_number] =>
[customer_id] => 499326000049463001
[customer_name] => Alex Cullum
[contact_persons] => Array
(
[0] => 499326000049463003
)
[contact_persons_associated] => Array
(
[0] => Array
(
[contact_person_id] => 499326000049463003
[contact_person_email] => alexcullum02@gmail.com
[first_name] => Alex
[last_name] => Cullum
[mobile] => 07566237123
[communication_preference] => Array
(
[is_email_enabled] => 1
)
)
)
[contact_person_details] => Array
(
[0] => Array
(
[phone] => 07566237123
[mobile] => 07566237123
[last_name] => Cullum
[contact_person_id] => 499326000049463003
[first_name] => Alex
[email] => alexcullum02@gmail.com
)
)
[source] => Client
[contact_category] => uk
[is_taxable] =>
[has_shipping_address] => 1
[currency_id] => 499326000000000065
[currency_code] => GBP
[currency_symbol] => £
[exchange_rate] => 1
[is_discount_before_tax] => 1
[discount_type] => item_level
[estimate_id] =>
[delivery_method] =>
[delivery_method_id] =>
[vat_treatment] => uk
[is_inclusive_tax] =>
[tax_rounding] => entity_level
[tax_override_preference] => no_override
[order_status] => confirmed
[invoiced_status] => not_invoiced
[paid_status] => unpaid
[shipped_status] => pending
[sales_channel] => direct_sales
[sales_channel_formatted] => Direct Sales
[account_identifier] =>
[integration_id] =>
[is_dropshipped] =>
[is_backordered] =>
[is_manually_fulfilled] =>
[can_manually_fulfill] => 1
[has_qty_cancelled] =>
[is_reverse_charge_applied] =>
[shipping_details] => Array
(
)
[created_by_email] => alex@7daycellar.co.uk
[created_by_name] => Alex C
[branch_id] => 499326000023111007
[branch_name] => Head Office
[location_id] => 499326000023111007
[location_name] => Head Office
[total_quantity] => 1
[line_items] => Array
(
[0] => Array
(
[line_item_id] => 499326000049899694
[variant_id] => 499326000047467258
[track_batch_number] =>
[item_id] => 499326000047467258
[is_returnable] => 1
[product_id] => 499326000047467258
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] =>
[name] => test-item-2
[group_name] => test-item-2
[description] => this is a test Item
[item_order] => 1
[bcy_rate] => 2
[rate] => 2
[sales_rate] => 2
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] => box
[pricebook_id] =>
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] =>
[tax_name] =>
[tax_type] => tax
[tax_percentage] => 0
[line_item_taxes] => Array
(
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 2
[item_sub_total] => 2
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] =>
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] =>
[image_type] =>
[document_id] =>
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 0
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] =>
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
)
[is_advanced_tracking_missing] =>
[entity_tags] =>
[submitter_id] =>
[approver_id] =>
[submitted_date] =>
[submitted_by] =>
[submitted_by_name] =>
[submitted_by_email] =>
[submitted_by_photo_url] =>
[price_precision] => 2
[is_emailed] =>
[has_unconfirmed_line_item] =>
[picklists] => Array
(
)
[purchaseorders] => Array
(
)
[locations] => Array
(
[0] => Array
(
[location_id] => 499326000023111007
[location_name] => Head Office
[status] => active
)
[1] => Array
(
[location_id] => 499326000041689155
[location_name] => Bason Bridge Brewery Duty Bonded Warehouse
[status] => active
)
)
[billing_address_id] => 499326000049463004
[billing_address] => Array
(
[address] =>
[street2] =>
[city] =>
[state] =>
[zip] =>
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[shipping_address_id] => 499326000049464010
[shipping_address] => Array
(
[company_name] =>
[address] => The Old Rectory, Church Lane
Badgeworth, nr Axbridge
[street2] =>
[city] => Bristol
[state] =>
[zip] => BS26 2QP
[country] => United Kingdom
[country_code] => GB
[county] =>
[state_code] =>
[fax] =>
[phone] => 07566237123
[attention] => Alex Cullum
)
[is_test_order] =>
[notes] => Account Name: 7 Day Cellar Ltd
Sort Code: 09-01-30
Account No: 10888924
[terms] =>
[payment_terms] => 0
[payment_terms_label] => Due On Receipt
[custom_fields] => Array
(
[0] => Array
(
[field_id] => 499326000042690007
[customfield_id] => 499326000042690007
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 1
[label] => Automation Required
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[is_color_code_supported] =>
[api_name] => cf__ulrql_automation_required
[show_in_all_pdf] =>
[selected_option_id] => 499326000042690011
[value_formatted] => Yes
[search_entity] => salesorder
[data_type] => dropdown
[placeholder] => cf__ulrql_automation_required
[value] => Yes
[is_dependent_field] =>
)
[1] => Array
(
[field_id] => 499326000046047547
[customfield_id] => 499326000046047547
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 2
[label] => Keg Empties Collected
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_empties_collected
[show_in_all_pdf] =>
[value_formatted] => 1
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_empties_collected
[value] => 1
[is_dependent_field] =>
)
[2] => Array
(
[field_id] => 499326000046252173
[customfield_id] => 499326000046252173
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 3
[label] => Delivery Driver
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_driver
[show_in_all_pdf] =>
[value_formatted] => Lewis Newman
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_driver
[value] => Lewis Newman
[is_dependent_field] =>
)
[3] => Array
(
[field_id] => 499326000047922345
[customfield_id] => 499326000047922345
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 4
[label] => Run Number
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_run_number
[show_in_all_pdf] =>
[value_formatted] => 1
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_run_number
[value] => 1
[is_dependent_field] =>
)
)
[custom_field_hash] => Array
(
[cf__ulrql_automation_required] => Yes
[cf__ulrql_automation_required_unformatted] => Yes
[cf_empties_collected] => 1
[cf_empties_collected_unformatted] => 1
[cf_delivery_driver] => Lewis Newman
[cf_delivery_driver_unformatted] => Lewis Newman
[cf_run_number] => 1
[cf_run_number_unformatted] => 1
)
[template_id] => 499326000000000111
[template_name] => Standard Template
[page_width] => 8.27in
[page_height] => 11.69in
[orientation] => portrait
[template_type] => standard
[created_time] => 2025-10-21T16:23:03+0100
[last_modified_time] => 2025-10-21T16:26:54+0100
[created_by_id] => 499326000000047001
[created_date] => 2025-10-21
[last_modified_by_id] => 499326000044410001
[attachment_name] =>
[can_send_in_mail] =>
[salesperson_id] => 499326000026596043
[salesperson_name] => Alex Cullum
[merchant_id] =>
[merchant_name] =>
[pickup_location_id] =>
[discount] => 0
[discount_applied_on_amount] => 0
[is_adv_tracking_in_package] =>
[shipping_charge_taxes] => Array
(
)
[lock_details] => Array
(
[can_lock] =>
)
[locked_actions] => Array
(
)
[shipping_charge_tax_id] =>
[shipping_charge_tax_name] =>
[shipping_charge_tax_type] =>
[shipping_charge_tax_percentage] =>
[shipping_charge_tax_exemption_id] =>
[shipping_charge_tax_exemption_code] =>
[shipping_charge_tax] =>
[bcy_shipping_charge_tax] =>
[shipping_charge_exclusive_of_tax] => 0
[shipping_charge_inclusive_of_tax] => 0
[shipping_charge_tax_formatted] =>
[shipping_charge_exclusive_of_tax_formatted] => £0.00
[shipping_charge_inclusive_of_tax_formatted] => £0.00
[shipping_charge] => 0
[bcy_shipping_charge] => 0
[adjustment] => 0
[bcy_adjustment] => 0
[adjustment_description] => Adjustment
[roundoff_value] => 0
[transaction_rounding_type] => no_rounding
[rounding_mode] => round_half_up
[bcy_rounding_mode] => round_half_up
[sub_total] => 2
[bcy_sub_total] => 2
[sub_total_inclusive_of_tax] => 0
[sub_total_exclusive_of_discount] => 2
[discount_total] => 0
[bcy_discount_total] => 0
[discount_percent] => 0
[tax_total] => 0
[bcy_tax_total] => 0
[total] => 2
[computation_type] => basic
[bcy_total] => 2
[reverse_charge_tax_total] => 0
[taxes] => Array
(
)
[tds_calculation_type] => tds_item_level
[packages] => Array
(
)
[so_cycle_preference] => Array
(
[is_feature_enabled] => 1
[socycle_status] => not_triggered
[can_create_invoice] => 1
[can_create_package] =>
[can_create_shipment] =>
[shipment_preference] => Array
(
[default_carrier] =>
[send_notification] =>
[deliver_shipments] =>
)
[invoice_preference] => Array
(
[mark_as_sent] =>
[record_payment] =>
[payment_mode_id] => 499326000000000199
[payment_account_id] => 499326000000000349
)
)
[invoices] => Array
(
)
[can_show_kit_return] =>
[is_kit_partial_return] =>
[salesreturns] => Array
(
)
[payments] => Array
(
)
[creditnotes] => Array
(
)
[refunds] => Array
(
)
[contact] => Array
(
[contact_number] => CUS-00753
[customer_balance] => 0
[credit_limit] => 0
[unused_customer_credits] => 0
[is_credit_limit_migration_completed] => 1
)
[balance] => 2
[approvers_list] => Array
(
)
[is_scheduled_for_quick_shipment_create] =>
)
)
Webhook - sourceUpdated script called at 2025-10-21 16:27:12
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049899684","salesorder_no":"SO-00478","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000049899684","salesorder_no":"SO-00478","status":"open"}}
EXT ID: 499326000049899684
REF: SO-00478
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049899684 (REF SO-00478)
Updates pending to source for order: 499326000049899684
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-10-21 15:26:10.000Z,
source updated = 2025-10-21T16:26:54+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00478
Processing order: e2m18gg4fe0u6gr, ref SO-00478
Syncing SO-00478
Using default start and end times
Time window: 2025-10-21T06:00:00+01:00 - 2025-10-21T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 21/10/2025 16:26 - Local updated: 2025-10-21 15:26:00.000Z - Source updated: 2025-10-21 15:26:10.000Z
Changed? yes
Current MaxOptra status: COMPLETED
Completed? yes
Previous status: ARRIVED
Status changed - mark for sync back to source
Updating local order POD and attachments...
Don't have local POD - fetching...
Updated POD
Getting attachments for SO-00478...
No new attachments found
Is allocated? yes
Local updated: 2025-10-21 15:26:00.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Communication error with MaxOptra (412)
orders/SO-00478
https://7daycellar.maxoptra.com/api/v6/orders/SO-00478
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000049464010
Array
(
[referenceNumber] => 499326000049464010
[name] => Alex Cullum, The Old Rectory, Church Lane
Badgeworth, nr Axbridge, Bristol
[address] => BS26 2QP
)
499326000049464010
Error updating SO-00478
"{\"data\":null,\"errors\":[{\"code\":\"ORDER_IS_LOCKED\",\"name\":\"The order is locked\",\"details\":null,\"field\":null}],\"warnings\":[]}"
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00478
Done all.
Finished at 2025-10-21 16:27:15
Webhook - sourceUpdated script called at 2025-10-21 16:27:42
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049899684","salesorder_no":"SO-00478","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000049899684","salesorder_no":"SO-00478","status":"open"}}
EXT ID: 499326000049899684
REF: SO-00478
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049899684 (REF SO-00478)
Updates pending to source for order: 499326000049899684
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-10-21 15:26:10.000Z,
source updated = 2025-10-21T16:27:13+0100,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] => 07566237123
[contactEmail] => alexcullum02@gmail.com
[contactName] => Alex Cullum
[notes] =>
[externalOrderId] => 499326000049899684
[refId] => SO-00478
[externalCustomerId] => 499326000049463001
[externalLocationId] => 499326000049464010
[title] => Alex Cullum
[deliveryStart] => 2025-10-21
[deliveryEnd] => 2025-10-21
[totalValue] => 2
[totalWeight] => 0
[syncInCreated] => 2025-10-21T16:23:03+0100
[syncInUpdated] => 2025-10-21T16:27:13+0100
[syncInStatus] => confirmed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000049899694
[externalProductId] => 499326000047467258
[sku] =>
[title] => test-item-2
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 2
[price] => 2
)
)
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
Badgeworth, nr Axbridge
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
)
Does this order already exist?
Yes
Existing custom fields: Array
(
[0] => Array
(
[id] => yt2l2o3cacu43wf
[value] => 1
)
)
Is array
Merging custom fields...
Order data prepared for sync: Array
(
[contactPhone] => 07566237123
[contactEmail] => alexcullum02@gmail.com
[contactName] => Alex Cullum
[notes] =>
[externalOrderId] => 499326000049899684
[refId] => SO-00478
[externalCustomerId] => 499326000049463001
[externalLocationId] => 499326000049464010
[title] => Alex Cullum
[deliveryStart] => 2025-10-21
[deliveryEnd] => 2025-10-21
[totalValue] => 2
[totalWeight] => 0
[syncInCreated] => 2025-10-21T16:23:03+0100
[syncInUpdated] => 2025-10-21T16:27:13+0100
[syncInStatus] => confirmed
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
Badgeworth, nr Axbridge
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
[syncOutUpdated] => 2025-10-21T16:27:43+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Alex Cullum
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => [{"id":"yt2l2o3cacu43wf","value":"1"}]
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000049463001
Getting products
Updating product 499326000047467258
Updating order product 499326000049899694
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00478
Processing order: e2m18gg4fe0u6gr, ref SO-00478
Syncing SO-00478
Using default start and end times
Time window: 2025-10-21T06:00:00+01:00 - 2025-10-21T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 21/10/2025 16:26 - Local updated: 2025-10-21 15:27:43.000Z - Source updated: 2025-10-21 15:27:13.000Z
Changed? yes
Current MaxOptra status: COMPLETED
Completed? yes
Previous status: COMPLETED
Updating local order POD and attachments...
Already have POD
Getting attachments for SO-00478...
No new attachments found
Is allocated? yes
Local updated: 2025-10-21 15:27:43.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Communication error with MaxOptra (412)
orders/SO-00478
https://7daycellar.maxoptra.com/api/v6/orders/SO-00478
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000049464010
Array
(
[referenceNumber] => 499326000049464010
[name] => Alex Cullum, The Old Rectory, Church Lane
Badgeworth, nr Axbridge, Bristol
[address] => BS26 2QP
)
499326000049464010
Error updating SO-00478
"{\"data\":null,\"errors\":[{\"code\":\"ORDER_IS_LOCKED\",\"name\":\"The order is locked\",\"details\":null,\"field\":null}],\"warnings\":[]}"
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00478
Done all.
Finished at 2025-10-21 16:27:45
Webhook - sourceUpdated script called at 2025-10-21 16:28:04
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049899684","salesorder_no":"SO-00478","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000049899684","salesorder_no":"SO-00478","status":"draft"}}
EXT ID: 499326000049899684
REF: SO-00478
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049899684 (REF SO-00478)
Local order updated = 2025-10-21 15:27:13.000Z,
source updated = 2025-10-21T16:27:43+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00478
Processing order: e2m18gg4fe0u6gr, ref SO-00478
Syncing SO-00478
Using default start and end times
Time window: 2025-10-21T06:00:00+01:00 - 2025-10-21T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 21/10/2025 16:26 - Local updated: 2025-10-21 15:26:00.000Z - Source updated: 2025-10-21 15:27:13.000Z
Changed? yes
Current MaxOptra status: COMPLETED
Completed? yes
Previous status: COMPLETED
Updating local order POD and attachments...
Already have POD
Getting attachments for SO-00478...
No new attachments found
Is allocated? yes
Local updated: 2025-10-21 15:26:00.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Communication error with MaxOptra (412)
orders/SO-00478
https://7daycellar.maxoptra.com/api/v6/orders/SO-00478
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000049464010
Array
(
[referenceNumber] => 499326000049464010
[name] => Alex Cullum, The Old Rectory, Church Lane
Badgeworth, nr Axbridge, Bristol
[address] => BS26 2QP
)
499326000049464010
Error updating SO-00478
"{\"data\":null,\"errors\":[{\"code\":\"ORDER_IS_LOCKED\",\"name\":\"The order is locked\",\"details\":null,\"field\":null}],\"warnings\":[]}"
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00478
Done all.
Finished at 2025-10-21 16:28:06
Webhook - sourceUpdated script called at 2025-10-21 16:28:13
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049899684","salesorder_no":"SO-00478","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000049899684","salesorder_no":"SO-00478","status":"open"}}
EXT ID: 499326000049899684
REF: SO-00478
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049899684 (REF SO-00478)
Local order updated = 2025-10-21 15:27:13.000Z,
source updated = 2025-10-21T16:27:43+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00478
Processing order: e2m18gg4fe0u6gr, ref SO-00478
Syncing SO-00478
Using default start and end times
Time window: 2025-10-21T06:00:00+01:00 - 2025-10-21T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 21/10/2025 16:26 - Local updated: 2025-10-21 15:26:00.000Z - Source updated: 2025-10-21 15:27:13.000Z
Changed? yes
Current MaxOptra status: COMPLETED
Completed? yes
Previous status: COMPLETED
Updating local order POD and attachments...
Already have POD
Getting attachments for SO-00478...
No new attachments found
Is allocated? yes
Local updated: 2025-10-21 15:26:00.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Communication error with MaxOptra (412)
orders/SO-00478
https://7daycellar.maxoptra.com/api/v6/orders/SO-00478
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000049464010
Array
(
[referenceNumber] => 499326000049464010
[name] => Alex Cullum, The Old Rectory, Church Lane
Badgeworth, nr Axbridge, Bristol
[address] => BS26 2QP
)
499326000049464010
Error updating SO-00478
"{\"data\":null,\"errors\":[{\"code\":\"ORDER_IS_LOCKED\",\"name\":\"The order is locked\",\"details\":null,\"field\":null}],\"warnings\":[]}"
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00478
Done all.
Finished at 2025-10-21 16:28:15
Webhook - sourceUpdated script called at 2025-10-21 16:29:33
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049899684","salesorder_no":"SO-00478","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000049899684","salesorder_no":"SO-00478","status":"open"}}
EXT ID: 499326000049899684
REF: SO-00478
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049899684 (REF SO-00478)
Local order updated = 2025-10-21 15:27:13.000Z,
source updated = 2025-10-21T16:27:43+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00478
Processing order: e2m18gg4fe0u6gr, ref SO-00478
Syncing SO-00478
Using default start and end times
Time window: 2025-10-21T06:00:00+01:00 - 2025-10-21T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 21/10/2025 16:26 - Local updated: 2025-10-21 15:26:00.000Z - Source updated: 2025-10-21 15:27:13.000Z
Changed? yes
Current MaxOptra status: COMPLETED
Completed? yes
Previous status: COMPLETED
Updating local order POD and attachments...
Already have POD
Getting attachments for SO-00478...
No new attachments found
Is allocated? yes
Local updated: 2025-10-21 15:26:00.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Communication error with MaxOptra (412)
orders/SO-00478
https://7daycellar.maxoptra.com/api/v6/orders/SO-00478
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000049464010
Array
(
[referenceNumber] => 499326000049464010
[name] => Alex Cullum, The Old Rectory, Church Lane
Badgeworth, nr Axbridge, Bristol
[address] => BS26 2QP
)
499326000049464010
Error updating SO-00478
"{\"data\":null,\"errors\":[{\"code\":\"ORDER_IS_LOCKED\",\"name\":\"The order is locked\",\"details\":null,\"field\":null}],\"warnings\":[]}"
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00478
Done all.
Finished at 2025-10-21 16:29:35
Webhook - sourceUpdated script called at 2025-10-21 16:29:36
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049899684","salesorder_no":"SO-00478","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000049899684","salesorder_no":"SO-00478","status":"open"}}
EXT ID: 499326000049899684
REF: SO-00478
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049899684 (REF SO-00478)
Local order updated = 2025-10-21 15:27:13.000Z,
source updated = 2025-10-21T16:27:43+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00478
Processing order: e2m18gg4fe0u6gr, ref SO-00478
Syncing SO-00478
Using default start and end times
Time window: 2025-10-21T06:00:00+01:00 - 2025-10-21T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 21/10/2025 16:26 - Local updated: 2025-10-21 15:26:00.000Z - Source updated: 2025-10-21 15:27:13.000Z
Changed? yes
Current MaxOptra status: COMPLETED
Completed? yes
Previous status: COMPLETED
Updating local order POD and attachments...
Already have POD
Getting attachments for SO-00478...
No new attachments found
Is allocated? yes
Local updated: 2025-10-21 15:26:00.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Communication error with MaxOptra (412)
orders/SO-00478
https://7daycellar.maxoptra.com/api/v6/orders/SO-00478
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000049464010
Array
(
[referenceNumber] => 499326000049464010
[name] => Alex Cullum, The Old Rectory, Church Lane
Badgeworth, nr Axbridge, Bristol
[address] => BS26 2QP
)
499326000049464010
Error updating SO-00478
"{\"data\":null,\"errors\":[{\"code\":\"ORDER_IS_LOCKED\",\"name\":\"The order is locked\",\"details\":null,\"field\":null}],\"warnings\":[]}"
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00478
Done all.
Finished at 2025-10-21 16:29:38
Webhook - sourceUpdated script called at 2025-10-21 16:31:55
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049899684","salesorder_no":"SO-00478","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000049899684","salesorder_no":"SO-00478","status":"open"}}
EXT ID: 499326000049899684
REF: SO-00478
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049899684 (REF SO-00478)
Local order updated = 2025-10-21 15:27:13.000Z,
source updated = 2025-10-21T16:27:43+0100,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00478
Processing order: e2m18gg4fe0u6gr, ref SO-00478
Syncing SO-00478
Using default start and end times
Time window: 2025-10-21T06:00:00+01:00 - 2025-10-21T20:00:00+01:00
Found order in MaxOptra? yes
MO updated: 21/10/2025 16:26 - Local updated: 2025-10-21 15:26:00.000Z - Source updated: 2025-10-21 15:27:13.000Z
Changed? yes
Current MaxOptra status: COMPLETED
Completed? yes
Previous status: COMPLETED
Updating local order POD and attachments...
Already have POD
Getting attachments for SO-00478...
No new attachments found
Is allocated? yes
Local updated: 2025-10-21 15:26:00.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Communication error with MaxOptra (412)
orders/SO-00478
https://7daycellar.maxoptra.com/api/v6/orders/SO-00478
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000049464010
Array
(
[referenceNumber] => 499326000049464010
[name] => Alex Cullum, The Old Rectory, Church Lane
Badgeworth, nr Axbridge, Bristol
[address] => BS26 2QP
)
499326000049464010
Error updating SO-00478
"{\"data\":null,\"errors\":[{\"code\":\"ORDER_IS_LOCKED\",\"name\":\"The order is locked\",\"details\":null,\"field\":null}],\"warnings\":[]}"
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00478
Done all.
Finished at 2025-10-21 16:31:57
Webhook - sourceUpdated script called at 2025-10-23 14:49:52
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049999060","salesorder_no":"SO-00479","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000049999060","salesorder_no":"SO-00479","status":"draft"}}
EXT ID: 499326000049999060
REF: SO-00479
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049999060 (REF SO-00479)
Source order details: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => Serena Cheryl
[notes] =>
[externalOrderId] => 499326000049999060
[refId] => SO-00479
[externalCustomerId] => 499326000047000146
[externalLocationId] => 499326000047000152
[title] => New Inn (Taunton)
[deliveryStart] => 2025-11-12
[deliveryEnd] => 2025-11-12
[totalValue] => 277.2
[totalWeight] => 102
[syncInCreated] => 2025-10-23T14:49:30+0100
[syncInUpdated] => 2025-10-23T14:49:30+0100
[syncInStatus] => draft
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000049999066
[externalProductId] => 499326000043516456
[sku] =>
[title] => Harding's Golden Ale 4.2%
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 78
[price] => 78
)
[1] => Array
(
[externalOrderProductId] => 499326000049999068
[externalProductId] => 499326000021043799
[sku] => BB-HSAR-9G
[title] => Hardings Amber Ale 3.9% (9g)
[notes] =>
[quantity] => 1
[weightKg] => 51
[weightTotal] => 51
[priceTotal] => 75
[price] => 75
)
[2] => Array
(
[externalOrderProductId] => 499326000049999070
[externalProductId] => 499326000021043786
[sku] => BB-HSBT-9G
[title] => Hardings Best Bitter 4.2% (9g)
[notes] =>
[quantity] => 1
[weightKg] => 51
[weightTotal] => 51
[priceTotal] => 78
[price] => 78
)
[3] => Array
(
[externalOrderProductId] => 499326000049999072
[externalProductId] => 499326000021043887
[sku] =>
[title] => Collection of empties
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
)
[deliveryName] => New Inn (Taunton)
[deliveryStreet] => Halse
[deliveryCity] =>
[deliveryCounty] =>
[deliveryPostcode] => TA4 3AF
)
Does this order already exist?
No
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => Serena Cheryl
[notes] =>
[externalOrderId] => 499326000049999060
[refId] => SO-00479
[externalCustomerId] => 499326000047000146
[externalLocationId] => 499326000047000152
[title] => New Inn (Taunton)
[deliveryStart] => 2025-11-12
[deliveryEnd] => 2025-11-12
[totalValue] => 277.2
[totalWeight] => 102
[syncInCreated] => 2025-10-23T14:49:30+0100
[syncInUpdated] => 2025-10-23T14:49:30+0100
[syncInStatus] => draft
[deliveryName] => New Inn (Taunton)
[deliveryStreet] => Halse
[deliveryCity] =>
[deliveryCounty] =>
[deliveryPostcode] => TA4 3AF
[syncOutUpdated] => 2025-10-23T14:49:53+01:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Serena Cheryl
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
New order
Marking order for sync with MaxOptra
Getting customer details
2025-08-26 00:45:43.000Z != 2025-10-23T14:48:42+0100
Customer changed - updating 499326000047000146
Updating order contact details
Getting products
Updating product 499326000043516456
Creating new order product 499326000049999066
Updating product 499326000021043799
Creating new order product 499326000049999068
Updating product 499326000021043786
Creating new order product 499326000049999070
Updating product 499326000021043887
Creating new order product 499326000049999072
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00479
Processing order: avntngvrz1sh3rw, ref SO-00479
Syncing SO-00479
Using default start and end times
Time window: 2025-11-12T06:00:00+00:00 - 2025-11-12T20:00:00+00:00
Found order in MaxOptra? no
Creating SO-00479
Done
Finished syncing to MaxOptra for order SO-00479
Done all.
Finished at 2025-10-23 14:49:54
Webhook - sourceUpdated script called at 2025-10-27 11:11:16
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049865463","salesorder_no":"SO-00475","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000049865463","salesorder_no":"SO-00475","status":"invoiced"}}
EXT ID: 499326000049865463
REF: SO-00475
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049865463 (REF SO-00475)
Local order updated = 2025-10-21 08:48:26.000Z,
source updated = 2025-10-27T11:10:51+0000,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] => 07572961803
[contactEmail] =>
[contactName] => Dean .
[notes] =>
[externalOrderId] => 499326000049865463
[refId] => SO-00475
[externalCustomerId] => 499326000045513029
[externalLocationId] => 499326000045513031
[title] => Pebbles Tavern
[deliveryStart] => 2025-10-27
[deliveryEnd] => 2025-10-27
[totalValue] => 119.99
[totalWeight] => 0
[syncInCreated] => 2025-10-21T09:48:26+0100
[syncInUpdated] => 2025-10-27T11:10:51+0000
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000049865469
[externalProductId] => 499326000046845341
[sku] =>
[title] => Oakham Ales Citra 4.2%
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 99.99
[price] => 99.99
)
[1] => Array
(
[externalOrderProductId] => HEADER-499326000049865469
[externalProductId] => 499326000049865461
[sku] =>
[title] => Oakham citra pump clip
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
)
[deliveryName] => Pebbles Tavern
[deliveryStreet] => 24 Market St
[deliveryCity] => Watchet
[deliveryCounty] =>
[deliveryPostcode] => TA23 0AN
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] => 07572961803
[contactEmail] =>
[contactName] => Dean .
[notes] =>
[externalOrderId] => 499326000049865463
[refId] => SO-00475
[externalCustomerId] => 499326000045513029
[externalLocationId] => 499326000045513031
[title] => Pebbles Tavern
[deliveryStart] => 2025-10-27
[deliveryEnd] => 2025-10-27
[totalValue] => 119.99
[totalWeight] => 0
[syncInCreated] => 2025-10-21T09:48:26+0100
[syncInUpdated] => 2025-10-27T11:10:51+0000
[syncInStatus] => closed
[deliveryName] => Pebbles Tavern
[deliveryStreet] => 24 Market St
[deliveryCity] => Watchet
[deliveryCounty] =>
[deliveryPostcode] => TA23 0AN
[syncOutUpdated] => 2025-10-27T11:11:18+00:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Dean .
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
2025-10-21 08:46:51.000Z != 2025-10-27T10:53:47+0000
Customer changed - updating 499326000045513029
Updating order contact details
Getting products
Updating product 499326000046845341
Updating order product 499326000049865469
Updated
Updating product 499326000049865461
Updating order product HEADER-499326000049865469
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00475
Processing order: vu21q3gbcjjulxn, ref SO-00475
Syncing SO-00475
Using default start and end times
Time window: 2025-10-27T06:00:00+00:00 - 2025-10-27T20:00:00+00:00
Found order in MaxOptra? yes
MO updated: 21/10/2025 09:48 - Local updated: 2025-10-27 11:11:18.000Z - Source updated: 2025-10-27 11:10:51.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status:
Status changed - mark for sync back to source
Is allocated? no
Local updated: 2025-10-27 11:11:18.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000045513031
Array
(
[referenceNumber] => 499326000045513031
[name] => Pebbles Tavern, 24 Market St, Watchet
[address] => TA23 0AN
)
499326000045513031
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00475
Done all.
Finished at 2025-10-27 11:11:19
Webhook - sourceUpdated script called at 2025-10-27 11:11:22
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049865463","salesorder_no":"SO-00475","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000049865463","salesorder_no":"SO-00475","status":"invoiced"}}
EXT ID: 499326000049865463
REF: SO-00475
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049865463 (REF SO-00475)
Updates pending to source for order: 499326000049865463
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-10-27 11:10:51.000Z,
source updated = 2025-10-27T11:10:51+0000,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00475
Processing order: vu21q3gbcjjulxn, ref SO-00475
Syncing SO-00475
Using default start and end times
Time window: 2025-10-27T06:00:00+00:00 - 2025-10-27T20:00:00+00:00
Found order in MaxOptra? yes
MO updated: 27/10/2025 11:11 - Local updated: 2025-10-21 08:48:00.000Z - Source updated: 2025-10-27 11:10:51.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-10-21 08:48:00.000Z
Pending updates to MaxOptra? no
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00475
Done all.
Finished at 2025-10-27 11:11:24
Webhook - sourceUpdated script called at 2025-10-27 11:11:47
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049865463","salesorder_no":"SO-00475","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000049865463","salesorder_no":"SO-00475","status":"invoiced"}}
EXT ID: 499326000049865463
REF: SO-00475
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049865463 (REF SO-00475)
Local order updated = 2025-10-27 11:10:51.000Z,
source updated = 2025-10-27T11:11:23+0000,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00475
Processing order: vu21q3gbcjjulxn, ref SO-00475
Syncing SO-00475
Using default start and end times
Time window: 2025-10-27T06:00:00+00:00 - 2025-10-27T20:00:00+00:00
Found order in MaxOptra? yes
MO updated: 27/10/2025 11:11 - Local updated: 2025-10-27 11:11:00.000Z - Source updated: 2025-10-27 11:10:51.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00475
Done all.
Finished at 2025-10-27 11:11:48
Webhook - sourceUpdated script called at 2025-10-27 11:15:49
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049865463","salesorder_no":"SO-00475","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000049865463","salesorder_no":"SO-00475","status":"open"}}
EXT ID: 499326000049865463
REF: SO-00475
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049865463 (REF SO-00475)
Local order updated = 2025-10-27 11:10:51.000Z,
source updated = 2025-10-27T11:11:23+0000,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00475
Processing order: vu21q3gbcjjulxn, ref SO-00475
Syncing SO-00475
Using default start and end times
Time window: 2025-10-27T06:00:00+00:00 - 2025-10-27T20:00:00+00:00
Found order in MaxOptra? yes
MO updated: 27/10/2025 11:11 - Local updated: 2025-10-27 11:11:00.000Z - Source updated: 2025-10-27 11:10:51.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00475
Done all.
Finished at 2025-10-27 11:15:50
Webhook - sourceUpdated script called at 2025-10-27 15:17:17
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050205314","salesorder_no":"SO-00480","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000050205314","salesorder_no":"SO-00480","status":"draft"}}
EXT ID: 499326000050205314
REF: SO-00480
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050205314 (REF SO-00480)
Source order details: Array
(
[contactPhone] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[notes] => delivery round back
[externalOrderId] => 499326000050205314
[refId] => SO-00480
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[title] => Alex Cullum
[deliveryStart] => 2025-10-27
[deliveryEnd] => 2025-10-27
[totalValue] => 28.19
[totalWeight] => 0
[syncInCreated] => 2025-10-27T15:16:57+0000
[syncInUpdated] => 2025-10-27T15:17:00+0000
[syncInStatus] => confirmed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000050205320
[externalProductId] => 499326000049242723
[sku] =>
[title] => Brue Lager Cans 440ml x 24
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 23.49
[price] => 23.49
)
)
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
[paymentMethod] => Cash - Don't Leave
)
Does this order already exist?
No
Order data prepared for sync: Array
(
[contactPhone] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[notes] => delivery round back
[externalOrderId] => 499326000050205314
[refId] => SO-00480
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[title] => Alex Cullum
[deliveryStart] => 2025-10-27
[deliveryEnd] => 2025-10-27
[totalValue] => 28.19
[totalWeight] => 0
[syncInCreated] => 2025-10-27T15:16:57+0000
[syncInUpdated] => 2025-10-27T15:17:00+0000
[syncInStatus] => confirmed
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
[paymentMethod] => Cash - Don't Leave
[syncOutUpdated] => 2025-10-27T15:17:18+00:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Alex Cullum
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => [{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"}]
)
New order
Marking order for sync with MaxOptra
Getting customer details
2025-09-03 14:11:48.000Z != 2025-10-16T10:10:57+0100
Customer changed - updating 499326000021060129
Updating order contact details
Getting products
Creating product 499326000049242723
Creating new order product 499326000050205320
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00480
Processing order: 2pkbznzmk1ohew2, ref SO-00480
Syncing SO-00480
Using default start and end times
Time window: 2025-10-27T06:00:00+00:00 - 2025-10-27T20:00:00+00:00
Found order in MaxOptra? no
Creating SO-00480
Done
Finished syncing to MaxOptra for order SO-00480
Done all.
Finished at 2025-10-27 15:17:19
Webhook - sourceUpdated script called at 2025-10-27 15:17:48
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050205314","salesorder_no":"SO-00480","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000050205314","salesorder_no":"SO-00480","status":"invoiced"}}
EXT ID: 499326000050205314
REF: SO-00480
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050205314 (REF SO-00480)
Local order updated = 2025-10-27 15:17:00.000Z,
source updated = 2025-10-27T15:17:27+0000,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00480
Webhook - sourceUpdated script called at 2025-10-27 15:17:49
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050205314","salesorder_no":"SO-00480","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000050205314","salesorder_no":"SO-00480","status":"invoiced"}}
EXT ID: 499326000050205314
REF: SO-00480
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Processing order: 2pkbznzmk1ohew2, ref SO-00480
Syncing SO-00480
Using default start and end times
Time window: 2025-10-27T06:00:00+00:00 - 2025-10-27T20:00:00+00:00
Found order in MaxOptra? yes
MO updated: 27/10/2025 15:17 - Local updated: 2025-10-27 15:17:19.000Z - Source updated: 2025-10-27 15:17:00.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status:
Status changed - mark for sync back to source
Getting local orders...
Is allocated? no
Local updated: 2025-10-27 15:17:19.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
------------------------
Processing order 499326000050205314 (REF SO-00480)
Updates pending to source for order: 499326000050205314
Updates found - pushing to source
Updated
Replacing location address in MaxOptra: 499326000021060132
Array
(
[referenceNumber] => 499326000021060132
[name] => Alex Cullum, The Old Rectory, Church Lane, Bristol
[address] => BS26 2QP
)
499326000021060132
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00480
Done all.
Finished at 2025-10-27 15:17:50
Done updating. Proceeding to sync from source.
Local order updated = 2025-10-27 15:17:00.000Z,
source updated = 2025-10-27T15:17:27+0000,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00480
Processing order: 2pkbznzmk1ohew2, ref SO-00480
Syncing SO-00480
Using default start and end times
Time window: 2025-10-27T06:00:00+00:00 - 2025-10-27T20:00:00+00:00
Found order in MaxOptra? yes
MO updated: 27/10/2025 15:17 - Local updated: 2025-10-27 15:17:00.000Z - Source updated: 2025-10-27 15:17:00.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00480
Done all.
Finished at 2025-10-27 15:17:51
Webhook - sourceUpdated script called at 2025-10-27 15:18:19
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050205314","salesorder_no":"SO-00480","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000050205314","salesorder_no":"SO-00480","status":"invoiced"}}
EXT ID: 499326000050205314
REF: SO-00480
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050205314 (REF SO-00480)
Local order updated = 2025-10-27 15:17:00.000Z,
source updated = 2025-10-27T15:17:50+0000,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00480
Processing order: 2pkbznzmk1ohew2, ref SO-00480
Syncing SO-00480
Using default start and end times
Time window: 2025-10-27T06:00:00+00:00 - 2025-10-27T20:00:00+00:00
Found order in MaxOptra? yes
MO updated: 27/10/2025 15:17 - Local updated: 2025-10-27 15:17:00.000Z - Source updated: 2025-10-27 15:17:00.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00480
Done all.
Finished at 2025-10-27 15:18:20
Webhook - destinationUpdated script called at 2025-10-27 15:20:23
JSON: {"payload":{"orderReference":"SO-00480","status":"ALLOCATED"},"timestamp":"2025-10-27T15:20:23Z"}
REF: SO-00480
Filter: refId="SO-00480"
200 response code sent
Local item: {"addons":[],"attachments":[],"collectionEnd":"","collectionId":"s93ukjlitoinx2e","collectionInstructions":"","collectionName":"orders","collectionStart":"","company":"1kmltj8w8rnhbfx","contactEmail":"alex@7daycellar.co.uk","contactName":"Alex Cullum","contactNotes":"","contactPhone":"+447566237123","created":"2025-10-27 15:17:18.291Z","custom":[{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"}],"customer":"y5e589zvld1in2k","deliveryCity":"Bristol","deliveryCounty":"","deliveryEnd":"2025-10-27 00:00:00.000Z","deliveryInstructions":"","deliveryName":"Alex Cullum","deliveryPostcode":"BS26 2QP","deliveryStart":"2025-10-27 00:00:00.000Z","deliveryStreet":"The Old Rectory, Church Lane","description":"","driverRef":"","externalCustomerId":"499326000021060129","externalLocationId":"499326000021060132","externalOrderId":"499326000050205314","id":"2pkbznzmk1ohew2","isCancelled":false,"isCollection":false,"isReadyToSync":true,"isScheduledCollection":false,"isScheduledDelivery":false,"isUntracked":false,"mergeRef":"","notes":"delivery round back","orderedAt":"","overrideVolume":0,"overrideWeight":0,"paymentMethod":"Cash - Don't Leave","pendingSyncFromDestination":false,"pendingSyncFromSource":false,"pendingSyncToDestination":false,"pendingSyncToSource":false,"ref":"","refId":"SO-00480","requestedDeliveryDays":"","seqNo":"","signature":"","signatureName":"","signatureTime":"","statusCollection":"","statusDelivery":"Pending","syncInCreated":"2025-10-27 15:16:57.000Z","syncInStatus":"confirmed","syncInUpdated":"2025-10-27 15:17:00.000Z","syncOutStatus":"UNALLOCATED","syncOutUpdated":"2025-10-27 15:17:00.000Z","timeWindows":[],"title":"Alex Cullum","totalValue":28.190000000000001278976924368180334568023681640625,"totalWeight":0,"type":"","updated":"2025-10-27 15:18:19.918Z","vehicleRef":"","what3Words":""}
Updating local order from MaxOptra - current local order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[contactNotes] =>
[contactPhone] => +447566237123
[created] => 2025-10-27 15:17:18.291Z
[custom] => Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
[customer] => y5e589zvld1in2k
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryEnd] => 2025-10-27 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Alex Cullum
[deliveryPostcode] => BS26 2QP
[deliveryStart] => 2025-10-27 00:00:00.000Z
[deliveryStreet] => The Old Rectory, Church Lane
[description] =>
[driverRef] =>
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[externalOrderId] => 499326000050205314
[id] => 2pkbznzmk1ohew2
[isCancelled] =>
[isCollection] =>
[isReadyToSync] => 1
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] => delivery round back
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] => Cash - Don't Leave
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] =>
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00480
[requestedDeliveryDays] =>
[seqNo] =>
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Pending
[syncInCreated] => 2025-10-27 15:16:57.000Z
[syncInStatus] => confirmed
[syncInUpdated] => 2025-10-27 15:17:00.000Z
[syncOutStatus] => UNALLOCATED
[syncOutUpdated] => 2025-10-27 15:17:00.000Z
[timeWindows] => Array
(
)
[title] => Alex Cullum
[totalValue] => 28.19
[totalWeight] => 0
[type] =>
[updated] => 2025-10-27 15:18:19.918Z
[vehicleRef] =>
[what3Words] =>
)
MaxOptra order details: Array
(
[0] => Array
(
[referenceNumber] => SO-00480
[consignmentReference] =>
[distributionCentreReference] => Head Office
[distributionCentreName] => Head Office
[task] => DELIVERY
[priority] => NORMAL
[vehicleRequirements] => Array
(
)
[additionalInstructions] => delivery round back
[clientName] =>
[contactPerson] => Alex Cullum
[contactNumber] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[additionalContactEmails] =>
[notificationPreferences] => Array
(
[allowSMS] => 1
[allowEmail] => 1
)
[customerLocation] => Array
(
[referenceNumber] => 499326000021060132
[name] => Alex Cullum, The Old Rectory, Church Lane, Bristol
[address] => BS26 2QP
[w3wAddress] =>
[latitude] => 51.26857
[longitude] => -2.86747
)
[territoryReference] =>
[stopSequence] => ANY
[timeWindows] => Array
(
[0] => Array
(
[start] => 2025-10-27T06:00:00Z
[end] => 2025-10-27T20:00:00Z
)
)
[orderDate] =>
[capacity1] => 0
[capacity2] => 0
[price] =>
[operationDuration] => 300
[customFields] => Array
(
[7DCPayment] => Cash - Don't Leave
)
[orderItems] => Array
(
[0] => Array
(
[itemReferenceNumber] => 499326000049242723
[orderReferenceNumber] => SO-00480
[name] => Brue Lager Cans 440ml x 24
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 23.49
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 23.49
[height] => 0
[width] => 0
[length] => 0
[weight] => 0
[volume] => 0
)
)
[widgetTrackingDetails] =>
)
)
MaxOptra schedule details: Array
(
[orderReferenceNumber] => SO-00480
[assignedDriverReference] => TEST
[assignedDriverName] => TEST
[assignedVehicleReference] => TEST
[assignedVehicleName] => TEST
[plannedArrivalTime] => 2025-10-27T15:43:28Z
[plannedCompletionTime] => 2025-10-27T15:48:28Z
[stopNumber] => 1
[totalStopsInRun] => 1
[runNumber] => 1
[runReference] => 1780f41e0f364252a72843c8961a9ac0
[eta] =>
[factArrivalTimeGPS] =>
[factCompletionTimeGPS] =>
[factArrivalTimeReported] =>
[factCompletionTimeReported] =>
[failReason] =>
[failComment] =>
[status] => ALLOCATED
[driver] => TEST
[arrival_planned] => 2025-10-27T15:43:28Z
[arrival_estimated] =>
[arrival_actual] =>
[totalStops] => 1
)
Updating order: SO-00480
Update ID 2pkbznzmk1ohew2 with: Array
(
[custom] => Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
[driverRef] => TEST
[vehicleRef] => TEST
[seqNo] => 1
)
Updated order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[contactNotes] =>
[contactPhone] => +447566237123
[created] => 2025-10-27 15:17:18.291Z
[custom] => Array
(
[0] => stdClass Object
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
[customer] => y5e589zvld1in2k
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryEnd] => 2025-10-27 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Alex Cullum
[deliveryPostcode] => BS26 2QP
[deliveryStart] => 2025-10-27 00:00:00.000Z
[deliveryStreet] => The Old Rectory, Church Lane
[description] =>
[driverRef] => TEST
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[externalOrderId] => 499326000050205314
[id] => 2pkbznzmk1ohew2
[isCancelled] =>
[isCollection] =>
[isReadyToSync] => 1
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] => delivery round back
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] => Cash - Don't Leave
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] =>
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00480
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Pending
[syncInCreated] => 2025-10-27 15:16:57.000Z
[syncInStatus] => confirmed
[syncInUpdated] => 2025-10-27 15:17:00.000Z
[syncOutStatus] => UNALLOCATED
[syncOutUpdated] => 2025-10-27 15:17:00.000Z
[timeWindows] => Array
(
)
[title] => Alex Cullum
[totalValue] => 28.19
[totalWeight] => 0
[type] =>
[updated] => 2025-10-27 15:20:23.791Z
[vehicleRef] => TEST
[what3Words] =>
)
Updating source from local order
Getting custom fields
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-07-18 02:35:52.065Z
[id] => nc7sndad5bhvi5x
[inCollection] => orders
[inField] => paymentMethod
[mappedField] => 7DCPayment
[name] => Payment method
[sourceField] =>
[syncFromSource] => 1
[syncToSource] =>
[type] => text
[updated] => 2025-07-18 02:35:52.065Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Processing field
Mapped field: 7DCEmpties
Custom fields: Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
Processing field
Mapped field: 7DCEmptiesGas
Custom fields: Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:03:34.631Z
[id] => pcn96l3kgkps4az
[inCollection] => orders
[inField] => driverRef
[mappedField] =>
[name] => Delivery driver
[sourceField] => cf_delivery_driver
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:03:34.631Z
)
Processing field
driverRef...
Value: TEST
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-08 04:52:51.399Z
[id] => hhrzcmytzs8p3kw
[inCollection] => orders
[inField] => seqNo
[mappedField] =>
[name] => Run number
[sourceField] => cf_run_number
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-08 04:52:51.399Z
)
Processing field
seqNo...
Value: 1
Finished processing field
Continue
Updating source order: Array
(
[custom_fields] => Array
(
[0] => Array
(
[api_name] => cf_delivery_driver
[value] => TEST
)
[1] => Array
(
[api_name] => cf_run_number
[value] => 1
)
)
)
Update result: Array
(
[code] => 0
[message] => Sales Order has been updated.
[salesorder] => Array
(
[salesorder_id] => 499326000050205314
[is_viewed_in_mail] =>
[mail_first_viewed_time] =>
[mail_last_viewed_time] =>
[documents] => Array
(
)
[zcrm_potential_id] =>
[zcrm_potential_name] =>
[salesorder_number] => SO-00480
[date] => 2025-10-27
[offline_created_date_with_time] =>
[tracking_url] =>
[has_discount] =>
[status] => confirmed
[color_code] =>
[current_sub_status_id] =>
[current_sub_status] => closed
[sub_statuses] => Array
(
)
[shipment_date] =>
[reference_number] =>
[customer_id] => 499326000021060129
[customer_name] => Alex Cullum
[contact_persons] => Array
(
[0] => 499326000021060131
)
[contact_persons_associated] => Array
(
[0] => Array
(
[contact_person_id] => 499326000021060131
[contact_person_email] => alex@7daycellar.co.uk
[first_name] => Alex
[last_name] => Cullum
[mobile] => +447566237123
[communication_preference] => Array
(
[is_email_enabled] => 1
)
)
)
[contact_person_details] => Array
(
[0] => Array
(
[phone] =>
[mobile] => +447566237123
[last_name] => Cullum
[contact_person_id] => 499326000021060131
[first_name] => Alex
[email] => alex@7daycellar.co.uk
)
)
[source] => Client
[contact_category] => uk
[is_taxable] =>
[has_shipping_address] => 1
[currency_id] => 499326000000000065
[currency_code] => GBP
[currency_symbol] => £
[exchange_rate] => 1
[is_discount_before_tax] => 1
[discount_type] => item_level
[estimate_id] =>
[delivery_method] =>
[delivery_method_id] =>
[vat_treatment] => uk
[is_inclusive_tax] =>
[tax_rounding] => entity_level
[tax_override_preference] => no_override
[order_status] => closed
[invoiced_status] => invoiced
[paid_status] => unpaid
[shipped_status] => pending
[sales_channel] => direct_sales
[sales_channel_formatted] => Direct Sales
[account_identifier] =>
[integration_id] =>
[is_dropshipped] =>
[is_backordered] =>
[is_manually_fulfilled] =>
[can_manually_fulfill] => 1
[has_qty_cancelled] =>
[is_reverse_charge_applied] =>
[shipping_details] => Array
(
)
[created_by_email] => alex@7daycellar.co.uk
[created_by_name] => Alex C
[branch_id] => 499326000023111007
[branch_name] => Head Office
[location_id] => 499326000023111007
[location_name] => Head Office
[total_quantity] => 1
[line_items] => Array
(
[0] => Array
(
[line_item_id] => 499326000050205320
[variant_id] => 499326000049242723
[track_batch_number] =>
[item_id] => 499326000049242723
[is_returnable] =>
[product_id] => 499326000049242723
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] =>
[name] => Brue Lager Cans 440ml x 24
[group_name] => Brue Lager Cans 440ml x 24
[description] =>
[item_order] => 1
[bcy_rate] => 23.49
[rate] => 23.49
[sales_rate] => 23.49
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] => ml
[pricebook_id] => 499326000049652101
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 4.7
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 23.49
[item_sub_total] => 23.49
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] =>
[image_type] =>
[document_id] =>
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 1
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] =>
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
)
[is_advanced_tracking_missing] =>
[entity_tags] =>
[submitter_id] =>
[approver_id] =>
[submitted_date] =>
[submitted_by] =>
[submitted_by_name] =>
[submitted_by_email] =>
[submitted_by_photo_url] =>
[pricebook_id] =>
[pricebook_name] =>
[price_precision] => 2
[is_emailed] =>
[has_unconfirmed_line_item] =>
[picklists] => Array
(
)
[purchaseorders] => Array
(
)
[locations] => Array
(
[0] => Array
(
[location_id] => 499326000023111007
[location_name] => Head Office
[status] => active
)
[1] => Array
(
[location_id] => 499326000041689155
[location_name] => Bason Bridge Brewery Duty Bonded Warehouse
[status] => active
)
)
[billing_address_id] => 499326000021060132
[billing_address] => Array
(
[address] => The Old Rectory, Church Lane
[street2] => Bason Bridge
[city] => Bristol
[state] => Somerset
[zip] => BS26 2QP
[country] => United Kingdom
[country_code] => GB
[county] =>
[state_code] => SOM
[fax] =>
[phone] =>
[attention] =>
)
[shipping_address_id] => 499326000021060134
[shipping_address] => Array
(
[company_name] =>
[address] =>
[street2] =>
[city] =>
[state] =>
[zip] =>
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[is_test_order] =>
[notes] => Account Name: 7 Day Cellar Ltd
Sort Code: 09-01-30
Account No: 10888924
[terms] =>
[payment_terms] => 14
[payment_terms_label] => Net 14
[custom_fields] => Array
(
[0] => Array
(
[field_id] => 499326000042690007
[customfield_id] => 499326000042690007
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 1
[label] => Automation Required
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[is_color_code_supported] =>
[api_name] => cf__ulrql_automation_required
[show_in_all_pdf] =>
[selected_option_id] => 499326000042690011
[value_formatted] => Yes
[search_entity] => salesorder
[data_type] => dropdown
[placeholder] => cf__ulrql_automation_required
[value] => Yes
[is_dependent_field] =>
)
[1] => Array
(
[field_id] => 499326000045601987
[customfield_id] => 499326000045601987
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 2
[label] => Payment Method
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_payment_method
[show_in_all_pdf] =>
[value_formatted] => Cash - Don't Leave
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_payment_method
[value] => Cash - Don't Leave
[is_dependent_field] =>
)
[2] => Array
(
[field_id] => 499326000046252143
[customfield_id] => 499326000046252143
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 3
[label] => Delivery Instructions
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_instructions
[show_in_all_pdf] =>
[value_formatted] => delivery round back
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_instructions
[value] => delivery round back
[is_dependent_field] =>
)
[3] => Array
(
[field_id] => 499326000046252173
[customfield_id] => 499326000046252173
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 4
[label] => Delivery Driver
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_driver
[show_in_all_pdf] =>
[value_formatted] => TEST
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_driver
[value] => TEST
[is_dependent_field] =>
)
[4] => Array
(
[field_id] => 499326000047922345
[customfield_id] => 499326000047922345
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 5
[label] => Run Number
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_run_number
[show_in_all_pdf] =>
[value_formatted] => 1
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_run_number
[value] => 1
[is_dependent_field] =>
)
)
[custom_field_hash] => Array
(
[cf__ulrql_automation_required] => Yes
[cf__ulrql_automation_required_unformatted] => Yes
[cf_payment_method] => Cash - Don't Leave
[cf_payment_method_unformatted] => Cash - Don't Leave
[cf_delivery_instructions] => delivery round back
[cf_delivery_instructions_unformatted] => delivery round back
[cf_delivery_driver] => TEST
[cf_delivery_driver_unformatted] => TEST
[cf_run_number] => 1
[cf_run_number_unformatted] => 1
)
[template_id] => 499326000000000111
[template_name] => Standard Template
[page_width] => 8.27in
[page_height] => 11.69in
[orientation] => portrait
[template_type] => standard
[created_time] => 2025-10-27T15:16:57+0000
[last_modified_time] => 2025-10-27T15:20:24+0000
[created_by_id] => 499326000000047001
[created_date] => 2025-10-27
[last_modified_by_id] => 499326000044410001
[attachment_name] =>
[can_send_in_mail] =>
[salesperson_id] => 499326000026596043
[salesperson_name] => Alex Cullum
[merchant_id] =>
[merchant_name] =>
[pickup_location_id] =>
[discount] => 0
[discount_applied_on_amount] => 0
[is_adv_tracking_in_package] =>
[shipping_charge_taxes] => Array
(
)
[lock_details] => Array
(
[can_lock] =>
)
[locked_actions] => Array
(
)
[shipping_charge_tax_id] =>
[shipping_charge_tax_name] =>
[shipping_charge_tax_type] =>
[shipping_charge_tax_percentage] =>
[shipping_charge_tax_exemption_id] =>
[shipping_charge_tax_exemption_code] =>
[shipping_charge_tax] =>
[bcy_shipping_charge_tax] =>
[shipping_charge_exclusive_of_tax] => 0
[shipping_charge_inclusive_of_tax] => 0
[shipping_charge_tax_formatted] =>
[shipping_charge_exclusive_of_tax_formatted] => £0.00
[shipping_charge_inclusive_of_tax_formatted] => £0.00
[shipping_charge] => 0
[bcy_shipping_charge] => 0
[adjustment] => 0
[bcy_adjustment] => 0
[adjustment_description] => Adjustment
[roundoff_value] => 0
[transaction_rounding_type] => no_rounding
[rounding_mode] => round_half_up
[bcy_rounding_mode] => round_half_up
[sub_total] => 23.49
[bcy_sub_total] => 23.49
[sub_total_inclusive_of_tax] => 0
[sub_total_exclusive_of_discount] => 23.49
[discount_total] => 0
[bcy_discount_total] => 0
[discount_percent] => 0
[tax_total] => 4.7
[bcy_tax_total] => 4.7
[total] => 28.19
[computation_type] => basic
[bcy_total] => 28.19
[reverse_charge_tax_total] => 0
[taxes] => Array
(
[0] => Array
(
[tax_amount] => 4.7
[tax_name] => Standard Rate
[tax_amount_formatted] => £4.70
)
)
[tds_calculation_type] => tds_item_level
[packages] => Array
(
)
[so_cycle_preference] => Array
(
[is_feature_enabled] => 1
[socycle_status] => not_triggered
[can_create_invoice] => 1
[can_create_package] =>
[can_create_shipment] =>
[shipment_preference] => Array
(
[default_carrier] =>
[send_notification] =>
[deliver_shipments] =>
)
[invoice_preference] => Array
(
[mark_as_sent] =>
[record_payment] =>
[payment_mode_id] => 499326000000000199
[payment_account_id] => 499326000000000349
)
)
[invoices] => Array
(
[0] => Array
(
[invoice_id] => 499326000050205374
[invoice_number] => INV-26583
[reference_number] => SO-00480
[status] => draft
[date] => 2025-10-27
[due_date] => 2025-11-10
[total] => 28.19
[balance] => 28.19
)
)
[can_show_kit_return] =>
[is_kit_partial_return] =>
[salesreturns] => Array
(
)
[payments] => Array
(
)
[creditnotes] => Array
(
)
[refunds] => Array
(
)
[contact] => Array
(
[contact_number] => CUS-00492
[customer_balance] => 0
[credit_limit] => 0
[unused_customer_credits] => 120
[is_credit_limit_migration_completed] => 1
)
[balance] => 28.19
[approvers_list] => Array
(
)
[is_scheduled_for_quick_shipment_create] =>
)
)
Webhook - destinationRunUpdated script called at 2025-10-27 15:20:36
Data: {"payload":{"runReference":"1780f41e0f364252a72843c8961a9ac0","status":"LOCKED","vehicleReference":"TEST","shiftDate":"2025-10-27"},"timestamp":"2025-10-27T15:20:35Z"}
JSON: {"payload":{"runReference":"1780f41e0f364252a72843c8961a9ac0","status":"LOCKED","vehicleReference":"TEST","shiftDate":"2025-10-27"},"timestamp":"2025-10-27T15:20:35Z"}
Vehicle: TEST
date: 2025-10-27
Status: LOCKED
200 response code sent
Processing order: SO-00480
Looking for local order: SO-00480
Updating local order from MaxOptra - current local order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[contactNotes] =>
[contactPhone] => +447566237123
[created] => 2025-10-27 15:17:18.291Z
[custom] => Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
[customer] => y5e589zvld1in2k
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryEnd] => 2025-10-27 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Alex Cullum
[deliveryPostcode] => BS26 2QP
[deliveryStart] => 2025-10-27 00:00:00.000Z
[deliveryStreet] => The Old Rectory, Church Lane
[description] =>
[driverRef] => TEST
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[externalOrderId] => 499326000050205314
[id] => 2pkbznzmk1ohew2
[isCancelled] =>
[isCollection] =>
[isReadyToSync] => 1
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] => delivery round back
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] => Cash - Don't Leave
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] =>
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00480
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Pending
[syncInCreated] => 2025-10-27 15:16:57.000Z
[syncInStatus] => confirmed
[syncInUpdated] => 2025-10-27 15:17:00.000Z
[syncOutStatus] => UNALLOCATED
[syncOutUpdated] => 2025-10-27 15:17:00.000Z
[timeWindows] => Array
(
)
[title] => Alex Cullum
[totalValue] => 28.19
[totalWeight] => 0
[type] =>
[updated] => 2025-10-27 15:20:23.791Z
[vehicleRef] => TEST
[what3Words] =>
)
MaxOptra order details: Array
(
[0] => Array
(
[referenceNumber] => SO-00480
[consignmentReference] =>
[distributionCentreReference] => Head Office
[distributionCentreName] => Head Office
[task] => DELIVERY
[priority] => NORMAL
[vehicleRequirements] => Array
(
)
[additionalInstructions] => delivery round back
[clientName] =>
[contactPerson] => Alex Cullum
[contactNumber] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[additionalContactEmails] =>
[notificationPreferences] => Array
(
[allowSMS] => 1
[allowEmail] => 1
)
[customerLocation] => Array
(
[referenceNumber] => 499326000021060132
[name] => Alex Cullum, The Old Rectory, Church Lane, Bristol
[address] => BS26 2QP
[w3wAddress] =>
[latitude] => 51.26857
[longitude] => -2.86747
)
[territoryReference] =>
[stopSequence] => ANY
[timeWindows] => Array
(
[0] => Array
(
[start] => 2025-10-27T06:00:00Z
[end] => 2025-10-27T20:00:00Z
)
)
[orderDate] =>
[capacity1] => 0
[capacity2] => 0
[price] =>
[operationDuration] => 300
[customFields] => Array
(
[7DCPayment] => Cash - Don't Leave
)
[orderItems] => Array
(
[0] => Array
(
[itemReferenceNumber] => 499326000049242723
[orderReferenceNumber] => SO-00480
[name] => Brue Lager Cans 440ml x 24
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 23.49
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 23.49
[height] => 0
[width] => 0
[length] => 0
[weight] => 0
[volume] => 0
)
)
[widgetTrackingDetails] =>
)
)
MaxOptra schedule details: Array
(
[orderReferenceNumber] => SO-00480
[assignedDriverReference] => TEST
[assignedDriverName] => TEST
[assignedVehicleReference] => TEST
[assignedVehicleName] => TEST
[plannedArrivalTime] => 2025-10-27T15:43:28Z
[plannedCompletionTime] => 2025-10-27T15:48:28Z
[stopNumber] => 1
[totalStopsInRun] => 1
[runNumber] => 1
[runReference] => 1780f41e0f364252a72843c8961a9ac0
[eta] =>
[factArrivalTimeGPS] =>
[factCompletionTimeGPS] =>
[factArrivalTimeReported] =>
[factCompletionTimeReported] =>
[failReason] =>
[failComment] =>
[status] => LOCKED
[driver] => TEST
[arrival_planned] => 2025-10-27T15:43:28Z
[arrival_estimated] =>
[arrival_actual] =>
[totalStops] => 1
)
Updating order: SO-00480
Update ID 2pkbznzmk1ohew2 with: Array
(
[custom] => Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
[driverRef] => TEST
[vehicleRef] => TEST
[seqNo] => 1
)
Updated order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[contactNotes] =>
[contactPhone] => +447566237123
[created] => 2025-10-27 15:17:18.291Z
[custom] => Array
(
[0] => stdClass Object
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
[customer] => y5e589zvld1in2k
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryEnd] => 2025-10-27 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Alex Cullum
[deliveryPostcode] => BS26 2QP
[deliveryStart] => 2025-10-27 00:00:00.000Z
[deliveryStreet] => The Old Rectory, Church Lane
[description] =>
[driverRef] => TEST
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[externalOrderId] => 499326000050205314
[id] => 2pkbznzmk1ohew2
[isCancelled] =>
[isCollection] =>
[isReadyToSync] => 1
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] => delivery round back
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] => Cash - Don't Leave
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] =>
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00480
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Pending
[syncInCreated] => 2025-10-27 15:16:57.000Z
[syncInStatus] => confirmed
[syncInUpdated] => 2025-10-27 15:17:00.000Z
[syncOutStatus] => UNALLOCATED
[syncOutUpdated] => 2025-10-27 15:17:00.000Z
[timeWindows] => Array
(
)
[title] => Alex Cullum
[totalValue] => 28.19
[totalWeight] => 0
[type] =>
[updated] => 2025-10-27 15:20:36.908Z
[vehicleRef] => TEST
[what3Words] =>
)
Updating source from local order
Getting custom fields
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-07-18 02:35:52.065Z
[id] => nc7sndad5bhvi5x
[inCollection] => orders
[inField] => paymentMethod
[mappedField] => 7DCPayment
[name] => Payment method
[sourceField] =>
[syncFromSource] => 1
[syncToSource] =>
[type] => text
[updated] => 2025-07-18 02:35:52.065Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Processing field
Mapped field: 7DCEmpties
Custom fields: Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
Processing field
Mapped field: 7DCEmptiesGas
Custom fields: Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:03:34.631Z
[id] => pcn96l3kgkps4az
[inCollection] => orders
[inField] => driverRef
[mappedField] =>
[name] => Delivery driver
[sourceField] => cf_delivery_driver
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:03:34.631Z
)
Processing field
driverRef...
Value: TEST
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-08 04:52:51.399Z
[id] => hhrzcmytzs8p3kw
[inCollection] => orders
[inField] => seqNo
[mappedField] =>
[name] => Run number
[sourceField] => cf_run_number
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-08 04:52:51.399Z
)
Processing field
seqNo...
Value: 1
Finished processing field
Continue
Updating source order: Array
(
[custom_fields] => Array
(
[0] => Array
(
[api_name] => cf_delivery_driver
[value] => TEST
)
[1] => Array
(
[api_name] => cf_run_number
[value] => 1
)
)
)
Update result: Array
(
[code] => 0
[message] => Sales Order has been updated.
[salesorder] => Array
(
[salesorder_id] => 499326000050205314
[is_viewed_in_mail] =>
[mail_first_viewed_time] =>
[mail_last_viewed_time] =>
[documents] => Array
(
)
[zcrm_potential_id] =>
[zcrm_potential_name] =>
[salesorder_number] => SO-00480
[date] => 2025-10-27
[offline_created_date_with_time] =>
[tracking_url] =>
[has_discount] =>
[status] => confirmed
[color_code] =>
[current_sub_status_id] =>
[current_sub_status] => closed
[sub_statuses] => Array
(
)
[shipment_date] =>
[reference_number] =>
[customer_id] => 499326000021060129
[customer_name] => Alex Cullum
[contact_persons] => Array
(
[0] => 499326000021060131
)
[contact_persons_associated] => Array
(
[0] => Array
(
[contact_person_id] => 499326000021060131
[contact_person_email] => alex@7daycellar.co.uk
[first_name] => Alex
[last_name] => Cullum
[mobile] => +447566237123
[communication_preference] => Array
(
[is_email_enabled] => 1
)
)
)
[contact_person_details] => Array
(
[0] => Array
(
[phone] =>
[mobile] => +447566237123
[last_name] => Cullum
[contact_person_id] => 499326000021060131
[first_name] => Alex
[email] => alex@7daycellar.co.uk
)
)
[source] => Client
[contact_category] => uk
[is_taxable] =>
[has_shipping_address] => 1
[currency_id] => 499326000000000065
[currency_code] => GBP
[currency_symbol] => £
[exchange_rate] => 1
[is_discount_before_tax] => 1
[discount_type] => item_level
[estimate_id] =>
[delivery_method] =>
[delivery_method_id] =>
[vat_treatment] => uk
[is_inclusive_tax] =>
[tax_rounding] => entity_level
[tax_override_preference] => no_override
[order_status] => closed
[invoiced_status] => invoiced
[paid_status] => unpaid
[shipped_status] => pending
[sales_channel] => direct_sales
[sales_channel_formatted] => Direct Sales
[account_identifier] =>
[integration_id] =>
[is_dropshipped] =>
[is_backordered] =>
[is_manually_fulfilled] =>
[can_manually_fulfill] => 1
[has_qty_cancelled] =>
[is_reverse_charge_applied] =>
[shipping_details] => Array
(
)
[created_by_email] => alex@7daycellar.co.uk
[created_by_name] => Alex C
[branch_id] => 499326000023111007
[branch_name] => Head Office
[location_id] => 499326000023111007
[location_name] => Head Office
[total_quantity] => 1
[line_items] => Array
(
[0] => Array
(
[line_item_id] => 499326000050205320
[variant_id] => 499326000049242723
[track_batch_number] =>
[item_id] => 499326000049242723
[is_returnable] =>
[product_id] => 499326000049242723
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] =>
[name] => Brue Lager Cans 440ml x 24
[group_name] => Brue Lager Cans 440ml x 24
[description] =>
[item_order] => 1
[bcy_rate] => 23.49
[rate] => 23.49
[sales_rate] => 23.49
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] => ml
[pricebook_id] => 499326000049652101
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 4.7
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 23.49
[item_sub_total] => 23.49
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] =>
[image_type] =>
[document_id] =>
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 1
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] =>
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
)
[is_advanced_tracking_missing] =>
[entity_tags] =>
[submitter_id] =>
[approver_id] =>
[submitted_date] =>
[submitted_by] =>
[submitted_by_name] =>
[submitted_by_email] =>
[submitted_by_photo_url] =>
[pricebook_id] =>
[pricebook_name] =>
[price_precision] => 2
[is_emailed] =>
[has_unconfirmed_line_item] =>
[picklists] => Array
(
)
[purchaseorders] => Array
(
)
[locations] => Array
(
[0] => Array
(
[location_id] => 499326000023111007
[location_name] => Head Office
[status] => active
)
[1] => Array
(
[location_id] => 499326000041689155
[location_name] => Bason Bridge Brewery Duty Bonded Warehouse
[status] => active
)
)
[billing_address_id] => 499326000021060132
[billing_address] => Array
(
[address] => The Old Rectory, Church Lane
[street2] => Bason Bridge
[city] => Bristol
[state] => Somerset
[zip] => BS26 2QP
[country] => United Kingdom
[country_code] => GB
[county] =>
[state_code] => SOM
[fax] =>
[phone] =>
[attention] =>
)
[shipping_address_id] => 499326000021060134
[shipping_address] => Array
(
[company_name] =>
[address] =>
[street2] =>
[city] =>
[state] =>
[zip] =>
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[is_test_order] =>
[notes] => Account Name: 7 Day Cellar Ltd
Sort Code: 09-01-30
Account No: 10888924
[terms] =>
[payment_terms] => 14
[payment_terms_label] => Net 14
[custom_fields] => Array
(
[0] => Array
(
[field_id] => 499326000042690007
[customfield_id] => 499326000042690007
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 1
[label] => Automation Required
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[is_color_code_supported] =>
[api_name] => cf__ulrql_automation_required
[show_in_all_pdf] =>
[selected_option_id] => 499326000042690011
[value_formatted] => Yes
[search_entity] => salesorder
[data_type] => dropdown
[placeholder] => cf__ulrql_automation_required
[value] => Yes
[is_dependent_field] =>
)
[1] => Array
(
[field_id] => 499326000045601987
[customfield_id] => 499326000045601987
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 2
[label] => Payment Method
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_payment_method
[show_in_all_pdf] =>
[value_formatted] => Cash - Don't Leave
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_payment_method
[value] => Cash - Don't Leave
[is_dependent_field] =>
)
[2] => Array
(
[field_id] => 499326000046252143
[customfield_id] => 499326000046252143
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 3
[label] => Delivery Instructions
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_instructions
[show_in_all_pdf] =>
[value_formatted] => delivery round back
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_instructions
[value] => delivery round back
[is_dependent_field] =>
)
[3] => Array
(
[field_id] => 499326000046252173
[customfield_id] => 499326000046252173
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 4
[label] => Delivery Driver
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_driver
[show_in_all_pdf] =>
[value_formatted] => TEST
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_driver
[value] => TEST
[is_dependent_field] =>
)
[4] => Array
(
[field_id] => 499326000047922345
[customfield_id] => 499326000047922345
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 5
[label] => Run Number
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_run_number
[show_in_all_pdf] =>
[value_formatted] => 1
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_run_number
[value] => 1
[is_dependent_field] =>
)
)
[custom_field_hash] => Array
(
[cf__ulrql_automation_required] => Yes
[cf__ulrql_automation_required_unformatted] => Yes
[cf_payment_method] => Cash - Don't Leave
[cf_payment_method_unformatted] => Cash - Don't Leave
[cf_delivery_instructions] => delivery round back
[cf_delivery_instructions_unformatted] => delivery round back
[cf_delivery_driver] => TEST
[cf_delivery_driver_unformatted] => TEST
[cf_run_number] => 1
[cf_run_number_unformatted] => 1
)
[template_id] => 499326000000000111
[template_name] => Standard Template
[page_width] => 8.27in
[page_height] => 11.69in
[orientation] => portrait
[template_type] => standard
[created_time] => 2025-10-27T15:16:57+0000
[last_modified_time] => 2025-10-27T15:20:37+0000
[created_by_id] => 499326000000047001
[created_date] => 2025-10-27
[last_modified_by_id] => 499326000044410001
[attachment_name] =>
[can_send_in_mail] =>
[salesperson_id] => 499326000026596043
[salesperson_name] => Alex Cullum
[merchant_id] =>
[merchant_name] =>
[pickup_location_id] =>
[discount] => 0
[discount_applied_on_amount] => 0
[is_adv_tracking_in_package] =>
[shipping_charge_taxes] => Array
(
)
[lock_details] => Array
(
[can_lock] =>
)
[locked_actions] => Array
(
)
[shipping_charge_tax_id] =>
[shipping_charge_tax_name] =>
[shipping_charge_tax_type] =>
[shipping_charge_tax_percentage] =>
[shipping_charge_tax_exemption_id] =>
[shipping_charge_tax_exemption_code] =>
[shipping_charge_tax] =>
[bcy_shipping_charge_tax] =>
[shipping_charge_exclusive_of_tax] => 0
[shipping_charge_inclusive_of_tax] => 0
[shipping_charge_tax_formatted] =>
[shipping_charge_exclusive_of_tax_formatted] => £0.00
[shipping_charge_inclusive_of_tax_formatted] => £0.00
[shipping_charge] => 0
[bcy_shipping_charge] => 0
[adjustment] => 0
[bcy_adjustment] => 0
[adjustment_description] => Adjustment
[roundoff_value] => 0
[transaction_rounding_type] => no_rounding
[rounding_mode] => round_half_up
[bcy_rounding_mode] => round_half_up
[sub_total] => 23.49
[bcy_sub_total] => 23.49
[sub_total_inclusive_of_tax] => 0
[sub_total_exclusive_of_discount] => 23.49
[discount_total] => 0
[bcy_discount_total] => 0
[discount_percent] => 0
[tax_total] => 4.7
[bcy_tax_total] => 4.7
[total] => 28.19
[computation_type] => basic
[bcy_total] => 28.19
[reverse_charge_tax_total] => 0
[taxes] => Array
(
[0] => Array
(
[tax_amount] => 4.7
[tax_name] => Standard Rate
[tax_amount_formatted] => £4.70
)
)
[tds_calculation_type] => tds_item_level
[packages] => Array
(
)
[so_cycle_preference] => Array
(
[is_feature_enabled] => 1
[socycle_status] => not_triggered
[can_create_invoice] => 1
[can_create_package] =>
[can_create_shipment] =>
[shipment_preference] => Array
(
[default_carrier] =>
[send_notification] =>
[deliver_shipments] =>
)
[invoice_preference] => Array
(
[mark_as_sent] =>
[record_payment] =>
[payment_mode_id] => 499326000000000199
[payment_account_id] => 499326000000000349
)
)
[invoices] => Array
(
[0] => Array
(
[invoice_id] => 499326000050205374
[invoice_number] => INV-26583
[reference_number] => SO-00480
[status] => draft
[date] => 2025-10-27
[due_date] => 2025-11-10
[total] => 28.19
[balance] => 28.19
)
)
[can_show_kit_return] =>
[is_kit_partial_return] =>
[salesreturns] => Array
(
)
[payments] => Array
(
)
[creditnotes] => Array
(
)
[refunds] => Array
(
)
[contact] => Array
(
[contact_number] => CUS-00492
[customer_balance] => 0
[credit_limit] => 0
[unused_customer_credits] => 120
[is_credit_limit_migration_completed] => 1
)
[balance] => 28.19
[approvers_list] => Array
(
)
[is_scheduled_for_quick_shipment_create] =>
)
)
Finished at 2025-10-27 15:20:37
Webhook - destinationRunUpdated script called at 2025-10-27 15:20:37
Data: {"payload":{"runReference":"fcbf3b2b65b1416b8831ca6d5e79c48d","status":"LOCKED","vehicleReference":"WD25HWY","shiftDate":"2025-10-27"},"timestamp":"2025-10-27T15:20:35Z"}
JSON: {"payload":{"runReference":"fcbf3b2b65b1416b8831ca6d5e79c48d","status":"LOCKED","vehicleReference":"WD25HWY","shiftDate":"2025-10-27"},"timestamp":"2025-10-27T15:20:35Z"}
Vehicle: WD25HWY
date: 2025-10-27
Status: LOCKED
200 response code sent
Processing order: SO-00475
Looking for local order: SO-00475
Updating local order from MaxOptra - current local order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] =>
[contactName] => Dean .
[contactNotes] =>
[contactPhone] => 07572961803
[created] => 2025-10-21 08:48:33.575Z
[custom] => Array
(
)
[customer] => zcnqlrwj08oc63n
[deliveryCity] => Watchet
[deliveryCounty] =>
[deliveryEnd] => 2025-10-27 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Pebbles Tavern
[deliveryPostcode] => TA23 0AN
[deliveryStart] => 2025-10-27 00:00:00.000Z
[deliveryStreet] => 24 Market St
[description] =>
[driverRef] =>
[externalCustomerId] => 499326000045513029
[externalLocationId] => 499326000045513031
[externalOrderId] => 499326000049865463
[id] => vu21q3gbcjjulxn
[isCancelled] =>
[isCollection] =>
[isReadyToSync] => 1
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] =>
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00475
[requestedDeliveryDays] =>
[seqNo] =>
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Pending
[syncInCreated] => 2025-10-21 08:48:26.000Z
[syncInStatus] => closed
[syncInUpdated] => 2025-10-27 11:10:51.000Z
[syncOutStatus] => UNALLOCATED
[syncOutUpdated] => 2025-10-27 11:11:00.000Z
[timeWindows] => Array
(
)
[title] => Pebbles Tavern
[totalValue] => 119.99
[totalWeight] => 0
[type] =>
[updated] => 2025-10-27 11:15:50.160Z
[vehicleRef] =>
[what3Words] =>
)
MaxOptra order details: Array
(
[0] => Array
(
[referenceNumber] => SO-00475
[consignmentReference] =>
[distributionCentreReference] => Head Office
[distributionCentreName] => Head Office
[task] => DELIVERY
[priority] => NORMAL
[vehicleRequirements] => Array
(
)
[additionalInstructions] =>
[clientName] =>
[contactPerson] => Dean .
[contactNumber] => 07572961803
[contactEmail] =>
[additionalContactEmails] =>
[notificationPreferences] => Array
(
[allowSMS] => 1
[allowEmail] => 1
)
[customerLocation] => Array
(
[referenceNumber] => 499326000045513031
[name] => Pebbles Tavern, 24 Market St, Watchet
[address] => TA23 0AN
[w3wAddress] =>
[latitude] => 51.18274
[longitude] => -3.33108
)
[territoryReference] =>
[stopSequence] => ANY
[timeWindows] => Array
(
[0] => Array
(
[start] => 2025-10-27T06:00:00Z
[end] => 2025-10-27T20:00:00Z
)
)
[orderDate] =>
[capacity1] => 0
[capacity2] => 0
[price] =>
[operationDuration] => 300
[customFields] => Array
(
)
[orderItems] => Array
(
[0] => Array
(
[itemReferenceNumber] => 499326000046845341
[orderReferenceNumber] => SO-00475
[name] => Oakham Ales Citra 4.2%
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 99.99
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 99.99
[height] => 0
[width] => 0
[length] => 0
[weight] => 0
[volume] => 0
)
[1] => Array
(
[itemReferenceNumber] => 499326000049865461
[orderReferenceNumber] => SO-00475
[name] => Oakham citra pump clip
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 0
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 0
[height] => 0
[width] => 0
[length] => 0
[weight] => 0
[volume] => 0
)
)
[widgetTrackingDetails] =>
)
)
MaxOptra schedule details: Array
(
[orderReferenceNumber] => SO-00475
[assignedDriverReference] => Andy Goddard
[assignedDriverName] => Andy Goddard
[assignedVehicleReference] => WD25HWY
[assignedVehicleName] => WD25HWY
[plannedArrivalTime] => 2025-10-27T16:20:12Z
[plannedCompletionTime] => 2025-10-27T16:25:12Z
[stopNumber] => 1
[totalStopsInRun] => 1
[runNumber] => 1
[runReference] => fcbf3b2b65b1416b8831ca6d5e79c48d
[eta] =>
[factArrivalTimeGPS] =>
[factCompletionTimeGPS] =>
[factArrivalTimeReported] =>
[factCompletionTimeReported] =>
[failReason] =>
[failComment] =>
[status] => ACCEPTED
[driver] => Andy Goddard
[arrival_planned] => 2025-10-27T16:20:12Z
[arrival_estimated] =>
[arrival_actual] =>
[totalStops] => 1
)
Updating order: SO-00475
Update ID vu21q3gbcjjulxn with: Array
(
[custom] => Array
(
)
[driverRef] => Andy Goddard
[vehicleRef] => WD25HWY
[seqNo] => 1
)
Updated order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] =>
[contactName] => Dean .
[contactNotes] =>
[contactPhone] => 07572961803
[created] => 2025-10-21 08:48:33.575Z
[custom] => Array
(
)
[customer] => zcnqlrwj08oc63n
[deliveryCity] => Watchet
[deliveryCounty] =>
[deliveryEnd] => 2025-10-27 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Pebbles Tavern
[deliveryPostcode] => TA23 0AN
[deliveryStart] => 2025-10-27 00:00:00.000Z
[deliveryStreet] => 24 Market St
[description] =>
[driverRef] => Andy Goddard
[externalCustomerId] => 499326000045513029
[externalLocationId] => 499326000045513031
[externalOrderId] => 499326000049865463
[id] => vu21q3gbcjjulxn
[isCancelled] =>
[isCollection] =>
[isReadyToSync] => 1
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] =>
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00475
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Pending
[syncInCreated] => 2025-10-21 08:48:26.000Z
[syncInStatus] => closed
[syncInUpdated] => 2025-10-27 11:10:51.000Z
[syncOutStatus] => UNALLOCATED
[syncOutUpdated] => 2025-10-27 11:11:00.000Z
[timeWindows] => Array
(
)
[title] => Pebbles Tavern
[totalValue] => 119.99
[totalWeight] => 0
[type] =>
[updated] => 2025-10-27 15:20:38.519Z
[vehicleRef] => WD25HWY
[what3Words] =>
)
Updating source from local order
Getting custom fields
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-07-18 02:35:52.065Z
[id] => nc7sndad5bhvi5x
[inCollection] => orders
[inField] => paymentMethod
[mappedField] => 7DCPayment
[name] => Payment method
[sourceField] =>
[syncFromSource] => 1
[syncToSource] =>
[type] => text
[updated] => 2025-07-18 02:35:52.065Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Processing field
Mapped field: 7DCEmpties
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
Processing field
Mapped field: 7DCEmptiesGas
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:03:34.631Z
[id] => pcn96l3kgkps4az
[inCollection] => orders
[inField] => driverRef
[mappedField] =>
[name] => Delivery driver
[sourceField] => cf_delivery_driver
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:03:34.631Z
)
Processing field
driverRef...
Value: Andy Goddard
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-08 04:52:51.399Z
[id] => hhrzcmytzs8p3kw
[inCollection] => orders
[inField] => seqNo
[mappedField] =>
[name] => Run number
[sourceField] => cf_run_number
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-08 04:52:51.399Z
)
Processing field
seqNo...
Value: 1
Finished processing field
Continue
Updating source order: Array
(
[custom_fields] => Array
(
[0] => Array
(
[api_name] => cf_delivery_driver
[value] => Andy Goddard
)
[1] => Array
(
[api_name] => cf_run_number
[value] => 1
)
)
)
Webhook - destinationRunUpdated script called at 2025-10-27 15:20:38
Data: {"payload":{"runReference":"fcbf3b2b65b1416b8831ca6d5e79c48d","status":"SENT","vehicleReference":"WD25HWY","shiftDate":"2025-10-27"},"timestamp":"2025-10-27T15:20:38Z"}
JSON: {"payload":{"runReference":"fcbf3b2b65b1416b8831ca6d5e79c48d","status":"SENT","vehicleReference":"WD25HWY","shiftDate":"2025-10-27"},"timestamp":"2025-10-27T15:20:38Z"}
Vehicle: WD25HWY
date: 2025-10-27
Status: SENT
200 response code sent
Processing order: SO-00475
Looking for local order: SO-00475
Updating local order from MaxOptra - current local order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] =>
[contactName] => Dean .
[contactNotes] =>
[contactPhone] => 07572961803
[created] => 2025-10-21 08:48:33.575Z
[custom] => Array
(
)
[customer] => zcnqlrwj08oc63n
[deliveryCity] => Watchet
[deliveryCounty] =>
[deliveryEnd] => 2025-10-27 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Pebbles Tavern
[deliveryPostcode] => TA23 0AN
[deliveryStart] => 2025-10-27 00:00:00.000Z
[deliveryStreet] => 24 Market St
[description] =>
[driverRef] => Andy Goddard
[externalCustomerId] => 499326000045513029
[externalLocationId] => 499326000045513031
[externalOrderId] => 499326000049865463
[id] => vu21q3gbcjjulxn
[isCancelled] =>
[isCollection] =>
[isReadyToSync] => 1
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] =>
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00475
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Pending
[syncInCreated] => 2025-10-21 08:48:26.000Z
[syncInStatus] => closed
[syncInUpdated] => 2025-10-27 11:10:51.000Z
[syncOutStatus] => UNALLOCATED
[syncOutUpdated] => 2025-10-27 11:11:00.000Z
[timeWindows] => Array
(
)
[title] => Pebbles Tavern
[totalValue] => 119.99
[totalWeight] => 0
[type] =>
[updated] => 2025-10-27 15:20:38.519Z
[vehicleRef] => WD25HWY
[what3Words] =>
)
Update result: Array
(
[code] => 0
[message] => Sales Order has been updated.
[salesorder] => Array
(
[salesorder_id] => 499326000049865463
[is_viewed_in_mail] =>
[mail_first_viewed_time] =>
[mail_last_viewed_time] =>
[documents] => Array
(
)
[zcrm_potential_id] =>
[zcrm_potential_name] =>
[salesorder_number] => SO-00475
[date] => 2025-10-27
[offline_created_date_with_time] =>
[tracking_url] =>
[has_discount] =>
[status] => confirmed
[color_code] =>
[current_sub_status_id] =>
[current_sub_status] => closed
[sub_statuses] => Array
(
)
[shipment_date] =>
[reference_number] =>
[customer_id] => 499326000045513029
[customer_name] => Pebbles Tavern
[contact_persons] => Array
(
)
[contact_persons_associated] => Array
(
)
[contact_person_details] => Array
(
[0] => Array
(
[phone] =>
[mobile] => 07572961803
[last_name] => .
[contact_person_id] => 499326000045513047
[first_name] => Dean
[email] =>
)
)
[source] => Api
[contact_category] => uk
[is_taxable] =>
[has_shipping_address] => 1
[currency_id] => 499326000000000065
[currency_code] => GBP
[currency_symbol] => £
[exchange_rate] => 1
[is_discount_before_tax] => 1
[discount_type] => item_level
[estimate_id] =>
[delivery_method] =>
[delivery_method_id] =>
[vat_treatment] => uk
[is_inclusive_tax] =>
[tax_rounding] => entity_level
[tax_override_preference] => no_override
[order_status] => closed
[invoiced_status] => invoiced
[paid_status] => unpaid
[shipped_status] => pending
[sales_channel] => direct_sales
[sales_channel_formatted] => Direct Sales
[account_identifier] =>
[integration_id] =>
[is_dropshipped] =>
[is_backordered] =>
[is_manually_fulfilled] =>
[can_manually_fulfill] => 1
[has_qty_cancelled] =>
[is_reverse_charge_applied] =>
[shipping_details] => Array
(
)
[created_by_email] => jem@7daycellar.co.uk
[created_by_name] => Jem Glanvill
[branch_id] => 499326000023111007
[branch_name] => Head Office
[location_id] => 499326000023111007
[location_name] => Head Office
[total_quantity] => 1
[line_items] => Array
(
[0] => Array
(
[line_item_id] => 499326000049865469
[variant_id] => 499326000046845341
[track_batch_number] =>
[item_id] => 499326000046845341
[is_returnable] =>
[product_id] => 499326000046845341
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] =>
[name] => Oakham Ales Citra 4.2%
[group_name] => Oakham Ales Citra 4.2%
[description] =>
[item_order] => 1
[bcy_rate] => 99.99
[rate] => 99.99
[sales_rate] => 94.99
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] => 499326000049865461
[header_name] => Oakham citra pump clip
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 20
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 99.99
[item_sub_total] => 99.99
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] => Oakham Ales Citra.png
[image_type] => png
[document_id] => 499326000048606862
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 1
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] =>
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
)
[is_advanced_tracking_missing] =>
[entity_tags] =>
[submitter_id] =>
[approver_id] =>
[submitted_date] =>
[submitted_by] =>
[submitted_by_name] =>
[submitted_by_email] =>
[submitted_by_photo_url] =>
[price_precision] => 2
[is_emailed] =>
[has_unconfirmed_line_item] =>
[picklists] => Array
(
)
[purchaseorders] => Array
(
)
[locations] => Array
(
[0] => Array
(
[location_id] => 499326000023111007
[location_name] => Head Office
[status] => active
)
[1] => Array
(
[location_id] => 499326000041689155
[location_name] => Bason Bridge Brewery Duty Bonded Warehouse
[status] => active
)
)
[billing_address_id] => 499326000045513031
[billing_address] => Array
(
[address] => 24 Market St
[street2] =>
[city] => Watchet
[state] =>
[zip] => TA23 0AN
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[shipping_address_id] => 499326000045513033
[shipping_address] => Array
(
[company_name] =>
[address] =>
[street2] =>
[city] =>
[state] =>
[zip] =>
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[is_test_order] =>
[notes] => Account Name: 7 Day Cellar Ltd
Sort Code: 09-01-30
Account No: 10888924
[terms] =>
[payment_terms] => 0
[payment_terms_label] => Due On Receipt
[custom_fields] => Array
(
[0] => Array
(
[field_id] => 499326000042690007
[customfield_id] => 499326000042690007
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 1
[label] => Automation Required
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[is_color_code_supported] =>
[api_name] => cf__ulrql_automation_required
[show_in_all_pdf] =>
[selected_option_id] => 499326000042690011
[value_formatted] => Yes
[search_entity] => salesorder
[data_type] => dropdown
[placeholder] => cf__ulrql_automation_required
[value] => Yes
[is_dependent_field] =>
)
[1] => Array
(
[field_id] => 499326000046252173
[customfield_id] => 499326000046252173
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 2
[label] => Delivery Driver
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_driver
[show_in_all_pdf] =>
[value_formatted] => Andy Goddard
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_driver
[value] => Andy Goddard
[is_dependent_field] =>
)
[2] => Array
(
[field_id] => 499326000047922345
[customfield_id] => 499326000047922345
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 3
[label] => Run Number
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_run_number
[show_in_all_pdf] =>
[value_formatted] => 1
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_run_number
[value] => 1
[is_dependent_field] =>
)
)
[custom_field_hash] => Array
(
[cf__ulrql_automation_required] => Yes
[cf__ulrql_automation_required_unformatted] => Yes
[cf_delivery_driver] => Andy Goddard
[cf_delivery_driver_unformatted] => Andy Goddard
[cf_run_number] => 1
[cf_run_number_unformatted] => 1
)
[template_id] => 499326000000000111
[template_name] => Standard Template
[page_width] => 8.27in
[page_height] => 11.69in
[orientation] => portrait
[template_type] => standard
[created_time] => 2025-10-21T09:48:26+0100
[last_modified_time] => 2025-10-27T15:20:38+0000
[created_by_id] => 499326000044231001
[created_date] => 2025-10-21
[last_modified_by_id] => 499326000044410001
[attachment_name] =>
[can_send_in_mail] =>
[salesperson_id] => 499326000045029073
[salesperson_name] => Jem Glanvill
[merchant_id] =>
[merchant_name] =>
[pickup_location_id] =>
[discount] => 0
[discount_applied_on_amount] => 0
[is_adv_tracking_in_package] =>
[shipping_charge_taxes] => Array
(
)
[lock_details] => Array
(
[can_lock] =>
)
[locked_actions] => Array
(
)
[shipping_charge_tax_id] =>
[shipping_charge_tax_name] =>
[shipping_charge_tax_type] =>
[shipping_charge_tax_percentage] =>
[shipping_charge_tax_exemption_id] =>
[shipping_charge_tax_exemption_code] =>
[shipping_charge_tax] =>
[bcy_shipping_charge_tax] =>
[shipping_charge_exclusive_of_tax] => 0
[shipping_charge_inclusive_of_tax] => 0
[shipping_charge_tax_formatted] =>
[shipping_charge_exclusive_of_tax_formatted] => £0.00
[shipping_charge_inclusive_of_tax_formatted] => £0.00
[shipping_charge] => 0
[bcy_shipping_charge] => 0
[adjustment] => 0
[bcy_adjustment] => 0
[adjustment_description] => Adjustment
[roundoff_value] => 0
[transaction_rounding_type] => no_rounding
[rounding_mode] => round_half_up
[bcy_rounding_mode] => round_half_up
[sub_total] => 99.99
[bcy_sub_total] => 99.99
[sub_total_inclusive_of_tax] => 0
[sub_total_exclusive_of_discount] => 99.99
[discount_total] => 0
[bcy_discount_total] => 0
[discount_percent] => 0
[tax_total] => 20
[bcy_tax_total] => 20
[total] => 119.99
[computation_type] => basic
[bcy_total] => 119.99
[reverse_charge_tax_total] => 0
[taxes] => Array
(
[0] => Array
(
[tax_amount] => 20
[tax_name] => Standard Rate
[tax_amount_formatted] => £20.00
)
)
[tds_calculation_type] => tds_item_level
[packages] => Array
(
)
[so_cycle_preference] => Array
(
[is_feature_enabled] => 1
[socycle_status] => not_triggered
[can_create_invoice] => 1
[can_create_package] =>
[can_create_shipment] =>
[shipment_preference] => Array
(
[default_carrier] =>
[send_notification] =>
[deliver_shipments] =>
)
[invoice_preference] => Array
(
[mark_as_sent] =>
[record_payment] =>
[payment_mode_id] => 499326000000000199
[payment_account_id] => 499326000000000349
)
)
[invoices] => Array
(
[0] => Array
(
[invoice_id] => 499326000050178769
[invoice_number] => INV-26577
[reference_number] => SO-00475
[status] => sent
[date] => 2025-10-27
[due_date] => 2025-10-27
[total] => 119.99
[balance] => 119.99
)
)
[can_show_kit_return] =>
[is_kit_partial_return] =>
[salesreturns] => Array
(
)
[payments] => Array
(
)
[creditnotes] => Array
(
)
[refunds] => Array
(
)
[contact] => Array
(
[contact_number] => CUS-00683
[customer_balance] => 119.99
[credit_limit] => 0
[unused_customer_credits] => 0
[is_credit_limit_migration_completed] => 1
)
[balance] => 119.99
[approvers_list] => Array
(
)
[is_scheduled_for_quick_shipment_create] =>
)
)
Finished at 2025-10-27 15:20:39
MaxOptra order details: Array
(
[0] => Array
(
[referenceNumber] => SO-00475
[consignmentReference] =>
[distributionCentreReference] => Head Office
[distributionCentreName] => Head Office
[task] => DELIVERY
[priority] => NORMAL
[vehicleRequirements] => Array
(
)
[additionalInstructions] =>
[clientName] =>
[contactPerson] => Dean .
[contactNumber] => 07572961803
[contactEmail] =>
[additionalContactEmails] =>
[notificationPreferences] => Array
(
[allowSMS] => 1
[allowEmail] => 1
)
[customerLocation] => Array
(
[referenceNumber] => 499326000045513031
[name] => Pebbles Tavern, 24 Market St, Watchet
[address] => TA23 0AN
[w3wAddress] =>
[latitude] => 51.18274
[longitude] => -3.33108
)
[territoryReference] =>
[stopSequence] => ANY
[timeWindows] => Array
(
[0] => Array
(
[start] => 2025-10-27T06:00:00Z
[end] => 2025-10-27T20:00:00Z
)
)
[orderDate] =>
[capacity1] => 0
[capacity2] => 0
[price] =>
[operationDuration] => 300
[customFields] => Array
(
)
[orderItems] => Array
(
[0] => Array
(
[itemReferenceNumber] => 499326000046845341
[orderReferenceNumber] => SO-00475
[name] => Oakham Ales Citra 4.2%
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 99.99
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 99.99
[height] => 0
[width] => 0
[length] => 0
[weight] => 0
[volume] => 0
)
[1] => Array
(
[itemReferenceNumber] => 499326000049865461
[orderReferenceNumber] => SO-00475
[name] => Oakham citra pump clip
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 0
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 0
[height] => 0
[width] => 0
[length] => 0
[weight] => 0
[volume] => 0
)
)
[widgetTrackingDetails] =>
)
)
MaxOptra schedule details: Array
(
[orderReferenceNumber] => SO-00475
[assignedDriverReference] => Andy Goddard
[assignedDriverName] => Andy Goddard
[assignedVehicleReference] => WD25HWY
[assignedVehicleName] => WD25HWY
[plannedArrivalTime] => 2025-10-27T16:20:12Z
[plannedCompletionTime] => 2025-10-27T16:25:12Z
[stopNumber] => 1
[totalStopsInRun] => 1
[runNumber] => 1
[runReference] => fcbf3b2b65b1416b8831ca6d5e79c48d
[eta] =>
[factArrivalTimeGPS] =>
[factCompletionTimeGPS] =>
[factArrivalTimeReported] =>
[factCompletionTimeReported] =>
[failReason] =>
[failComment] =>
[status] => ACCEPTED
[driver] => Andy Goddard
[arrival_planned] => 2025-10-27T16:20:12Z
[arrival_estimated] =>
[arrival_actual] =>
[totalStops] => 1
)
Updating order: SO-00475
Update ID vu21q3gbcjjulxn with: Array
(
[custom] => Array
(
)
[driverRef] => Andy Goddard
[vehicleRef] => WD25HWY
[seqNo] => 1
)
Updated order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] =>
[contactName] => Dean .
[contactNotes] =>
[contactPhone] => 07572961803
[created] => 2025-10-21 08:48:33.575Z
[custom] => Array
(
)
[customer] => zcnqlrwj08oc63n
[deliveryCity] => Watchet
[deliveryCounty] =>
[deliveryEnd] => 2025-10-27 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Pebbles Tavern
[deliveryPostcode] => TA23 0AN
[deliveryStart] => 2025-10-27 00:00:00.000Z
[deliveryStreet] => 24 Market St
[description] =>
[driverRef] => Andy Goddard
[externalCustomerId] => 499326000045513029
[externalLocationId] => 499326000045513031
[externalOrderId] => 499326000049865463
[id] => vu21q3gbcjjulxn
[isCancelled] =>
[isCollection] =>
[isReadyToSync] => 1
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] =>
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] =>
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] =>
[pendingSyncToSource] =>
[ref] =>
[refId] => SO-00475
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Pending
[syncInCreated] => 2025-10-21 08:48:26.000Z
[syncInStatus] => closed
[syncInUpdated] => 2025-10-27 11:10:51.000Z
[syncOutStatus] => UNALLOCATED
[syncOutUpdated] => 2025-10-27 11:11:00.000Z
[timeWindows] => Array
(
)
[title] => Pebbles Tavern
[totalValue] => 119.99
[totalWeight] => 0
[type] =>
[updated] => 2025-10-27 15:20:39.549Z
[vehicleRef] => WD25HWY
[what3Words] =>
)
Updating source from local order
Getting custom fields
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-07-18 02:35:52.065Z
[id] => nc7sndad5bhvi5x
[inCollection] => orders
[inField] => paymentMethod
[mappedField] => 7DCPayment
[name] => Payment method
[sourceField] =>
[syncFromSource] => 1
[syncToSource] =>
[type] => text
[updated] => 2025-07-18 02:35:52.065Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Processing field
Mapped field: 7DCEmpties
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
Processing field
Mapped field: 7DCEmptiesGas
Custom fields: Array
(
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:03:34.631Z
[id] => pcn96l3kgkps4az
[inCollection] => orders
[inField] => driverRef
[mappedField] =>
[name] => Delivery driver
[sourceField] => cf_delivery_driver
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:03:34.631Z
)
Processing field
driverRef...
Value: Andy Goddard
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-08 04:52:51.399Z
[id] => hhrzcmytzs8p3kw
[inCollection] => orders
[inField] => seqNo
[mappedField] =>
[name] => Run number
[sourceField] => cf_run_number
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-08 04:52:51.399Z
)
Processing field
seqNo...
Value: 1
Finished processing field
Continue
Updating source order: Array
(
[custom_fields] => Array
(
[0] => Array
(
[api_name] => cf_delivery_driver
[value] => Andy Goddard
)
[1] => Array
(
[api_name] => cf_run_number
[value] => 1
)
)
)
Update result: Array
(
[code] => 0
[message] => Sales Order has been updated.
[salesorder] => Array
(
[salesorder_id] => 499326000049865463
[is_viewed_in_mail] =>
[mail_first_viewed_time] =>
[mail_last_viewed_time] =>
[documents] => Array
(
)
[zcrm_potential_id] =>
[zcrm_potential_name] =>
[salesorder_number] => SO-00475
[date] => 2025-10-27
[offline_created_date_with_time] =>
[tracking_url] =>
[has_discount] =>
[status] => confirmed
[color_code] =>
[current_sub_status_id] =>
[current_sub_status] => closed
[sub_statuses] => Array
(
)
[shipment_date] =>
[reference_number] =>
[customer_id] => 499326000045513029
[customer_name] => Pebbles Tavern
[contact_persons] => Array
(
)
[contact_persons_associated] => Array
(
)
[contact_person_details] => Array
(
[0] => Array
(
[phone] =>
[mobile] => 07572961803
[last_name] => .
[contact_person_id] => 499326000045513047
[first_name] => Dean
[email] =>
)
)
[source] => Api
[contact_category] => uk
[is_taxable] =>
[has_shipping_address] => 1
[currency_id] => 499326000000000065
[currency_code] => GBP
[currency_symbol] => £
[exchange_rate] => 1
[is_discount_before_tax] => 1
[discount_type] => item_level
[estimate_id] =>
[delivery_method] =>
[delivery_method_id] =>
[vat_treatment] => uk
[is_inclusive_tax] =>
[tax_rounding] => entity_level
[tax_override_preference] => no_override
[order_status] => closed
[invoiced_status] => invoiced
[paid_status] => unpaid
[shipped_status] => pending
[sales_channel] => direct_sales
[sales_channel_formatted] => Direct Sales
[account_identifier] =>
[integration_id] =>
[is_dropshipped] =>
[is_backordered] =>
[is_manually_fulfilled] =>
[can_manually_fulfill] => 1
[has_qty_cancelled] =>
[is_reverse_charge_applied] =>
[shipping_details] => Array
(
)
[created_by_email] => jem@7daycellar.co.uk
[created_by_name] => Jem Glanvill
[branch_id] => 499326000023111007
[branch_name] => Head Office
[location_id] => 499326000023111007
[location_name] => Head Office
[total_quantity] => 1
[line_items] => Array
(
[0] => Array
(
[line_item_id] => 499326000049865469
[variant_id] => 499326000046845341
[track_batch_number] =>
[item_id] => 499326000046845341
[is_returnable] =>
[product_id] => 499326000046845341
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] =>
[name] => Oakham Ales Citra 4.2%
[group_name] => Oakham Ales Citra 4.2%
[description] =>
[item_order] => 1
[bcy_rate] => 99.99
[rate] => 99.99
[sales_rate] => 94.99
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] =>
[header_id] => 499326000049865461
[header_name] => Oakham citra pump clip
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 20
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 99.99
[item_sub_total] => 99.99
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] => Oakham Ales Citra.png
[image_type] => png
[document_id] => 499326000048606862
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 1
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] =>
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
)
[is_advanced_tracking_missing] =>
[entity_tags] =>
[submitter_id] =>
[approver_id] =>
[submitted_date] =>
[submitted_by] =>
[submitted_by_name] =>
[submitted_by_email] =>
[submitted_by_photo_url] =>
[price_precision] => 2
[is_emailed] =>
[has_unconfirmed_line_item] =>
[picklists] => Array
(
)
[purchaseorders] => Array
(
)
[locations] => Array
(
[0] => Array
(
[location_id] => 499326000023111007
[location_name] => Head Office
[status] => active
)
[1] => Array
(
[location_id] => 499326000041689155
[location_name] => Bason Bridge Brewery Duty Bonded Warehouse
[status] => active
)
)
[billing_address_id] => 499326000045513031
[billing_address] => Array
(
[address] => 24 Market St
[street2] =>
[city] => Watchet
[state] =>
[zip] => TA23 0AN
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[shipping_address_id] => 499326000045513033
[shipping_address] => Array
(
[company_name] =>
[address] =>
[street2] =>
[city] =>
[state] =>
[zip] =>
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[is_test_order] =>
[notes] => Account Name: 7 Day Cellar Ltd
Sort Code: 09-01-30
Account No: 10888924
[terms] =>
[payment_terms] => 0
[payment_terms_label] => Due On Receipt
[custom_fields] => Array
(
[0] => Array
(
[field_id] => 499326000042690007
[customfield_id] => 499326000042690007
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 1
[label] => Automation Required
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[is_color_code_supported] =>
[api_name] => cf__ulrql_automation_required
[show_in_all_pdf] =>
[selected_option_id] => 499326000042690011
[value_formatted] => Yes
[search_entity] => salesorder
[data_type] => dropdown
[placeholder] => cf__ulrql_automation_required
[value] => Yes
[is_dependent_field] =>
)
[1] => Array
(
[field_id] => 499326000046252173
[customfield_id] => 499326000046252173
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 2
[label] => Delivery Driver
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_driver
[show_in_all_pdf] =>
[value_formatted] => Andy Goddard
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_driver
[value] => Andy Goddard
[is_dependent_field] =>
)
[2] => Array
(
[field_id] => 499326000047922345
[customfield_id] => 499326000047922345
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 3
[label] => Run Number
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_run_number
[show_in_all_pdf] =>
[value_formatted] => 1
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_run_number
[value] => 1
[is_dependent_field] =>
)
)
[custom_field_hash] => Array
(
[cf__ulrql_automation_required] => Yes
[cf__ulrql_automation_required_unformatted] => Yes
[cf_delivery_driver] => Andy Goddard
[cf_delivery_driver_unformatted] => Andy Goddard
[cf_run_number] => 1
[cf_run_number_unformatted] => 1
)
[template_id] => 499326000000000111
[template_name] => Standard Template
[page_width] => 8.27in
[page_height] => 11.69in
[orientation] => portrait
[template_type] => standard
[created_time] => 2025-10-21T09:48:26+0100
[last_modified_time] => 2025-10-27T15:20:39+0000
[created_by_id] => 499326000044231001
[created_date] => 2025-10-21
[last_modified_by_id] => 499326000044410001
[attachment_name] =>
[can_send_in_mail] =>
[salesperson_id] => 499326000045029073
[salesperson_name] => Jem Glanvill
[merchant_id] =>
[merchant_name] =>
[pickup_location_id] =>
[discount] => 0
[discount_applied_on_amount] => 0
[is_adv_tracking_in_package] =>
[shipping_charge_taxes] => Array
(
)
[lock_details] => Array
(
[can_lock] =>
)
[locked_actions] => Array
(
)
[shipping_charge_tax_id] =>
[shipping_charge_tax_name] =>
[shipping_charge_tax_type] =>
[shipping_charge_tax_percentage] =>
[shipping_charge_tax_exemption_id] =>
[shipping_charge_tax_exemption_code] =>
[shipping_charge_tax] =>
[bcy_shipping_charge_tax] =>
[shipping_charge_exclusive_of_tax] => 0
[shipping_charge_inclusive_of_tax] => 0
[shipping_charge_tax_formatted] =>
[shipping_charge_exclusive_of_tax_formatted] => £0.00
[shipping_charge_inclusive_of_tax_formatted] => £0.00
[shipping_charge] => 0
[bcy_shipping_charge] => 0
[adjustment] => 0
[bcy_adjustment] => 0
[adjustment_description] => Adjustment
[roundoff_value] => 0
[transaction_rounding_type] => no_rounding
[rounding_mode] => round_half_up
[bcy_rounding_mode] => round_half_up
[sub_total] => 99.99
[bcy_sub_total] => 99.99
[sub_total_inclusive_of_tax] => 0
[sub_total_exclusive_of_discount] => 99.99
[discount_total] => 0
[bcy_discount_total] => 0
[discount_percent] => 0
[tax_total] => 20
[bcy_tax_total] => 20
[total] => 119.99
[computation_type] => basic
[bcy_total] => 119.99
[reverse_charge_tax_total] => 0
[taxes] => Array
(
[0] => Array
(
[tax_amount] => 20
[tax_name] => Standard Rate
[tax_amount_formatted] => £20.00
)
)
[tds_calculation_type] => tds_item_level
[packages] => Array
(
)
[so_cycle_preference] => Array
(
[is_feature_enabled] => 1
[socycle_status] => not_triggered
[can_create_invoice] => 1
[can_create_package] =>
[can_create_shipment] =>
[shipment_preference] => Array
(
[default_carrier] =>
[send_notification] =>
[deliver_shipments] =>
)
[invoice_preference] => Array
(
[mark_as_sent] =>
[record_payment] =>
[payment_mode_id] => 499326000000000199
[payment_account_id] => 499326000000000349
)
)
[invoices] => Array
(
[0] => Array
(
[invoice_id] => 499326000050178769
[invoice_number] => INV-26577
[reference_number] => SO-00475
[status] => sent
[date] => 2025-10-27
[due_date] => 2025-10-27
[total] => 119.99
[balance] => 119.99
)
)
[can_show_kit_return] =>
[is_kit_partial_return] =>
[salesreturns] => Array
(
)
[payments] => Array
(
)
[creditnotes] => Array
(
)
[refunds] => Array
(
)
[contact] => Array
(
[contact_number] => CUS-00683
[customer_balance] => 119.99
[credit_limit] => 0
[unused_customer_credits] => 0
[is_credit_limit_migration_completed] => 1
)
[balance] => 119.99
[approvers_list] => Array
(
)
[is_scheduled_for_quick_shipment_create] =>
)
)
Finished at 2025-10-27 15:20:40
Webhook - sourceUpdated script called at 2025-10-27 15:20:55
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050205314","salesorder_no":"SO-00480","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000050205314","salesorder_no":"SO-00480","status":"invoiced"}}
EXT ID: 499326000050205314
REF: SO-00480
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050205314 (REF SO-00480)
Local order updated = 2025-10-27 15:17:00.000Z,
source updated = 2025-10-27T15:20:37+0000,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[notes] => delivery round back
[externalOrderId] => 499326000050205314
[refId] => SO-00480
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[title] => Alex Cullum
[deliveryStart] => 2025-10-27
[deliveryEnd] => 2025-10-27
[totalValue] => 28.19
[totalWeight] => 0
[syncInCreated] => 2025-10-27T15:16:57+0000
[syncInUpdated] => 2025-10-27T15:20:37+0000
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000050205320
[externalProductId] => 499326000049242723
[sku] =>
[title] => Brue Lager Cans 440ml x 24
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 23.49
[price] => 23.49
)
)
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
[paymentMethod] => Cash - Don't Leave
)
Does this order already exist?
Yes
Existing custom fields: Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
Is array
Merging custom fields...
Order data prepared for sync: Array
(
[contactPhone] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[notes] => delivery round back
[externalOrderId] => 499326000050205314
[refId] => SO-00480
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[title] => Alex Cullum
[deliveryStart] => 2025-10-27
[deliveryEnd] => 2025-10-27
[totalValue] => 28.19
[totalWeight] => 0
[syncInCreated] => 2025-10-27T15:16:57+0000
[syncInUpdated] => 2025-10-27T15:20:37+0000
[syncInStatus] => closed
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
[paymentMethod] => Cash - Don't Leave
[syncOutUpdated] => 2025-10-27T15:20:55+00:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Alex Cullum
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => [{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"},{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"}]
)
Updating order
Getting customer details
2025-10-16 09:10:57.000Z != 2025-10-27T15:17:27+0000
Customer changed - updating 499326000021060129
Updating order contact details
Getting products
Updating product 499326000049242723
Updating order product 499326000050205320
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00480
Processing order: 2pkbznzmk1ohew2, ref SO-00480
Syncing SO-00480
Using default start and end times
Time window: 2025-10-27T06:00:00+00:00 - 2025-10-27T20:00:00+00:00
Found order in MaxOptra? yes
MO updated: 27/10/2025 15:20 - Local updated: 2025-10-27 15:20:55.000Z - Source updated: 2025-10-27 15:20:37.000Z
Changed? yes
Current MaxOptra status: ACCEPTED
Completed? no
Previous status: UNALLOCATED
Status changed - mark for sync back to source
Is allocated? yes
MO delivery date: 2025-10-27, Local delivery date: 2025-10-27
Local updated: 2025-10-27 15:20:55.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Communication error with MaxOptra (412)
orders/SO-00480
https://7daycellar.maxoptra.com/api/v6/orders/SO-00480
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000021060132
Array
(
[referenceNumber] => 499326000021060132
[name] => Alex Cullum, The Old Rectory, Church Lane, Bristol
[address] => BS26 2QP
)
499326000021060132
Error updating SO-00480
"{\"data\":null,\"errors\":[{\"code\":\"ORDER_IS_LOCKED\",\"name\":\"The order is locked\",\"details\":null,\"field\":null}],\"warnings\":[]}"
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00480
Done all.
Finished at 2025-10-27 15:20:57
Webhook - sourceUpdated script called at 2025-10-27 15:21:25
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050205314","salesorder_no":"SO-00480","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000050205314","salesorder_no":"SO-00480","status":"open"}}
EXT ID: 499326000050205314
REF: SO-00480
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Error: API Error (404): Sales Order does not exist.
Error: Failed to sync source order
Finished at 2025-10-27 15:21:25
Webhook - sourceDeleted script called at 2025-10-27 15:21:26
Source: Zoho
Data: {"salesorder":{"salesorder_no":"SO-00480"}}
JSON: {"salesorder":{"salesorder_no":"SO-00480"}}
REF: SO-00480
200 response code sent
Deleting order: SO-00480
Deleting from MaxOptra
Finished at 2025-10-27 15:21:26
Webhook - sourceUpdated script called at 2025-10-27 15:22:00
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050205314","salesorder_no":"SO-00480","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000050205314","salesorder_no":"SO-00480","status":"open"}}
EXT ID: 499326000050205314
REF: SO-00480
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Error: API Error (404): Sales Order does not exist.
Error: Failed to sync source order
Finished at 2025-10-27 15:22:01
Webhook - sourceUpdated script called at 2025-10-27 15:25:37
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050205314","salesorder_no":"SO-00480","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000050205314","salesorder_no":"SO-00480","status":"invoiced"}}
EXT ID: 499326000050205314
REF: SO-00480
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Error: API Error (404): Sales Order does not exist.
Error: Failed to sync source order
Finished at 2025-10-27 15:25:38
Webhook - sourceUpdated script called at 2025-10-27 15:25:39
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049865463","salesorder_no":"SO-00475","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000049865463","salesorder_no":"SO-00475","status":"invoiced"}}
EXT ID: 499326000049865463
REF: SO-00475
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049865463 (REF SO-00475)
Local order updated = 2025-10-27 11:10:51.000Z,
source updated = 2025-10-27T15:20:39+0000,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] => 07572961803
[contactEmail] =>
[contactName] => Dean .
[notes] =>
[externalOrderId] => 499326000049865463
[refId] => SO-00475
[externalCustomerId] => 499326000045513029
[externalLocationId] => 499326000045513031
[title] => Pebbles Tavern
[deliveryStart] => 2025-10-27
[deliveryEnd] => 2025-10-27
[totalValue] => 119.99
[totalWeight] => 0
[syncInCreated] => 2025-10-21T09:48:26+0100
[syncInUpdated] => 2025-10-27T15:20:39+0000
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000049865469
[externalProductId] => 499326000046845341
[sku] =>
[title] => Oakham Ales Citra 4.2%
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 99.99
[price] => 99.99
)
[1] => Array
(
[externalOrderProductId] => HEADER-499326000049865469
[externalProductId] => 499326000049865461
[sku] =>
[title] => Oakham citra pump clip
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
)
[deliveryName] => Pebbles Tavern
[deliveryStreet] => 24 Market St
[deliveryCity] => Watchet
[deliveryCounty] =>
[deliveryPostcode] => TA23 0AN
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] => 07572961803
[contactEmail] =>
[contactName] => Dean .
[notes] =>
[externalOrderId] => 499326000049865463
[refId] => SO-00475
[externalCustomerId] => 499326000045513029
[externalLocationId] => 499326000045513031
[title] => Pebbles Tavern
[deliveryStart] => 2025-10-27
[deliveryEnd] => 2025-10-27
[totalValue] => 119.99
[totalWeight] => 0
[syncInCreated] => 2025-10-21T09:48:26+0100
[syncInUpdated] => 2025-10-27T15:20:39+0000
[syncInStatus] => closed
[deliveryName] => Pebbles Tavern
[deliveryStreet] => 24 Market St
[deliveryCity] => Watchet
[deliveryCounty] =>
[deliveryPostcode] => TA23 0AN
[syncOutUpdated] => 2025-10-27T15:25:40+00:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Dean .
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000045513029
Getting products
Updating product 499326000046845341
Updating order product 499326000049865469
Updated
Updating product 499326000049865461
Updating order product HEADER-499326000049865469
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00475
Webhook - sourceUpdated script called at 2025-10-27 15:25:40
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049865463","salesorder_no":"SO-00475","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000049865463","salesorder_no":"SO-00475","status":"invoiced"}}
EXT ID: 499326000049865463
REF: SO-00475
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Processing order: vu21q3gbcjjulxn, ref SO-00475
Syncing SO-00475
Using default start and end times
Time window: 2025-10-27T06:00:00+00:00 - 2025-10-27T20:00:00+00:00
Found order in MaxOptra? yes
MO updated: 27/10/2025 15:20 - Local updated: 2025-10-27 15:25:40.000Z - Source updated: 2025-10-27 15:20:39.000Z
Changed? yes
Current MaxOptra status: ACCEPTED
Completed? no
Previous status: UNALLOCATED
Status changed - mark for sync back to source
Getting local orders...
Is allocated? yes
MO delivery date: 2025-10-27, Local delivery date: 2025-10-27
Local updated: 2025-10-27 15:25:40.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
------------------------
Processing order 499326000049865463 (REF SO-00475)
Updates pending to source for order: 499326000049865463
Updates found - pushing to source
Communication error with MaxOptra (412)
orders/SO-00475
https://7daycellar.maxoptra.com/api/v6/orders/SO-00475
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000045513031
Array
(
[referenceNumber] => 499326000045513031
[name] => Pebbles Tavern, 24 Market St, Watchet
[address] => TA23 0AN
)
499326000045513031
Error updating SO-00475
"{\"data\":null,\"errors\":[{\"code\":\"ORDER_IS_LOCKED\",\"name\":\"The order is locked\",\"details\":null,\"field\":null}],\"warnings\":[]}"
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00475
Done all.
Finished at 2025-10-27 15:25:41
Done updating. Proceeding to sync from source.
Local order updated = 2025-10-27 15:20:39.000Z,
source updated = 2025-10-27T15:20:39+0000,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00475
Processing order: vu21q3gbcjjulxn, ref SO-00475
Syncing SO-00475
Using default start and end times
Time window: 2025-10-27T06:00:00+00:00 - 2025-10-27T20:00:00+00:00
Found order in MaxOptra? yes
MO updated: 27/10/2025 15:20 - Local updated: 2025-10-27 15:20:00.000Z - Source updated: 2025-10-27 15:20:39.000Z
Changed? yes
Current MaxOptra status: ACCEPTED
Completed? no
Previous status: ACCEPTED
Is allocated? yes
MO delivery date: 2025-10-27, Local delivery date: 2025-10-27
Local updated: 2025-10-27 15:20:00.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Communication error with MaxOptra (412)
orders/SO-00475
https://7daycellar.maxoptra.com/api/v6/orders/SO-00475
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000045513031
Array
(
[referenceNumber] => 499326000045513031
[name] => Pebbles Tavern, 24 Market St, Watchet
[address] => TA23 0AN
)
499326000045513031
Error updating SO-00475
"{\"data\":null,\"errors\":[{\"code\":\"ORDER_IS_LOCKED\",\"name\":\"The order is locked\",\"details\":null,\"field\":null}],\"warnings\":[]}"
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00475
Done all.
Finished at 2025-10-27 15:25:43
Webhook - sourceUpdated script called at 2025-10-27 15:26:02
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000049865463","salesorder_no":"SO-00475","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000049865463","salesorder_no":"SO-00475","status":"invoiced"}}
EXT ID: 499326000049865463
REF: SO-00475
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000049865463 (REF SO-00475)
Local order updated = 2025-10-27 15:20:39.000Z,
source updated = 2025-10-27T15:25:41+0000,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] => 07572961803
[contactEmail] =>
[contactName] => Dean .
[notes] =>
[externalOrderId] => 499326000049865463
[refId] => SO-00475
[externalCustomerId] => 499326000045513029
[externalLocationId] => 499326000045513031
[title] => Pebbles Tavern
[deliveryStart] => 2025-10-27
[deliveryEnd] => 2025-10-27
[totalValue] => 119.99
[totalWeight] => 0
[syncInCreated] => 2025-10-21T09:48:26+0100
[syncInUpdated] => 2025-10-27T15:25:41+0000
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000049865469
[externalProductId] => 499326000046845341
[sku] =>
[title] => Oakham Ales Citra 4.2%
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 99.99
[price] => 99.99
)
[1] => Array
(
[externalOrderProductId] => HEADER-499326000049865469
[externalProductId] => 499326000049865461
[sku] =>
[title] => Oakham citra pump clip
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
)
[deliveryName] => Pebbles Tavern
[deliveryStreet] => 24 Market St
[deliveryCity] => Watchet
[deliveryCounty] =>
[deliveryPostcode] => TA23 0AN
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] => 07572961803
[contactEmail] =>
[contactName] => Dean .
[notes] =>
[externalOrderId] => 499326000049865463
[refId] => SO-00475
[externalCustomerId] => 499326000045513029
[externalLocationId] => 499326000045513031
[title] => Pebbles Tavern
[deliveryStart] => 2025-10-27
[deliveryEnd] => 2025-10-27
[totalValue] => 119.99
[totalWeight] => 0
[syncInCreated] => 2025-10-21T09:48:26+0100
[syncInUpdated] => 2025-10-27T15:25:41+0000
[syncInStatus] => closed
[deliveryName] => Pebbles Tavern
[deliveryStreet] => 24 Market St
[deliveryCity] => Watchet
[deliveryCounty] =>
[deliveryPostcode] => TA23 0AN
[syncOutUpdated] => 2025-10-27T15:26:02+00:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Dean .
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000045513029
Getting products
Updating product 499326000046845341
Updating order product 499326000049865469
Updated
Updating product 499326000049865461
Updating order product HEADER-499326000049865469
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00475
Processing order: vu21q3gbcjjulxn, ref SO-00475
Syncing SO-00475
Using default start and end times
Time window: 2025-10-27T06:00:00+00:00 - 2025-10-27T20:00:00+00:00
Found order in MaxOptra? yes
MO updated: 27/10/2025 15:20 - Local updated: 2025-10-27 15:26:02.000Z - Source updated: 2025-10-27 15:25:41.000Z
Changed? yes
Current MaxOptra status: ACCEPTED
Completed? no
Previous status: ACCEPTED
Is allocated? yes
MO delivery date: 2025-10-27, Local delivery date: 2025-10-27
Local updated: 2025-10-27 15:26:02.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Communication error with MaxOptra (412)
orders/SO-00475
https://7daycellar.maxoptra.com/api/v6/orders/SO-00475
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000045513031
Array
(
[referenceNumber] => 499326000045513031
[name] => Pebbles Tavern, 24 Market St, Watchet
[address] => TA23 0AN
)
499326000045513031
Error updating SO-00475
"{\"data\":null,\"errors\":[{\"code\":\"ORDER_IS_LOCKED\",\"name\":\"The order is locked\",\"details\":null,\"field\":null}],\"warnings\":[]}"
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00475
Done all.
Finished at 2025-10-27 15:26:04
Webhook - sourceUpdated script called at 2025-10-27 15:31:40
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050205505","salesorder_no":"SO-00481","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000050205505","salesorder_no":"SO-00481","status":"open"}}
EXT ID: 499326000050205505
REF: SO-00481
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Error: API Error (404): Sales Order does not exist.
Error: Failed to sync source order
Finished at 2025-10-27 15:31:40
Webhook - sourceDeleted script called at 2025-10-27 15:31:41
Source: Zoho
Data: {"salesorder":{"salesorder_no":"SO-00481"}}
JSON: {"salesorder":{"salesorder_no":"SO-00481"}}
REF: SO-00481
200 response code sent
Deleting order: SO-00481
Deleting from MaxOptra
Deleted order SO-00481. Deleting from local database.
Finished at 2025-10-27 15:31:41
Webhook - sourceUpdated script called at 2025-10-27 15:36:13
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050205505","salesorder_no":"SO-00481","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000050205505","salesorder_no":"SO-00481","status":"draft"}}
EXT ID: 499326000050205505
REF: SO-00481
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Error: API Error (404): Sales Order does not exist.
Error: Failed to sync source order
Finished at 2025-10-27 15:36:13
Webhook - sourceUpdated script called at 2025-10-27 15:36:19
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050205505","salesorder_no":"SO-00481","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000050205505","salesorder_no":"SO-00481","status":"invoiced"}}
EXT ID: 499326000050205505
REF: SO-00481
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Error: API Error (404): Sales Order does not exist.
Error: Failed to sync source order
Finished at 2025-10-27 15:36:19
Webhook - sourceUpdated script called at 2025-10-27 15:36:29
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050205505","salesorder_no":"SO-00481","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000050205505","salesorder_no":"SO-00481","status":"invoiced"}}
EXT ID: 499326000050205505
REF: SO-00481
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Error: API Error (404): Sales Order does not exist.
Error: Failed to sync source order
Finished at 2025-10-27 15:36:29
Webhook - sourceUpdated script called at 2025-10-27 15:36:31
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050205505","salesorder_no":"SO-00481","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000050205505","salesorder_no":"SO-00481","status":"open"}}
EXT ID: 499326000050205505
REF: SO-00481
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Error: API Error (404): Sales Order does not exist.
Error: Failed to sync source order
Finished at 2025-10-27 15:36:31
Webhook - sourceDeleted script called at 2025-10-28 08:35:10
Source: Zoho
Data: {"salesorder":{"salesorder_no":"SO-00303"}}
JSON: {"salesorder":{"salesorder_no":"SO-00303"}}
REF: SO-00303
200 response code sent
Deleting order: SO-00303
Deleting from MaxOptra
Deleted order SO-00303. Deleting from local database.
Finished at 2025-10-28 08:35:10
Webhook - sourceDeleted script called at 2025-10-28 08:35:10
Source: Zoho
Data: {"salesorder":{"salesorder_no":"SO-00470"}}
JSON: {"salesorder":{"salesorder_no":"SO-00470"}}
REF: SO-00470
200 response code sent
Deleting order: SO-00470
Deleting from MaxOptra
Finished at 2025-10-28 08:35:11
Webhook - sourceDeleted script called at 2025-10-28 08:35:11
Source: Zoho
Data: {"salesorder":{"salesorder_no":"SO-00104"}}
JSON: {"salesorder":{"salesorder_no":"SO-00104"}}
REF: SO-00104
200 response code sent
Deleting order: SO-00104
Deleting from MaxOptra
Finished at 2025-10-28 08:35:11
Webhook - sourceUpdated script called at 2025-10-28 08:36:51
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000046569089","salesorder_no":"SO-00297","status":"partially_invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000046569089","salesorder_no":"SO-00297","status":"partially_invoiced"}}
EXT ID: 499326000046569089
REF: SO-00297
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000046569089 (REF SO-00297)
Local order updated = 2025-08-21 21:20:43.000Z,
source updated = 2025-10-28T08:36:32+0000,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] => 07960510132
[contactEmail] => davebroom01@hotmail.co.uk
[contactName] => Dave Broom
[notes] =>
[externalOrderId] => 499326000046569089
[refId] => SO-00297
[externalCustomerId] => 499326000000426397
[externalLocationId] => 499326000000426400
[title] => The Village Club (Peasedown St John)
[deliveryStart] => 2025-08-08
[deliveryEnd] => 2025-08-08
[totalValue] => 827.14
[totalWeight] => 360
[syncInCreated] => 2025-08-08T09:51:36+0100
[syncInUpdated] => 2025-10-28T08:36:32+0000
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000046569095
[externalProductId] => 499326000000062474
[sku] => BB-LSPS-50LK
[title] => Los Perros 5% - 50Ltr
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 109
[price] => 109
)
[1] => Array
(
[externalOrderProductId] => 499326000046569097
[externalProductId] => 499326000000062843
[sku] => TTCG-DRY-50LK
[title] => Thatchers Dry 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 110.99
[price] => 110.99
)
[2] => Array
(
[externalOrderProductId] => 499326000046569099
[externalProductId] => 499326000000061385
[sku] => BBG-SAAS-10GK
[title] => Stella Artois 4.6% 10g
[notes] =>
[quantity] => 2
[weightKg] => 56
[weightTotal] => 112
[priceTotal] => 225.84
[price] => 112.92
)
[3] => Array
(
[externalOrderProductId] => 499326000046569101
[externalProductId] => 499326000000063572
[sku] => TTCG-FUSI-50LK
[title] => Thatcher's Fusion Cider 50Ltr
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 133.46
[price] => 133.46
)
[4] => Array
(
[externalOrderProductId] => 499326000046569546
[externalProductId] => 499326000038256286
[sku] => THTC-JYAE-50LK
[title] => Juicy Apple
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 109.99
[price] => 109.99
)
)
[deliveryName] => The Village Club (Peasedown St John)
[deliveryStreet] => Whitebrook Lane
[deliveryCity] => Peasedown St John
[deliveryCounty] =>
[deliveryPostcode] => BA2 8LD
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] => 07960510132
[contactEmail] => davebroom01@hotmail.co.uk
[contactName] => Dave Broom
[notes] =>
[externalOrderId] => 499326000046569089
[refId] => SO-00297
[externalCustomerId] => 499326000000426397
[externalLocationId] => 499326000000426400
[title] => The Village Club (Peasedown St John)
[deliveryStart] => 2025-08-08
[deliveryEnd] => 2025-08-08
[totalValue] => 827.14
[totalWeight] => 360
[syncInCreated] => 2025-08-08T09:51:36+0100
[syncInUpdated] => 2025-10-28T08:36:32+0000
[syncInStatus] => closed
[deliveryName] => The Village Club (Peasedown St John)
[deliveryStreet] => Whitebrook Lane
[deliveryCity] => Peasedown St John
[deliveryCounty] =>
[deliveryPostcode] => BA2 8LD
[syncOutUpdated] => 2025-10-28T08:36:52+00:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Dave Broom
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
2025-08-07 17:21:19.000Z != 2025-10-16T08:49:50+0100
Customer changed - updating 499326000000426397
Updating order contact details
Getting products
Updating product 499326000000062474
Updating order product 499326000046569095
Updated
Updating product 499326000000062843
Updating order product 499326000046569097
Updated
Updating product 499326000000061385
Updating order product 499326000046569099
Updated
Updating product 499326000000063572
Updating order product 499326000046569101
Updated
Updating product 499326000038256286
Updating order product 499326000046569546
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00297
Processing order: 7eecdbkag1go9k9, ref SO-00297
Syncing SO-00297
Using default start and end times
Delivery start = 2025-08-08 00:00:00.000Z = 2025-08-08T06:00:00+01:00
Delivery end = 2025-08-08 00:00:00.000Z = 2025-08-08T20:00:00+01:00
Delivery is in the past. Skipping creation/update in MaxOptra.
Found order in MaxOptra? no
Done
Finished syncing to MaxOptra for order SO-00297
Done all.
Finished at 2025-10-28 08:36:52
Webhook - sourceDeleted script called at 2025-10-28 08:39:47
Source: Zoho
Data: {"salesorder":{"salesorder_no":"SO-00049"}}
JSON: {"salesorder":{"salesorder_no":"SO-00049"}}
REF: SO-00049
200 response code sent
Deleting order: SO-00049
Deleting from MaxOptra
Finished at 2025-10-28 08:39:47
Webhook - sourceDeleted script called at 2025-10-28 08:39:47
Source: Zoho
Data: {"salesorder":{"salesorder_no":"SO-00057"}}
JSON: {"salesorder":{"salesorder_no":"SO-00057"}}
REF: SO-00057
200 response code sent
Deleting order: SO-00057
Deleting from MaxOptra
Finished at 2025-10-28 08:39:48
Webhook - sourceDeleted script called at 2025-10-28 08:39:48
Source: Zoho
Data: {"salesorder":{"salesorder_no":"SO-00050"}}
JSON: {"salesorder":{"salesorder_no":"SO-00050"}}
REF: SO-00050
200 response code sent
Deleting order: SO-00050
Deleting from MaxOptra
Webhook - sourceDeleted script called at 2025-10-28 08:39:48
Source: Zoho
Data: {"salesorder":{"salesorder_no":"SO-00199"}}
JSON: {"salesorder":{"salesorder_no":"SO-00199"}}
REF: SO-00199
200 response code sent
Deleting order: SO-00199
Deleting from MaxOptra
Finished at 2025-10-28 08:39:48
Finished at 2025-10-28 08:39:49
Webhook - sourceUpdated script called at 2025-10-28 08:41:33
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000046788099","salesorder_no":"SO-00384","status":"partially_invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000046788099","salesorder_no":"SO-00384","status":"partially_invoiced"}}
EXT ID: 499326000046788099
REF: SO-00384
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000046788099 (REF SO-00384)
Local order updated = 2025-08-14 10:33:28.000Z,
source updated = 2025-10-28T08:36:32+0000,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => blackswanlangport@gmail.com
[contactName] => Mike Dandy
[notes] =>
[externalOrderId] => 499326000046788099
[refId] => SO-00384
[externalCustomerId] => 499326000000424055
[externalLocationId] => 499326000000424058
[title] => The Black Swan (Langport)
[deliveryStart] => 2025-08-14
[deliveryEnd] => 2025-08-14
[totalValue] => 492.06
[totalWeight] => 186.3
[syncInCreated] => 2025-08-14T10:49:13+0100
[syncInUpdated] => 2025-10-28T08:36:32+0000
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000046788105
[externalProductId] => 499326000000061772
[sku] => MCBC-MADR-50LK
[title] => Madri 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 154
[price] => 154
)
[1] => Array
(
[externalOrderProductId] => 499326000046788107
[externalProductId] => 499326000000063923
[sku] => TTCG-GOLD-50LK
[title] => Thatcher's Gold Cider 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 103.95
[price] => 103.95
)
[2] => Array
(
[externalOrderProductId] => 499326000046788109
[externalProductId] => 499326000000063572
[sku] => TTCG-FUSI-50LK
[title] => Thatcher's Fusion Cider 50Ltr
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 121.11
[price] => 121.11
)
[3] => Array
(
[externalOrderProductId] => 499326000046788111
[externalProductId] => 499326000000062915
[sku] => THTC-CYLN-CTRG
[title] => Cloudy Lemon Fusion Cartridge 275ml
[notes] =>
[quantity] => 1
[weightKg] => 0.3
[weightTotal] => 0.3
[priceTotal] => 30.99
[price] => 30.99
)
)
[deliveryName] => The Black Swan (Langport)
[deliveryStreet] => 3 North Street
[deliveryCity] => Langport
[deliveryCounty] =>
[deliveryPostcode] => TA10 9RQ
)
Does this order already exist?
Yes
Existing custom fields: Array
(
[0] => Array
(
[id] => u1872vvntf43464
[value] => The Black Swan (Langport)
)
)
Is array
Merging custom fields...
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => blackswanlangport@gmail.com
[contactName] => Mike Dandy
[notes] =>
[externalOrderId] => 499326000046788099
[refId] => SO-00384
[externalCustomerId] => 499326000000424055
[externalLocationId] => 499326000000424058
[title] => The Black Swan (Langport)
[deliveryStart] => 2025-08-14
[deliveryEnd] => 2025-08-14
[totalValue] => 492.06
[totalWeight] => 186.3
[syncInCreated] => 2025-08-14T10:49:13+0100
[syncInUpdated] => 2025-10-28T08:36:32+0000
[syncInStatus] => closed
[deliveryName] => The Black Swan (Langport)
[deliveryStreet] => 3 North Street
[deliveryCity] => Langport
[deliveryCounty] =>
[deliveryPostcode] => TA10 9RQ
[syncOutUpdated] => 2025-10-28T08:41:34+00:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Mike Dandy
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => [{"id":"u1872vvntf43464","value":"The Black Swan (Langport)"}]
)
Updating order
Getting customer details
2025-08-08 06:52:47.000Z != 2025-10-16T08:49:42+0100
Customer changed - updating 499326000000424055
Updating order contact details
Getting products
Updating product 499326000000061772
Updating order product 499326000046788105
Updated
Updating product 499326000000063923
Updating order product 499326000046788107
Updated
Updating product 499326000000063572
Updating order product 499326000046788109
Updated
Updating product 499326000000062915
Updating order product 499326000046788111
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00384
Processing order: sz4dtwljmrxlx14, ref SO-00384
Syncing SO-00384
Using default start and end times
Delivery start = 2025-08-14 00:00:00.000Z = 2025-08-14T06:00:00+01:00
Delivery end = 2025-08-14 00:00:00.000Z = 2025-08-14T20:00:00+01:00
Delivery is in the past. Skipping creation/update in MaxOptra.
Found order in MaxOptra? no
Done
Finished syncing to MaxOptra for order SO-00384
Done all.
Finished at 2025-10-28 08:41:35
Webhook - sourceDeleted script called at 2025-10-28 08:45:47
Source: Zoho
Data: {"salesorder":{"salesorder_no":"SO-00204"}}
JSON: {"salesorder":{"salesorder_no":"SO-00204"}}
REF: SO-00204
200 response code sent
Deleting order: SO-00204
Deleting from MaxOptra
Webhook - sourceDeleted script called at 2025-10-28 08:45:47
Source: Zoho
Data: {"salesorder":{"salesorder_no":"SO-00210"}}
JSON: {"salesorder":{"salesorder_no":"SO-00210"}}
Finished at 2025-10-28 08:45:47
REF: SO-00210
200 response code sent
Deleting order: SO-00210
Deleting from MaxOptra
Webhook - sourceDeleted script called at 2025-10-28 08:45:48
Source: Zoho
Data: {"salesorder":{"salesorder_no":"SO-00191"}}
JSON: {"salesorder":{"salesorder_no":"SO-00191"}}
REF: SO-00191
200 response code sent
Deleting order: SO-00191
Deleting from MaxOptra
Finished at 2025-10-28 08:45:48
Finished at 2025-10-28 08:45:48
Webhook - sourceDeleted script called at 2025-10-28 08:45:48
Source: Zoho
Data: {"salesorder":{"salesorder_no":"SO-00430"}}
JSON: {"salesorder":{"salesorder_no":"SO-00430"}}
REF: SO-00430
200 response code sent
Deleting order: SO-00430
Deleting from MaxOptra
Deleted order SO-00430. Deleting from local database.
Finished at 2025-10-28 08:45:48
Webhook - sourceUpdated script called at 2025-10-28 08:47:33
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000046478563","salesorder_no":"SO-00270","status":"partially_invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000046478563","salesorder_no":"SO-00270","status":"partially_invoiced"}}
EXT ID: 499326000046478563
REF: SO-00270
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000046478563 (REF SO-00270)
Local order updated = 2025-08-20 22:00:41.000Z,
source updated = 2025-10-28T08:36:32+0000,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] => 07511691978
[contactEmail] => l.bendle@hotmail.co.uk
[contactName] => Lynette Bendle
[notes] =>
[externalOrderId] => 499326000046478563
[refId] => SO-00270
[externalCustomerId] => 499326000000422111
[externalLocationId] =>
[title] => Railway Inn (Meare)
[deliveryStart] => 2025-08-06
[deliveryEnd] => 2025-08-06
[totalValue] => 807.43
[totalWeight] => 388
[syncInCreated] => 2025-08-06T09:29:26+0100
[syncInUpdated] => 2025-10-28T08:36:32+0000
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000046478569
[externalProductId] => 499326000000062555
[sku] => MCBC-STAR-50LK
[title] => Staropramen 5% - 50Ltr
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 144.95
[price] => 144.95
)
[1] => Array
(
[externalOrderProductId] => HEADER-499326000046478569
[externalProductId] => 499326000046482028
[sku] =>
[title] => Inchs to follow tomorrow
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
[2] => Array
(
[externalOrderProductId] => 499326000046478571
[externalProductId] => 499326000000063923
[sku] => TTCG-GOLD-50LK
[title] => Thatcher's Gold Cider 11g
[notes] =>
[quantity] => 2
[weightKg] => 62
[weightTotal] => 124
[priceTotal] => 193.98
[price] => 96.99
)
[3] => Array
(
[externalOrderProductId] => HEADER-499326000046478571
[externalProductId] => 499326000046482028
[sku] =>
[title] => Inchs to follow tomorrow
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
[4] => Array
(
[externalOrderProductId] => 499326000046478573
[externalProductId] => 499326000000063383
[sku] => CNC-NATC-50LK
[title] => Natch Cider 50 ltr
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 92.43
[price] => 92.43
)
[5] => Array
(
[externalOrderProductId] => HEADER-499326000046478573
[externalProductId] => 499326000046482028
[sku] =>
[title] => Inchs to follow tomorrow
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
[6] => Array
(
[externalOrderProductId] => 499326000046478575
[externalProductId] => 499326000000063932
[sku] => UKAL-CO2-10LC
[title] => CO2 Cylinder Gas 10ltr
[notes] =>
[quantity] => 1
[weightKg] => 16
[weightTotal] => 16
[priceTotal] => 23.5
[price] => 23.5
)
[7] => Array
(
[externalOrderProductId] => HEADER-499326000046478575
[externalProductId] => 499326000046482028
[sku] =>
[title] => Inchs to follow tomorrow
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
[8] => Array
(
[externalOrderProductId] => 499326000046478577
[externalProductId] => 499326000000062474
[sku] => BB-LSPS-50LK
[title] => Los Perros 5% - 50Ltr
[notes] =>
[quantity] => 2
[weightKg] => 62
[weightTotal] => 124
[priceTotal] => 218
[price] => 109
)
[9] => Array
(
[externalOrderProductId] => HEADER-499326000046478577
[externalProductId] => 499326000046482028
[sku] =>
[title] => Inchs to follow tomorrow
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
)
[deliveryName] => Railway Inn (Meare)
[deliveryStreet] => 89 Ashcott Road
[deliveryCity] => Glastonbury
[deliveryCounty] =>
[deliveryPostcode] => BA6 9SX
)
Does this order already exist?
Yes
Existing custom fields: Array
(
[0] => Array
(
[id] => u1872vvntf43464
[value] => Railway Inn (Meare)
)
)
Is array
Merging custom fields...
Order data prepared for sync: Array
(
[contactPhone] => 07511691978
[contactEmail] => l.bendle@hotmail.co.uk
[contactName] => Lynette Bendle
[notes] =>
[externalOrderId] => 499326000046478563
[refId] => SO-00270
[externalCustomerId] => 499326000000422111
[externalLocationId] =>
[title] => Railway Inn (Meare)
[deliveryStart] => 2025-08-06
[deliveryEnd] => 2025-08-06
[totalValue] => 807.43
[totalWeight] => 388
[syncInCreated] => 2025-08-06T09:29:26+0100
[syncInUpdated] => 2025-10-28T08:36:32+0000
[syncInStatus] => closed
[deliveryName] => Railway Inn (Meare)
[deliveryStreet] => 89 Ashcott Road
[deliveryCity] => Glastonbury
[deliveryCounty] =>
[deliveryPostcode] => BA6 9SX
[syncOutUpdated] => 2025-10-28T08:47:34+00:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Lynette Bendle
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => [{"id":"u1872vvntf43464","value":"Railway Inn (Meare)"}]
)
Updating order
Getting customer details
2025-08-07 14:25:31.000Z != 2025-10-16T08:49:34+0100
Customer changed - updating 499326000000422111
Updating order contact details
Getting products
Updating product 499326000000062555
Updating order product 499326000046478569
Updated
Updating product 499326000046482028
Updating order product HEADER-499326000046478569
Updated
Updating product 499326000000063923
Updating order product 499326000046478571
Updated
Updating product 499326000046482028
Updating order product HEADER-499326000046478571
Updated
Updating product 499326000000063383
Updating order product 499326000046478573
Updated
Updating product 499326000046482028
Updating order product HEADER-499326000046478573
Updated
Updating product 499326000000063932
Updating order product 499326000046478575
Updated
Updating product 499326000046482028
Updating order product HEADER-499326000046478575
Updated
Updating product 499326000000062474
Updating order product 499326000046478577
Updated
Updating product 499326000046482028
Updating order product HEADER-499326000046478577
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00270
Processing order: 49mzz4ati0mv23o, ref SO-00270
Syncing SO-00270
Using default start and end times
Delivery start = 2025-08-06 00:00:00.000Z = 2025-08-06T06:00:00+01:00
Delivery end = 2025-08-06 00:00:00.000Z = 2025-08-06T20:00:00+01:00
Delivery is in the past. Skipping creation/update in MaxOptra.
Found order in MaxOptra? no
Done
Finished syncing to MaxOptra for order SO-00270
Done all.
Finished at 2025-10-28 08:47:35
Webhook - sourceDeleted script called at 2025-10-28 08:52:47
Source: Zoho
Data: {"salesorder":{"salesorder_no":"SO-00478"}}
JSON: {"salesorder":{"salesorder_no":"SO-00478"}}
REF: SO-00478
200 response code sent
Deleting order: SO-00478
Deleting from MaxOptra
Webhook - sourceDeleted script called at 2025-10-28 08:52:47
Source: Zoho
Finished at 2025-10-28 08:52:47
Data: {"salesorder":{"salesorder_no":"SO-00045"}}
JSON: {"salesorder":{"salesorder_no":"SO-00045"}}
REF: SO-00045
200 response code sent
Deleting order: SO-00045
Deleting from MaxOptra
Deleted order SO-00045. Deleting from local database.
Finished at 2025-10-28 08:52:48
Webhook - sourceDeleted script called at 2025-10-28 08:52:48
Source: Zoho
Data: {"salesorder":{"salesorder_no":"SO-00192"}}
JSON: {"salesorder":{"salesorder_no":"SO-00192"}}
REF: SO-00192
200 response code sent
Deleting order: SO-00192
Deleting from MaxOptra
Finished at 2025-10-28 08:52:48
Webhook - sourceDeleted script called at 2025-10-28 08:52:48
Source: Zoho
Data: {"salesorder":{"salesorder_no":"SO-00215"}}
JSON: {"salesorder":{"salesorder_no":"SO-00215"}}
REF: SO-00215
200 response code sent
Deleting order: SO-00215
Deleting from MaxOptra
Deleted order SO-00215. Deleting from local database.
Finished at 2025-10-28 08:52:49
Webhook - sourceUpdated script called at 2025-10-28 08:54:34
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000046785143","salesorder_no":"SO-00382","status":"partially_invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000046785143","salesorder_no":"SO-00382","status":"partially_invoiced"}}
EXT ID: 499326000046785143
REF: SO-00382
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000046785143 (REF SO-00382)
Local order updated = 2025-08-14 17:35:39.000Z,
source updated = 2025-10-28T08:36:32+0000,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => theunityclub@aol.com
[contactName] => John Creighton
[notes] =>
[externalOrderId] => 499326000046785143
[refId] => SO-00382
[externalCustomerId] => 499326000000426853
[externalLocationId] => 499326000000426856
[title] => Unity Club (Street)
[deliveryStart] => 2025-08-14
[deliveryEnd] => 2025-08-14
[totalValue] => 420.53
[totalWeight] => 184
[syncInCreated] => 2025-08-14T10:33:51+0100
[syncInUpdated] => 2025-10-28T08:36:32+0000
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000046785149
[externalProductId] => 499326000000061736
[sku] => MCBC-CARL-50LK
[title] => Carling lager 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 124.95
[price] => 124.95
)
[1] => Array
(
[externalOrderProductId] => 499326000046785151
[externalProductId] => 499326000000063923
[sku] => TTCG-GOLD-50LK
[title] => Thatcher's Gold Cider 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 97.67
[price] => 97.67
)
[2] => Array
(
[externalOrderProductId] => 499326000046785153
[externalProductId] => 499326000000063932
[sku] => UKAL-CO2-10LC
[title] => CO2 Cylinder Gas 10ltr
[notes] =>
[quantity] => 2
[weightKg] => 16
[weightTotal] => 32
[priceTotal] => 39.98
[price] => 19.99
)
[3] => Array
(
[externalOrderProductId] => 499326000046785155
[externalProductId] => 499326000009952803
[sku] => BB-HSBT-4.5G
[title] => Hardings Best Pin 4.2%
[notes] =>
[quantity] => 1
[weightKg] => 28
[weightTotal] => 28
[priceTotal] => 39.85
[price] => 39.85
)
[4] => Array
(
[externalOrderProductId] => 499326000046785157
[externalProductId] => 499326000044411911
[sku] =>
[title] => Otter Ale Pin
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 47.99
[price] => 47.99
)
)
[deliveryName] => Unity Club (Street)
[deliveryStreet] => Leigh Road
[deliveryCity] => Somerset
[deliveryCounty] =>
[deliveryPostcode] => BA16 0HA
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => theunityclub@aol.com
[contactName] => John Creighton
[notes] =>
[externalOrderId] => 499326000046785143
[refId] => SO-00382
[externalCustomerId] => 499326000000426853
[externalLocationId] => 499326000000426856
[title] => Unity Club (Street)
[deliveryStart] => 2025-08-14
[deliveryEnd] => 2025-08-14
[totalValue] => 420.53
[totalWeight] => 184
[syncInCreated] => 2025-08-14T10:33:51+0100
[syncInUpdated] => 2025-10-28T08:36:32+0000
[syncInStatus] => closed
[deliveryName] => Unity Club (Street)
[deliveryStreet] => Leigh Road
[deliveryCity] => Somerset
[deliveryCounty] =>
[deliveryPostcode] => BA16 0HA
[syncOutUpdated] => 2025-10-28T08:54:34+00:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => John Creighton
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
2025-06-04 22:00:54.000Z != 2025-10-16T08:49:50+0100
Customer changed - updating 499326000000426853
Updating order contact details
Getting products
Updating product 499326000000061736
Updating order product 499326000046785149
Updated
Updating product 499326000000063923
Updating order product 499326000046785151
Updated
Updating product 499326000000063932
Updating order product 499326000046785153
Updated
Updating product 499326000009952803
Updating order product 499326000046785155
Updated
Updating product 499326000044411911
Updating order product 499326000046785157
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00382
Processing order: f2ymt78svw0ws7i, ref SO-00382
Syncing SO-00382
Using default start and end times
Delivery start = 2025-08-14 00:00:00.000Z = 2025-08-14T06:00:00+01:00
Delivery end = 2025-08-14 00:00:00.000Z = 2025-08-14T20:00:00+01:00
Delivery is in the past. Skipping creation/update in MaxOptra.
Found order in MaxOptra? no
Done
Finished syncing to MaxOptra for order SO-00382
Done all.
Finished at 2025-10-28 08:54:35
Webhook - sourceDeleted script called at 2025-10-28 09:00:47
Source: Zoho
Data: {"salesorder":{"salesorder_no":"SO-00381"}}
JSON: {"salesorder":{"salesorder_no":"SO-00381"}}
REF: SO-00381
200 response code sent
Deleting order: SO-00381
Deleting from MaxOptra
Deleted order SO-00381. Deleting from local database.
Finished at 2025-10-28 09:00:47
Webhook - sourceDeleted script called at 2025-10-28 09:00:47
Source: Zoho
Data: {"salesorder":{"salesorder_no":"SO-00056"}}
JSON: {"salesorder":{"salesorder_no":"SO-00056"}}
REF: SO-00056
200 response code sent
Deleting order: SO-00056
Deleting from MaxOptra
Finished at 2025-10-28 09:00:48
Webhook - sourceDeleted script called at 2025-10-28 09:00:48
Source: Zoho
Data: {"salesorder":{"salesorder_no":"SO-00047"}}
JSON: {"salesorder":{"salesorder_no":"SO-00047"}}
REF: SO-00047
200 response code sent
Deleting order: SO-00047
Deleting from MaxOptra
Finished at 2025-10-28 09:00:48
Webhook - sourceUpdated script called at 2025-10-28 09:02:34
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000046063949","salesorder_no":"SO-00102","status":"partially_invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000046063949","salesorder_no":"SO-00102","status":"partially_invoiced"}}
EXT ID: 499326000046063949
REF: SO-00102
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000046063949 (REF SO-00102)
Local order updated = 2025-07-26 15:53:54.000Z,
source updated = 2025-10-28T08:36:32+0000,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => admin@caskandbarrelholdings.com
[contactName] => Ricky Baillie
[notes] =>
[externalOrderId] => 499326000046063949
[refId] => SO-00102
[externalCustomerId] => 499326000000416861
[externalLocationId] => 499326000000416864
[title] => Brewers Arms (Banwell)
[deliveryStart] => 2025-07-26
[deliveryEnd] => 2025-07-26
[totalValue] => 314.93
[totalWeight] => 113
[syncInCreated] => 2025-07-26T11:02:08+0100
[syncInUpdated] => 2025-10-28T08:36:32+0000
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000046063955
[externalProductId] => 499326000021043799
[sku] => BB-HSAR-9G
[title] => Hardings Amber Ale 3.9% (9g)
[notes] =>
[quantity] => 1
[weightKg] => 51
[weightTotal] => 51
[priceTotal] => 83.95
[price] => 83.95
)
[1] => Array
(
[externalOrderProductId] => 499326000046066804
[externalProductId] => 499326000000061574
[sku] => DIAG-GUIN-50LK
[title] => Draught Guinness 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 178.49
[price] => 178.49
)
)
[deliveryName] => Brewers Arms (Banwell)
[deliveryStreet] => Church Street
[deliveryCity] => Weston Super Mare
[deliveryCounty] =>
[deliveryPostcode] => BS29 6EA
)
Does this order already exist?
Yes
Existing custom fields: Array
(
[0] => Array
(
[id] => u1872vvntf43464
[value] => Brewers Arms (Banwell)
)
)
Is array
Merging custom fields...
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => admin@caskandbarrelholdings.com
[contactName] => Ricky Baillie
[notes] =>
[externalOrderId] => 499326000046063949
[refId] => SO-00102
[externalCustomerId] => 499326000000416861
[externalLocationId] => 499326000000416864
[title] => Brewers Arms (Banwell)
[deliveryStart] => 2025-07-26
[deliveryEnd] => 2025-07-26
[totalValue] => 314.93
[totalWeight] => 113
[syncInCreated] => 2025-07-26T11:02:08+0100
[syncInUpdated] => 2025-10-28T08:36:32+0000
[syncInStatus] => closed
[deliveryName] => Brewers Arms (Banwell)
[deliveryStreet] => Church Street
[deliveryCity] => Weston Super Mare
[deliveryCounty] =>
[deliveryPostcode] => BS29 6EA
[syncOutUpdated] => 2025-10-28T09:02:34+00:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Ricky Baillie
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => [{"id":"u1872vvntf43464","value":"Brewers Arms (Banwell)"}]
)
Updating order
Getting customer details
2025-06-04 22:00:56.000Z != 2025-10-16T08:49:18+0100
Customer changed - updating 499326000000416861
Updating order contact details
Getting products
Updating product 499326000021043799
Updating order product 499326000046063955
Updated
Updating product 499326000000061574
Updating order product 499326000046066804
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00102
Processing order: 3azye8lgjqr9isu, ref SO-00102
Syncing SO-00102
Using default start and end times
Delivery start = 2025-07-26 00:00:00.000Z = 2025-07-26T06:00:00+01:00
Delivery end = 2025-07-26 00:00:00.000Z = 2025-07-26T20:00:00+01:00
Delivery is in the past. Skipping creation/update in MaxOptra.
Found order in MaxOptra? no
Done
Finished syncing to MaxOptra for order SO-00102
Done all.
Finished at 2025-10-28 09:02:35
Webhook - sourceDeleted script called at 2025-10-28 09:09:47
Source: Zoho
Data: {"salesorder":{"salesorder_no":"SO-00053"}}
JSON: {"salesorder":{"salesorder_no":"SO-00053"}}
REF: SO-00053
200 response code sent
Deleting order: SO-00053
Deleting from MaxOptra
Finished at 2025-10-28 09:09:47
Webhook - sourceDeleted script called at 2025-10-28 09:09:47
Source: Zoho
Data: {"salesorder":{"salesorder_no":"SO-00048"}}
JSON: {"salesorder":{"salesorder_no":"SO-00048"}}
REF: SO-00048
200 response code sent
Deleting order: SO-00048
Deleting from MaxOptra
Finished at 2025-10-28 09:09:48
Webhook - sourceDeleted script called at 2025-10-28 09:09:48
Source: Zoho
Data: {"salesorder":{"salesorder_no":"SO-00193"}}
JSON: {"salesorder":{"salesorder_no":"SO-00193"}}
REF: SO-00193
200 response code sent
Deleting order: SO-00193
Deleting from MaxOptra
Finished at 2025-10-28 09:09:48
Webhook - sourceUpdated script called at 2025-10-28 09:11:34
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000046222622","salesorder_no":"SO-00188","status":"partially_invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000046222622","salesorder_no":"SO-00188","status":"partially_invoiced"}}
EXT ID: 499326000046222622
REF: SO-00188
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000046222622 (REF SO-00188)
Local order updated = 2025-08-20 22:00:28.000Z,
source updated = 2025-10-28T08:36:32+0000,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] =>
[contactEmail] => steve@martocksnooker.com
[contactName] => Mollie .
[notes] =>
[externalOrderId] => 499326000046222622
[refId] => SO-00188
[externalCustomerId] => 499326000042367011
[externalLocationId] => 499326000042367013
[title] => Martock Snooker Centre
[deliveryStart] => 2025-08-01
[deliveryEnd] => 2025-08-01
[totalValue] => 283.01
[totalWeight] => 145
[syncInCreated] => 2025-07-31T09:08:57+0100
[syncInUpdated] => 2025-10-28T08:36:32+0000
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000046222628
[externalProductId] => 499326000009952803
[sku] => BB-HSBT-4.5G
[title] => Hardings Best Pin 4.2%
[notes] =>
[quantity] => 1
[weightKg] => 28
[weightTotal] => 28
[priceTotal] => 39.85
[price] => 39.85
)
[1] => Array
(
[externalOrderProductId] => 499326000046222630
[externalProductId] => 499326000000061277
[sku] => CBBC-CARL-50LK
[title] => Carlsberg lager 11g
[notes] =>
[quantity] => 1
[weightKg] => 62
[weightTotal] => 62
[priceTotal] => 88
[price] => 88
)
[2] => Array
(
[externalOrderProductId] => 499326000046222632
[externalProductId] => 499326000000061583
[sku] => DIAG-GUIN-30LK
[title] => Draught Guinness 30ltr
[notes] =>
[quantity] => 1
[weightKg] => 39
[weightTotal] => 39
[priceTotal] => 85
[price] => 85
)
[3] => Array
(
[externalOrderProductId] => 499326000046222634
[externalProductId] => 499326000000063959
[sku] => UKAL-70/3-10LC
[title] => 70/30 Mixed Gas - 10 Ltr
[notes] =>
[quantity] => 1
[weightKg] => 16
[weightTotal] => 16
[priceTotal] => 22.99
[price] => 22.99
)
[4] => Array
(
[externalOrderProductId] => 499326000046222636
[externalProductId] => 499326000045856040
[sku] =>
[title] => POS Hardings Glasses x 6
[notes] =>
[quantity] => 3
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
)
[deliveryName] => Martock Snooker Centre
[deliveryStreet] => Stapleton Rd
[deliveryCity] => Martock
[deliveryCounty] =>
[deliveryPostcode] => TA12 6HH
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] => steve@martocksnooker.com
[contactName] => Mollie .
[notes] =>
[externalOrderId] => 499326000046222622
[refId] => SO-00188
[externalCustomerId] => 499326000042367011
[externalLocationId] => 499326000042367013
[title] => Martock Snooker Centre
[deliveryStart] => 2025-08-01
[deliveryEnd] => 2025-08-01
[totalValue] => 283.01
[totalWeight] => 145
[syncInCreated] => 2025-07-31T09:08:57+0100
[syncInUpdated] => 2025-10-28T08:36:32+0000
[syncInStatus] => closed
[deliveryName] => Martock Snooker Centre
[deliveryStreet] => Stapleton Rd
[deliveryCity] => Martock
[deliveryCounty] =>
[deliveryPostcode] => TA12 6HH
[syncOutUpdated] => 2025-10-28T09:11:34+00:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Mollie .
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
2025-08-08 07:50:40.000Z != 2025-10-16T08:50:06+0100
Customer changed - updating 499326000042367011
Updating order contact details
Getting products
Updating product 499326000009952803
Updating order product 499326000046222628
Updated
Updating product 499326000000061277
Updating order product 499326000046222630
Updated
Updating product 499326000000061583
Updating order product 499326000046222632
Updated
Updating product 499326000000063959
Updating order product 499326000046222634
Updated
Updating product 499326000045856040
Updating order product 499326000046222636
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00188
Processing order: ppkgu2cmb8742ti, ref SO-00188
Syncing SO-00188
Using default start and end times
Delivery start = 2025-08-01 00:00:00.000Z = 2025-08-01T06:00:00+01:00
Delivery end = 2025-08-01 00:00:00.000Z = 2025-08-01T20:00:00+01:00
Delivery is in the past. Skipping creation/update in MaxOptra.
Found order in MaxOptra? no
Done
Finished syncing to MaxOptra for order SO-00188
Done all.
Finished at 2025-10-28 09:11:35
Webhook - sourceUpdated script called at 2025-10-28 19:02:52
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050289525","salesorder_no":"SO-00482","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000050289525","salesorder_no":"SO-00482","status":"open"}}
EXT ID: 499326000050289525
REF: SO-00482
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050289525 (REF SO-00482)
Source order details: Array
(
[contactPhone] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[notes] => delivery round back
[externalOrderId] => 499326000050289525
[refId] => SO-00482
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[title] => Alex Cullum
[deliveryStart] => 2025-10-28
[deliveryEnd] => 2025-10-28
[totalValue] => 90
[totalWeight] => 37.5
[syncInCreated] => 2025-10-28T19:02:25+0000
[syncInUpdated] => 2025-10-28T19:02:29+0000
[syncInStatus] => confirmed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000050289531
[externalProductId] => 499326000042577526
[sku] =>
[title] => Brue Light 3.4%
[notes] =>
[quantity] => 1
[weightKg] => 37.5
[weightTotal] => 37.5
[priceTotal] => 75
[price] => 75
)
)
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
[paymentMethod] => Cash - Don't Leave
)
Does this order already exist?
No
Order data prepared for sync: Array
(
[contactPhone] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[notes] => delivery round back
[externalOrderId] => 499326000050289525
[refId] => SO-00482
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[title] => Alex Cullum
[deliveryStart] => 2025-10-28
[deliveryEnd] => 2025-10-28
[totalValue] => 90
[totalWeight] => 37.5
[syncInCreated] => 2025-10-28T19:02:25+0000
[syncInUpdated] => 2025-10-28T19:02:29+0000
[syncInStatus] => confirmed
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
[paymentMethod] => Cash - Don't Leave
[syncOutUpdated] => 2025-10-28T19:02:53+00:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Alex Cullum
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => [{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"}]
)
New order
Marking order for sync with MaxOptra
Getting customer details
Customer exists and has not changed (skipping): 499326000021060129
Updating order contact details
Getting products
Updating product 499326000042577526
Creating new order product 499326000050289531
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00482
Processing order: 2fdnqysa8480dt9, ref SO-00482
Syncing SO-00482
Using default start and end times
Time window: 2025-10-28T06:00:00+00:00 - 2025-10-28T20:00:00+00:00
Found order in MaxOptra? no
Creating SO-00482
Done
Finished syncing to MaxOptra for order SO-00482
Done all.
Finished at 2025-10-28 19:02:54
Webhook - sourceUpdated script called at 2025-10-28 19:07:26
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050289525","salesorder_no":"SO-00482","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000050289525","salesorder_no":"SO-00482","status":"draft"}}
EXT ID: 499326000050289525
REF: SO-00482
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050289525 (REF SO-00482)
Local order updated = 2025-10-28 19:02:29.000Z,
source updated = 2025-10-28T19:02:29+0000,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00482
Processing order: 2fdnqysa8480dt9, ref SO-00482
Syncing SO-00482
Using default start and end times
Time window: 2025-10-28T06:00:00+00:00 - 2025-10-28T20:00:00+00:00
Found order in MaxOptra? yes
MO updated: 28/10/2025 19:02 - Local updated: 2025-10-28 19:02:54.000Z - Source updated: 2025-10-28 19:02:29.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status:
Status changed - mark for sync back to source
Is allocated? no
Local updated: 2025-10-28 19:02:54.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000021060132
Array
(
[referenceNumber] => 499326000021060132
[name] => Alex Cullum, The Old Rectory, Church Lane, Bristol
[address] => BS26 2QP
)
499326000021060132
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00482
Done all.
Finished at 2025-10-28 19:07:28
Webhook - destinationUpdated script called at 2025-10-28 19:13:18
JSON: {"payload":{"orderReference":"SO-00482","status":"ALLOCATED"},"timestamp":"2025-10-28T19:13:18Z"}
REF: SO-00482
Filter: refId="SO-00482"
200 response code sent
Local item: {"addons":[],"attachments":[],"collectionEnd":"","collectionId":"s93ukjlitoinx2e","collectionInstructions":"","collectionName":"orders","collectionStart":"","company":"1kmltj8w8rnhbfx","contactEmail":"alex@7daycellar.co.uk","contactName":"Alex Cullum","contactNotes":"","contactPhone":"+447566237123","created":"2025-10-28 19:02:53.330Z","custom":[{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"}],"customer":"y5e589zvld1in2k","deliveryCity":"Bristol","deliveryCounty":"","deliveryEnd":"2025-10-28 00:00:00.000Z","deliveryInstructions":"","deliveryName":"Alex Cullum","deliveryPostcode":"BS26 2QP","deliveryStart":"2025-10-28 00:00:00.000Z","deliveryStreet":"The Old Rectory, Church Lane","description":"","driverRef":"","externalCustomerId":"499326000021060129","externalLocationId":"499326000021060132","externalOrderId":"499326000050289525","id":"2fdnqysa8480dt9","isCancelled":false,"isCollection":false,"isReadyToSync":false,"isScheduledCollection":false,"isScheduledDelivery":false,"isUntracked":false,"mergeRef":"","notes":"delivery round back","orderedAt":"","overrideVolume":0,"overrideWeight":0,"paymentMethod":"Cash - Don't Leave","pendingSyncFromDestination":false,"pendingSyncFromSource":false,"pendingSyncToDestination":false,"pendingSyncToSource":true,"ref":"","refId":"SO-00482","requestedDeliveryDays":"","seqNo":"","signature":"","signatureName":"","signatureTime":"","statusCollection":"","statusDelivery":"Pending","syncInCreated":"2025-10-28 19:02:25.000Z","syncInStatus":"confirmed","syncInUpdated":"2025-10-28 19:02:29.000Z","syncOutStatus":"UNALLOCATED","syncOutUpdated":"2025-10-28 19:02:00.000Z","timeWindows":[],"title":"Alex Cullum","totalValue":90,"totalWeight":37.5,"type":"","updated":"2025-10-28 19:07:28.461Z","vehicleRef":"","what3Words":""}
Updating local order from MaxOptra - current local order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[contactNotes] =>
[contactPhone] => +447566237123
[created] => 2025-10-28 19:02:53.330Z
[custom] => Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
[customer] => y5e589zvld1in2k
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryEnd] => 2025-10-28 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Alex Cullum
[deliveryPostcode] => BS26 2QP
[deliveryStart] => 2025-10-28 00:00:00.000Z
[deliveryStreet] => The Old Rectory, Church Lane
[description] =>
[driverRef] =>
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[externalOrderId] => 499326000050289525
[id] => 2fdnqysa8480dt9
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] => delivery round back
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] => Cash - Don't Leave
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] =>
[pendingSyncToSource] => 1
[ref] =>
[refId] => SO-00482
[requestedDeliveryDays] =>
[seqNo] =>
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Pending
[syncInCreated] => 2025-10-28 19:02:25.000Z
[syncInStatus] => confirmed
[syncInUpdated] => 2025-10-28 19:02:29.000Z
[syncOutStatus] => UNALLOCATED
[syncOutUpdated] => 2025-10-28 19:02:00.000Z
[timeWindows] => Array
(
)
[title] => Alex Cullum
[totalValue] => 90
[totalWeight] => 37.5
[type] =>
[updated] => 2025-10-28 19:07:28.461Z
[vehicleRef] =>
[what3Words] =>
)
MaxOptra order details: Array
(
[0] => Array
(
[referenceNumber] => SO-00482
[consignmentReference] =>
[distributionCentreReference] => Head Office
[distributionCentreName] => Head Office
[task] => DELIVERY
[priority] => NORMAL
[vehicleRequirements] => Array
(
)
[additionalInstructions] => delivery round back
[clientName] =>
[contactPerson] => Alex Cullum
[contactNumber] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[additionalContactEmails] =>
[notificationPreferences] => Array
(
[allowSMS] => 1
[allowEmail] => 1
)
[customerLocation] => Array
(
[referenceNumber] => 499326000021060132
[name] => Alex Cullum, The Old Rectory, Church Lane, Bristol
[address] => BS26 2QP
[w3wAddress] =>
[latitude] => 51.26857
[longitude] => -2.86747
)
[territoryReference] =>
[stopSequence] => ANY
[timeWindows] => Array
(
[0] => Array
(
[start] => 2025-10-28T06:00:00Z
[end] => 2025-10-28T20:00:00Z
)
)
[orderDate] =>
[capacity1] => 37.5
[capacity2] => 0
[price] =>
[operationDuration] => 356
[customFields] => Array
(
[7DCPayment] => Cash - Don't Leave
)
[orderItems] => Array
(
[0] => Array
(
[itemReferenceNumber] => 499326000042577526
[orderReferenceNumber] => SO-00482
[name] => Brue Light 3.4%
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 75
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 75
[height] => 0
[width] => 0
[length] => 0
[weight] => 37.5
[volume] => 0
)
)
[widgetTrackingDetails] =>
)
)
MaxOptra schedule details: Array
(
[orderReferenceNumber] => SO-00482
[assignedDriverReference] => TEST
[assignedDriverName] => TEST
[assignedVehicleReference] => TEST
[assignedVehicleName] => TEST
[plannedArrivalTime] => 2025-10-28T19:36:46Z
[plannedCompletionTime] => 2025-10-28T19:42:42Z
[stopNumber] => 1
[totalStopsInRun] => 1
[runNumber] => 1
[runReference] => 65d1a5a8bca84c41a8ee67744388c2a3
[eta] =>
[factArrivalTimeGPS] =>
[factCompletionTimeGPS] =>
[factArrivalTimeReported] =>
[factCompletionTimeReported] =>
[failReason] =>
[failComment] =>
[status] => ALLOCATED
[driver] => TEST
[arrival_planned] => 2025-10-28T19:36:46Z
[arrival_estimated] =>
[arrival_actual] =>
[totalStops] => 1
)
Updating order: SO-00482
Update ID 2fdnqysa8480dt9 with: Array
(
[custom] => Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
[driverRef] => TEST
[vehicleRef] => TEST
[seqNo] => 1
)
Updated order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[contactNotes] =>
[contactPhone] => +447566237123
[created] => 2025-10-28 19:02:53.330Z
[custom] => Array
(
[0] => stdClass Object
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
[customer] => y5e589zvld1in2k
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryEnd] => 2025-10-28 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Alex Cullum
[deliveryPostcode] => BS26 2QP
[deliveryStart] => 2025-10-28 00:00:00.000Z
[deliveryStreet] => The Old Rectory, Church Lane
[description] =>
[driverRef] => TEST
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[externalOrderId] => 499326000050289525
[id] => 2fdnqysa8480dt9
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] => delivery round back
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] => Cash - Don't Leave
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] =>
[pendingSyncToSource] => 1
[ref] =>
[refId] => SO-00482
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Pending
[syncInCreated] => 2025-10-28 19:02:25.000Z
[syncInStatus] => confirmed
[syncInUpdated] => 2025-10-28 19:02:29.000Z
[syncOutStatus] => UNALLOCATED
[syncOutUpdated] => 2025-10-28 19:02:00.000Z
[timeWindows] => Array
(
)
[title] => Alex Cullum
[totalValue] => 90
[totalWeight] => 37.5
[type] =>
[updated] => 2025-10-28 19:13:19.878Z
[vehicleRef] => TEST
[what3Words] =>
)
Updating source from local order
Getting custom fields
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-07-18 02:35:52.065Z
[id] => nc7sndad5bhvi5x
[inCollection] => orders
[inField] => paymentMethod
[mappedField] => 7DCPayment
[name] => Payment method
[sourceField] =>
[syncFromSource] => 1
[syncToSource] =>
[type] => text
[updated] => 2025-07-18 02:35:52.065Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Processing field
Mapped field: 7DCEmpties
Custom fields: Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
Processing field
Mapped field: 7DCEmptiesGas
Custom fields: Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:03:34.631Z
[id] => pcn96l3kgkps4az
[inCollection] => orders
[inField] => driverRef
[mappedField] =>
[name] => Delivery driver
[sourceField] => cf_delivery_driver
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:03:34.631Z
)
Processing field
driverRef...
Value: TEST
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-08 04:52:51.399Z
[id] => hhrzcmytzs8p3kw
[inCollection] => orders
[inField] => seqNo
[mappedField] =>
[name] => Run number
[sourceField] => cf_run_number
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-08 04:52:51.399Z
)
Processing field
seqNo...
Value: 1
Finished processing field
Continue
Updating source order: Array
(
[custom_fields] => Array
(
[0] => Array
(
[api_name] => cf_delivery_driver
[value] => TEST
)
[1] => Array
(
[api_name] => cf_run_number
[value] => 1
)
)
)
Update result: Array
(
[code] => 0
[message] => Sales Order has been updated.
[salesorder] => Array
(
[salesorder_id] => 499326000050289525
[is_viewed_in_mail] =>
[mail_first_viewed_time] =>
[mail_last_viewed_time] =>
[documents] => Array
(
)
[zcrm_potential_id] =>
[zcrm_potential_name] =>
[salesorder_number] => SO-00482
[date] => 2025-10-28
[offline_created_date_with_time] =>
[tracking_url] =>
[has_discount] =>
[status] => confirmed
[color_code] =>
[current_sub_status_id] =>
[current_sub_status] => closed
[sub_statuses] => Array
(
)
[shipment_date] =>
[reference_number] =>
[customer_id] => 499326000021060129
[customer_name] => Alex Cullum
[contact_persons] => Array
(
[0] => 499326000021060131
)
[contact_persons_associated] => Array
(
[0] => Array
(
[contact_person_id] => 499326000021060131
[contact_person_email] => alex@7daycellar.co.uk
[first_name] => Alex
[last_name] => Cullum
[mobile] => +447566237123
[communication_preference] => Array
(
[is_email_enabled] => 1
)
)
)
[contact_person_details] => Array
(
[0] => Array
(
[phone] =>
[mobile] => +447566237123
[last_name] => Cullum
[contact_person_id] => 499326000021060131
[first_name] => Alex
[email] => alex@7daycellar.co.uk
)
)
[source] => Client
[contact_category] => uk
[is_taxable] =>
[has_shipping_address] => 1
[currency_id] => 499326000000000065
[currency_code] => GBP
[currency_symbol] => £
[exchange_rate] => 1
[is_discount_before_tax] => 1
[discount_type] => item_level
[estimate_id] =>
[delivery_method] =>
[delivery_method_id] =>
[vat_treatment] => uk
[is_inclusive_tax] =>
[tax_rounding] => entity_level
[tax_override_preference] => no_override
[order_status] => closed
[invoiced_status] => invoiced
[paid_status] => unpaid
[shipped_status] => pending
[sales_channel] => direct_sales
[sales_channel_formatted] => Direct Sales
[account_identifier] =>
[integration_id] =>
[is_dropshipped] =>
[is_backordered] =>
[is_manually_fulfilled] =>
[can_manually_fulfill] => 1
[has_qty_cancelled] =>
[is_reverse_charge_applied] =>
[shipping_details] => Array
(
)
[created_by_email] => alex@7daycellar.co.uk
[created_by_name] => Alex C
[branch_id] => 499326000023111007
[branch_name] => Head Office
[location_id] => 499326000023111007
[location_name] => Head Office
[total_quantity] => 1
[line_items] => Array
(
[0] => Array
(
[line_item_id] => 499326000050289531
[variant_id] => 499326000042577526
[track_batch_number] =>
[item_id] => 499326000042577526
[is_returnable] =>
[product_id] => 499326000042577526
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] =>
[name] => Brue Light 3.4%
[group_name] => Brue Light 3.4%
[description] =>
[item_order] => 1
[bcy_rate] => 75
[rate] => 75
[sales_rate] => 75
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] => 499326000049652101
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 15
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 75
[item_sub_total] => 75
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] =>
[image_type] =>
[document_id] =>
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 1
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] =>
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
)
[is_advanced_tracking_missing] =>
[entity_tags] =>
[submitter_id] =>
[approver_id] =>
[submitted_date] =>
[submitted_by] =>
[submitted_by_name] =>
[submitted_by_email] =>
[submitted_by_photo_url] =>
[pricebook_id] =>
[pricebook_name] =>
[price_precision] => 2
[is_emailed] =>
[has_unconfirmed_line_item] =>
[picklists] => Array
(
)
[purchaseorders] => Array
(
)
[locations] => Array
(
[0] => Array
(
[location_id] => 499326000023111007
[location_name] => Head Office
[status] => active
)
[1] => Array
(
[location_id] => 499326000041689155
[location_name] => Bason Bridge Brewery Duty Bonded Warehouse
[status] => active
)
)
[billing_address_id] => 499326000021060132
[billing_address] => Array
(
[address] => The Old Rectory, Church Lane
[street2] => Bason Bridge
[city] => Bristol
[state] => Somerset
[zip] => BS26 2QP
[country] => United Kingdom
[country_code] => GB
[county] =>
[state_code] => SOM
[fax] =>
[phone] =>
[attention] =>
)
[shipping_address_id] => 499326000021060134
[shipping_address] => Array
(
[company_name] =>
[address] =>
[street2] =>
[city] =>
[state] =>
[zip] =>
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[is_test_order] =>
[notes] => Account Name: 7 Day Cellar Ltd
Sort Code: 09-01-30
Account No: 10888924
[terms] =>
[payment_terms] => 14
[payment_terms_label] => Net 14
[custom_fields] => Array
(
[0] => Array
(
[field_id] => 499326000042690007
[customfield_id] => 499326000042690007
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 1
[label] => Automation Required
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[is_color_code_supported] =>
[api_name] => cf__ulrql_automation_required
[show_in_all_pdf] =>
[selected_option_id] => 499326000042690011
[value_formatted] => Yes
[search_entity] => salesorder
[data_type] => dropdown
[placeholder] => cf__ulrql_automation_required
[value] => Yes
[is_dependent_field] =>
)
[1] => Array
(
[field_id] => 499326000045601987
[customfield_id] => 499326000045601987
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 2
[label] => Payment Method
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_payment_method
[show_in_all_pdf] =>
[value_formatted] => Cash - Don't Leave
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_payment_method
[value] => Cash - Don't Leave
[is_dependent_field] =>
)
[2] => Array
(
[field_id] => 499326000046252143
[customfield_id] => 499326000046252143
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 3
[label] => Delivery Instructions
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_instructions
[show_in_all_pdf] =>
[value_formatted] => delivery round back
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_instructions
[value] => delivery round back
[is_dependent_field] =>
)
[3] => Array
(
[field_id] => 499326000046252173
[customfield_id] => 499326000046252173
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 4
[label] => Delivery Driver
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_driver
[show_in_all_pdf] =>
[value_formatted] => TEST
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_driver
[value] => TEST
[is_dependent_field] =>
)
[4] => Array
(
[field_id] => 499326000047922345
[customfield_id] => 499326000047922345
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 5
[label] => Run Number
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_run_number
[show_in_all_pdf] =>
[value_formatted] => 1
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_run_number
[value] => 1
[is_dependent_field] =>
)
)
[custom_field_hash] => Array
(
[cf__ulrql_automation_required] => Yes
[cf__ulrql_automation_required_unformatted] => Yes
[cf_payment_method] => Cash - Don't Leave
[cf_payment_method_unformatted] => Cash - Don't Leave
[cf_delivery_instructions] => delivery round back
[cf_delivery_instructions_unformatted] => delivery round back
[cf_delivery_driver] => TEST
[cf_delivery_driver_unformatted] => TEST
[cf_run_number] => 1
[cf_run_number_unformatted] => 1
)
[template_id] => 499326000000000111
[template_name] => Standard Template
[page_width] => 8.27in
[page_height] => 11.69in
[orientation] => portrait
[template_type] => standard
[created_time] => 2025-10-28T19:02:25+0000
[last_modified_time] => 2025-10-28T19:13:20+0000
[created_by_id] => 499326000000047001
[created_date] => 2025-10-28
[last_modified_by_id] => 499326000044410001
[attachment_name] =>
[can_send_in_mail] =>
[salesperson_id] => 499326000026596043
[salesperson_name] => Alex Cullum
[merchant_id] =>
[merchant_name] =>
[pickup_location_id] =>
[discount] => 0
[discount_applied_on_amount] => 0
[is_adv_tracking_in_package] =>
[shipping_charge_taxes] => Array
(
)
[lock_details] => Array
(
[can_lock] =>
)
[locked_actions] => Array
(
)
[shipping_charge_tax_id] =>
[shipping_charge_tax_name] =>
[shipping_charge_tax_type] =>
[shipping_charge_tax_percentage] =>
[shipping_charge_tax_exemption_id] =>
[shipping_charge_tax_exemption_code] =>
[shipping_charge_tax] =>
[bcy_shipping_charge_tax] =>
[shipping_charge_exclusive_of_tax] => 0
[shipping_charge_inclusive_of_tax] => 0
[shipping_charge_tax_formatted] =>
[shipping_charge_exclusive_of_tax_formatted] => £0.00
[shipping_charge_inclusive_of_tax_formatted] => £0.00
[shipping_charge] => 0
[bcy_shipping_charge] => 0
[adjustment] => 0
[bcy_adjustment] => 0
[adjustment_description] => Adjustment
[roundoff_value] => 0
[transaction_rounding_type] => no_rounding
[rounding_mode] => round_half_up
[bcy_rounding_mode] => round_half_up
[sub_total] => 75
[bcy_sub_total] => 75
[sub_total_inclusive_of_tax] => 0
[sub_total_exclusive_of_discount] => 75
[discount_total] => 0
[bcy_discount_total] => 0
[discount_percent] => 0
[tax_total] => 15
[bcy_tax_total] => 15
[total] => 90
[computation_type] => basic
[bcy_total] => 90
[reverse_charge_tax_total] => 0
[taxes] => Array
(
[0] => Array
(
[tax_amount] => 15
[tax_name] => Standard Rate
[tax_amount_formatted] => £15.00
)
)
[tds_calculation_type] => tds_item_level
[packages] => Array
(
)
[so_cycle_preference] => Array
(
[is_feature_enabled] => 1
[socycle_status] => not_triggered
[can_create_invoice] => 1
[can_create_package] =>
[can_create_shipment] =>
[shipment_preference] => Array
(
[default_carrier] =>
[send_notification] =>
[deliver_shipments] =>
)
[invoice_preference] => Array
(
[mark_as_sent] =>
[record_payment] =>
[payment_mode_id] => 499326000000000199
[payment_account_id] => 499326000000000349
)
)
[invoices] => Array
(
[0] => Array
(
[invoice_id] => 499326000050289605
[invoice_number] => INV-26611
[reference_number] => SO-00482
[status] => draft
[date] => 2025-10-28
[due_date] => 2025-11-11
[total] => 90
[balance] => 90
)
)
[can_show_kit_return] =>
[is_kit_partial_return] =>
[salesreturns] => Array
(
)
[payments] => Array
(
)
[creditnotes] => Array
(
)
[refunds] => Array
(
)
[contact] => Array
(
[contact_number] => CUS-00492
[customer_balance] => 0
[credit_limit] => 0
[unused_customer_credits] => 120
[is_credit_limit_migration_completed] => 1
)
[balance] => 90
[approvers_list] => Array
(
)
[is_scheduled_for_quick_shipment_create] =>
)
)
Webhook - sourceUpdated script called at 2025-10-28 19:13:25
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050289525","salesorder_no":"SO-00482","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000050289525","salesorder_no":"SO-00482","status":"invoiced"}}
EXT ID: 499326000050289525
REF: SO-00482
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050289525 (REF SO-00482)
Updates pending to source for order: 499326000050289525
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-10-28 19:02:29.000Z,
source updated = 2025-10-28T19:13:20+0000,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[notes] => delivery round back
[externalOrderId] => 499326000050289525
[refId] => SO-00482
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[title] => Alex Cullum
[deliveryStart] => 2025-10-28
[deliveryEnd] => 2025-10-28
[totalValue] => 90
[totalWeight] => 37.5
[syncInCreated] => 2025-10-28T19:02:25+0000
[syncInUpdated] => 2025-10-28T19:13:20+0000
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000050289531
[externalProductId] => 499326000042577526
[sku] =>
[title] => Brue Light 3.4%
[notes] =>
[quantity] => 1
[weightKg] => 37.5
[weightTotal] => 37.5
[priceTotal] => 75
[price] => 75
)
)
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
[paymentMethod] => Cash - Don't Leave
)
Does this order already exist?
Yes
Existing custom fields: Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
Is array
Merging custom fields...
Order data prepared for sync: Array
(
[contactPhone] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[notes] => delivery round back
[externalOrderId] => 499326000050289525
[refId] => SO-00482
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[title] => Alex Cullum
[deliveryStart] => 2025-10-28
[deliveryEnd] => 2025-10-28
[totalValue] => 90
[totalWeight] => 37.5
[syncInCreated] => 2025-10-28T19:02:25+0000
[syncInUpdated] => 2025-10-28T19:13:20+0000
[syncInStatus] => closed
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
[paymentMethod] => Cash - Don't Leave
[syncOutUpdated] => 2025-10-28T19:13:26+00:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Alex Cullum
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => [{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"},{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"}]
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000021060129
Getting products
Updating product 499326000042577526
Updating order product 499326000050289531
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00482
Processing order: 2fdnqysa8480dt9, ref SO-00482
Syncing SO-00482
Using default start and end times
Time window: 2025-10-28T06:00:00+00:00 - 2025-10-28T20:00:00+00:00
Found order in MaxOptra? yes
MO updated: 28/10/2025 19:13 - Local updated: 2025-10-28 19:13:26.000Z - Source updated: 2025-10-28 19:13:20.000Z
Changed? yes
Current MaxOptra status: ALLOCATED
Completed? no
Previous status: UNALLOCATED
Status changed - mark for sync back to source
Is allocated? yes
MO delivery date: 2025-10-28, Local delivery date: 2025-10-28
Local updated: 2025-10-28 19:13:26.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000021060132
Array
(
[referenceNumber] => 499326000021060132
[name] => Alex Cullum, The Old Rectory, Church Lane, Bristol
[address] => BS26 2QP
)
499326000021060132
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00482
Done all.
Finished at 2025-10-28 19:13:28
Webhook - destinationUpdated script called at 2025-10-28 19:13:28
JSON: {"payload":{"orderReference":"SO-00482","status":"UNALLOCATED"},"timestamp":"2025-10-28T19:13:28Z"}
REF: SO-00482
Filter: refId="SO-00482"
200 response code sent
Local item: {"addons":[],"attachments":[],"collectionEnd":"","collectionId":"s93ukjlitoinx2e","collectionInstructions":"","collectionName":"orders","collectionStart":"","company":"1kmltj8w8rnhbfx","contactEmail":"alex@7daycellar.co.uk","contactName":"Alex Cullum","contactNotes":"","contactPhone":"+447566237123","created":"2025-10-28 19:02:53.330Z","custom":[{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"},{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"}],"customer":"y5e589zvld1in2k","deliveryCity":"Bristol","deliveryCounty":"","deliveryEnd":"2025-10-28 00:00:00.000Z","deliveryInstructions":"","deliveryName":"Alex Cullum","deliveryPostcode":"BS26 2QP","deliveryStart":"2025-10-28 00:00:00.000Z","deliveryStreet":"The Old Rectory, Church Lane","description":"","driverRef":"TEST","externalCustomerId":"499326000021060129","externalLocationId":"499326000021060132","externalOrderId":"499326000050289525","id":"2fdnqysa8480dt9","isCancelled":false,"isCollection":false,"isReadyToSync":false,"isScheduledCollection":false,"isScheduledDelivery":false,"isUntracked":false,"mergeRef":"","notes":"delivery round back","orderedAt":"","overrideVolume":0,"overrideWeight":0,"paymentMethod":"Cash - Don't Leave","pendingSyncFromDestination":false,"pendingSyncFromSource":false,"pendingSyncToDestination":true,"pendingSyncToSource":true,"ref":"","refId":"SO-00482","requestedDeliveryDays":"","seqNo":"1","signature":"","signatureName":"","signatureTime":"","statusCollection":"","statusDelivery":"Scheduled","syncInCreated":"2025-10-28 19:02:25.000Z","syncInStatus":"closed","syncInUpdated":"2025-10-28 19:13:20.000Z","syncOutStatus":"ALLOCATED","syncOutUpdated":"2025-10-28 19:13:00.000Z","timeWindows":[],"title":"Alex Cullum","totalValue":90,"totalWeight":37.5,"type":"","updated":"2025-10-28 19:13:28.521Z","vehicleRef":"TEST","what3Words":""}
Updating local order from MaxOptra - current local order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[contactNotes] =>
[contactPhone] => +447566237123
[created] => 2025-10-28 19:02:53.330Z
[custom] => Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
[1] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
[customer] => y5e589zvld1in2k
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryEnd] => 2025-10-28 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Alex Cullum
[deliveryPostcode] => BS26 2QP
[deliveryStart] => 2025-10-28 00:00:00.000Z
[deliveryStreet] => The Old Rectory, Church Lane
[description] =>
[driverRef] => TEST
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[externalOrderId] => 499326000050289525
[id] => 2fdnqysa8480dt9
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] => delivery round back
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] => Cash - Don't Leave
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] => 1
[ref] =>
[refId] => SO-00482
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Scheduled
[syncInCreated] => 2025-10-28 19:02:25.000Z
[syncInStatus] => closed
[syncInUpdated] => 2025-10-28 19:13:20.000Z
[syncOutStatus] => ALLOCATED
[syncOutUpdated] => 2025-10-28 19:13:00.000Z
[timeWindows] => Array
(
)
[title] => Alex Cullum
[totalValue] => 90
[totalWeight] => 37.5
[type] =>
[updated] => 2025-10-28 19:13:28.521Z
[vehicleRef] => TEST
[what3Words] =>
)
MaxOptra order details: Array
(
[0] => Array
(
[referenceNumber] => SO-00482
[consignmentReference] =>
[distributionCentreReference] => Head Office
[distributionCentreName] => Head Office
[task] => DELIVERY
[priority] => NORMAL
[vehicleRequirements] => Array
(
)
[additionalInstructions] => delivery round back
[clientName] =>
[contactPerson] => Alex Cullum
[contactNumber] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[additionalContactEmails] =>
[notificationPreferences] => Array
(
[allowSMS] => 1
[allowEmail] => 1
)
[customerLocation] => Array
(
[referenceNumber] => 499326000021060132
[name] => Alex Cullum, The Old Rectory, Church Lane, Bristol
[address] => BS26 2QP
[w3wAddress] =>
[latitude] => 51.26857
[longitude] => -2.86747
)
[territoryReference] =>
[stopSequence] => ANY
[timeWindows] => Array
(
[0] => Array
(
[start] => 2025-10-28T06:00:00Z
[end] => 2025-10-28T20:00:00Z
)
)
[orderDate] =>
[capacity1] => 37.5
[capacity2] => 0
[price] =>
[operationDuration] => 356
[customFields] => Array
(
[7DCPayment] => Cash - Don't Leave
)
[orderItems] => Array
(
[0] => Array
(
[itemReferenceNumber] => 499326000042577526
[orderReferenceNumber] => SO-00482
[name] => Brue Light 3.4%
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 75
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 75
[height] => 0
[width] => 0
[length] => 0
[weight] => 37.5
[volume] => 0
)
)
[widgetTrackingDetails] =>
)
)
MaxOptra schedule details: Array
(
[orderReferenceNumber] => SO-00482
[assignedDriverReference] =>
[assignedDriverName] =>
[assignedVehicleReference] =>
[assignedVehicleName] =>
[plannedArrivalTime] =>
[plannedCompletionTime] =>
[stopNumber] =>
[totalStopsInRun] =>
[runNumber] =>
[runReference] =>
[eta] =>
[factArrivalTimeGPS] =>
[factCompletionTimeGPS] =>
[factArrivalTimeReported] =>
[factCompletionTimeReported] =>
[failReason] =>
[failComment] =>
[status] => UNALLOCATED
[driver] =>
[arrival_planned] =>
[arrival_estimated] =>
[arrival_actual] =>
[totalStops] =>
)
Updating order: SO-00482
Update ID 2fdnqysa8480dt9 with: Array
(
[custom] => Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
[driverRef] =>
[vehicleRef] =>
[seqNo] =>
)
Updated order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[contactNotes] =>
[contactPhone] => +447566237123
[created] => 2025-10-28 19:02:53.330Z
[custom] => Array
(
[0] => stdClass Object
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
[customer] => y5e589zvld1in2k
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryEnd] => 2025-10-28 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Alex Cullum
[deliveryPostcode] => BS26 2QP
[deliveryStart] => 2025-10-28 00:00:00.000Z
[deliveryStreet] => The Old Rectory, Church Lane
[description] =>
[driverRef] =>
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[externalOrderId] => 499326000050289525
[id] => 2fdnqysa8480dt9
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] => delivery round back
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] => Cash - Don't Leave
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] => 1
[ref] =>
[refId] => SO-00482
[requestedDeliveryDays] =>
[seqNo] =>
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Scheduled
[syncInCreated] => 2025-10-28 19:02:25.000Z
[syncInStatus] => closed
[syncInUpdated] => 2025-10-28 19:13:20.000Z
[syncOutStatus] => ALLOCATED
[syncOutUpdated] => 2025-10-28 19:13:00.000Z
[timeWindows] => Array
(
)
[title] => Alex Cullum
[totalValue] => 90
[totalWeight] => 37.5
[type] =>
[updated] => 2025-10-28 19:13:29.016Z
[vehicleRef] =>
[what3Words] =>
)
Updating source from local order
Getting custom fields
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-07-18 02:35:52.065Z
[id] => nc7sndad5bhvi5x
[inCollection] => orders
[inField] => paymentMethod
[mappedField] => 7DCPayment
[name] => Payment method
[sourceField] =>
[syncFromSource] => 1
[syncToSource] =>
[type] => text
[updated] => 2025-07-18 02:35:52.065Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Processing field
Mapped field: 7DCEmpties
Custom fields: Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
Processing field
Mapped field: 7DCEmptiesGas
Custom fields: Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:03:34.631Z
[id] => pcn96l3kgkps4az
[inCollection] => orders
[inField] => driverRef
[mappedField] =>
[name] => Delivery driver
[sourceField] => cf_delivery_driver
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:03:34.631Z
)
Processing field
driverRef...
Value:
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-08 04:52:51.399Z
[id] => hhrzcmytzs8p3kw
[inCollection] => orders
[inField] => seqNo
[mappedField] =>
[name] => Run number
[sourceField] => cf_run_number
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-08 04:52:51.399Z
)
Processing field
seqNo...
Value:
Finished processing field
Continue
Updating source order: Array
(
[custom_fields] => Array
(
)
)
Update result: Array
(
[code] => 0
[message] => Sales Order has been updated.
[salesorder] => Array
(
[salesorder_id] => 499326000050289525
[is_viewed_in_mail] =>
[mail_first_viewed_time] =>
[mail_last_viewed_time] =>
[documents] => Array
(
)
[zcrm_potential_id] =>
[zcrm_potential_name] =>
[salesorder_number] => SO-00482
[date] => 2025-10-28
[offline_created_date_with_time] =>
[tracking_url] =>
[has_discount] =>
[status] => confirmed
[color_code] =>
[current_sub_status_id] =>
[current_sub_status] => closed
[sub_statuses] => Array
(
)
[shipment_date] =>
[reference_number] =>
[customer_id] => 499326000021060129
[customer_name] => Alex Cullum
[contact_persons] => Array
(
[0] => 499326000021060131
)
[contact_persons_associated] => Array
(
[0] => Array
(
[contact_person_id] => 499326000021060131
[contact_person_email] => alex@7daycellar.co.uk
[first_name] => Alex
[last_name] => Cullum
[mobile] => +447566237123
[communication_preference] => Array
(
[is_email_enabled] => 1
)
)
)
[contact_person_details] => Array
(
[0] => Array
(
[phone] =>
[mobile] => +447566237123
[last_name] => Cullum
[contact_person_id] => 499326000021060131
[first_name] => Alex
[email] => alex@7daycellar.co.uk
)
)
[source] => Client
[contact_category] => uk
[is_taxable] =>
[has_shipping_address] => 1
[currency_id] => 499326000000000065
[currency_code] => GBP
[currency_symbol] => £
[exchange_rate] => 1
[is_discount_before_tax] => 1
[discount_type] => item_level
[estimate_id] =>
[delivery_method] =>
[delivery_method_id] =>
[vat_treatment] => uk
[is_inclusive_tax] =>
[tax_rounding] => entity_level
[tax_override_preference] => no_override
[order_status] => closed
[invoiced_status] => invoiced
[paid_status] => unpaid
[shipped_status] => pending
[sales_channel] => direct_sales
[sales_channel_formatted] => Direct Sales
[account_identifier] =>
[integration_id] =>
[is_dropshipped] =>
[is_backordered] =>
[is_manually_fulfilled] =>
[can_manually_fulfill] => 1
[has_qty_cancelled] =>
[is_reverse_charge_applied] =>
[shipping_details] => Array
(
)
[created_by_email] => alex@7daycellar.co.uk
[created_by_name] => Alex C
[branch_id] => 499326000023111007
[branch_name] => Head Office
[location_id] => 499326000023111007
[location_name] => Head Office
[total_quantity] => 1
[line_items] => Array
(
[0] => Array
(
[line_item_id] => 499326000050289531
[variant_id] => 499326000042577526
[track_batch_number] =>
[item_id] => 499326000042577526
[is_returnable] =>
[product_id] => 499326000042577526
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] =>
[name] => Brue Light 3.4%
[group_name] => Brue Light 3.4%
[description] =>
[item_order] => 1
[bcy_rate] => 75
[rate] => 75
[sales_rate] => 75
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] => 499326000049652101
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 15
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 75
[item_sub_total] => 75
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] =>
[image_type] =>
[document_id] =>
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 1
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] =>
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
)
[is_advanced_tracking_missing] =>
[entity_tags] =>
[submitter_id] =>
[approver_id] =>
[submitted_date] =>
[submitted_by] =>
[submitted_by_name] =>
[submitted_by_email] =>
[submitted_by_photo_url] =>
[pricebook_id] =>
[pricebook_name] =>
[price_precision] => 2
[is_emailed] =>
[has_unconfirmed_line_item] =>
[picklists] => Array
(
)
[purchaseorders] => Array
(
)
[locations] => Array
(
[0] => Array
(
[location_id] => 499326000023111007
[location_name] => Head Office
[status] => active
)
[1] => Array
(
[location_id] => 499326000041689155
[location_name] => Bason Bridge Brewery Duty Bonded Warehouse
[status] => active
)
)
[billing_address_id] => 499326000021060132
[billing_address] => Array
(
[address] => The Old Rectory, Church Lane
[street2] => Bason Bridge
[city] => Bristol
[state] => Somerset
[zip] => BS26 2QP
[country] => United Kingdom
[country_code] => GB
[county] =>
[state_code] => SOM
[fax] =>
[phone] =>
[attention] =>
)
[shipping_address_id] => 499326000021060134
[shipping_address] => Array
(
[company_name] =>
[address] =>
[street2] =>
[city] =>
[state] =>
[zip] =>
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[is_test_order] =>
[notes] => Account Name: 7 Day Cellar Ltd
Sort Code: 09-01-30
Account No: 10888924
[terms] =>
[payment_terms] => 14
[payment_terms_label] => Net 14
[custom_fields] => Array
(
[0] => Array
(
[field_id] => 499326000042690007
[customfield_id] => 499326000042690007
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 1
[label] => Automation Required
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[is_color_code_supported] =>
[api_name] => cf__ulrql_automation_required
[show_in_all_pdf] =>
[selected_option_id] => 499326000042690011
[value_formatted] => Yes
[search_entity] => salesorder
[data_type] => dropdown
[placeholder] => cf__ulrql_automation_required
[value] => Yes
[is_dependent_field] =>
)
[1] => Array
(
[field_id] => 499326000045601987
[customfield_id] => 499326000045601987
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 2
[label] => Payment Method
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_payment_method
[show_in_all_pdf] =>
[value_formatted] => Cash - Don't Leave
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_payment_method
[value] => Cash - Don't Leave
[is_dependent_field] =>
)
[2] => Array
(
[field_id] => 499326000046252143
[customfield_id] => 499326000046252143
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 3
[label] => Delivery Instructions
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_instructions
[show_in_all_pdf] =>
[value_formatted] => delivery round back
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_instructions
[value] => delivery round back
[is_dependent_field] =>
)
[3] => Array
(
[field_id] => 499326000046252173
[customfield_id] => 499326000046252173
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 4
[label] => Delivery Driver
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_driver
[show_in_all_pdf] =>
[value_formatted] => TEST
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_driver
[value] => TEST
[is_dependent_field] =>
)
[4] => Array
(
[field_id] => 499326000047922345
[customfield_id] => 499326000047922345
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 5
[label] => Run Number
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_run_number
[show_in_all_pdf] =>
[value_formatted] => 1
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_run_number
[value] => 1
[is_dependent_field] =>
)
)
[custom_field_hash] => Array
(
[cf__ulrql_automation_required] => Yes
[cf__ulrql_automation_required_unformatted] => Yes
[cf_payment_method] => Cash - Don't Leave
[cf_payment_method_unformatted] => Cash - Don't Leave
[cf_delivery_instructions] => delivery round back
[cf_delivery_instructions_unformatted] => delivery round back
[cf_delivery_driver] => TEST
[cf_delivery_driver_unformatted] => TEST
[cf_run_number] => 1
[cf_run_number_unformatted] => 1
)
[template_id] => 499326000000000111
[template_name] => Standard Template
[page_width] => 8.27in
[page_height] => 11.69in
[orientation] => portrait
[template_type] => standard
[created_time] => 2025-10-28T19:02:25+0000
[last_modified_time] => 2025-10-28T19:13:29+0000
[created_by_id] => 499326000000047001
[created_date] => 2025-10-28
[last_modified_by_id] => 499326000044410001
[attachment_name] =>
[can_send_in_mail] =>
[salesperson_id] => 499326000026596043
[salesperson_name] => Alex Cullum
[merchant_id] =>
[merchant_name] =>
[pickup_location_id] =>
[discount] => 0
[discount_applied_on_amount] => 0
[is_adv_tracking_in_package] =>
[shipping_charge_taxes] => Array
(
)
[lock_details] => Array
(
[can_lock] =>
)
[locked_actions] => Array
(
)
[shipping_charge_tax_id] =>
[shipping_charge_tax_name] =>
[shipping_charge_tax_type] =>
[shipping_charge_tax_percentage] =>
[shipping_charge_tax_exemption_id] =>
[shipping_charge_tax_exemption_code] =>
[shipping_charge_tax] =>
[bcy_shipping_charge_tax] =>
[shipping_charge_exclusive_of_tax] => 0
[shipping_charge_inclusive_of_tax] => 0
[shipping_charge_tax_formatted] =>
[shipping_charge_exclusive_of_tax_formatted] => £0.00
[shipping_charge_inclusive_of_tax_formatted] => £0.00
[shipping_charge] => 0
[bcy_shipping_charge] => 0
[adjustment] => 0
[bcy_adjustment] => 0
[adjustment_description] => Adjustment
[roundoff_value] => 0
[transaction_rounding_type] => no_rounding
[rounding_mode] => round_half_up
[bcy_rounding_mode] => round_half_up
[sub_total] => 75
[bcy_sub_total] => 75
[sub_total_inclusive_of_tax] => 0
[sub_total_exclusive_of_discount] => 75
[discount_total] => 0
[bcy_discount_total] => 0
[discount_percent] => 0
[tax_total] => 15
[bcy_tax_total] => 15
[total] => 90
[computation_type] => basic
[bcy_total] => 90
[reverse_charge_tax_total] => 0
[taxes] => Array
(
[0] => Array
(
[tax_amount] => 15
[tax_name] => Standard Rate
[tax_amount_formatted] => £15.00
)
)
[tds_calculation_type] => tds_item_level
[packages] => Array
(
)
[so_cycle_preference] => Array
(
[is_feature_enabled] => 1
[socycle_status] => not_triggered
[can_create_invoice] => 1
[can_create_package] =>
[can_create_shipment] =>
[shipment_preference] => Array
(
[default_carrier] =>
[send_notification] =>
[deliver_shipments] =>
)
[invoice_preference] => Array
(
[mark_as_sent] =>
[record_payment] =>
[payment_mode_id] => 499326000000000199
[payment_account_id] => 499326000000000349
)
)
[invoices] => Array
(
[0] => Array
(
[invoice_id] => 499326000050289605
[invoice_number] => INV-26611
[reference_number] => SO-00482
[status] => draft
[date] => 2025-10-28
[due_date] => 2025-11-11
[total] => 90
[balance] => 90
)
)
[can_show_kit_return] =>
[is_kit_partial_return] =>
[salesreturns] => Array
(
)
[payments] => Array
(
)
[creditnotes] => Array
(
)
[refunds] => Array
(
)
[contact] => Array
(
[contact_number] => CUS-00492
[customer_balance] => 0
[credit_limit] => 0
[unused_customer_credits] => 120
[is_credit_limit_migration_completed] => 1
)
[balance] => 90
[approvers_list] => Array
(
)
[is_scheduled_for_quick_shipment_create] =>
)
)
Webhook - destinationUpdated script called at 2025-10-28 19:13:40
JSON: {"payload":{"orderReference":"SO-00482","status":"ALLOCATED"},"timestamp":"2025-10-28T19:13:40Z"}
REF: SO-00482
Filter: refId="SO-00482"
200 response code sent
Local item: {"addons":[],"attachments":[],"collectionEnd":"","collectionId":"s93ukjlitoinx2e","collectionInstructions":"","collectionName":"orders","collectionStart":"","company":"1kmltj8w8rnhbfx","contactEmail":"alex@7daycellar.co.uk","contactName":"Alex Cullum","contactNotes":"","contactPhone":"+447566237123","created":"2025-10-28 19:02:53.330Z","custom":[{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"}],"customer":"y5e589zvld1in2k","deliveryCity":"Bristol","deliveryCounty":"","deliveryEnd":"2025-10-28 00:00:00.000Z","deliveryInstructions":"","deliveryName":"Alex Cullum","deliveryPostcode":"BS26 2QP","deliveryStart":"2025-10-28 00:00:00.000Z","deliveryStreet":"The Old Rectory, Church Lane","description":"","driverRef":"","externalCustomerId":"499326000021060129","externalLocationId":"499326000021060132","externalOrderId":"499326000050289525","id":"2fdnqysa8480dt9","isCancelled":false,"isCollection":false,"isReadyToSync":false,"isScheduledCollection":false,"isScheduledDelivery":false,"isUntracked":false,"mergeRef":"","notes":"delivery round back","orderedAt":"","overrideVolume":0,"overrideWeight":0,"paymentMethod":"Cash - Don't Leave","pendingSyncFromDestination":false,"pendingSyncFromSource":false,"pendingSyncToDestination":true,"pendingSyncToSource":true,"ref":"","refId":"SO-00482","requestedDeliveryDays":"","seqNo":"","signature":"","signatureName":"","signatureTime":"","statusCollection":"","statusDelivery":"Scheduled","syncInCreated":"2025-10-28 19:02:25.000Z","syncInStatus":"closed","syncInUpdated":"2025-10-28 19:13:20.000Z","syncOutStatus":"ALLOCATED","syncOutUpdated":"2025-10-28 19:13:00.000Z","timeWindows":[],"title":"Alex Cullum","totalValue":90,"totalWeight":37.5,"type":"","updated":"2025-10-28 19:13:29.016Z","vehicleRef":"","what3Words":""}
Updating local order from MaxOptra - current local order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[contactNotes] =>
[contactPhone] => +447566237123
[created] => 2025-10-28 19:02:53.330Z
[custom] => Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
[customer] => y5e589zvld1in2k
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryEnd] => 2025-10-28 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Alex Cullum
[deliveryPostcode] => BS26 2QP
[deliveryStart] => 2025-10-28 00:00:00.000Z
[deliveryStreet] => The Old Rectory, Church Lane
[description] =>
[driverRef] =>
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[externalOrderId] => 499326000050289525
[id] => 2fdnqysa8480dt9
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] => delivery round back
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] => Cash - Don't Leave
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] => 1
[ref] =>
[refId] => SO-00482
[requestedDeliveryDays] =>
[seqNo] =>
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Scheduled
[syncInCreated] => 2025-10-28 19:02:25.000Z
[syncInStatus] => closed
[syncInUpdated] => 2025-10-28 19:13:20.000Z
[syncOutStatus] => ALLOCATED
[syncOutUpdated] => 2025-10-28 19:13:00.000Z
[timeWindows] => Array
(
)
[title] => Alex Cullum
[totalValue] => 90
[totalWeight] => 37.5
[type] =>
[updated] => 2025-10-28 19:13:29.016Z
[vehicleRef] =>
[what3Words] =>
)
MaxOptra order details: Array
(
[0] => Array
(
[referenceNumber] => SO-00482
[consignmentReference] =>
[distributionCentreReference] => Head Office
[distributionCentreName] => Head Office
[task] => DELIVERY
[priority] => NORMAL
[vehicleRequirements] => Array
(
)
[additionalInstructions] => delivery round back
[clientName] =>
[contactPerson] => Alex Cullum
[contactNumber] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[additionalContactEmails] =>
[notificationPreferences] => Array
(
[allowSMS] => 1
[allowEmail] => 1
)
[customerLocation] => Array
(
[referenceNumber] => 499326000021060132
[name] => Alex Cullum, The Old Rectory, Church Lane, Bristol
[address] => BS26 2QP
[w3wAddress] =>
[latitude] => 51.26857
[longitude] => -2.86747
)
[territoryReference] =>
[stopSequence] => ANY
[timeWindows] => Array
(
[0] => Array
(
[start] => 2025-10-28T06:00:00Z
[end] => 2025-10-28T20:00:00Z
)
)
[orderDate] =>
[capacity1] => 37.5
[capacity2] => 0
[price] =>
[operationDuration] => 356
[customFields] => Array
(
[7DCPayment] => Cash - Don't Leave
)
[orderItems] => Array
(
[0] => Array
(
[itemReferenceNumber] => 499326000042577526
[orderReferenceNumber] => SO-00482
[name] => Brue Light 3.4%
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 75
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 75
[height] => 0
[width] => 0
[length] => 0
[weight] => 37.5
[volume] => 0
)
)
[widgetTrackingDetails] =>
)
)
MaxOptra schedule details: Array
(
[orderReferenceNumber] => SO-00482
[assignedDriverReference] => TEST
[assignedDriverName] => TEST
[assignedVehicleReference] => TEST
[assignedVehicleName] => TEST
[plannedArrivalTime] => 2025-10-28T19:37:08Z
[plannedCompletionTime] => 2025-10-28T19:43:04Z
[stopNumber] => 1
[totalStopsInRun] => 1
[runNumber] => 1
[runReference] => 1116e541bb2b4c7da0fbabc23c0317d4
[eta] =>
[factArrivalTimeGPS] =>
[factCompletionTimeGPS] =>
[factArrivalTimeReported] =>
[factCompletionTimeReported] =>
[failReason] =>
[failComment] =>
[status] => ALLOCATED
[driver] => TEST
[arrival_planned] => 2025-10-28T19:37:08Z
[arrival_estimated] =>
[arrival_actual] =>
[totalStops] => 1
)
Updating order: SO-00482
Update ID 2fdnqysa8480dt9 with: Array
(
[custom] => Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
[driverRef] => TEST
[vehicleRef] => TEST
[seqNo] => 1
)
Updated order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[contactNotes] =>
[contactPhone] => +447566237123
[created] => 2025-10-28 19:02:53.330Z
[custom] => Array
(
[0] => stdClass Object
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
[customer] => y5e589zvld1in2k
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryEnd] => 2025-10-28 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Alex Cullum
[deliveryPostcode] => BS26 2QP
[deliveryStart] => 2025-10-28 00:00:00.000Z
[deliveryStreet] => The Old Rectory, Church Lane
[description] =>
[driverRef] => TEST
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[externalOrderId] => 499326000050289525
[id] => 2fdnqysa8480dt9
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] => delivery round back
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] => Cash - Don't Leave
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] => 1
[ref] =>
[refId] => SO-00482
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Scheduled
[syncInCreated] => 2025-10-28 19:02:25.000Z
[syncInStatus] => closed
[syncInUpdated] => 2025-10-28 19:13:20.000Z
[syncOutStatus] => ALLOCATED
[syncOutUpdated] => 2025-10-28 19:13:00.000Z
[timeWindows] => Array
(
)
[title] => Alex Cullum
[totalValue] => 90
[totalWeight] => 37.5
[type] =>
[updated] => 2025-10-28 19:13:40.874Z
[vehicleRef] => TEST
[what3Words] =>
)
Updating source from local order
Getting custom fields
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-07-18 02:35:52.065Z
[id] => nc7sndad5bhvi5x
[inCollection] => orders
[inField] => paymentMethod
[mappedField] => 7DCPayment
[name] => Payment method
[sourceField] =>
[syncFromSource] => 1
[syncToSource] =>
[type] => text
[updated] => 2025-07-18 02:35:52.065Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Processing field
Mapped field: 7DCEmpties
Custom fields: Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
Processing field
Mapped field: 7DCEmptiesGas
Custom fields: Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:03:34.631Z
[id] => pcn96l3kgkps4az
[inCollection] => orders
[inField] => driverRef
[mappedField] =>
[name] => Delivery driver
[sourceField] => cf_delivery_driver
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:03:34.631Z
)
Processing field
driverRef...
Value: TEST
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-08 04:52:51.399Z
[id] => hhrzcmytzs8p3kw
[inCollection] => orders
[inField] => seqNo
[mappedField] =>
[name] => Run number
[sourceField] => cf_run_number
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-08 04:52:51.399Z
)
Processing field
seqNo...
Value: 1
Finished processing field
Continue
Updating source order: Array
(
[custom_fields] => Array
(
[0] => Array
(
[api_name] => cf_delivery_driver
[value] => TEST
)
[1] => Array
(
[api_name] => cf_run_number
[value] => 1
)
)
)
Update result: Array
(
[code] => 0
[message] => Sales Order has been updated.
[salesorder] => Array
(
[salesorder_id] => 499326000050289525
[is_viewed_in_mail] =>
[mail_first_viewed_time] =>
[mail_last_viewed_time] =>
[documents] => Array
(
)
[zcrm_potential_id] =>
[zcrm_potential_name] =>
[salesorder_number] => SO-00482
[date] => 2025-10-28
[offline_created_date_with_time] =>
[tracking_url] =>
[has_discount] =>
[status] => confirmed
[color_code] =>
[current_sub_status_id] =>
[current_sub_status] => closed
[sub_statuses] => Array
(
)
[shipment_date] =>
[reference_number] =>
[customer_id] => 499326000021060129
[customer_name] => Alex Cullum
[contact_persons] => Array
(
[0] => 499326000021060131
)
[contact_persons_associated] => Array
(
[0] => Array
(
[contact_person_id] => 499326000021060131
[contact_person_email] => alex@7daycellar.co.uk
[first_name] => Alex
[last_name] => Cullum
[mobile] => +447566237123
[communication_preference] => Array
(
[is_email_enabled] => 1
)
)
)
[contact_person_details] => Array
(
[0] => Array
(
[phone] =>
[mobile] => +447566237123
[last_name] => Cullum
[contact_person_id] => 499326000021060131
[first_name] => Alex
[email] => alex@7daycellar.co.uk
)
)
[source] => Client
[contact_category] => uk
[is_taxable] =>
[has_shipping_address] => 1
[currency_id] => 499326000000000065
[currency_code] => GBP
[currency_symbol] => £
[exchange_rate] => 1
[is_discount_before_tax] => 1
[discount_type] => item_level
[estimate_id] =>
[delivery_method] =>
[delivery_method_id] =>
[vat_treatment] => uk
[is_inclusive_tax] =>
[tax_rounding] => entity_level
[tax_override_preference] => no_override
[order_status] => closed
[invoiced_status] => invoiced
[paid_status] => unpaid
[shipped_status] => pending
[sales_channel] => direct_sales
[sales_channel_formatted] => Direct Sales
[account_identifier] =>
[integration_id] =>
[is_dropshipped] =>
[is_backordered] =>
[is_manually_fulfilled] =>
[can_manually_fulfill] => 1
[has_qty_cancelled] =>
[is_reverse_charge_applied] =>
[shipping_details] => Array
(
)
[created_by_email] => alex@7daycellar.co.uk
[created_by_name] => Alex C
[branch_id] => 499326000023111007
[branch_name] => Head Office
[location_id] => 499326000023111007
[location_name] => Head Office
[total_quantity] => 1
[line_items] => Array
(
[0] => Array
(
[line_item_id] => 499326000050289531
[variant_id] => 499326000042577526
[track_batch_number] =>
[item_id] => 499326000042577526
[is_returnable] =>
[product_id] => 499326000042577526
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] =>
[name] => Brue Light 3.4%
[group_name] => Brue Light 3.4%
[description] =>
[item_order] => 1
[bcy_rate] => 75
[rate] => 75
[sales_rate] => 75
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] => 499326000049652101
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 15
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 75
[item_sub_total] => 75
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] =>
[image_type] =>
[document_id] =>
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 1
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] =>
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
)
[is_advanced_tracking_missing] =>
[entity_tags] =>
[submitter_id] =>
[approver_id] =>
[submitted_date] =>
[submitted_by] =>
[submitted_by_name] =>
[submitted_by_email] =>
[submitted_by_photo_url] =>
[pricebook_id] =>
[pricebook_name] =>
[price_precision] => 2
[is_emailed] =>
[has_unconfirmed_line_item] =>
[picklists] => Array
(
)
[purchaseorders] => Array
(
)
[locations] => Array
(
[0] => Array
(
[location_id] => 499326000023111007
[location_name] => Head Office
[status] => active
)
[1] => Array
(
[location_id] => 499326000041689155
[location_name] => Bason Bridge Brewery Duty Bonded Warehouse
[status] => active
)
)
[billing_address_id] => 499326000021060132
[billing_address] => Array
(
[address] => The Old Rectory, Church Lane
[street2] => Bason Bridge
[city] => Bristol
[state] => Somerset
[zip] => BS26 2QP
[country] => United Kingdom
[country_code] => GB
[county] =>
[state_code] => SOM
[fax] =>
[phone] =>
[attention] =>
)
[shipping_address_id] => 499326000021060134
[shipping_address] => Array
(
[company_name] =>
[address] =>
[street2] =>
[city] =>
[state] =>
[zip] =>
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[is_test_order] =>
[notes] => Account Name: 7 Day Cellar Ltd
Sort Code: 09-01-30
Account No: 10888924
[terms] =>
[payment_terms] => 14
[payment_terms_label] => Net 14
[custom_fields] => Array
(
[0] => Array
(
[field_id] => 499326000042690007
[customfield_id] => 499326000042690007
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 1
[label] => Automation Required
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[is_color_code_supported] =>
[api_name] => cf__ulrql_automation_required
[show_in_all_pdf] =>
[selected_option_id] => 499326000042690011
[value_formatted] => Yes
[search_entity] => salesorder
[data_type] => dropdown
[placeholder] => cf__ulrql_automation_required
[value] => Yes
[is_dependent_field] =>
)
[1] => Array
(
[field_id] => 499326000045601987
[customfield_id] => 499326000045601987
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 2
[label] => Payment Method
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_payment_method
[show_in_all_pdf] =>
[value_formatted] => Cash - Don't Leave
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_payment_method
[value] => Cash - Don't Leave
[is_dependent_field] =>
)
[2] => Array
(
[field_id] => 499326000046252143
[customfield_id] => 499326000046252143
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 3
[label] => Delivery Instructions
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_instructions
[show_in_all_pdf] =>
[value_formatted] => delivery round back
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_instructions
[value] => delivery round back
[is_dependent_field] =>
)
[3] => Array
(
[field_id] => 499326000046252173
[customfield_id] => 499326000046252173
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 4
[label] => Delivery Driver
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_driver
[show_in_all_pdf] =>
[value_formatted] => TEST
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_driver
[value] => TEST
[is_dependent_field] =>
)
[4] => Array
(
[field_id] => 499326000047922345
[customfield_id] => 499326000047922345
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 5
[label] => Run Number
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_run_number
[show_in_all_pdf] =>
[value_formatted] => 1
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_run_number
[value] => 1
[is_dependent_field] =>
)
)
[custom_field_hash] => Array
(
[cf__ulrql_automation_required] => Yes
[cf__ulrql_automation_required_unformatted] => Yes
[cf_payment_method] => Cash - Don't Leave
[cf_payment_method_unformatted] => Cash - Don't Leave
[cf_delivery_instructions] => delivery round back
[cf_delivery_instructions_unformatted] => delivery round back
[cf_delivery_driver] => TEST
[cf_delivery_driver_unformatted] => TEST
[cf_run_number] => 1
[cf_run_number_unformatted] => 1
)
[template_id] => 499326000000000111
[template_name] => Standard Template
[page_width] => 8.27in
[page_height] => 11.69in
[orientation] => portrait
[template_type] => standard
[created_time] => 2025-10-28T19:02:25+0000
[last_modified_time] => 2025-10-28T19:13:41+0000
[created_by_id] => 499326000000047001
[created_date] => 2025-10-28
[last_modified_by_id] => 499326000044410001
[attachment_name] =>
[can_send_in_mail] =>
[salesperson_id] => 499326000026596043
[salesperson_name] => Alex Cullum
[merchant_id] =>
[merchant_name] =>
[pickup_location_id] =>
[discount] => 0
[discount_applied_on_amount] => 0
[is_adv_tracking_in_package] =>
[shipping_charge_taxes] => Array
(
)
[lock_details] => Array
(
[can_lock] =>
)
[locked_actions] => Array
(
)
[shipping_charge_tax_id] =>
[shipping_charge_tax_name] =>
[shipping_charge_tax_type] =>
[shipping_charge_tax_percentage] =>
[shipping_charge_tax_exemption_id] =>
[shipping_charge_tax_exemption_code] =>
[shipping_charge_tax] =>
[bcy_shipping_charge_tax] =>
[shipping_charge_exclusive_of_tax] => 0
[shipping_charge_inclusive_of_tax] => 0
[shipping_charge_tax_formatted] =>
[shipping_charge_exclusive_of_tax_formatted] => £0.00
[shipping_charge_inclusive_of_tax_formatted] => £0.00
[shipping_charge] => 0
[bcy_shipping_charge] => 0
[adjustment] => 0
[bcy_adjustment] => 0
[adjustment_description] => Adjustment
[roundoff_value] => 0
[transaction_rounding_type] => no_rounding
[rounding_mode] => round_half_up
[bcy_rounding_mode] => round_half_up
[sub_total] => 75
[bcy_sub_total] => 75
[sub_total_inclusive_of_tax] => 0
[sub_total_exclusive_of_discount] => 75
[discount_total] => 0
[bcy_discount_total] => 0
[discount_percent] => 0
[tax_total] => 15
[bcy_tax_total] => 15
[total] => 90
[computation_type] => basic
[bcy_total] => 90
[reverse_charge_tax_total] => 0
[taxes] => Array
(
[0] => Array
(
[tax_amount] => 15
[tax_name] => Standard Rate
[tax_amount_formatted] => £15.00
)
)
[tds_calculation_type] => tds_item_level
[packages] => Array
(
)
[so_cycle_preference] => Array
(
[is_feature_enabled] => 1
[socycle_status] => not_triggered
[can_create_invoice] => 1
[can_create_package] =>
[can_create_shipment] =>
[shipment_preference] => Array
(
[default_carrier] =>
[send_notification] =>
[deliver_shipments] =>
)
[invoice_preference] => Array
(
[mark_as_sent] =>
[record_payment] =>
[payment_mode_id] => 499326000000000199
[payment_account_id] => 499326000000000349
)
)
[invoices] => Array
(
[0] => Array
(
[invoice_id] => 499326000050289605
[invoice_number] => INV-26611
[reference_number] => SO-00482
[status] => draft
[date] => 2025-10-28
[due_date] => 2025-11-11
[total] => 90
[balance] => 90
)
)
[can_show_kit_return] =>
[is_kit_partial_return] =>
[salesreturns] => Array
(
)
[payments] => Array
(
)
[creditnotes] => Array
(
)
[refunds] => Array
(
)
[contact] => Array
(
[contact_number] => CUS-00492
[customer_balance] => 0
[credit_limit] => 0
[unused_customer_credits] => 120
[is_credit_limit_migration_completed] => 1
)
[balance] => 90
[approvers_list] => Array
(
)
[is_scheduled_for_quick_shipment_create] =>
)
)
Webhook - destinationUpdated script called at 2025-10-28 19:13:47
JSON: {"payload":{"orderReference":"SO-00482","status":"LOCKED"},"timestamp":"2025-10-28T19:13:47Z"}
REF: SO-00482
Filter: refId="SO-00482"
200 response code sent
Local item: {"addons":[],"attachments":[],"collectionEnd":"","collectionId":"s93ukjlitoinx2e","collectionInstructions":"","collectionName":"orders","collectionStart":"","company":"1kmltj8w8rnhbfx","contactEmail":"alex@7daycellar.co.uk","contactName":"Alex Cullum","contactNotes":"","contactPhone":"+447566237123","created":"2025-10-28 19:02:53.330Z","custom":[{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"}],"customer":"y5e589zvld1in2k","deliveryCity":"Bristol","deliveryCounty":"","deliveryEnd":"2025-10-28 00:00:00.000Z","deliveryInstructions":"","deliveryName":"Alex Cullum","deliveryPostcode":"BS26 2QP","deliveryStart":"2025-10-28 00:00:00.000Z","deliveryStreet":"The Old Rectory, Church Lane","description":"","driverRef":"TEST","externalCustomerId":"499326000021060129","externalLocationId":"499326000021060132","externalOrderId":"499326000050289525","id":"2fdnqysa8480dt9","isCancelled":false,"isCollection":false,"isReadyToSync":false,"isScheduledCollection":false,"isScheduledDelivery":false,"isUntracked":false,"mergeRef":"","notes":"delivery round back","orderedAt":"","overrideVolume":0,"overrideWeight":0,"paymentMethod":"Cash - Don't Leave","pendingSyncFromDestination":false,"pendingSyncFromSource":false,"pendingSyncToDestination":true,"pendingSyncToSource":true,"ref":"","refId":"SO-00482","requestedDeliveryDays":"","seqNo":"1","signature":"","signatureName":"","signatureTime":"","statusCollection":"","statusDelivery":"Scheduled","syncInCreated":"2025-10-28 19:02:25.000Z","syncInStatus":"closed","syncInUpdated":"2025-10-28 19:13:20.000Z","syncOutStatus":"ALLOCATED","syncOutUpdated":"2025-10-28 19:13:00.000Z","timeWindows":[],"title":"Alex Cullum","totalValue":90,"totalWeight":37.5,"type":"","updated":"2025-10-28 19:13:40.874Z","vehicleRef":"TEST","what3Words":""}
Updating local order from MaxOptra - current local order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[contactNotes] =>
[contactPhone] => +447566237123
[created] => 2025-10-28 19:02:53.330Z
[custom] => Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
[customer] => y5e589zvld1in2k
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryEnd] => 2025-10-28 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Alex Cullum
[deliveryPostcode] => BS26 2QP
[deliveryStart] => 2025-10-28 00:00:00.000Z
[deliveryStreet] => The Old Rectory, Church Lane
[description] =>
[driverRef] => TEST
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[externalOrderId] => 499326000050289525
[id] => 2fdnqysa8480dt9
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] => delivery round back
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] => Cash - Don't Leave
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] => 1
[ref] =>
[refId] => SO-00482
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Scheduled
[syncInCreated] => 2025-10-28 19:02:25.000Z
[syncInStatus] => closed
[syncInUpdated] => 2025-10-28 19:13:20.000Z
[syncOutStatus] => ALLOCATED
[syncOutUpdated] => 2025-10-28 19:13:00.000Z
[timeWindows] => Array
(
)
[title] => Alex Cullum
[totalValue] => 90
[totalWeight] => 37.5
[type] =>
[updated] => 2025-10-28 19:13:40.874Z
[vehicleRef] => TEST
[what3Words] =>
)
MaxOptra order details: Array
(
[0] => Array
(
[referenceNumber] => SO-00482
[consignmentReference] =>
[distributionCentreReference] => Head Office
[distributionCentreName] => Head Office
[task] => DELIVERY
[priority] => NORMAL
[vehicleRequirements] => Array
(
)
[additionalInstructions] => delivery round back
[clientName] =>
[contactPerson] => Alex Cullum
[contactNumber] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[additionalContactEmails] =>
[notificationPreferences] => Array
(
[allowSMS] => 1
[allowEmail] => 1
)
[customerLocation] => Array
(
[referenceNumber] => 499326000021060132
[name] => Alex Cullum, The Old Rectory, Church Lane, Bristol
[address] => BS26 2QP
[w3wAddress] =>
[latitude] => 51.26857
[longitude] => -2.86747
)
[territoryReference] =>
[stopSequence] => ANY
[timeWindows] => Array
(
[0] => Array
(
[start] => 2025-10-28T06:00:00Z
[end] => 2025-10-28T20:00:00Z
)
)
[orderDate] =>
[capacity1] => 37.5
[capacity2] => 0
[price] =>
[operationDuration] => 356
[customFields] => Array
(
[7DCPayment] => Cash - Don't Leave
)
[orderItems] => Array
(
[0] => Array
(
[itemReferenceNumber] => 499326000042577526
[orderReferenceNumber] => SO-00482
[name] => Brue Light 3.4%
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 75
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 75
[height] => 0
[width] => 0
[length] => 0
[weight] => 37.5
[volume] => 0
)
)
[widgetTrackingDetails] =>
)
)
MaxOptra schedule details: Array
(
[orderReferenceNumber] => SO-00482
[assignedDriverReference] => TEST
[assignedDriverName] => TEST
[assignedVehicleReference] => TEST
[assignedVehicleName] => TEST
[plannedArrivalTime] => 2025-10-28T19:37:08Z
[plannedCompletionTime] => 2025-10-28T19:43:04Z
[stopNumber] => 1
[totalStopsInRun] => 1
[runNumber] => 1
[runReference] => 1116e541bb2b4c7da0fbabc23c0317d4
[eta] =>
[factArrivalTimeGPS] =>
[factCompletionTimeGPS] =>
[factArrivalTimeReported] =>
[factCompletionTimeReported] =>
[failReason] =>
[failComment] =>
[status] => LOCKED
[driver] => TEST
[arrival_planned] => 2025-10-28T19:37:08Z
[arrival_estimated] =>
[arrival_actual] =>
[totalStops] => 1
)
Updating order: SO-00482
Update ID 2fdnqysa8480dt9 with: Array
(
[custom] => Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
[driverRef] => TEST
[vehicleRef] => TEST
[seqNo] => 1
)
Updated order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[contactNotes] =>
[contactPhone] => +447566237123
[created] => 2025-10-28 19:02:53.330Z
[custom] => Array
(
[0] => stdClass Object
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
[customer] => y5e589zvld1in2k
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryEnd] => 2025-10-28 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Alex Cullum
[deliveryPostcode] => BS26 2QP
[deliveryStart] => 2025-10-28 00:00:00.000Z
[deliveryStreet] => The Old Rectory, Church Lane
[description] =>
[driverRef] => TEST
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[externalOrderId] => 499326000050289525
[id] => 2fdnqysa8480dt9
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] => delivery round back
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] => Cash - Don't Leave
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] => 1
[ref] =>
[refId] => SO-00482
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Scheduled
[syncInCreated] => 2025-10-28 19:02:25.000Z
[syncInStatus] => closed
[syncInUpdated] => 2025-10-28 19:13:20.000Z
[syncOutStatus] => ALLOCATED
[syncOutUpdated] => 2025-10-28 19:13:00.000Z
[timeWindows] => Array
(
)
[title] => Alex Cullum
[totalValue] => 90
[totalWeight] => 37.5
[type] =>
[updated] => 2025-10-28 19:13:47.951Z
[vehicleRef] => TEST
[what3Words] =>
)
Updating source from local order
Getting custom fields
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-07-18 02:35:52.065Z
[id] => nc7sndad5bhvi5x
[inCollection] => orders
[inField] => paymentMethod
[mappedField] => 7DCPayment
[name] => Payment method
[sourceField] =>
[syncFromSource] => 1
[syncToSource] =>
[type] => text
[updated] => 2025-07-18 02:35:52.065Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Processing field
Mapped field: 7DCEmpties
Custom fields: Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
Processing field
Mapped field: 7DCEmptiesGas
Custom fields: Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:03:34.631Z
[id] => pcn96l3kgkps4az
[inCollection] => orders
[inField] => driverRef
[mappedField] =>
[name] => Delivery driver
[sourceField] => cf_delivery_driver
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:03:34.631Z
)
Processing field
driverRef...
Value: TEST
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-08 04:52:51.399Z
[id] => hhrzcmytzs8p3kw
[inCollection] => orders
[inField] => seqNo
[mappedField] =>
[name] => Run number
[sourceField] => cf_run_number
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-08 04:52:51.399Z
)
Processing field
seqNo...
Value: 1
Finished processing field
Continue
Updating source order: Array
(
[custom_fields] => Array
(
[0] => Array
(
[api_name] => cf_delivery_driver
[value] => TEST
)
[1] => Array
(
[api_name] => cf_run_number
[value] => 1
)
)
)
Update result: Array
(
[code] => 0
[message] => Sales Order has been updated.
[salesorder] => Array
(
[salesorder_id] => 499326000050289525
[is_viewed_in_mail] =>
[mail_first_viewed_time] =>
[mail_last_viewed_time] =>
[documents] => Array
(
)
[zcrm_potential_id] =>
[zcrm_potential_name] =>
[salesorder_number] => SO-00482
[date] => 2025-10-28
[offline_created_date_with_time] =>
[tracking_url] =>
[has_discount] =>
[status] => confirmed
[color_code] =>
[current_sub_status_id] =>
[current_sub_status] => closed
[sub_statuses] => Array
(
)
[shipment_date] =>
[reference_number] =>
[customer_id] => 499326000021060129
[customer_name] => Alex Cullum
[contact_persons] => Array
(
[0] => 499326000021060131
)
[contact_persons_associated] => Array
(
[0] => Array
(
[contact_person_id] => 499326000021060131
[contact_person_email] => alex@7daycellar.co.uk
[first_name] => Alex
[last_name] => Cullum
[mobile] => +447566237123
[communication_preference] => Array
(
[is_email_enabled] => 1
)
)
)
[contact_person_details] => Array
(
[0] => Array
(
[phone] =>
[mobile] => +447566237123
[last_name] => Cullum
[contact_person_id] => 499326000021060131
[first_name] => Alex
[email] => alex@7daycellar.co.uk
)
)
[source] => Client
[contact_category] => uk
[is_taxable] =>
[has_shipping_address] => 1
[currency_id] => 499326000000000065
[currency_code] => GBP
[currency_symbol] => £
[exchange_rate] => 1
[is_discount_before_tax] => 1
[discount_type] => item_level
[estimate_id] =>
[delivery_method] =>
[delivery_method_id] =>
[vat_treatment] => uk
[is_inclusive_tax] =>
[tax_rounding] => entity_level
[tax_override_preference] => no_override
[order_status] => closed
[invoiced_status] => invoiced
[paid_status] => unpaid
[shipped_status] => pending
[sales_channel] => direct_sales
[sales_channel_formatted] => Direct Sales
[account_identifier] =>
[integration_id] =>
[is_dropshipped] =>
[is_backordered] =>
[is_manually_fulfilled] =>
[can_manually_fulfill] => 1
[has_qty_cancelled] =>
[is_reverse_charge_applied] =>
[shipping_details] => Array
(
)
[created_by_email] => alex@7daycellar.co.uk
[created_by_name] => Alex C
[branch_id] => 499326000023111007
[branch_name] => Head Office
[location_id] => 499326000023111007
[location_name] => Head Office
[total_quantity] => 1
[line_items] => Array
(
[0] => Array
(
[line_item_id] => 499326000050289531
[variant_id] => 499326000042577526
[track_batch_number] =>
[item_id] => 499326000042577526
[is_returnable] =>
[product_id] => 499326000042577526
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] =>
[name] => Brue Light 3.4%
[group_name] => Brue Light 3.4%
[description] =>
[item_order] => 1
[bcy_rate] => 75
[rate] => 75
[sales_rate] => 75
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] => 499326000049652101
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 15
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 75
[item_sub_total] => 75
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] =>
[image_type] =>
[document_id] =>
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 1
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] =>
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
)
[is_advanced_tracking_missing] =>
[entity_tags] =>
[submitter_id] =>
[approver_id] =>
[submitted_date] =>
[submitted_by] =>
[submitted_by_name] =>
[submitted_by_email] =>
[submitted_by_photo_url] =>
[pricebook_id] =>
[pricebook_name] =>
[price_precision] => 2
[is_emailed] =>
[has_unconfirmed_line_item] =>
[picklists] => Array
(
)
[purchaseorders] => Array
(
)
[locations] => Array
(
[0] => Array
(
[location_id] => 499326000023111007
[location_name] => Head Office
[status] => active
)
[1] => Array
(
[location_id] => 499326000041689155
[location_name] => Bason Bridge Brewery Duty Bonded Warehouse
[status] => active
)
)
[billing_address_id] => 499326000021060132
[billing_address] => Array
(
[address] => The Old Rectory, Church Lane
[street2] => Bason Bridge
[city] => Bristol
[state] => Somerset
[zip] => BS26 2QP
[country] => United Kingdom
[country_code] => GB
[county] =>
[state_code] => SOM
[fax] =>
[phone] =>
[attention] =>
)
[shipping_address_id] => 499326000021060134
[shipping_address] => Array
(
[company_name] =>
[address] =>
[street2] =>
[city] =>
[state] =>
[zip] =>
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[is_test_order] =>
[notes] => Account Name: 7 Day Cellar Ltd
Sort Code: 09-01-30
Account No: 10888924
[terms] =>
[payment_terms] => 14
[payment_terms_label] => Net 14
[custom_fields] => Array
(
[0] => Array
(
[field_id] => 499326000042690007
[customfield_id] => 499326000042690007
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 1
[label] => Automation Required
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[is_color_code_supported] =>
[api_name] => cf__ulrql_automation_required
[show_in_all_pdf] =>
[selected_option_id] => 499326000042690011
[value_formatted] => Yes
[search_entity] => salesorder
[data_type] => dropdown
[placeholder] => cf__ulrql_automation_required
[value] => Yes
[is_dependent_field] =>
)
[1] => Array
(
[field_id] => 499326000045601987
[customfield_id] => 499326000045601987
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 2
[label] => Payment Method
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_payment_method
[show_in_all_pdf] =>
[value_formatted] => Cash - Don't Leave
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_payment_method
[value] => Cash - Don't Leave
[is_dependent_field] =>
)
[2] => Array
(
[field_id] => 499326000046252143
[customfield_id] => 499326000046252143
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 3
[label] => Delivery Instructions
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_instructions
[show_in_all_pdf] =>
[value_formatted] => delivery round back
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_instructions
[value] => delivery round back
[is_dependent_field] =>
)
[3] => Array
(
[field_id] => 499326000046252173
[customfield_id] => 499326000046252173
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 4
[label] => Delivery Driver
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_driver
[show_in_all_pdf] =>
[value_formatted] => TEST
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_driver
[value] => TEST
[is_dependent_field] =>
)
[4] => Array
(
[field_id] => 499326000047922345
[customfield_id] => 499326000047922345
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 5
[label] => Run Number
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_run_number
[show_in_all_pdf] =>
[value_formatted] => 1
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_run_number
[value] => 1
[is_dependent_field] =>
)
)
[custom_field_hash] => Array
(
[cf__ulrql_automation_required] => Yes
[cf__ulrql_automation_required_unformatted] => Yes
[cf_payment_method] => Cash - Don't Leave
[cf_payment_method_unformatted] => Cash - Don't Leave
[cf_delivery_instructions] => delivery round back
[cf_delivery_instructions_unformatted] => delivery round back
[cf_delivery_driver] => TEST
[cf_delivery_driver_unformatted] => TEST
[cf_run_number] => 1
[cf_run_number_unformatted] => 1
)
[template_id] => 499326000000000111
[template_name] => Standard Template
[page_width] => 8.27in
[page_height] => 11.69in
[orientation] => portrait
[template_type] => standard
[created_time] => 2025-10-28T19:02:25+0000
[last_modified_time] => 2025-10-28T19:13:48+0000
[created_by_id] => 499326000000047001
[created_date] => 2025-10-28
[last_modified_by_id] => 499326000044410001
[attachment_name] =>
[can_send_in_mail] =>
[salesperson_id] => 499326000026596043
[salesperson_name] => Alex Cullum
[merchant_id] =>
[merchant_name] =>
[pickup_location_id] =>
[discount] => 0
[discount_applied_on_amount] => 0
[is_adv_tracking_in_package] =>
[shipping_charge_taxes] => Array
(
)
[lock_details] => Array
(
[can_lock] =>
)
[locked_actions] => Array
(
)
[shipping_charge_tax_id] =>
[shipping_charge_tax_name] =>
[shipping_charge_tax_type] =>
[shipping_charge_tax_percentage] =>
[shipping_charge_tax_exemption_id] =>
[shipping_charge_tax_exemption_code] =>
[shipping_charge_tax] =>
[bcy_shipping_charge_tax] =>
[shipping_charge_exclusive_of_tax] => 0
[shipping_charge_inclusive_of_tax] => 0
[shipping_charge_tax_formatted] =>
[shipping_charge_exclusive_of_tax_formatted] => £0.00
[shipping_charge_inclusive_of_tax_formatted] => £0.00
[shipping_charge] => 0
[bcy_shipping_charge] => 0
[adjustment] => 0
[bcy_adjustment] => 0
[adjustment_description] => Adjustment
[roundoff_value] => 0
[transaction_rounding_type] => no_rounding
[rounding_mode] => round_half_up
[bcy_rounding_mode] => round_half_up
[sub_total] => 75
[bcy_sub_total] => 75
[sub_total_inclusive_of_tax] => 0
[sub_total_exclusive_of_discount] => 75
[discount_total] => 0
[bcy_discount_total] => 0
[discount_percent] => 0
[tax_total] => 15
[bcy_tax_total] => 15
[total] => 90
[computation_type] => basic
[bcy_total] => 90
[reverse_charge_tax_total] => 0
[taxes] => Array
(
[0] => Array
(
[tax_amount] => 15
[tax_name] => Standard Rate
[tax_amount_formatted] => £15.00
)
)
[tds_calculation_type] => tds_item_level
[packages] => Array
(
)
[so_cycle_preference] => Array
(
[is_feature_enabled] => 1
[socycle_status] => not_triggered
[can_create_invoice] => 1
[can_create_package] =>
[can_create_shipment] =>
[shipment_preference] => Array
(
[default_carrier] =>
[send_notification] =>
[deliver_shipments] =>
)
[invoice_preference] => Array
(
[mark_as_sent] =>
[record_payment] =>
[payment_mode_id] => 499326000000000199
[payment_account_id] => 499326000000000349
)
)
[invoices] => Array
(
[0] => Array
(
[invoice_id] => 499326000050289605
[invoice_number] => INV-26611
[reference_number] => SO-00482
[status] => draft
[date] => 2025-10-28
[due_date] => 2025-11-11
[total] => 90
[balance] => 90
)
)
[can_show_kit_return] =>
[is_kit_partial_return] =>
[salesreturns] => Array
(
)
[payments] => Array
(
)
[creditnotes] => Array
(
)
[refunds] => Array
(
)
[contact] => Array
(
[contact_number] => CUS-00492
[customer_balance] => 0
[credit_limit] => 0
[unused_customer_credits] => 120
[is_credit_limit_migration_completed] => 1
)
[balance] => 90
[approvers_list] => Array
(
)
[is_scheduled_for_quick_shipment_create] =>
)
)
Webhook - destinationUpdated script called at 2025-10-28 19:13:49
JSON: {"payload":{"orderReference":"SO-00482","status":"SENDING"},"timestamp":"2025-10-28T19:13:49Z"}
REF: SO-00482
Filter: refId="SO-00482"
200 response code sent
Local item: {"addons":[],"attachments":[],"collectionEnd":"","collectionId":"s93ukjlitoinx2e","collectionInstructions":"","collectionName":"orders","collectionStart":"","company":"1kmltj8w8rnhbfx","contactEmail":"alex@7daycellar.co.uk","contactName":"Alex Cullum","contactNotes":"","contactPhone":"+447566237123","created":"2025-10-28 19:02:53.330Z","custom":[{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"}],"customer":"y5e589zvld1in2k","deliveryCity":"Bristol","deliveryCounty":"","deliveryEnd":"2025-10-28 00:00:00.000Z","deliveryInstructions":"","deliveryName":"Alex Cullum","deliveryPostcode":"BS26 2QP","deliveryStart":"2025-10-28 00:00:00.000Z","deliveryStreet":"The Old Rectory, Church Lane","description":"","driverRef":"TEST","externalCustomerId":"499326000021060129","externalLocationId":"499326000021060132","externalOrderId":"499326000050289525","id":"2fdnqysa8480dt9","isCancelled":false,"isCollection":false,"isReadyToSync":false,"isScheduledCollection":false,"isScheduledDelivery":false,"isUntracked":false,"mergeRef":"","notes":"delivery round back","orderedAt":"","overrideVolume":0,"overrideWeight":0,"paymentMethod":"Cash - Don't Leave","pendingSyncFromDestination":false,"pendingSyncFromSource":false,"pendingSyncToDestination":true,"pendingSyncToSource":true,"ref":"","refId":"SO-00482","requestedDeliveryDays":"","seqNo":"1","signature":"","signatureName":"","signatureTime":"","statusCollection":"","statusDelivery":"Scheduled","syncInCreated":"2025-10-28 19:02:25.000Z","syncInStatus":"closed","syncInUpdated":"2025-10-28 19:13:20.000Z","syncOutStatus":"ALLOCATED","syncOutUpdated":"2025-10-28 19:13:00.000Z","timeWindows":[],"title":"Alex Cullum","totalValue":90,"totalWeight":37.5,"type":"","updated":"2025-10-28 19:13:47.951Z","vehicleRef":"TEST","what3Words":""}
Updating local order from MaxOptra - current local order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[contactNotes] =>
[contactPhone] => +447566237123
[created] => 2025-10-28 19:02:53.330Z
[custom] => Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
[customer] => y5e589zvld1in2k
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryEnd] => 2025-10-28 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Alex Cullum
[deliveryPostcode] => BS26 2QP
[deliveryStart] => 2025-10-28 00:00:00.000Z
[deliveryStreet] => The Old Rectory, Church Lane
[description] =>
[driverRef] => TEST
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[externalOrderId] => 499326000050289525
[id] => 2fdnqysa8480dt9
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] => delivery round back
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] => Cash - Don't Leave
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] => 1
[ref] =>
[refId] => SO-00482
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Scheduled
[syncInCreated] => 2025-10-28 19:02:25.000Z
[syncInStatus] => closed
[syncInUpdated] => 2025-10-28 19:13:20.000Z
[syncOutStatus] => ALLOCATED
[syncOutUpdated] => 2025-10-28 19:13:00.000Z
[timeWindows] => Array
(
)
[title] => Alex Cullum
[totalValue] => 90
[totalWeight] => 37.5
[type] =>
[updated] => 2025-10-28 19:13:47.951Z
[vehicleRef] => TEST
[what3Words] =>
)
MaxOptra order details: Array
(
[0] => Array
(
[referenceNumber] => SO-00482
[consignmentReference] =>
[distributionCentreReference] => Head Office
[distributionCentreName] => Head Office
[task] => DELIVERY
[priority] => NORMAL
[vehicleRequirements] => Array
(
)
[additionalInstructions] => delivery round back
[clientName] =>
[contactPerson] => Alex Cullum
[contactNumber] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[additionalContactEmails] =>
[notificationPreferences] => Array
(
[allowSMS] => 1
[allowEmail] => 1
)
[customerLocation] => Array
(
[referenceNumber] => 499326000021060132
[name] => Alex Cullum, The Old Rectory, Church Lane, Bristol
[address] => BS26 2QP
[w3wAddress] =>
[latitude] => 51.26857
[longitude] => -2.86747
)
[territoryReference] =>
[stopSequence] => ANY
[timeWindows] => Array
(
[0] => Array
(
[start] => 2025-10-28T06:00:00Z
[end] => 2025-10-28T20:00:00Z
)
)
[orderDate] =>
[capacity1] => 37.5
[capacity2] => 0
[price] =>
[operationDuration] => 356
[customFields] => Array
(
[7DCPayment] => Cash - Don't Leave
)
[orderItems] => Array
(
[0] => Array
(
[itemReferenceNumber] => 499326000042577526
[orderReferenceNumber] => SO-00482
[name] => Brue Light 3.4%
[description] =>
[barcode] =>
[type] =>
[status] => UNCHECKED
[rejectReason] =>
[rejectComment] =>
[pricePerUnit] => 75
[plannedQuantity] => 1
[factQuantity] => 0
[totalAmount] => 75
[height] => 0
[width] => 0
[length] => 0
[weight] => 37.5
[volume] => 0
)
)
[widgetTrackingDetails] =>
)
)
MaxOptra schedule details: Array
(
[orderReferenceNumber] => SO-00482
[assignedDriverReference] => TEST
[assignedDriverName] => TEST
[assignedVehicleReference] => TEST
[assignedVehicleName] => TEST
[plannedArrivalTime] => 2025-10-28T19:37:08Z
[plannedCompletionTime] => 2025-10-28T19:43:04Z
[stopNumber] => 1
[totalStopsInRun] => 1
[runNumber] => 1
[runReference] => 1116e541bb2b4c7da0fbabc23c0317d4
[eta] =>
[factArrivalTimeGPS] =>
[factCompletionTimeGPS] =>
[factArrivalTimeReported] =>
[factCompletionTimeReported] =>
[failReason] =>
[failComment] =>
[status] => ACCEPTED
[driver] => TEST
[arrival_planned] => 2025-10-28T19:37:08Z
[arrival_estimated] =>
[arrival_actual] =>
[totalStops] => 1
)
Updating order: SO-00482
Update ID 2fdnqysa8480dt9 with: Array
(
[custom] => Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
[driverRef] => TEST
[vehicleRef] => TEST
[seqNo] => 1
)
Updated order: Array
(
[addons] => Array
(
)
[attachments] => Array
(
)
[collectionEnd] =>
[collectionId] => s93ukjlitoinx2e
[collectionInstructions] =>
[collectionName] => orders
[collectionStart] =>
[company] => 1kmltj8w8rnhbfx
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[contactNotes] =>
[contactPhone] => +447566237123
[created] => 2025-10-28 19:02:53.330Z
[custom] => Array
(
[0] => stdClass Object
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
[customer] => y5e589zvld1in2k
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryEnd] => 2025-10-28 00:00:00.000Z
[deliveryInstructions] =>
[deliveryName] => Alex Cullum
[deliveryPostcode] => BS26 2QP
[deliveryStart] => 2025-10-28 00:00:00.000Z
[deliveryStreet] => The Old Rectory, Church Lane
[description] =>
[driverRef] => TEST
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[externalOrderId] => 499326000050289525
[id] => 2fdnqysa8480dt9
[isCancelled] =>
[isCollection] =>
[isReadyToSync] =>
[isScheduledCollection] =>
[isScheduledDelivery] =>
[isUntracked] =>
[mergeRef] =>
[notes] => delivery round back
[orderedAt] =>
[overrideVolume] => 0
[overrideWeight] => 0
[paymentMethod] => Cash - Don't Leave
[pendingSyncFromDestination] =>
[pendingSyncFromSource] =>
[pendingSyncToDestination] => 1
[pendingSyncToSource] => 1
[ref] =>
[refId] => SO-00482
[requestedDeliveryDays] =>
[seqNo] => 1
[signature] =>
[signatureName] =>
[signatureTime] =>
[statusCollection] =>
[statusDelivery] => Scheduled
[syncInCreated] => 2025-10-28 19:02:25.000Z
[syncInStatus] => closed
[syncInUpdated] => 2025-10-28 19:13:20.000Z
[syncOutStatus] => ALLOCATED
[syncOutUpdated] => 2025-10-28 19:13:00.000Z
[timeWindows] => Array
(
)
[title] => Alex Cullum
[totalValue] => 90
[totalWeight] => 37.5
[type] =>
[updated] => 2025-10-28 19:13:50.181Z
[vehicleRef] => TEST
[what3Words] =>
)
Updating source from local order
Getting custom fields
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-07-18 02:35:52.065Z
[id] => nc7sndad5bhvi5x
[inCollection] => orders
[inField] => paymentMethod
[mappedField] => 7DCPayment
[name] => Payment method
[sourceField] =>
[syncFromSource] => 1
[syncToSource] =>
[type] => text
[updated] => 2025-07-18 02:35:52.065Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
Processing field
Mapped field: 7DCEmpties
Custom fields: Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:24.825Z
[id] => yt2l2o3cacu43wf
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmpties
[name] => Keg empties collected
[sourceField] => cf_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:24.825Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
Processing field
Mapped field: 7DCEmptiesGas
Custom fields: Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
Field: Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:02:51.797Z
[id] => j381owny56syys6
[inCollection] => orders
[inField] =>
[mappedField] => 7DCEmptiesGas
[name] => Gas empties collected
[sourceField] => cf_gas_empties_collected
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:02:51.797Z
)
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-05 10:03:34.631Z
[id] => pcn96l3kgkps4az
[inCollection] => orders
[inField] => driverRef
[mappedField] =>
[name] => Delivery driver
[sourceField] => cf_delivery_driver
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-05 10:03:34.631Z
)
Processing field
driverRef...
Value: TEST
Finished processing field
COMPANY=7 Day Cellar
FIELD=Array
(
[canEdit] =>
[collectionId] => vrwlnywm35za2u1
[collectionName] => customFields
[company] => 1kmltj8w8rnhbfx
[created] => 2025-09-08 04:52:51.399Z
[id] => hhrzcmytzs8p3kw
[inCollection] => orders
[inField] => seqNo
[mappedField] =>
[name] => Run number
[sourceField] => cf_run_number
[syncFromSource] =>
[syncToSource] => 1
[type] => text
[updated] => 2025-09-08 04:52:51.399Z
)
Processing field
seqNo...
Value: 1
Finished processing field
Continue
Updating source order: Array
(
[custom_fields] => Array
(
[0] => Array
(
[api_name] => cf_delivery_driver
[value] => TEST
)
[1] => Array
(
[api_name] => cf_run_number
[value] => 1
)
)
)
Update result: Array
(
[code] => 0
[message] => Sales Order has been updated.
[salesorder] => Array
(
[salesorder_id] => 499326000050289525
[is_viewed_in_mail] =>
[mail_first_viewed_time] =>
[mail_last_viewed_time] =>
[documents] => Array
(
)
[zcrm_potential_id] =>
[zcrm_potential_name] =>
[salesorder_number] => SO-00482
[date] => 2025-10-28
[offline_created_date_with_time] =>
[tracking_url] =>
[has_discount] =>
[status] => confirmed
[color_code] =>
[current_sub_status_id] =>
[current_sub_status] => closed
[sub_statuses] => Array
(
)
[shipment_date] =>
[reference_number] =>
[customer_id] => 499326000021060129
[customer_name] => Alex Cullum
[contact_persons] => Array
(
[0] => 499326000021060131
)
[contact_persons_associated] => Array
(
[0] => Array
(
[contact_person_id] => 499326000021060131
[contact_person_email] => alex@7daycellar.co.uk
[first_name] => Alex
[last_name] => Cullum
[mobile] => +447566237123
[communication_preference] => Array
(
[is_email_enabled] => 1
)
)
)
[contact_person_details] => Array
(
[0] => Array
(
[phone] =>
[mobile] => +447566237123
[last_name] => Cullum
[contact_person_id] => 499326000021060131
[first_name] => Alex
[email] => alex@7daycellar.co.uk
)
)
[source] => Client
[contact_category] => uk
[is_taxable] =>
[has_shipping_address] => 1
[currency_id] => 499326000000000065
[currency_code] => GBP
[currency_symbol] => £
[exchange_rate] => 1
[is_discount_before_tax] => 1
[discount_type] => item_level
[estimate_id] =>
[delivery_method] =>
[delivery_method_id] =>
[vat_treatment] => uk
[is_inclusive_tax] =>
[tax_rounding] => entity_level
[tax_override_preference] => no_override
[order_status] => closed
[invoiced_status] => invoiced
[paid_status] => unpaid
[shipped_status] => pending
[sales_channel] => direct_sales
[sales_channel_formatted] => Direct Sales
[account_identifier] =>
[integration_id] =>
[is_dropshipped] =>
[is_backordered] =>
[is_manually_fulfilled] =>
[can_manually_fulfill] => 1
[has_qty_cancelled] =>
[is_reverse_charge_applied] =>
[shipping_details] => Array
(
)
[created_by_email] => alex@7daycellar.co.uk
[created_by_name] => Alex C
[branch_id] => 499326000023111007
[branch_name] => Head Office
[location_id] => 499326000023111007
[location_name] => Head Office
[total_quantity] => 1
[line_items] => Array
(
[0] => Array
(
[line_item_id] => 499326000050289531
[variant_id] => 499326000042577526
[track_batch_number] =>
[item_id] => 499326000042577526
[is_returnable] =>
[product_id] => 499326000042577526
[attribute_name1] =>
[attribute_name2] =>
[attribute_name3] =>
[attribute_option_name1] =>
[attribute_option_name2] =>
[attribute_option_name3] =>
[attribute_option_data1] =>
[attribute_option_data2] =>
[attribute_option_data3] =>
[is_combo_product] =>
[combo_type] =>
[sku] =>
[name] => Brue Light 3.4%
[group_name] => Brue Light 3.4%
[description] =>
[item_order] => 1
[bcy_rate] => 75
[rate] => 75
[sales_rate] => 75
[quantity] => 1
[quantity_manuallyfulfilled] => 0
[unit] =>
[pricebook_id] => 499326000049652101
[header_id] =>
[header_name] =>
[discount_amount] => 0
[discount] => 0
[discounts] => Array
(
)
[tax_id] => 499326000000047124
[tax_name] => Standard Rate
[tax_type] => tax
[tax_percentage] => 20
[line_item_taxes] => Array
(
[0] => Array
(
[tax_id] => 499326000000047124
[tax_name] => Standard Rate (20%)
[tax_amount] => 15
[tax_percentage] => 20
[tax_specific_type] => tax
)
)
[tax_category_code] =>
[tax_category_name] =>
[product_tax_category] => Array
(
[tax_category_code] =>
[tax_category_name] =>
[description] =>
)
[item_total] => 75
[item_sub_total] => 75
[product_type] => goods
[line_item_type] => goods
[item_type] => inventory
[is_invoiced] => 1
[is_unconfirmed_product] =>
[tags] => Array
(
)
[image_name] =>
[image_type] =>
[document_id] =>
[item_custom_fields] => Array
(
)
[custom_field_hash] => Array
(
)
[quantity_invoiced] => 1
[quantity_packed] => 0
[quantity_shipped] => 0
[quantity_picked] => 0
[quantity_backordered] => 0
[quantity_dropshipped] => 0
[quantity_cancelled] => 0
[quantity_delivered] => 0
[package_details] => Array
(
[length] =>
[width] =>
[height] =>
[weight] =>
[weight_unit] => kg
[dimension_unit] => cm
)
[quantity_invoiced_cancelled] => 0
[quantity_returned] => 0
[is_fulfillable] => 0
[project_id] =>
[advanced_tracking_missing_quantity] => 0
[location_id] => 499326000023111007
[location_name] => Head Office
[mapped_items] => Array
(
)
)
)
[is_advanced_tracking_missing] =>
[entity_tags] =>
[submitter_id] =>
[approver_id] =>
[submitted_date] =>
[submitted_by] =>
[submitted_by_name] =>
[submitted_by_email] =>
[submitted_by_photo_url] =>
[pricebook_id] =>
[pricebook_name] =>
[price_precision] => 2
[is_emailed] =>
[has_unconfirmed_line_item] =>
[picklists] => Array
(
)
[purchaseorders] => Array
(
)
[locations] => Array
(
[0] => Array
(
[location_id] => 499326000023111007
[location_name] => Head Office
[status] => active
)
[1] => Array
(
[location_id] => 499326000041689155
[location_name] => Bason Bridge Brewery Duty Bonded Warehouse
[status] => active
)
)
[billing_address_id] => 499326000021060132
[billing_address] => Array
(
[address] => The Old Rectory, Church Lane
[street2] => Bason Bridge
[city] => Bristol
[state] => Somerset
[zip] => BS26 2QP
[country] => United Kingdom
[country_code] => GB
[county] =>
[state_code] => SOM
[fax] =>
[phone] =>
[attention] =>
)
[shipping_address_id] => 499326000021060134
[shipping_address] => Array
(
[company_name] =>
[address] =>
[street2] =>
[city] =>
[state] =>
[zip] =>
[country] =>
[country_code] =>
[county] =>
[state_code] =>
[fax] =>
[phone] =>
[attention] =>
)
[is_test_order] =>
[notes] => Account Name: 7 Day Cellar Ltd
Sort Code: 09-01-30
Account No: 10888924
[terms] =>
[payment_terms] => 14
[payment_terms_label] => Net 14
[custom_fields] => Array
(
[0] => Array
(
[field_id] => 499326000042690007
[customfield_id] => 499326000042690007
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 1
[label] => Automation Required
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[is_color_code_supported] =>
[api_name] => cf__ulrql_automation_required
[show_in_all_pdf] =>
[selected_option_id] => 499326000042690011
[value_formatted] => Yes
[search_entity] => salesorder
[data_type] => dropdown
[placeholder] => cf__ulrql_automation_required
[value] => Yes
[is_dependent_field] =>
)
[1] => Array
(
[field_id] => 499326000045601987
[customfield_id] => 499326000045601987
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 2
[label] => Payment Method
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_payment_method
[show_in_all_pdf] =>
[value_formatted] => Cash - Don't Leave
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_payment_method
[value] => Cash - Don't Leave
[is_dependent_field] =>
)
[2] => Array
(
[field_id] => 499326000046252143
[customfield_id] => 499326000046252143
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 3
[label] => Delivery Instructions
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_instructions
[show_in_all_pdf] =>
[value_formatted] => delivery round back
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_instructions
[value] => delivery round back
[is_dependent_field] =>
)
[3] => Array
(
[field_id] => 499326000046252173
[customfield_id] => 499326000046252173
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 4
[label] => Delivery Driver
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_delivery_driver
[show_in_all_pdf] =>
[value_formatted] => TEST
[search_entity] => salesorder
[data_type] => string
[placeholder] => cf_delivery_driver
[value] => TEST
[is_dependent_field] =>
)
[4] => Array
(
[field_id] => 499326000047922345
[customfield_id] => 499326000047922345
[show_in_store] =>
[show_in_portal] =>
[is_active] => 1
[index] => 5
[label] => Run Number
[show_on_pdf] =>
[edit_on_portal] =>
[edit_on_store] =>
[api_name] => cf_run_number
[show_in_all_pdf] =>
[value_formatted] => 1
[search_entity] => salesorder
[data_type] => number
[placeholder] => cf_run_number
[value] => 1
[is_dependent_field] =>
)
)
[custom_field_hash] => Array
(
[cf__ulrql_automation_required] => Yes
[cf__ulrql_automation_required_unformatted] => Yes
[cf_payment_method] => Cash - Don't Leave
[cf_payment_method_unformatted] => Cash - Don't Leave
[cf_delivery_instructions] => delivery round back
[cf_delivery_instructions_unformatted] => delivery round back
[cf_delivery_driver] => TEST
[cf_delivery_driver_unformatted] => TEST
[cf_run_number] => 1
[cf_run_number_unformatted] => 1
)
[template_id] => 499326000000000111
[template_name] => Standard Template
[page_width] => 8.27in
[page_height] => 11.69in
[orientation] => portrait
[template_type] => standard
[created_time] => 2025-10-28T19:02:25+0000
[last_modified_time] => 2025-10-28T19:13:50+0000
[created_by_id] => 499326000000047001
[created_date] => 2025-10-28
[last_modified_by_id] => 499326000044410001
[attachment_name] =>
[can_send_in_mail] =>
[salesperson_id] => 499326000026596043
[salesperson_name] => Alex Cullum
[merchant_id] =>
[merchant_name] =>
[pickup_location_id] =>
[discount] => 0
[discount_applied_on_amount] => 0
[is_adv_tracking_in_package] =>
[shipping_charge_taxes] => Array
(
)
[lock_details] => Array
(
[can_lock] =>
)
[locked_actions] => Array
(
)
[shipping_charge_tax_id] =>
[shipping_charge_tax_name] =>
[shipping_charge_tax_type] =>
[shipping_charge_tax_percentage] =>
[shipping_charge_tax_exemption_id] =>
[shipping_charge_tax_exemption_code] =>
[shipping_charge_tax] =>
[bcy_shipping_charge_tax] =>
[shipping_charge_exclusive_of_tax] => 0
[shipping_charge_inclusive_of_tax] => 0
[shipping_charge_tax_formatted] =>
[shipping_charge_exclusive_of_tax_formatted] => £0.00
[shipping_charge_inclusive_of_tax_formatted] => £0.00
[shipping_charge] => 0
[bcy_shipping_charge] => 0
[adjustment] => 0
[bcy_adjustment] => 0
[adjustment_description] => Adjustment
[roundoff_value] => 0
[transaction_rounding_type] => no_rounding
[rounding_mode] => round_half_up
[bcy_rounding_mode] => round_half_up
[sub_total] => 75
[bcy_sub_total] => 75
[sub_total_inclusive_of_tax] => 0
[sub_total_exclusive_of_discount] => 75
[discount_total] => 0
[bcy_discount_total] => 0
[discount_percent] => 0
[tax_total] => 15
[bcy_tax_total] => 15
[total] => 90
[computation_type] => basic
[bcy_total] => 90
[reverse_charge_tax_total] => 0
[taxes] => Array
(
[0] => Array
(
[tax_amount] => 15
[tax_name] => Standard Rate
[tax_amount_formatted] => £15.00
)
)
[tds_calculation_type] => tds_item_level
[packages] => Array
(
)
[so_cycle_preference] => Array
(
[is_feature_enabled] => 1
[socycle_status] => not_triggered
[can_create_invoice] => 1
[can_create_package] =>
[can_create_shipment] =>
[shipment_preference] => Array
(
[default_carrier] =>
[send_notification] =>
[deliver_shipments] =>
)
[invoice_preference] => Array
(
[mark_as_sent] =>
[record_payment] =>
[payment_mode_id] => 499326000000000199
[payment_account_id] => 499326000000000349
)
)
[invoices] => Array
(
[0] => Array
(
[invoice_id] => 499326000050289605
[invoice_number] => INV-26611
[reference_number] => SO-00482
[status] => draft
[date] => 2025-10-28
[due_date] => 2025-11-11
[total] => 90
[balance] => 90
)
)
[can_show_kit_return] =>
[is_kit_partial_return] =>
[salesreturns] => Array
(
)
[payments] => Array
(
)
[creditnotes] => Array
(
)
[refunds] => Array
(
)
[contact] => Array
(
[contact_number] => CUS-00492
[customer_balance] => 0
[credit_limit] => 0
[unused_customer_credits] => 120
[is_credit_limit_migration_completed] => 1
)
[balance] => 90
[approvers_list] => Array
(
)
[is_scheduled_for_quick_shipment_create] =>
)
)
Webhook - sourceUpdated script called at 2025-10-28 19:13:55
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050289525","salesorder_no":"SO-00482","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000050289525","salesorder_no":"SO-00482","status":"invoiced"}}
EXT ID: 499326000050289525
REF: SO-00482
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050289525 (REF SO-00482)
Updates pending to source for order: 499326000050289525
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-10-28 19:13:20.000Z,
source updated = 2025-10-28T19:13:50+0000,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00482
Processing order: 2fdnqysa8480dt9, ref SO-00482
Syncing SO-00482
Using default start and end times
Time window: 2025-10-28T06:00:00+00:00 - 2025-10-28T20:00:00+00:00
Found order in MaxOptra? yes
MO updated: 28/10/2025 19:13 - Local updated: 2025-10-28 19:13:00.000Z - Source updated: 2025-10-28 19:13:20.000Z
Changed? yes
Current MaxOptra status: ACCEPTED
Completed? no
Previous status: ALLOCATED
Status changed - mark for sync back to source
Webhook - sourceUpdated script called at 2025-10-28 19:13:57
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050289525","salesorder_no":"SO-00482","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000050289525","salesorder_no":"SO-00482","status":"invoiced"}}
EXT ID: 499326000050289525
REF: SO-00482
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Is allocated? yes
MO delivery date: 2025-10-28, Local delivery date: 2025-10-28
Local updated: 2025-10-28 19:13:00.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Communication error with MaxOptra (412)
orders/SO-00482
https://7daycellar.maxoptra.com/api/v6/orders/SO-00482
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Getting local orders...
Replacing location address in MaxOptra: 499326000021060132
Array
(
[referenceNumber] => 499326000021060132
[name] => Alex Cullum, The Old Rectory, Church Lane, Bristol
[address] => BS26 2QP
)
499326000021060132
Error updating SO-00482
"{\"data\":null,\"errors\":[{\"code\":\"ORDER_IS_LOCKED\",\"name\":\"The order is locked\",\"details\":null,\"field\":null}],\"warnings\":[]}"
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00482
Done all.
Finished at 2025-10-28 19:13:57
------------------------
Processing order 499326000050289525 (REF SO-00482)
Updates pending to source for order: 499326000050289525
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-10-28 19:13:20.000Z,
source updated = 2025-10-28T19:13:56+0000,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00482
Processing order: 2fdnqysa8480dt9, ref SO-00482
Syncing SO-00482
Using default start and end times
Time window: 2025-10-28T06:00:00+00:00 - 2025-10-28T20:00:00+00:00
Found order in MaxOptra? yes
MO updated: 28/10/2025 19:13 - Local updated: 2025-10-28 19:13:00.000Z - Source updated: 2025-10-28 19:13:20.000Z
Changed? yes
Current MaxOptra status: ACCEPTED
Completed? no
Previous status: ACCEPTED
Is allocated? yes
MO delivery date: 2025-10-28, Local delivery date: 2025-10-28
Local updated: 2025-10-28 19:13:00.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Communication error with MaxOptra (412)
orders/SO-00482
https://7daycellar.maxoptra.com/api/v6/orders/SO-00482
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000021060132
Array
(
[referenceNumber] => 499326000021060132
[name] => Alex Cullum, The Old Rectory, Church Lane, Bristol
[address] => BS26 2QP
)
499326000021060132
Error updating SO-00482
"{\"data\":null,\"errors\":[{\"code\":\"ORDER_IS_LOCKED\",\"name\":\"The order is locked\",\"details\":null,\"field\":null}],\"warnings\":[]}"
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00482
Done all.
Finished at 2025-10-28 19:13:59
Webhook - sourceUpdated script called at 2025-10-28 19:14:25
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050289525","salesorder_no":"SO-00482","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000050289525","salesorder_no":"SO-00482","status":"invoiced"}}
EXT ID: 499326000050289525
REF: SO-00482
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050289525 (REF SO-00482)
Local order updated = 2025-10-28 19:13:20.000Z,
source updated = 2025-10-28T19:13:58+0000,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00482
Processing order: 2fdnqysa8480dt9, ref SO-00482
Syncing SO-00482
Using default start and end times
Time window: 2025-10-28T06:00:00+00:00 - 2025-10-28T20:00:00+00:00
Found order in MaxOptra? yes
MO updated: 28/10/2025 19:13 - Local updated: 2025-10-28 19:13:00.000Z - Source updated: 2025-10-28 19:13:20.000Z
Changed? yes
Current MaxOptra status: ACCEPTED
Completed? no
Previous status: ACCEPTED
Is allocated? yes
MO delivery date: 2025-10-28, Local delivery date: 2025-10-28
Local updated: 2025-10-28 19:13:00.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Communication error with MaxOptra (412)
orders/SO-00482
https://7daycellar.maxoptra.com/api/v6/orders/SO-00482
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000021060132
Array
(
[referenceNumber] => 499326000021060132
[name] => Alex Cullum, The Old Rectory, Church Lane, Bristol
[address] => BS26 2QP
)
499326000021060132
Error updating SO-00482
"{\"data\":null,\"errors\":[{\"code\":\"ORDER_IS_LOCKED\",\"name\":\"The order is locked\",\"details\":null,\"field\":null}],\"warnings\":[]}"
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00482
Done all.
Finished at 2025-10-28 19:14:27
Webhook - sourceUpdated script called at 2025-10-28 19:18:04
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050289525","salesorder_no":"SO-00482","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000050289525","salesorder_no":"SO-00482","status":"invoiced"}}
EXT ID: 499326000050289525
REF: SO-00482
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050289525 (REF SO-00482)
Local order updated = 2025-10-28 19:13:20.000Z,
source updated = 2025-10-28T19:13:58+0000,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00482
Processing order: 2fdnqysa8480dt9, ref SO-00482
Syncing SO-00482
Using default start and end times
Time window: 2025-10-28T06:00:00+00:00 - 2025-10-28T20:00:00+00:00
Found order in MaxOptra? yes
MO updated: 28/10/2025 19:13 - Local updated: 2025-10-28 19:13:00.000Z - Source updated: 2025-10-28 19:13:20.000Z
Changed? yes
Current MaxOptra status: ACCEPTED
Completed? no
Previous status: ACCEPTED
Is allocated? yes
MO delivery date: 2025-10-28, Local delivery date: 2025-10-28
Local updated: 2025-10-28 19:13:00.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Communication error with MaxOptra (412)
orders/SO-00482
https://7daycellar.maxoptra.com/api/v6/orders/SO-00482
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000021060132
Array
(
[referenceNumber] => 499326000021060132
[name] => Alex Cullum, The Old Rectory, Church Lane, Bristol
[address] => BS26 2QP
)
499326000021060132
Error updating SO-00482
"{\"data\":null,\"errors\":[{\"code\":\"ORDER_IS_LOCKED\",\"name\":\"The order is locked\",\"details\":null,\"field\":null}],\"warnings\":[]}"
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00482
Done all.
Finished at 2025-10-28 19:18:06
Webhook - sourceUpdated script called at 2025-10-28 19:18:26
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050289525","salesorder_no":"SO-00482","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000050289525","salesorder_no":"SO-00482","status":"invoiced"}}
EXT ID: 499326000050289525
REF: SO-00482
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050289525 (REF SO-00482)
Local order updated = 2025-10-28 19:13:20.000Z,
source updated = 2025-10-28T19:13:58+0000,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00482
Processing order: 2fdnqysa8480dt9, ref SO-00482
Syncing SO-00482
Using default start and end times
Time window: 2025-10-28T06:00:00+00:00 - 2025-10-28T20:00:00+00:00
Found order in MaxOptra? yes
MO updated: 28/10/2025 19:13 - Local updated: 2025-10-28 19:13:00.000Z - Source updated: 2025-10-28 19:13:20.000Z
Changed? yes
Current MaxOptra status: ACCEPTED
Completed? no
Previous status: ACCEPTED
Is allocated? yes
MO delivery date: 2025-10-28, Local delivery date: 2025-10-28
Local updated: 2025-10-28 19:13:00.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Communication error with MaxOptra (412)
orders/SO-00482
https://7daycellar.maxoptra.com/api/v6/orders/SO-00482
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000021060132
Array
(
[referenceNumber] => 499326000021060132
[name] => Alex Cullum, The Old Rectory, Church Lane, Bristol
[address] => BS26 2QP
)
499326000021060132
Error updating SO-00482
"{\"data\":null,\"errors\":[{\"code\":\"ORDER_IS_LOCKED\",\"name\":\"The order is locked\",\"details\":null,\"field\":null}],\"warnings\":[]}"
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00482
Done all.
Finished at 2025-10-28 19:18:28
Webhook - sourceUpdated script called at 2025-10-28 19:18:34
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050289525","salesorder_no":"SO-00482","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000050289525","salesorder_no":"SO-00482","status":"invoiced"}}
EXT ID: 499326000050289525
REF: SO-00482
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050289525 (REF SO-00482)
Local order updated = 2025-10-28 19:13:20.000Z,
source updated = 2025-10-28T19:13:58+0000,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00482
Processing order: 2fdnqysa8480dt9, ref SO-00482
Syncing SO-00482
Using default start and end times
Time window: 2025-10-28T06:00:00+00:00 - 2025-10-28T20:00:00+00:00
Found order in MaxOptra? yes
MO updated: 28/10/2025 19:13 - Local updated: 2025-10-28 19:13:00.000Z - Source updated: 2025-10-28 19:13:20.000Z
Changed? yes
Current MaxOptra status: ACCEPTED
Completed? no
Previous status: ACCEPTED
Is allocated? yes
MO delivery date: 2025-10-28, Local delivery date: 2025-10-28
Local updated: 2025-10-28 19:13:00.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Communication error with MaxOptra (412)
orders/SO-00482
https://7daycellar.maxoptra.com/api/v6/orders/SO-00482
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000021060132
Array
(
[referenceNumber] => 499326000021060132
[name] => Alex Cullum, The Old Rectory, Church Lane, Bristol
[address] => BS26 2QP
)
499326000021060132
Error updating SO-00482
"{\"data\":null,\"errors\":[{\"code\":\"ORDER_IS_LOCKED\",\"name\":\"The order is locked\",\"details\":null,\"field\":null}],\"warnings\":[]}"
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00482
Done all.
Finished at 2025-10-28 19:18:35
Webhook - sourceUpdated script called at 2025-10-28 19:18:41
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050289525","salesorder_no":"SO-00482","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000050289525","salesorder_no":"SO-00482","status":"invoiced"}}
EXT ID: 499326000050289525
REF: SO-00482
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050289525 (REF SO-00482)
Local order updated = 2025-10-28 19:13:20.000Z,
source updated = 2025-10-28T19:13:58+0000,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00482
Processing order: 2fdnqysa8480dt9, ref SO-00482
Syncing SO-00482
Using default start and end times
Time window: 2025-10-28T06:00:00+00:00 - 2025-10-28T20:00:00+00:00
Found order in MaxOptra? yes
MO updated: 28/10/2025 19:13 - Local updated: 2025-10-28 19:13:00.000Z - Source updated: 2025-10-28 19:13:20.000Z
Changed? yes
Current MaxOptra status: ACCEPTED
Completed? no
Previous status: ACCEPTED
Is allocated? yes
MO delivery date: 2025-10-28, Local delivery date: 2025-10-28
Local updated: 2025-10-28 19:13:00.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Communication error with MaxOptra (412)
orders/SO-00482
https://7daycellar.maxoptra.com/api/v6/orders/SO-00482
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000021060132
Array
(
[referenceNumber] => 499326000021060132
[name] => Alex Cullum, The Old Rectory, Church Lane, Bristol
[address] => BS26 2QP
)
499326000021060132
Error updating SO-00482
"{\"data\":null,\"errors\":[{\"code\":\"ORDER_IS_LOCKED\",\"name\":\"The order is locked\",\"details\":null,\"field\":null}],\"warnings\":[]}"
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00482
Done all.
Finished at 2025-10-28 19:18:43
Webhook - sourceUpdated script called at 2025-10-28 19:18:48
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050289525","salesorder_no":"SO-00482","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000050289525","salesorder_no":"SO-00482","status":"invoiced"}}
EXT ID: 499326000050289525
REF: SO-00482
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050289525 (REF SO-00482)
Local order updated = 2025-10-28 19:13:20.000Z,
source updated = 2025-10-28T19:13:58+0000,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00482
Processing order: 2fdnqysa8480dt9, ref SO-00482
Syncing SO-00482
Using default start and end times
Time window: 2025-10-28T06:00:00+00:00 - 2025-10-28T20:00:00+00:00
Found order in MaxOptra? yes
MO updated: 28/10/2025 19:13 - Local updated: 2025-10-28 19:13:00.000Z - Source updated: 2025-10-28 19:13:20.000Z
Changed? yes
Current MaxOptra status: ACCEPTED
Completed? no
Previous status: ACCEPTED
Is allocated? yes
MO delivery date: 2025-10-28, Local delivery date: 2025-10-28
Local updated: 2025-10-28 19:13:00.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Communication error with MaxOptra (412)
orders/SO-00482
https://7daycellar.maxoptra.com/api/v6/orders/SO-00482
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000021060132
Array
(
[referenceNumber] => 499326000021060132
[name] => Alex Cullum, The Old Rectory, Church Lane, Bristol
[address] => BS26 2QP
)
499326000021060132
Error updating SO-00482
"{\"data\":null,\"errors\":[{\"code\":\"ORDER_IS_LOCKED\",\"name\":\"The order is locked\",\"details\":null,\"field\":null}],\"warnings\":[]}"
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00482
Done all.
Finished at 2025-10-28 19:18:50
Webhook - sourceUpdated script called at 2025-10-28 19:18:58
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050289525","salesorder_no":"SO-00482","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000050289525","salesorder_no":"SO-00482","status":"invoiced"}}
EXT ID: 499326000050289525
REF: SO-00482
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050289525 (REF SO-00482)
Local order updated = 2025-10-28 19:13:20.000Z,
source updated = 2025-10-28T19:13:58+0000,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00482
Processing order: 2fdnqysa8480dt9, ref SO-00482
Syncing SO-00482
Using default start and end times
Time window: 2025-10-28T06:00:00+00:00 - 2025-10-28T20:00:00+00:00
Found order in MaxOptra? yes
MO updated: 28/10/2025 19:13 - Local updated: 2025-10-28 19:13:00.000Z - Source updated: 2025-10-28 19:13:20.000Z
Changed? yes
Current MaxOptra status: ACCEPTED
Completed? no
Previous status: ACCEPTED
Is allocated? yes
MO delivery date: 2025-10-28, Local delivery date: 2025-10-28
Local updated: 2025-10-28 19:13:00.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Communication error with MaxOptra (412)
orders/SO-00482
https://7daycellar.maxoptra.com/api/v6/orders/SO-00482
Response:
{"data":null,"errors":[{"code":"ORDER_IS_LOCKED","name":"The order is locked","details":null,"field":null}],"warnings":[]}Updated
Replacing location address in MaxOptra: 499326000021060132
Array
(
[referenceNumber] => 499326000021060132
[name] => Alex Cullum, The Old Rectory, Church Lane, Bristol
[address] => BS26 2QP
)
499326000021060132
Error updating SO-00482
"{\"data\":null,\"errors\":[{\"code\":\"ORDER_IS_LOCKED\",\"name\":\"The order is locked\",\"details\":null,\"field\":null}],\"warnings\":[]}"
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00482
Done all.
Finished at 2025-10-28 19:19:00
Webhook - sourceUpdated script called at 2025-10-28 22:41:08
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050289525","salesorder_no":"SO-00482","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000050289525","salesorder_no":"SO-00482","status":"open"}}
EXT ID: 499326000050289525
REF: SO-00482
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050289525 (REF SO-00482)
Local order updated = 2025-10-28 19:13:20.000Z,
source updated = 2025-10-28T22:40:57+0000,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[notes] => delivery round back
[externalOrderId] => 499326000050289525
[refId] => SO-00482
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[title] => Alex Cullum
[deliveryStart] => 2025-10-28
[deliveryEnd] => 2025-10-28
[totalValue] => 90
[totalWeight] => 37.5
[syncInCreated] => 2025-10-28T19:02:25+0000
[syncInUpdated] => 2025-10-28T22:40:57+0000
[syncInStatus] => confirmed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000050289531
[externalProductId] => 499326000042577526
[sku] =>
[title] => Brue Light 3.4%
[notes] =>
[quantity] => 1
[weightKg] => 37.5
[weightTotal] => 37.5
[priceTotal] => 75
[price] => 75
)
)
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
[paymentMethod] => Cash - Don't Leave
)
Does this order already exist?
Yes
Existing custom fields: Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
Is array
Merging custom fields...
Order data prepared for sync: Array
(
[contactPhone] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[notes] => delivery round back
[externalOrderId] => 499326000050289525
[refId] => SO-00482
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[title] => Alex Cullum
[deliveryStart] => 2025-10-28
[deliveryEnd] => 2025-10-28
[totalValue] => 90
[totalWeight] => 37.5
[syncInCreated] => 2025-10-28T19:02:25+0000
[syncInUpdated] => 2025-10-28T22:40:57+0000
[syncInStatus] => confirmed
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
[paymentMethod] => Cash - Don't Leave
[syncOutUpdated] => 2025-10-28T22:41:09+00:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Alex Cullum
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => [{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"},{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"}]
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000021060129
Getting products
Updating product 499326000042577526
Updating order product 499326000050289531
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00482
Processing order: 2fdnqysa8480dt9, ref SO-00482
Syncing SO-00482
Using default start and end times
Delivery start = 2025-10-28 00:00:00.000Z = 2025-10-28T06:00:00+00:00
Delivery end = 2025-10-28 00:00:00.000Z = 2025-10-28T20:00:00+00:00
Delivery is in the past. Skipping creation/update in MaxOptra.
Found order in MaxOptra? yes
MO updated: 28/10/2025 19:13 - Local updated: 2025-10-28 22:41:09.000Z - Source updated: 2025-10-28 22:40:57.000Z
Changed? yes
Current MaxOptra status: ACCEPTED
Completed? no
Previous status: ACCEPTED
Is allocated? yes
MO delivery date: 2025-10-28, Local delivery date: 2025-10-28
Local updated: 2025-10-28 22:41:09.000Z
Pending updates to MaxOptra? no
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00482
Done all.
Finished at 2025-10-28 22:41:10
Webhook - sourceUpdated script called at 2025-10-29 09:05:27
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050298006","salesorder_no":"SO-00483","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000050298006","salesorder_no":"SO-00483","status":"draft"}}
EXT ID: 499326000050298006
REF: SO-00483
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050298006 (REF SO-00483)
Source order details: Array
(
[contactPhone] => +44-07584437952
[contactEmail] => info@fountaininnbridgwater.co.uk
[contactName] => Becky .
[notes] =>
[externalOrderId] => 499326000050298006
[refId] => SO-00483
[externalCustomerId] => 499326000000424593
[externalLocationId] => 499326000000424595
[title] => The Fountain (Bridgwater)
[deliveryStart] => 2025-10-29
[deliveryEnd] => 2025-10-29
[totalValue] => 373.2
[totalWeight] => 153
[syncInCreated] => 2025-10-29T09:04:57+0000
[syncInUpdated] => 2025-10-29T09:04:57+0000
[syncInStatus] => draft
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000050298012
[externalProductId] => 499326000043516456
[sku] =>
[title] => Harding's Golden Ale 4.2%
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 78
[price] => 78
)
[1] => Array
(
[externalOrderProductId] => 499326000050298014
[externalProductId] => 499326000021043799
[sku] => BB-HSAR-9G
[title] => Hardings Amber Ale 3.9% (9g)
[notes] =>
[quantity] => 1
[weightKg] => 51
[weightTotal] => 51
[priceTotal] => 75
[price] => 75
)
[2] => Array
(
[externalOrderProductId] => 499326000050298016
[externalProductId] => 499326000021043786
[sku] => BB-HSBT-9G
[title] => Hardings Best Bitter 4.2% (9g)
[notes] =>
[quantity] => 1
[weightKg] => 51
[weightTotal] => 51
[priceTotal] => 78
[price] => 78
)
[3] => Array
(
[externalOrderProductId] => 499326000050298018
[externalProductId] => 499326000044145711
[sku] => BB-HSDD-9G
[title] => Hardings Double Hopped 4.0% (9g)
[notes] =>
[quantity] => 1
[weightKg] => 51
[weightTotal] => 51
[priceTotal] => 80
[price] => 80
)
)
[deliveryName] => The Fountain (Bridgwater)
[deliveryStreet] => Bridgwater
[deliveryCity] => Bridgwater
[deliveryCounty] =>
[deliveryPostcode] => TA6 3HL
)
Does this order already exist?
No
Order data prepared for sync: Array
(
[contactPhone] => +44-07584437952
[contactEmail] => info@fountaininnbridgwater.co.uk
[contactName] => Becky .
[notes] =>
[externalOrderId] => 499326000050298006
[refId] => SO-00483
[externalCustomerId] => 499326000000424593
[externalLocationId] => 499326000000424595
[title] => The Fountain (Bridgwater)
[deliveryStart] => 2025-10-29
[deliveryEnd] => 2025-10-29
[totalValue] => 373.2
[totalWeight] => 153
[syncInCreated] => 2025-10-29T09:04:57+0000
[syncInUpdated] => 2025-10-29T09:04:57+0000
[syncInStatus] => draft
[deliveryName] => The Fountain (Bridgwater)
[deliveryStreet] => Bridgwater
[deliveryCity] => Bridgwater
[deliveryCounty] =>
[deliveryPostcode] => TA6 3HL
[syncOutUpdated] => 2025-10-29T09:05:28+00:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Becky .
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
New order
Marking order for sync with MaxOptra
Getting customer details
New customer 499326000000424593
Updating order contact details
Getting products
Updating product 499326000043516456
Creating new order product 499326000050298012
Updating product 499326000021043799
Creating new order product 499326000050298014
Updating product 499326000021043786
Creating new order product 499326000050298016
Updating product 499326000044145711
Creating new order product 499326000050298018
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00483
Processing order: 3vdim2310f3rbbs, ref SO-00483
Syncing SO-00483
Using default start and end times
Time window: 2025-10-29T06:00:00+00:00 - 2025-10-29T20:00:00+00:00
Found order in MaxOptra? no
Creating SO-00483
Done
Finished syncing to MaxOptra for order SO-00483
Done all.
Finished at 2025-10-29 09:05:29
Webhook - sourceUpdated script called at 2025-10-29 13:12:27
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050302098","salesorder_no":"SO-00484","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000050302098","salesorder_no":"SO-00484","status":"draft"}}
EXT ID: 499326000050302098
REF: SO-00484
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050302098 (REF SO-00484)
Source order details: Array
(
[contactPhone] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[notes] => delivery round back
[externalOrderId] => 499326000050302098
[refId] => SO-00484
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[title] => Alex Cullum
[deliveryStart] => 2025-10-30
[deliveryEnd] => 2025-10-30
[totalValue] => 7.2
[totalWeight] => 0
[syncInCreated] => 2025-10-29T13:12:04+0000
[syncInUpdated] => 2025-10-29T13:12:13+0000
[syncInStatus] => confirmed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000050302104
[externalProductId] => 499326000038717054
[sku] =>
[title] => 440ml x 24 Packaging Own Cans
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 6
[price] => 6
)
)
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
[paymentMethod] => Cash - Don't Leave
)
Does this order already exist?
No
Order data prepared for sync: Array
(
[contactPhone] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[notes] => delivery round back
[externalOrderId] => 499326000050302098
[refId] => SO-00484
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[title] => Alex Cullum
[deliveryStart] => 2025-10-30
[deliveryEnd] => 2025-10-30
[totalValue] => 7.2
[totalWeight] => 0
[syncInCreated] => 2025-10-29T13:12:04+0000
[syncInUpdated] => 2025-10-29T13:12:13+0000
[syncInStatus] => confirmed
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
[paymentMethod] => Cash - Don't Leave
[syncOutUpdated] => 2025-10-29T13:12:28+00:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Alex Cullum
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => [{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"}]
)
New order
Marking order for sync with MaxOptra
Getting customer details
Customer exists and has not changed (skipping): 499326000021060129
Updating order contact details
Getting products
Updating product 499326000038717054
Creating new order product 499326000050302104
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00484
Processing order: juzuu0xfelu0ye4, ref SO-00484
Syncing SO-00484
Using default start and end times
Time window: 2025-10-30T06:00:00+00:00 - 2025-10-30T20:00:00+00:00
Found order in MaxOptra? no
Creating SO-00484
Done
Finished syncing to MaxOptra for order SO-00484
Done all.
Finished at 2025-10-29 13:12:29
Webhook - sourceUpdated script called at 2025-10-29 13:14:31
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050302098","salesorder_no":"SO-00484","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000050302098","salesorder_no":"SO-00484","status":"invoiced"}}
EXT ID: 499326000050302098
REF: SO-00484
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050302098 (REF SO-00484)
Local order updated = 2025-10-29 13:12:13.000Z,
source updated = 2025-10-29T13:14:25+0000,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[notes] => delivery round back
[externalOrderId] => 499326000050302098
[refId] => SO-00484
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[title] => Alex Cullum
[deliveryStart] => 2025-10-30
[deliveryEnd] => 2025-10-30
[totalValue] => 7.2
[totalWeight] => 0
[syncInCreated] => 2025-10-29T13:12:04+0000
[syncInUpdated] => 2025-10-29T13:14:25+0000
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000050302104
[externalProductId] => 499326000038717054
[sku] =>
[title] => 440ml x 24 Packaging Own Cans
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 6
[price] => 6
)
)
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
[paymentMethod] => Cash - Don't Leave
)
Does this order already exist?
Yes
Existing custom fields: Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
Is array
Merging custom fields...
Order data prepared for sync: Array
(
[contactPhone] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[notes] => delivery round back
[externalOrderId] => 499326000050302098
[refId] => SO-00484
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[title] => Alex Cullum
[deliveryStart] => 2025-10-30
[deliveryEnd] => 2025-10-30
[totalValue] => 7.2
[totalWeight] => 0
[syncInCreated] => 2025-10-29T13:12:04+0000
[syncInUpdated] => 2025-10-29T13:14:25+0000
[syncInStatus] => closed
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
[paymentMethod] => Cash - Don't Leave
[syncOutUpdated] => 2025-10-29T13:14:32+00:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Alex Cullum
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => [{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"},{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"}]
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000021060129
Getting products
Updating product 499326000038717054
Updating order product 499326000050302104
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00484
Processing order: juzuu0xfelu0ye4, ref SO-00484
Syncing SO-00484
Using default start and end times
Time window: 2025-10-30T06:00:00+00:00 - 2025-10-30T20:00:00+00:00
Found order in MaxOptra? yes
MO updated: 29/10/2025 13:12 - Local updated: 2025-10-29 13:14:32.000Z - Source updated: 2025-10-29 13:14:25.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status:
Status changed - mark for sync back to source
Is allocated? no
Local updated: 2025-10-29 13:14:32.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000021060132
Array
(
[referenceNumber] => 499326000021060132
[name] => Alex Cullum, The Old Rectory, Church Lane, Bristol
[address] => BS26 2QP
)
499326000021060132
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00484
Done all.
Finished at 2025-10-29 13:14:33
Webhook - sourceUpdated script called at 2025-10-29 13:17:13
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050302098","salesorder_no":"SO-00484","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000050302098","salesorder_no":"SO-00484","status":"open"}}
EXT ID: 499326000050302098
REF: SO-00484
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050302098 (REF SO-00484)
Updates pending to source for order: 499326000050302098
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-10-29 13:14:25.000Z,
source updated = 2025-10-29T13:14:25+0000,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00484
Processing order: juzuu0xfelu0ye4, ref SO-00484
Syncing SO-00484
Using default start and end times
Time window: 2025-10-30T06:00:00+00:00 - 2025-10-30T20:00:00+00:00
Found order in MaxOptra? yes
MO updated: 29/10/2025 13:14 - Local updated: 2025-10-29 13:12:00.000Z - Source updated: 2025-10-29 13:14:25.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-10-29 13:12:00.000Z
Pending updates to MaxOptra? no
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00484
Done all.
Finished at 2025-10-29 13:17:16
Webhook - sourceUpdated script called at 2025-10-29 13:17:33
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050302098","salesorder_no":"SO-00484","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000050302098","salesorder_no":"SO-00484","status":"invoiced"}}
EXT ID: 499326000050302098
REF: SO-00484
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050302098 (REF SO-00484)
Local order updated = 2025-10-29 13:14:25.000Z,
source updated = 2025-10-29T13:17:14+0000,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[notes] => delivery round back
[externalOrderId] => 499326000050302098
[refId] => SO-00484
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[title] => Alex Cullum
[deliveryStart] => 2025-10-30
[deliveryEnd] => 2025-10-30
[totalValue] => 7.2
[totalWeight] => 0
[syncInCreated] => 2025-10-29T13:12:04+0000
[syncInUpdated] => 2025-10-29T13:17:14+0000
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000050302104
[externalProductId] => 499326000038717054
[sku] =>
[title] => 440ml x 24 Packaging Own Cans
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 6
[price] => 6
)
)
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
[paymentMethod] => Cash - Don't Leave
)
Does this order already exist?
Yes
Existing custom fields: Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
[1] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
Is array
Merging custom fields...
Order data prepared for sync: Array
(
[contactPhone] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[notes] => delivery round back
[externalOrderId] => 499326000050302098
[refId] => SO-00484
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[title] => Alex Cullum
[deliveryStart] => 2025-10-30
[deliveryEnd] => 2025-10-30
[totalValue] => 7.2
[totalWeight] => 0
[syncInCreated] => 2025-10-29T13:12:04+0000
[syncInUpdated] => 2025-10-29T13:17:14+0000
[syncInStatus] => closed
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
[paymentMethod] => Cash - Don't Leave
[syncOutUpdated] => 2025-10-29T13:17:34+00:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Alex Cullum
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => [{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"},{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"},{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"}]
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000021060129
Getting products
Updating product 499326000038717054
Updating order product 499326000050302104
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00484
Processing order: juzuu0xfelu0ye4, ref SO-00484
Syncing SO-00484
Using default start and end times
Time window: 2025-10-30T06:00:00+00:00 - 2025-10-30T20:00:00+00:00
Found order in MaxOptra? yes
MO updated: 29/10/2025 13:14 - Local updated: 2025-10-29 13:17:34.000Z - Source updated: 2025-10-29 13:17:14.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-10-29 13:17:34.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000021060132
Array
(
[referenceNumber] => 499326000021060132
[name] => Alex Cullum, The Old Rectory, Church Lane, Bristol
[address] => BS26 2QP
)
499326000021060132
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00484
Done all.
Finished at 2025-10-29 13:17:36
Webhook - sourceUpdated script called at 2025-10-29 14:10:51
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050317614","salesorder_no":"SO-00485","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000050317614","salesorder_no":"SO-00485","status":"draft"}}
EXT ID: 499326000050317614
REF: SO-00485
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050317614 (REF SO-00485)
Source order details: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => The Wyndham Arms
[notes] => cellar entrance located left of the pub, please take in to cellar and rack if space
if not open please can Richard 07557 379119
[externalOrderId] => 499326000050317614
[refId] => SO-00485
[externalCustomerId] => 499326000050297231
[externalLocationId] => 499326000050297237
[title] => The Wyndham Arms
[deliveryStart] => 2025-11-03
[deliveryEnd] => 2025-11-03
[totalValue] => 125.99
[totalWeight] => 58
[syncInCreated] => 2025-10-29T14:10:21+0000
[syncInUpdated] => 2025-10-29T14:10:21+0000
[syncInStatus] => draft
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000050317620
[externalProductId] => 499326000000061565
[sku] => BBG-BASS-10G
[title] => Draught Bass 10g
[notes] =>
[quantity] => 1
[weightKg] => 58
[weightTotal] => 58
[priceTotal] => 104.99
[price] => 104.99
)
[1] => Array
(
[externalOrderProductId] => 499326000050317622
[externalProductId] => 499326000039450498
[sku] =>
[title] => POS Draught Bass Pump Clip
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 0
[price] => 0
)
)
[deliveryName] => The Wyndham Arms
[deliveryStreet] => 10 High St
[deliveryCity] => Williton
[deliveryCounty] =>
[deliveryPostcode] => TA4 4NW
[paymentMethod] => Cash - Fine To Leave
)
Does this order already exist?
No
Order data prepared for sync: Array
(
[contactPhone] =>
[contactEmail] =>
[contactName] => The Wyndham Arms
[notes] => cellar entrance located left of the pub, please take in to cellar and rack if space
if not open please can Richard 07557 379119
[externalOrderId] => 499326000050317614
[refId] => SO-00485
[externalCustomerId] => 499326000050297231
[externalLocationId] => 499326000050297237
[title] => The Wyndham Arms
[deliveryStart] => 2025-11-03
[deliveryEnd] => 2025-11-03
[totalValue] => 125.99
[totalWeight] => 58
[syncInCreated] => 2025-10-29T14:10:21+0000
[syncInUpdated] => 2025-10-29T14:10:21+0000
[syncInStatus] => draft
[deliveryName] => The Wyndham Arms
[deliveryStreet] => 10 High St
[deliveryCity] => Williton
[deliveryCounty] =>
[deliveryPostcode] => TA4 4NW
[paymentMethod] => Cash - Fine To Leave
[syncOutUpdated] => 2025-10-29T14:10:52+00:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => The Wyndham Arms
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => [{"id":"nc7sndad5bhvi5x","value":"Cash - Fine To Leave"}]
)
New order
Marking order for sync with MaxOptra
Getting customer details
New customer 499326000050297231
Updating order contact details
Getting products
Updating product 499326000000061565
Creating new order product 499326000050317620
Creating product 499326000039450498
Creating new order product 499326000050317622
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00485
Processing order: mq98ecy717vz33w, ref SO-00485
Syncing SO-00485
Using default start and end times
Time window: 2025-11-03T06:00:00+00:00 - 2025-11-03T20:00:00+00:00
Found order in MaxOptra? no
Creating SO-00485
Done
Finished syncing to MaxOptra for order SO-00485
Done all.
Finished at 2025-10-29 14:10:53
Webhook - sourceUpdated script called at 2025-10-30 13:03:39
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050348139","salesorder_no":"SO-00486","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000050348139","salesorder_no":"SO-00486","status":"draft"}}
EXT ID: 499326000050348139
REF: SO-00486
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050348139 (REF SO-00486)
Source order details: Array
(
[contactPhone] => 07572961803
[contactEmail] =>
[contactName] => Dean .
[notes] =>
[externalOrderId] => 499326000050348139
[refId] => SO-00486
[externalCustomerId] => 499326000045513029
[externalLocationId] => 499326000045513031
[title] => Pebbles Tavern
[deliveryStart] => 2025-11-03
[deliveryEnd] => 2025-11-03
[totalValue] => 356.28
[totalWeight] => 124
[syncInCreated] => 2025-10-30T13:03:15+0000
[syncInUpdated] => 2025-10-30T13:03:15+0000
[syncInStatus] => draft
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000050348145
[externalProductId] => 499326000023037304
[sku] => GK-EAGA-50LK
[title] => Estrella Galicia (50L)
[notes] =>
[quantity] => 2
[weightKg] => 62
[weightTotal] => 124
[priceTotal] => 296.9
[price] => 148.45
)
)
[deliveryName] => Pebbles Tavern
[deliveryStreet] => 24 Market St
[deliveryCity] => Watchet
[deliveryCounty] =>
[deliveryPostcode] => TA23 0AN
)
Does this order already exist?
No
Order data prepared for sync: Array
(
[contactPhone] => 07572961803
[contactEmail] =>
[contactName] => Dean .
[notes] =>
[externalOrderId] => 499326000050348139
[refId] => SO-00486
[externalCustomerId] => 499326000045513029
[externalLocationId] => 499326000045513031
[title] => Pebbles Tavern
[deliveryStart] => 2025-11-03
[deliveryEnd] => 2025-11-03
[totalValue] => 356.28
[totalWeight] => 124
[syncInCreated] => 2025-10-30T13:03:15+0000
[syncInUpdated] => 2025-10-30T13:03:15+0000
[syncInStatus] => draft
[deliveryName] => Pebbles Tavern
[deliveryStreet] => 24 Market St
[deliveryCity] => Watchet
[deliveryCounty] =>
[deliveryPostcode] => TA23 0AN
[syncOutUpdated] => 2025-10-30T13:03:40+00:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Dean .
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
New order
Marking order for sync with MaxOptra
Getting customer details
2025-10-27 10:53:47.000Z != 2025-10-30T13:01:49+0000
Customer changed - updating 499326000045513029
Updating order contact details
Getting products
Updating product 499326000023037304
Creating new order product 499326000050348145
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00486
Processing order: 95k6apjktmrj6u3, ref SO-00486
Syncing SO-00486
Using default start and end times
Time window: 2025-11-03T06:00:00+00:00 - 2025-11-03T20:00:00+00:00
Found order in MaxOptra? no
Creating SO-00486
Done
Finished syncing to MaxOptra for order SO-00486
Done all.
Finished at 2025-10-30 13:03:41
Webhook - sourceUpdated script called at 2025-10-30 13:57:08
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050379752","salesorder_no":"SO-00487","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000050379752","salesorder_no":"SO-00487","status":"draft"}}
EXT ID: 499326000050379752
REF: SO-00487
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050379752 (REF SO-00487)
Source order details: Array
(
[contactPhone] => 07566237123
[contactEmail] => alexcullum02@gmail.com
[contactName] => Alex Cullum
[notes] =>
[externalOrderId] => 499326000050379752
[refId] => SO-00487
[externalCustomerId] => 499326000049463001
[externalLocationId] => 499326000049464010
[title] => Alex Cullum
[deliveryStart] => 2025-10-30
[deliveryEnd] => 2025-10-30
[totalValue] => 68.05
[totalWeight] => 39
[syncInCreated] => 2025-10-30T13:56:59+0000
[syncInUpdated] => 2025-10-30T13:57:03+0000
[syncInStatus] => confirmed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000050379758
[externalProductId] => 499326000000061016
[sku] => BB-BERR-30LK
[title] => Brue river Lager 30ltr
[notes] =>
[quantity] => 1
[weightKg] => 39
[weightTotal] => 39
[priceTotal] => 56.71
[price] => 56.71
)
)
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
Badgeworth, nr Axbridge
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
)
Does this order already exist?
No
Order data prepared for sync: Array
(
[contactPhone] => 07566237123
[contactEmail] => alexcullum02@gmail.com
[contactName] => Alex Cullum
[notes] =>
[externalOrderId] => 499326000050379752
[refId] => SO-00487
[externalCustomerId] => 499326000049463001
[externalLocationId] => 499326000049464010
[title] => Alex Cullum
[deliveryStart] => 2025-10-30
[deliveryEnd] => 2025-10-30
[totalValue] => 68.05
[totalWeight] => 39
[syncInCreated] => 2025-10-30T13:56:59+0000
[syncInUpdated] => 2025-10-30T13:57:03+0000
[syncInStatus] => confirmed
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
Badgeworth, nr Axbridge
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
[syncOutUpdated] => 2025-10-30T13:57:08+00:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Alex Cullum
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
New order
Marking order for sync with MaxOptra
Getting customer details
Customer exists and has not changed (skipping): 499326000049463001
Updating order contact details
Getting products
Updating product 499326000000061016
Creating new order product 499326000050379758
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00487
Processing order: cvv4tca4imvzg1j, ref SO-00487
Syncing SO-00487
Using default start and end times
Time window: 2025-10-30T06:00:00+00:00 - 2025-10-30T20:00:00+00:00
Found order in MaxOptra? no
Creating SO-00487
Done
Finished syncing to MaxOptra for order SO-00487
Done all.
Finished at 2025-10-30 13:57:09
Webhook - sourceUpdated script called at 2025-10-30 13:57:39
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050379752","salesorder_no":"SO-00487","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000050379752","salesorder_no":"SO-00487","status":"invoiced"}}
EXT ID: 499326000050379752
REF: SO-00487
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050379752 (REF SO-00487)
Local order updated = 2025-10-30 13:57:03.000Z,
source updated = 2025-10-30T13:57:27+0000,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00487
Processing order: cvv4tca4imvzg1j, ref SO-00487
Syncing SO-00487
Using default start and end times
Time window: 2025-10-30T06:00:00+00:00 - 2025-10-30T20:00:00+00:00
Found order in MaxOptra? yes
MO updated: 30/10/2025 13:57 - Local updated: 2025-10-30 13:57:09.000Z - Source updated: 2025-10-30 13:57:03.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status:
Status changed - mark for sync back to source
Is allocated? no
Local updated: 2025-10-30 13:57:09.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000049464010
Array
(
[referenceNumber] => 499326000049464010
[name] => Alex Cullum, The Old Rectory, Church Lane
Badgeworth, nr Axbridge, Bristol
[address] => BS26 2QP
)
499326000049464010
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00487
Done all.
Finished at 2025-10-30 13:57:41
Webhook - sourceUpdated script called at 2025-10-30 14:02:04
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050379752","salesorder_no":"SO-00487","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000050379752","salesorder_no":"SO-00487","status":"open"}}
EXT ID: 499326000050379752
REF: SO-00487
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050379752 (REF SO-00487)
Updates pending to source for order: 499326000050379752
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-10-30 13:57:03.000Z,
source updated = 2025-10-30T13:57:27+0000,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00487
Processing order: cvv4tca4imvzg1j, ref SO-00487
Syncing SO-00487
Using default start and end times
Time window: 2025-10-30T06:00:00+00:00 - 2025-10-30T20:00:00+00:00
Found order in MaxOptra? yes
MO updated: 30/10/2025 13:57 - Local updated: 2025-10-30 13:57:00.000Z - Source updated: 2025-10-30 13:57:03.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00487
Done all.
Finished at 2025-10-30 14:02:05
Webhook - sourceUpdated script called at 2025-10-30 14:02:17
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050379752","salesorder_no":"SO-00487","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000050379752","salesorder_no":"SO-00487","status":"invoiced"}}
EXT ID: 499326000050379752
REF: SO-00487
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050379752 (REF SO-00487)
Local order updated = 2025-10-30 13:57:03.000Z,
source updated = 2025-10-30T14:02:04+0000,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] => 07566237123
[contactEmail] => alexcullum02@gmail.com
[contactName] => Alex Cullum
[notes] =>
[externalOrderId] => 499326000050379752
[refId] => SO-00487
[externalCustomerId] => 499326000049463001
[externalLocationId] => 499326000049464010
[title] => Alex Cullum
[deliveryStart] => 2025-10-30
[deliveryEnd] => 2025-10-30
[totalValue] => 68.05
[totalWeight] => 39
[syncInCreated] => 2025-10-30T13:56:59+0000
[syncInUpdated] => 2025-10-30T14:02:04+0000
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000050379758
[externalProductId] => 499326000000061016
[sku] => BB-BERR-30LK
[title] => Brue river Lager 30ltr
[notes] =>
[quantity] => 1
[weightKg] => 39
[weightTotal] => 39
[priceTotal] => 56.71
[price] => 56.71
)
)
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
Badgeworth, nr Axbridge
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] => 07566237123
[contactEmail] => alexcullum02@gmail.com
[contactName] => Alex Cullum
[notes] =>
[externalOrderId] => 499326000050379752
[refId] => SO-00487
[externalCustomerId] => 499326000049463001
[externalLocationId] => 499326000049464010
[title] => Alex Cullum
[deliveryStart] => 2025-10-30
[deliveryEnd] => 2025-10-30
[totalValue] => 68.05
[totalWeight] => 39
[syncInCreated] => 2025-10-30T13:56:59+0000
[syncInUpdated] => 2025-10-30T14:02:04+0000
[syncInStatus] => closed
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
Badgeworth, nr Axbridge
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
[syncOutUpdated] => 2025-10-30T14:02:17+00:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Alex Cullum
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000049463001
Getting products
Updating product 499326000000061016
Updating order product 499326000050379758
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00487
Processing order: cvv4tca4imvzg1j, ref SO-00487
Syncing SO-00487
Using default start and end times
Time window: 2025-10-30T06:00:00+00:00 - 2025-10-30T20:00:00+00:00
Found order in MaxOptra? yes
MO updated: 30/10/2025 13:57 - Local updated: 2025-10-30 14:02:17.000Z - Source updated: 2025-10-30 14:02:04.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-10-30 14:02:17.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000049464010
Array
(
[referenceNumber] => 499326000049464010
[name] => Alex Cullum, The Old Rectory, Church Lane
Badgeworth, nr Axbridge, Bristol
[address] => BS26 2QP
)
499326000049464010
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00487
Done all.
Finished at 2025-10-30 14:02:19
Webhook - sourceUpdated script called at 2025-10-30 14:12:00
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050374124","salesorder_no":"SO-00488","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000050374124","salesorder_no":"SO-00488","status":"draft"}}
EXT ID: 499326000050374124
REF: SO-00488
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050374124 (REF SO-00488)
Source order details: Array
(
[contactPhone] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[notes] => delivery round back
[externalOrderId] => 499326000050374124
[refId] => SO-00488
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[title] => Alex Cullum
[deliveryStart] => 2025-10-30
[deliveryEnd] => 2025-10-30
[totalValue] => 2
[totalWeight] => 0
[syncInCreated] => 2025-10-30T14:11:59+0000
[syncInUpdated] => 2025-10-30T14:11:59+0000
[syncInStatus] => draft
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000050374134
[externalProductId] => 499326000047467258
[sku] =>
[title] => test-item-2
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 2
[price] => 2
)
)
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
[paymentMethod] => Cash - Don't Leave
)
Does this order already exist?
No
Order data prepared for sync: Array
(
[contactPhone] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[notes] => delivery round back
[externalOrderId] => 499326000050374124
[refId] => SO-00488
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[title] => Alex Cullum
[deliveryStart] => 2025-10-30
[deliveryEnd] => 2025-10-30
[totalValue] => 2
[totalWeight] => 0
[syncInCreated] => 2025-10-30T14:11:59+0000
[syncInUpdated] => 2025-10-30T14:11:59+0000
[syncInStatus] => draft
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
[paymentMethod] => Cash - Don't Leave
[syncOutUpdated] => 2025-10-30T14:12:01+00:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Alex Cullum
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => [{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"}]
)
New order
Marking order for sync with MaxOptra
Getting customer details
2025-10-27 15:17:27.000Z != 2025-10-30T14:11:51+0000
Customer changed - updating 499326000021060129
Updating order contact details
Getting products
Updating product 499326000047467258
Creating new order product 499326000050374134
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00488
Processing order: x3exs74cmrdtsjw, ref SO-00488
Syncing SO-00488
Using default start and end times
Time window: 2025-10-30T06:00:00+00:00 - 2025-10-30T20:00:00+00:00
Found order in MaxOptra? no
Creating SO-00488
Done
Finished syncing to MaxOptra for order SO-00488
Done all.
Finished at 2025-10-30 14:12:02
Webhook - sourceUpdated script called at 2025-10-30 14:12:30
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050374124","salesorder_no":"SO-00488","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000050374124","salesorder_no":"SO-00488","status":"open"}}
EXT ID: 499326000050374124
REF: SO-00488
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050374124 (REF SO-00488)
Local order updated = 2025-10-30 14:11:59.000Z,
source updated = 2025-10-30T14:12:17+0000,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00488
Processing order: x3exs74cmrdtsjw, ref SO-00488
Syncing SO-00488
Using default start and end times
Time window: 2025-10-30T06:00:00+00:00 - 2025-10-30T20:00:00+00:00
Found order in MaxOptra? yes
MO updated: 30/10/2025 14:12 - Local updated: 2025-10-30 14:12:02.000Z - Source updated: 2025-10-30 14:11:59.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status:
Status changed - mark for sync back to source
Is allocated? no
Local updated: 2025-10-30 14:12:02.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000021060132
Array
(
[referenceNumber] => 499326000021060132
[name] => Alex Cullum, The Old Rectory, Church Lane, Bristol
[address] => BS26 2QP
)
499326000021060132
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00488
Done all.
Finished at 2025-10-30 14:12:32
Webhook - sourceUpdated script called at 2025-10-30 14:17:18
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050374124","salesorder_no":"SO-00488","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000050374124","salesorder_no":"SO-00488","status":"invoiced"}}
EXT ID: 499326000050374124
REF: SO-00488
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050374124 (REF SO-00488)
Updates pending to source for order: 499326000050374124
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-10-30 14:11:59.000Z,
source updated = 2025-10-30T14:12:17+0000,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00488
Processing order: x3exs74cmrdtsjw, ref SO-00488
Syncing SO-00488
Using default start and end times
Time window: 2025-10-30T06:00:00+00:00 - 2025-10-30T20:00:00+00:00
Found order in MaxOptra? yes
MO updated: 30/10/2025 14:12 - Local updated: 2025-10-30 14:12:00.000Z - Source updated: 2025-10-30 14:11:59.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00488
Done all.
Finished at 2025-10-30 14:17:20
Webhook - sourceUpdated script called at 2025-10-30 14:17:37
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050374124","salesorder_no":"SO-00488","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000050374124","salesorder_no":"SO-00488","status":"invoiced"}}
EXT ID: 499326000050374124
REF: SO-00488
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050374124 (REF SO-00488)
Local order updated = 2025-10-30 14:11:59.000Z,
source updated = 2025-10-30T14:17:19+0000,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[notes] => delivery round back
[externalOrderId] => 499326000050374124
[refId] => SO-00488
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[title] => Alex Cullum
[deliveryStart] => 2025-10-30
[deliveryEnd] => 2025-10-30
[totalValue] => 2
[totalWeight] => 0
[syncInCreated] => 2025-10-30T14:11:59+0000
[syncInUpdated] => 2025-10-30T14:17:19+0000
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000050374134
[externalProductId] => 499326000047467258
[sku] =>
[title] => test-item-2
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 2
[price] => 2
)
)
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
[paymentMethod] => Cash - Don't Leave
)
Does this order already exist?
Yes
Existing custom fields: Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
Is array
Merging custom fields...
Order data prepared for sync: Array
(
[contactPhone] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[notes] => delivery round back
[externalOrderId] => 499326000050374124
[refId] => SO-00488
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[title] => Alex Cullum
[deliveryStart] => 2025-10-30
[deliveryEnd] => 2025-10-30
[totalValue] => 2
[totalWeight] => 0
[syncInCreated] => 2025-10-30T14:11:59+0000
[syncInUpdated] => 2025-10-30T14:17:19+0000
[syncInStatus] => closed
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
[paymentMethod] => Cash - Don't Leave
[syncOutUpdated] => 2025-10-30T14:17:38+00:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Alex Cullum
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => [{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"},{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"}]
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000021060129
Getting products
Updating product 499326000047467258
Updating order product 499326000050374134
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00488
Processing order: x3exs74cmrdtsjw, ref SO-00488
Syncing SO-00488
Using default start and end times
Time window: 2025-10-30T06:00:00+00:00 - 2025-10-30T20:00:00+00:00
Found order in MaxOptra? yes
MO updated: 30/10/2025 14:12 - Local updated: 2025-10-30 14:17:38.000Z - Source updated: 2025-10-30 14:17:19.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-10-30 14:17:38.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000021060132
Array
(
[referenceNumber] => 499326000021060132
[name] => Alex Cullum, The Old Rectory, Church Lane, Bristol
[address] => BS26 2QP
)
499326000021060132
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00488
Done all.
Finished at 2025-10-30 14:17:39
Webhook - sourceUpdated script called at 2025-10-30 14:25:21
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050379752","salesorder_no":"SO-00487","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000050379752","salesorder_no":"SO-00487","status":"open"}}
EXT ID: 499326000050379752
REF: SO-00487
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050379752 (REF SO-00487)
Local order updated = 2025-10-30 14:02:04.000Z,
source updated = 2025-10-30T14:25:16+0000,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] => 07566237123
[contactEmail] => alexcullum02@gmail.com
[contactName] => Alex Cullum
[notes] =>
[externalOrderId] => 499326000050379752
[refId] => SO-00487
[externalCustomerId] => 499326000049463001
[externalLocationId] => 499326000049464010
[title] => Alex Cullum
[deliveryStart] => 2025-10-30
[deliveryEnd] => 2025-10-30
[totalValue] => 68.05
[totalWeight] => 39
[syncInCreated] => 2025-10-30T13:56:59+0000
[syncInUpdated] => 2025-10-30T14:25:16+0000
[syncInStatus] => confirmed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000050379758
[externalProductId] => 499326000000061016
[sku] => BB-BERR-30LK
[title] => Brue river Lager 30ltr
[notes] =>
[quantity] => 1
[weightKg] => 39
[weightTotal] => 39
[priceTotal] => 56.71
[price] => 56.71
)
)
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
Badgeworth, nr Axbridge
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] => 07566237123
[contactEmail] => alexcullum02@gmail.com
[contactName] => Alex Cullum
[notes] =>
[externalOrderId] => 499326000050379752
[refId] => SO-00487
[externalCustomerId] => 499326000049463001
[externalLocationId] => 499326000049464010
[title] => Alex Cullum
[deliveryStart] => 2025-10-30
[deliveryEnd] => 2025-10-30
[totalValue] => 68.05
[totalWeight] => 39
[syncInCreated] => 2025-10-30T13:56:59+0000
[syncInUpdated] => 2025-10-30T14:25:16+0000
[syncInStatus] => confirmed
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
Badgeworth, nr Axbridge
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
[syncOutUpdated] => 2025-10-30T14:25:21+00:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Alex Cullum
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000049463001
Getting products
Updating product 499326000000061016
Updating order product 499326000050379758
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00487
Processing order: cvv4tca4imvzg1j, ref SO-00487
Syncing SO-00487
Using default start and end times
Time window: 2025-10-30T06:00:00+00:00 - 2025-10-30T20:00:00+00:00
Found order in MaxOptra? yes
MO updated: 30/10/2025 14:02 - Local updated: 2025-10-30 14:25:21.000Z - Source updated: 2025-10-30 14:25:16.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-10-30 14:25:21.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000049464010
Array
(
[referenceNumber] => 499326000049464010
[name] => Alex Cullum, The Old Rectory, Church Lane
Badgeworth, nr Axbridge, Bristol
[address] => BS26 2QP
)
499326000049464010
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00487
Done all.
Finished at 2025-10-30 14:25:23
Webhook - sourceUpdated script called at 2025-10-30 14:25:51
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050379752","salesorder_no":"SO-00487","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000050379752","salesorder_no":"SO-00487","status":"invoiced"}}
EXT ID: 499326000050379752
REF: SO-00487
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050379752 (REF SO-00487)
Local order updated = 2025-10-30 14:25:16.000Z,
source updated = 2025-10-30T14:25:23+0000,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00487
Processing order: cvv4tca4imvzg1j, ref SO-00487
Syncing SO-00487
Using default start and end times
Time window: 2025-10-30T06:00:00+00:00 - 2025-10-30T20:00:00+00:00
Found order in MaxOptra? yes
MO updated: 30/10/2025 14:25 - Local updated: 2025-10-30 14:02:00.000Z - Source updated: 2025-10-30 14:25:16.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-10-30 14:02:00.000Z
Pending updates to MaxOptra? no
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00487
Done all.
Finished at 2025-10-30 14:25:53
Webhook - sourceUpdated script called at 2025-10-30 14:30:17
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050374124","salesorder_no":"SO-00488","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000050374124","salesorder_no":"SO-00488","status":"open"}}
EXT ID: 499326000050374124
REF: SO-00488
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050374124 (REF SO-00488)
Local order updated = 2025-10-30 14:17:19.000Z,
source updated = 2025-10-30T14:25:24+0000,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[notes] => delivery round back
[externalOrderId] => 499326000050374124
[refId] => SO-00488
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[title] => Alex Cullum
[deliveryStart] => 2025-10-30
[deliveryEnd] => 2025-10-30
[totalValue] => 2
[totalWeight] => 0
[syncInCreated] => 2025-10-30T14:11:59+0000
[syncInUpdated] => 2025-10-30T14:25:24+0000
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000050374134
[externalProductId] => 499326000047467258
[sku] =>
[title] => test-item-2
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 2
[price] => 2
)
)
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
[paymentMethod] => Cash - Don't Leave
)
Does this order already exist?
Yes
Existing custom fields: Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
[1] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
Is array
Merging custom fields...
Order data prepared for sync: Array
(
[contactPhone] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[notes] => delivery round back
[externalOrderId] => 499326000050374124
[refId] => SO-00488
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[title] => Alex Cullum
[deliveryStart] => 2025-10-30
[deliveryEnd] => 2025-10-30
[totalValue] => 2
[totalWeight] => 0
[syncInCreated] => 2025-10-30T14:11:59+0000
[syncInUpdated] => 2025-10-30T14:25:24+0000
[syncInStatus] => closed
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
[paymentMethod] => Cash - Don't Leave
[syncOutUpdated] => 2025-10-30T14:30:18+00:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Alex Cullum
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => [{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"},{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"},{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"}]
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000021060129
Getting products
Updating product 499326000047467258
Updating order product 499326000050374134
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00488
Processing order: x3exs74cmrdtsjw, ref SO-00488
Syncing SO-00488
Using default start and end times
Time window: 2025-10-30T06:00:00+00:00 - 2025-10-30T20:00:00+00:00
Found order in MaxOptra? yes
MO updated: 30/10/2025 14:17 - Local updated: 2025-10-30 14:30:18.000Z - Source updated: 2025-10-30 14:25:24.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-10-30 14:30:18.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000021060132
Array
(
[referenceNumber] => 499326000021060132
[name] => Alex Cullum, The Old Rectory, Church Lane, Bristol
[address] => BS26 2QP
)
499326000021060132
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00488
Done all.
Finished at 2025-10-30 14:30:20
Webhook - sourceUpdated script called at 2025-10-30 14:30:25
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050374124","salesorder_no":"SO-00488","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000050374124","salesorder_no":"SO-00488","status":"invoiced"}}
EXT ID: 499326000050374124
REF: SO-00488
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050374124 (REF SO-00488)
Local order updated = 2025-10-30 14:25:24.000Z,
source updated = 2025-10-30T14:25:24+0000,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00488
Processing order: x3exs74cmrdtsjw, ref SO-00488
Syncing SO-00488
Using default start and end times
Time window: 2025-10-30T06:00:00+00:00 - 2025-10-30T20:00:00+00:00
Found order in MaxOptra? yes
MO updated: 30/10/2025 14:30 - Local updated: 2025-10-30 14:17:00.000Z - Source updated: 2025-10-30 14:25:24.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-10-30 14:17:00.000Z
Pending updates to MaxOptra? no
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00488
Done all.
Finished at 2025-10-30 14:30:26
Webhook - sourceUpdated script called at 2025-10-30 19:21:49
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050298006","salesorder_no":"SO-00483","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000050298006","salesorder_no":"SO-00483","status":"invoiced"}}
EXT ID: 499326000050298006
REF: SO-00483
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Webhook - sourceUpdated script called at 2025-10-30 19:21:50
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050298006","salesorder_no":"SO-00483","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000050298006","salesorder_no":"SO-00483","status":"invoiced"}}
EXT ID: 499326000050298006
REF: SO-00483
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050298006 (REF SO-00483)
Local order updated = 2025-10-29 09:04:57.000Z,
source updated = 2025-10-30T19:21:40+0000,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] => +44-07584437952
[contactEmail] => info@fountaininnbridgwater.co.uk
[contactName] => Becky .
[notes] =>
[externalOrderId] => 499326000050298006
[refId] => SO-00483
[externalCustomerId] => 499326000000424593
[externalLocationId] => 499326000000424595
[title] => The Fountain (Bridgwater)
[deliveryStart] => 2025-10-29
[deliveryEnd] => 2025-10-29
[totalValue] => 373.2
[totalWeight] => 153
[syncInCreated] => 2025-10-29T09:04:57+0000
[syncInUpdated] => 2025-10-30T19:21:40+0000
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000050298012
[externalProductId] => 499326000043516456
[sku] =>
[title] => Harding's Golden Ale 4.2%
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 78
[price] => 78
)
[1] => Array
(
[externalOrderProductId] => 499326000050298014
[externalProductId] => 499326000021043799
[sku] => BB-HSAR-9G
[title] => Hardings Amber Ale 3.9% (9g)
[notes] =>
[quantity] => 1
[weightKg] => 51
[weightTotal] => 51
[priceTotal] => 75
[price] => 75
)
[2] => Array
(
[externalOrderProductId] => 499326000050298016
[externalProductId] => 499326000021043786
[sku] => BB-HSBT-9G
[title] => Hardings Best Bitter 4.2% (9g)
[notes] =>
[quantity] => 1
[weightKg] => 51
[weightTotal] => 51
[priceTotal] => 78
[price] => 78
)
[3] => Array
(
[externalOrderProductId] => 499326000050298018
[externalProductId] => 499326000044145711
[sku] => BB-HSDD-9G
[title] => Hardings Double Hopped 4.0% (9g)
[notes] =>
[quantity] => 1
[weightKg] => 51
[weightTotal] => 51
[priceTotal] => 80
[price] => 80
)
)
[deliveryName] => The Fountain (Bridgwater)
[deliveryStreet] => Bridgwater
[deliveryCity] => Bridgwater
[deliveryCounty] =>
[deliveryPostcode] => TA6 3HL
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] => +44-07584437952
[contactEmail] => info@fountaininnbridgwater.co.uk
[contactName] => Becky .
[notes] =>
[externalOrderId] => 499326000050298006
[refId] => SO-00483
[externalCustomerId] => 499326000000424593
[externalLocationId] => 499326000000424595
[title] => The Fountain (Bridgwater)
[deliveryStart] => 2025-10-29
[deliveryEnd] => 2025-10-29
[totalValue] => 373.2
[totalWeight] => 153
[syncInCreated] => 2025-10-29T09:04:57+0000
[syncInUpdated] => 2025-10-30T19:21:40+0000
[syncInStatus] => closed
[deliveryName] => The Fountain (Bridgwater)
[deliveryStreet] => Bridgwater
[deliveryCity] => Bridgwater
[deliveryCounty] =>
[deliveryPostcode] => TA6 3HL
[syncOutUpdated] => 2025-10-30T19:21:50+00:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Becky .
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000000424593
Getting products
Updating product 499326000043516456
Updating order product 499326000050298012
Updated
Updating product 499326000021043799
Updating order product 499326000050298014
Updated
Updating product 499326000021043786
Updating order product 499326000050298016
Updated
Updating product 499326000044145711
Updating order product 499326000050298018
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00483
Getting local orders...
------------------------
Processing order 499326000050298006 (REF SO-00483)
Local order updated = 2025-10-30 19:21:40.000Z,
source updated = 2025-10-30T19:21:40+0000,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00483
Processing order: 3vdim2310f3rbbs, ref SO-00483
Syncing SO-00483
Using default start and end times
Delivery start = 2025-10-29 00:00:00.000Z = 2025-10-29T06:00:00+00:00
Delivery end = 2025-10-29 00:00:00.000Z = 2025-10-29T20:00:00+00:00
Delivery is in the past. Skipping creation/update in MaxOptra.
Found order in MaxOptra? yes
MO updated: 29/10/2025 09:05 - Local updated: 2025-10-30 19:21:50.000Z - Source updated: 2025-10-30 19:21:40.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status:
Status changed - mark for sync back to source
Is allocated? no
Local updated: 2025-10-30 19:21:50.000Z
Pending updates to MaxOptra? no
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00483
Done all.
Finished at 2025-10-30 19:21:51
Processing order: 3vdim2310f3rbbs, ref SO-00483
Order is not marked to sync (possibly no longer in source)
Finished syncing to MaxOptra for order SO-00483
Done all.
Finished at 2025-10-30 19:21:51
Webhook - sourceUpdated script called at 2025-10-30 19:22:19
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050298006","salesorder_no":"SO-00483","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000050298006","salesorder_no":"SO-00483","status":"invoiced"}}
EXT ID: 499326000050298006
REF: SO-00483
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050298006 (REF SO-00483)
Updates pending to source for order: 499326000050298006
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-10-30 19:21:40.000Z,
source updated = 2025-10-30T19:21:40+0000,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00483
Processing order: 3vdim2310f3rbbs, ref SO-00483
Syncing SO-00483
Using default start and end times
Delivery start = 2025-10-29 00:00:00.000Z = 2025-10-29T06:00:00+00:00
Delivery end = 2025-10-29 00:00:00.000Z = 2025-10-29T20:00:00+00:00
Delivery is in the past. Skipping creation/update in MaxOptra.
Found order in MaxOptra? yes
MO updated: 29/10/2025 09:05 - Local updated: 2025-10-29 09:05:00.000Z - Source updated: 2025-10-30 19:21:40.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00483
Done all.
Finished at 2025-10-30 19:22:22
Webhook - sourceUpdated script called at 2025-10-30 19:22:50
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050298006","salesorder_no":"SO-00483","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000050298006","salesorder_no":"SO-00483","status":"invoiced"}}
EXT ID: 499326000050298006
REF: SO-00483
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050298006 (REF SO-00483)
Local order updated = 2025-10-30 19:21:40.000Z,
source updated = 2025-10-30T19:22:21+0000,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00483
Processing order: 3vdim2310f3rbbs, ref SO-00483
Syncing SO-00483
Using default start and end times
Delivery start = 2025-10-29 00:00:00.000Z = 2025-10-29T06:00:00+00:00
Delivery end = 2025-10-29 00:00:00.000Z = 2025-10-29T20:00:00+00:00
Delivery is in the past. Skipping creation/update in MaxOptra.
Found order in MaxOptra? yes
MO updated: 29/10/2025 09:05 - Local updated: 2025-10-29 09:05:00.000Z - Source updated: 2025-10-30 19:21:40.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00483
Done all.
Finished at 2025-10-30 19:22:52
Webhook - sourceUpdated script called at 2025-10-30 19:26:32
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050298006","salesorder_no":"SO-00483","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000050298006","salesorder_no":"SO-00483","status":"open"}}
EXT ID: 499326000050298006
REF: SO-00483
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050298006 (REF SO-00483)
Local order updated = 2025-10-30 19:21:40.000Z,
source updated = 2025-10-30T19:22:21+0000,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00483
Processing order: 3vdim2310f3rbbs, ref SO-00483
Syncing SO-00483
Using default start and end times
Delivery start = 2025-10-29 00:00:00.000Z = 2025-10-29T06:00:00+00:00
Delivery end = 2025-10-29 00:00:00.000Z = 2025-10-29T20:00:00+00:00
Delivery is in the past. Skipping creation/update in MaxOptra.
Found order in MaxOptra? yes
MO updated: 29/10/2025 09:05 - Local updated: 2025-10-29 09:05:00.000Z - Source updated: 2025-10-30 19:21:40.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00483
Done all.
Finished at 2025-10-30 19:26:33
Webhook - sourceUpdated script called at 2025-10-30 19:27:48
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050298006","salesorder_no":"SO-00483","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000050298006","salesorder_no":"SO-00483","status":"invoiced"}}
EXT ID: 499326000050298006
REF: SO-00483
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050298006 (REF SO-00483)
Local order updated = 2025-10-30 19:21:40.000Z,
source updated = 2025-10-30T19:22:21+0000,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00483
Processing order: 3vdim2310f3rbbs, ref SO-00483
Syncing SO-00483
Using default start and end times
Delivery start = 2025-10-29 00:00:00.000Z = 2025-10-29T06:00:00+00:00
Delivery end = 2025-10-29 00:00:00.000Z = 2025-10-29T20:00:00+00:00
Delivery is in the past. Skipping creation/update in MaxOptra.
Found order in MaxOptra? yes
MO updated: 29/10/2025 09:05 - Local updated: 2025-10-29 09:05:00.000Z - Source updated: 2025-10-30 19:21:40.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00483
Done all.
Finished at 2025-10-30 19:27:50
Webhook - sourceUpdated script called at 2025-10-31 09:32:03
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050298006","salesorder_no":"SO-00483","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000050298006","salesorder_no":"SO-00483","status":"invoiced"}}
EXT ID: 499326000050298006
REF: SO-00483
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050298006 (REF SO-00483)
Local order updated = 2025-10-30 19:21:40.000Z,
source updated = 2025-10-31T09:31:34+0000,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] => +44-07584437952
[contactEmail] => info@fountaininnbridgwater.co.uk
[contactName] => Becky .
[notes] =>
[externalOrderId] => 499326000050298006
[refId] => SO-00483
[externalCustomerId] => 499326000000424593
[externalLocationId] => 499326000000424595
[title] => The Fountain (Bridgwater)
[deliveryStart] => 2025-10-29
[deliveryEnd] => 2025-10-29
[totalValue] => 373.2
[totalWeight] => 153
[syncInCreated] => 2025-10-29T09:04:57+0000
[syncInUpdated] => 2025-10-31T09:31:34+0000
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000050298012
[externalProductId] => 499326000043516456
[sku] =>
[title] => Harding's Golden Ale 4.2%
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 78
[price] => 78
)
[1] => Array
(
[externalOrderProductId] => 499326000050298014
[externalProductId] => 499326000021043799
[sku] => BB-HSAR-9G
[title] => Hardings Amber Ale 3.9% (9g)
[notes] =>
[quantity] => 1
[weightKg] => 51
[weightTotal] => 51
[priceTotal] => 75
[price] => 75
)
[2] => Array
(
[externalOrderProductId] => 499326000050298016
[externalProductId] => 499326000021043786
[sku] => BB-HSBT-9G
[title] => Hardings Best Bitter 4.2% (9g)
[notes] =>
[quantity] => 1
[weightKg] => 51
[weightTotal] => 51
[priceTotal] => 78
[price] => 78
)
[3] => Array
(
[externalOrderProductId] => 499326000050298018
[externalProductId] => 499326000044145711
[sku] => BB-HSDD-9G
[title] => Hardings Double Hopped 4.0% (9g)
[notes] =>
[quantity] => 1
[weightKg] => 51
[weightTotal] => 51
[priceTotal] => 80
[price] => 80
)
)
[deliveryName] => The Fountain (Bridgwater)
[deliveryStreet] => Bridgwater
[deliveryCity] => Bridgwater
[deliveryCounty] =>
[deliveryPostcode] => TA6 3HL
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] => +44-07584437952
[contactEmail] => info@fountaininnbridgwater.co.uk
[contactName] => Becky .
[notes] =>
[externalOrderId] => 499326000050298006
[refId] => SO-00483
[externalCustomerId] => 499326000000424593
[externalLocationId] => 499326000000424595
[title] => The Fountain (Bridgwater)
[deliveryStart] => 2025-10-29
[deliveryEnd] => 2025-10-29
[totalValue] => 373.2
[totalWeight] => 153
[syncInCreated] => 2025-10-29T09:04:57+0000
[syncInUpdated] => 2025-10-31T09:31:34+0000
[syncInStatus] => closed
[deliveryName] => The Fountain (Bridgwater)
[deliveryStreet] => Bridgwater
[deliveryCity] => Bridgwater
[deliveryCounty] =>
[deliveryPostcode] => TA6 3HL
[syncOutUpdated] => 2025-10-31T09:32:05+00:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Becky .
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000000424593
Getting products
Updating product 499326000043516456
Updating order product 499326000050298012
Updated
Updating product 499326000021043799
Updating order product 499326000050298014
Updated
Updating product 499326000021043786
Updating order product 499326000050298016
Updated
Updating product 499326000044145711
Updating order product 499326000050298018
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00483
Processing order: 3vdim2310f3rbbs, ref SO-00483
Syncing SO-00483
Using default start and end times
Delivery start = 2025-10-29 00:00:00.000Z = 2025-10-29T06:00:00+00:00
Delivery end = 2025-10-29 00:00:00.000Z = 2025-10-29T20:00:00+00:00
Delivery is in the past. Skipping creation/update in MaxOptra.
Found order in MaxOptra? yes
MO updated: 29/10/2025 09:05 - Local updated: 2025-10-31 09:32:05.000Z - Source updated: 2025-10-31 09:31:34.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-10-31 09:32:05.000Z
Pending updates to MaxOptra? no
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00483
Done all.
Finished at 2025-10-31 09:32:06
Webhook - sourceUpdated script called at 2025-10-31 09:38:40
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050379752","salesorder_no":"SO-00487","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000050379752","salesorder_no":"SO-00487","status":"open"}}
EXT ID: 499326000050379752
REF: SO-00487
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050379752 (REF SO-00487)
Local order updated = 2025-10-30 14:25:16.000Z,
source updated = 2025-10-31T09:38:22+0000,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] => 07566237123
[contactEmail] => alexcullum02@gmail.com
[contactName] => Alex Cullum
[notes] =>
[externalOrderId] => 499326000050379752
[refId] => SO-00487
[externalCustomerId] => 499326000049463001
[externalLocationId] => 499326000049464010
[title] => Alex Cullum
[deliveryStart] => 2025-10-30
[deliveryEnd] => 2025-10-30
[totalValue] => 68.05
[totalWeight] => 39
[syncInCreated] => 2025-10-30T13:56:59+0000
[syncInUpdated] => 2025-10-31T09:38:22+0000
[syncInStatus] => confirmed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000050379758
[externalProductId] => 499326000000061016
[sku] => BB-BERR-30LK
[title] => Brue river Lager 30ltr
[notes] =>
[quantity] => 1
[weightKg] => 39
[weightTotal] => 39
[priceTotal] => 56.71
[price] => 56.71
)
)
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
Badgeworth, nr Axbridge
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] => 07566237123
[contactEmail] => alexcullum02@gmail.com
[contactName] => Alex Cullum
[notes] =>
[externalOrderId] => 499326000050379752
[refId] => SO-00487
[externalCustomerId] => 499326000049463001
[externalLocationId] => 499326000049464010
[title] => Alex Cullum
[deliveryStart] => 2025-10-30
[deliveryEnd] => 2025-10-30
[totalValue] => 68.05
[totalWeight] => 39
[syncInCreated] => 2025-10-30T13:56:59+0000
[syncInUpdated] => 2025-10-31T09:38:22+0000
[syncInStatus] => confirmed
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
Badgeworth, nr Axbridge
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
[syncOutUpdated] => 2025-10-31T09:38:40+00:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Alex Cullum
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000049463001
Getting products
Updating product 499326000000061016
Updating order product 499326000050379758
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00487
Processing order: cvv4tca4imvzg1j, ref SO-00487
Syncing SO-00487
Using default start and end times
Delivery start = 2025-10-30 00:00:00.000Z = 2025-10-30T06:00:00+00:00
Delivery end = 2025-10-30 00:00:00.000Z = 2025-10-30T20:00:00+00:00
Delivery is in the past. Skipping creation/update in MaxOptra.
Found order in MaxOptra? yes
MO updated: 30/10/2025 14:25 - Local updated: 2025-10-31 09:38:40.000Z - Source updated: 2025-10-31 09:38:22.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-10-31 09:38:40.000Z
Pending updates to MaxOptra? no
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00487
Done all.
Finished at 2025-10-31 09:38:41
Webhook - sourceUpdated script called at 2025-10-31 09:39:10
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050379752","salesorder_no":"SO-00487","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000050379752","salesorder_no":"SO-00487","status":"invoiced"}}
EXT ID: 499326000050379752
REF: SO-00487
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Error: cURL Error: Failed to connect to www.zohoapis.eu port 443: No route to host
Error: Failed to sync source order
Finished at 2025-10-31 09:39:13
Webhook - sourceUpdated script called at 2025-10-31 09:39:17
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050374124","salesorder_no":"SO-00488","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000050374124","salesorder_no":"SO-00488","status":"invoiced"}}
EXT ID: 499326000050374124
REF: SO-00488
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050374124 (REF SO-00488)
Local order updated = 2025-10-30 14:25:24.000Z,
source updated = 2025-10-31T09:38:49+0000,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[notes] => delivery round back
[externalOrderId] => 499326000050374124
[refId] => SO-00488
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[title] => Alex Cullum
[deliveryStart] => 2025-10-30
[deliveryEnd] => 2025-10-30
[totalValue] => 2
[totalWeight] => 0
[syncInCreated] => 2025-10-30T14:11:59+0000
[syncInUpdated] => 2025-10-31T09:38:49+0000
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000050374134
[externalProductId] => 499326000047467258
[sku] =>
[title] => test-item-2
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 2
[price] => 2
)
)
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
[paymentMethod] => Cash - Don't Leave
)
Does this order already exist?
Yes
Existing custom fields: Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
[1] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
[2] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
Is array
Merging custom fields...
Order data prepared for sync: Array
(
[contactPhone] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[notes] => delivery round back
[externalOrderId] => 499326000050374124
[refId] => SO-00488
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[title] => Alex Cullum
[deliveryStart] => 2025-10-30
[deliveryEnd] => 2025-10-30
[totalValue] => 2
[totalWeight] => 0
[syncInCreated] => 2025-10-30T14:11:59+0000
[syncInUpdated] => 2025-10-31T09:38:49+0000
[syncInStatus] => closed
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
[paymentMethod] => Cash - Don't Leave
[syncOutUpdated] => 2025-10-31T09:39:18+00:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Alex Cullum
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => [{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"},{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"},{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"},{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"}]
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000021060129
Getting products
Updating product 499326000047467258
Updating order product 499326000050374134
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00488
Processing order: x3exs74cmrdtsjw, ref SO-00488
Syncing SO-00488
Using default start and end times
Delivery start = 2025-10-30 00:00:00.000Z = 2025-10-30T06:00:00+00:00
Delivery end = 2025-10-30 00:00:00.000Z = 2025-10-30T20:00:00+00:00
Delivery is in the past. Skipping creation/update in MaxOptra.
Found order in MaxOptra? yes
MO updated: 30/10/2025 14:30 - Local updated: 2025-10-31 09:39:18.000Z - Source updated: 2025-10-31 09:38:49.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-10-31 09:39:18.000Z
Pending updates to MaxOptra? no
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00488
Done all.
Finished at 2025-10-31 09:39:19
Webhook - sourceUpdated script called at 2025-10-31 09:43:23
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050374124","salesorder_no":"SO-00488","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000050374124","salesorder_no":"SO-00488","status":"open"}}
EXT ID: 499326000050374124
REF: SO-00488
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050374124 (REF SO-00488)
Local order updated = 2025-10-31 09:38:49.000Z,
source updated = 2025-10-31T09:38:49+0000,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00488
Processing order: x3exs74cmrdtsjw, ref SO-00488
Syncing SO-00488
Using default start and end times
Delivery start = 2025-10-30 00:00:00.000Z = 2025-10-30T06:00:00+00:00
Delivery end = 2025-10-30 00:00:00.000Z = 2025-10-30T20:00:00+00:00
Delivery is in the past. Skipping creation/update in MaxOptra.
Found order in MaxOptra? yes
MO updated: 30/10/2025 14:30 - Local updated: 2025-10-30 14:30:00.000Z - Source updated: 2025-10-31 09:38:49.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00488
Done all.
Finished at 2025-10-31 09:43:24
Webhook - sourceUpdated script called at 2025-10-31 09:46:48
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050379752","salesorder_no":"SO-00487","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000050379752","salesorder_no":"SO-00487","status":"open"}}
EXT ID: 499326000050379752
REF: SO-00487
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050379752 (REF SO-00487)
Local order updated = 2025-10-31 09:38:22.000Z,
source updated = 2025-10-31T09:46:46+0000,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] => 07566237123
[contactEmail] => alexcullum02@gmail.com
[contactName] => Alex Cullum
[notes] =>
[externalOrderId] => 499326000050379752
[refId] => SO-00487
[externalCustomerId] => 499326000049463001
[externalLocationId] => 499326000049464010
[title] => Alex Cullum
[deliveryStart] => 2025-10-30
[deliveryEnd] => 2025-10-30
[totalValue] => 68.05
[totalWeight] => 39
[syncInCreated] => 2025-10-30T13:56:59+0000
[syncInUpdated] => 2025-10-31T09:46:46+0000
[syncInStatus] => confirmed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000050379758
[externalProductId] => 499326000000061016
[sku] => BB-BERR-30LK
[title] => Brue river Lager 30ltr
[notes] =>
[quantity] => 1
[weightKg] => 39
[weightTotal] => 39
[priceTotal] => 56.71
[price] => 56.71
)
)
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
Badgeworth, nr Axbridge
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] => 07566237123
[contactEmail] => alexcullum02@gmail.com
[contactName] => Alex Cullum
[notes] =>
[externalOrderId] => 499326000050379752
[refId] => SO-00487
[externalCustomerId] => 499326000049463001
[externalLocationId] => 499326000049464010
[title] => Alex Cullum
[deliveryStart] => 2025-10-30
[deliveryEnd] => 2025-10-30
[totalValue] => 68.05
[totalWeight] => 39
[syncInCreated] => 2025-10-30T13:56:59+0000
[syncInUpdated] => 2025-10-31T09:46:46+0000
[syncInStatus] => confirmed
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
Badgeworth, nr Axbridge
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
[syncOutUpdated] => 2025-10-31T09:46:48+00:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Alex Cullum
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000049463001
Getting products
Updating product 499326000000061016
Updating order product 499326000050379758
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00487
Processing order: cvv4tca4imvzg1j, ref SO-00487
Syncing SO-00487
Using default start and end times
Delivery start = 2025-10-30 00:00:00.000Z = 2025-10-30T06:00:00+00:00
Delivery end = 2025-10-30 00:00:00.000Z = 2025-10-30T20:00:00+00:00
Delivery is in the past. Skipping creation/update in MaxOptra.
Found order in MaxOptra? yes
MO updated: 30/10/2025 14:25 - Local updated: 2025-10-31 09:46:48.000Z - Source updated: 2025-10-31 09:46:46.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-10-31 09:46:48.000Z
Pending updates to MaxOptra? no
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00487
Done all.
Finished at 2025-10-31 09:46:49
Webhook - sourceUpdated script called at 2025-10-31 09:47:18
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050379752","salesorder_no":"SO-00487","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000050379752","salesorder_no":"SO-00487","status":"invoiced"}}
EXT ID: 499326000050379752
REF: SO-00487
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050379752 (REF SO-00487)
Local order updated = 2025-10-31 09:46:46.000Z,
source updated = 2025-10-31T09:46:56+0000,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00487
Processing order: cvv4tca4imvzg1j, ref SO-00487
Syncing SO-00487
Using default start and end times
Delivery start = 2025-10-30 00:00:00.000Z = 2025-10-30T06:00:00+00:00
Delivery end = 2025-10-30 00:00:00.000Z = 2025-10-30T20:00:00+00:00
Delivery is in the past. Skipping creation/update in MaxOptra.
Found order in MaxOptra? yes
MO updated: 30/10/2025 14:25 - Local updated: 2025-10-30 14:25:00.000Z - Source updated: 2025-10-31 09:46:46.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00487
Done all.
Finished at 2025-10-31 09:47:19
Webhook - sourceUpdated script called at 2025-10-31 09:51:47
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050374124","salesorder_no":"SO-00488","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000050374124","salesorder_no":"SO-00488","status":"open"}}
EXT ID: 499326000050374124
REF: SO-00488
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050374124 (REF SO-00488)
Local order updated = 2025-10-31 09:38:49.000Z,
source updated = 2025-10-31T09:46:56+0000,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[notes] => delivery round back
[externalOrderId] => 499326000050374124
[refId] => SO-00488
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[title] => Alex Cullum
[deliveryStart] => 2025-10-30
[deliveryEnd] => 2025-10-30
[totalValue] => 2
[totalWeight] => 0
[syncInCreated] => 2025-10-30T14:11:59+0000
[syncInUpdated] => 2025-10-31T09:46:56+0000
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000050374134
[externalProductId] => 499326000047467258
[sku] =>
[title] => test-item-2
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 2
[price] => 2
)
)
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
[paymentMethod] => Cash - Don't Leave
)
Does this order already exist?
Yes
Existing custom fields: Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
[1] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
[2] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
[3] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
Is array
Merging custom fields...
Order data prepared for sync: Array
(
[contactPhone] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[notes] => delivery round back
[externalOrderId] => 499326000050374124
[refId] => SO-00488
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[title] => Alex Cullum
[deliveryStart] => 2025-10-30
[deliveryEnd] => 2025-10-30
[totalValue] => 2
[totalWeight] => 0
[syncInCreated] => 2025-10-30T14:11:59+0000
[syncInUpdated] => 2025-10-31T09:46:56+0000
[syncInStatus] => closed
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
[paymentMethod] => Cash - Don't Leave
[syncOutUpdated] => 2025-10-31T09:51:47+00:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Alex Cullum
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => [{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"},{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"},{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"},{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"},{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"}]
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000021060129
Getting products
Updating product 499326000047467258
Updating order product 499326000050374134
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00488
Processing order: x3exs74cmrdtsjw, ref SO-00488
Syncing SO-00488
Using default start and end times
Delivery start = 2025-10-30 00:00:00.000Z = 2025-10-30T06:00:00+00:00
Delivery end = 2025-10-30 00:00:00.000Z = 2025-10-30T20:00:00+00:00
Delivery is in the past. Skipping creation/update in MaxOptra.
Found order in MaxOptra? yes
MO updated: 30/10/2025 14:30 - Local updated: 2025-10-31 09:51:47.000Z - Source updated: 2025-10-31 09:46:56.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-10-31 09:51:47.000Z
Pending updates to MaxOptra? no
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00488
Done all.
Finished at 2025-10-31 09:51:48
Webhook - sourceUpdated script called at 2025-10-31 09:51:56
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050374124","salesorder_no":"SO-00488","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000050374124","salesorder_no":"SO-00488","status":"invoiced"}}
EXT ID: 499326000050374124
REF: SO-00488
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050374124 (REF SO-00488)
Local order updated = 2025-10-31 09:46:56.000Z,
source updated = 2025-10-31T09:46:56+0000,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00488
Processing order: x3exs74cmrdtsjw, ref SO-00488
Syncing SO-00488
Using default start and end times
Delivery start = 2025-10-30 00:00:00.000Z = 2025-10-30T06:00:00+00:00
Delivery end = 2025-10-30 00:00:00.000Z = 2025-10-30T20:00:00+00:00
Delivery is in the past. Skipping creation/update in MaxOptra.
Found order in MaxOptra? yes
MO updated: 30/10/2025 14:30 - Local updated: 2025-10-30 14:30:00.000Z - Source updated: 2025-10-31 09:46:56.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00488
Done all.
Finished at 2025-10-31 09:51:58
Webhook - sourceUpdated script called at 2025-10-31 10:06:37
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050298006","salesorder_no":"SO-00483","status":"partially_invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000050298006","salesorder_no":"SO-00483","status":"partially_invoiced"}}
EXT ID: 499326000050298006
REF: SO-00483
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050298006 (REF SO-00483)
Local order updated = 2025-10-31 09:31:34.000Z,
source updated = 2025-10-31T10:06:07+0000,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] => +44-07584437952
[contactEmail] => info@fountaininnbridgwater.co.uk
[contactName] => Becky .
[notes] =>
[externalOrderId] => 499326000050298006
[refId] => SO-00483
[externalCustomerId] => 499326000000424593
[externalLocationId] => 499326000000424595
[title] => The Fountain (Bridgwater)
[deliveryStart] => 2025-10-29
[deliveryEnd] => 2025-10-29
[totalValue] => 373.2
[totalWeight] => 153
[syncInCreated] => 2025-10-29T09:04:57+0000
[syncInUpdated] => 2025-10-31T10:06:07+0000
[syncInStatus] => confirmed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000050298012
[externalProductId] => 499326000043516456
[sku] =>
[title] => Harding's Golden Ale 4.2%
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 78
[price] => 78
)
[1] => Array
(
[externalOrderProductId] => 499326000050298014
[externalProductId] => 499326000021043799
[sku] => BB-HSAR-9G
[title] => Hardings Amber Ale 3.9% (9g)
[notes] =>
[quantity] => 1
[weightKg] => 51
[weightTotal] => 51
[priceTotal] => 75
[price] => 75
)
[2] => Array
(
[externalOrderProductId] => 499326000050298016
[externalProductId] => 499326000021043786
[sku] => BB-HSBT-9G
[title] => Hardings Best Bitter 4.2% (9g)
[notes] =>
[quantity] => 1
[weightKg] => 51
[weightTotal] => 51
[priceTotal] => 78
[price] => 78
)
[3] => Array
(
[externalOrderProductId] => 499326000050298018
[externalProductId] => 499326000044145711
[sku] => BB-HSDD-9G
[title] => Hardings Double Hopped 4.0% (9g)
[notes] =>
[quantity] => 1
[weightKg] => 51
[weightTotal] => 51
[priceTotal] => 80
[price] => 80
)
)
[deliveryName] => The Fountain (Bridgwater)
[deliveryStreet] => Bridgwater
[deliveryCity] => Bridgwater
[deliveryCounty] =>
[deliveryPostcode] => TA6 3HL
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] => +44-07584437952
[contactEmail] => info@fountaininnbridgwater.co.uk
[contactName] => Becky .
[notes] =>
[externalOrderId] => 499326000050298006
[refId] => SO-00483
[externalCustomerId] => 499326000000424593
[externalLocationId] => 499326000000424595
[title] => The Fountain (Bridgwater)
[deliveryStart] => 2025-10-29
[deliveryEnd] => 2025-10-29
[totalValue] => 373.2
[totalWeight] => 153
[syncInCreated] => 2025-10-29T09:04:57+0000
[syncInUpdated] => 2025-10-31T10:06:07+0000
[syncInStatus] => confirmed
[deliveryName] => The Fountain (Bridgwater)
[deliveryStreet] => Bridgwater
[deliveryCity] => Bridgwater
[deliveryCounty] =>
[deliveryPostcode] => TA6 3HL
[syncOutUpdated] => 2025-10-31T10:06:38+00:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Becky .
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000000424593
Getting products
Updating product 499326000043516456
Updating order product 499326000050298012
Updated
Updating product 499326000021043799
Updating order product 499326000050298014
Updated
Updating product 499326000021043786
Updating order product 499326000050298016
Updated
Updating product 499326000044145711
Updating order product 499326000050298018
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00483
Processing order: 3vdim2310f3rbbs, ref SO-00483
Syncing SO-00483
Using default start and end times
Delivery start = 2025-10-29 00:00:00.000Z = 2025-10-29T06:00:00+00:00
Delivery end = 2025-10-29 00:00:00.000Z = 2025-10-29T20:00:00+00:00
Delivery is in the past. Skipping creation/update in MaxOptra.
Found order in MaxOptra? yes
MO updated: 29/10/2025 09:05 - Local updated: 2025-10-31 10:06:38.000Z - Source updated: 2025-10-31 10:06:07.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-10-31 10:06:38.000Z
Pending updates to MaxOptra? no
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00483
Done all.
Finished at 2025-10-31 10:06:39
Webhook - sourceUpdated script called at 2025-10-31 12:02:42
Webhook - sourceUpdated script called at 2025-10-31 12:02:42
Source: Zoho
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050302098","salesorder_no":"SO-00484","status":"invoiced"}}
Data: {"salesorder":{"salesorder_id":"499326000050302098","salesorder_no":"SO-00484","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000050302098","salesorder_no":"SO-00484","status":"invoiced"}}
EXT ID: 499326000050302098
REF: SO-00484
JSON: {"salesorder":{"salesorder_id":"499326000050302098","salesorder_no":"SO-00484","status":"invoiced"}}
EXT ID: 499326000050302098
REF: SO-00484
200 response code sent
Syncing from Zoho to local database
200 response code sent
Getting source order from Zoho...
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
Getting local orders...
------------------------
Processing order 499326000050302098 (REF SO-00484)
Local order updated = 2025-10-29 13:17:14.000Z,
source updated = 2025-10-31T12:02:28+0000,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
------------------------
Source order details: Array
(
[contactPhone] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[notes] => delivery round back
[externalOrderId] => 499326000050302098
[refId] => SO-00484
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[title] => Alex Cullum
[deliveryStart] => 2025-10-30
[deliveryEnd] => 2025-10-30
[totalValue] => 7.2
[totalWeight] => 0
[syncInCreated] => 2025-10-29T13:12:04+0000
[syncInUpdated] => 2025-10-31T12:02:28+0000
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000050302104
[externalProductId] => 499326000038717054
[sku] =>
[title] => 440ml x 24 Packaging Own Cans
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 6
[price] => 6
)
)
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
[paymentMethod] => Cash - Don't Leave
)
Does this order already exist?
Processing order 499326000050302098 (REF SO-00484)
Yes
Local order updated = 2025-10-29 13:17:14.000Z,
source updated = 2025-10-31T12:02:28+0000,
has changed = yes
Existing custom fields: Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
[1] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
[2] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
Marking order for sync with MaxOptra
Is array
Merging custom fields...
Order data prepared for sync: Array
(
[contactPhone] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[notes] => delivery round back
[externalOrderId] => 499326000050302098
[refId] => SO-00484
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[title] => Alex Cullum
[deliveryStart] => 2025-10-30
[deliveryEnd] => 2025-10-30
[totalValue] => 7.2
[totalWeight] => 0
[syncInCreated] => 2025-10-29T13:12:04+0000
[syncInUpdated] => 2025-10-31T12:02:28+0000
[syncInStatus] => closed
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
[paymentMethod] => Cash - Don't Leave
[syncOutUpdated] => 2025-10-31T12:02:42+00:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Alex Cullum
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => [{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"},{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"},{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"},{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"}]
)
Updating order
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[notes] => delivery round back
[externalOrderId] => 499326000050302098
[refId] => SO-00484
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[title] => Alex Cullum
[deliveryStart] => 2025-10-30
[deliveryEnd] => 2025-10-30
[totalValue] => 7.2
[totalWeight] => 0
[syncInCreated] => 2025-10-29T13:12:04+0000
[syncInUpdated] => 2025-10-31T12:02:28+0000
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000050302104
[externalProductId] => 499326000038717054
[sku] =>
[title] => 440ml x 24 Packaging Own Cans
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 6
[price] => 6
)
)
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
[paymentMethod] => Cash - Don't Leave
)
Does this order already exist?
Yes
Existing custom fields: Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
[1] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
[2] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
Is array
Merging custom fields...
Getting customer details
Order data prepared for sync: Array
(
[contactPhone] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[notes] => delivery round back
[externalOrderId] => 499326000050302098
[refId] => SO-00484
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[title] => Alex Cullum
[deliveryStart] => 2025-10-30
[deliveryEnd] => 2025-10-30
[totalValue] => 7.2
[totalWeight] => 0
[syncInCreated] => 2025-10-29T13:12:04+0000
[syncInUpdated] => 2025-10-31T12:02:28+0000
[syncInStatus] => closed
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
[paymentMethod] => Cash - Don't Leave
[syncOutUpdated] => 2025-10-31T12:02:42+00:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Alex Cullum
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => [{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"},{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"},{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"},{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"}]
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000021060129
Getting products
Updating product 499326000038717054
Updating order product 499326000050302104
Customer exists and has not changed (skipping): 499326000021060129
Getting products
Updating product 499326000038717054
Updated
Removing deleted order items
Done
Updating order product 499326000050302104
Syncing to MaxOptra
Sync to MaxOptra: SO-00484
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00484
Processing order: juzuu0xfelu0ye4, ref SO-00484
Syncing SO-00484
Using default start and end times
Delivery start = 2025-10-30 00:00:00.000Z = 2025-10-30T06:00:00+00:00
Delivery end = 2025-10-30 00:00:00.000Z = 2025-10-30T20:00:00+00:00
Delivery is in the past. Skipping creation/update in MaxOptra.
Found order in MaxOptra? yes
MO updated: 29/10/2025 13:17 - Local updated: 2025-10-31 12:02:42.000Z - Source updated: 2025-10-31 12:02:28.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Processing order: juzuu0xfelu0ye4, ref SO-00484
Syncing SO-00484
Using default start and end times
Delivery start = 2025-10-30 00:00:00.000Z = 2025-10-30T06:00:00+00:00
Delivery end = 2025-10-30 00:00:00.000Z = 2025-10-30T20:00:00+00:00
Delivery is in the past. Skipping creation/update in MaxOptra.
Found order in MaxOptra? yes
MO updated: 29/10/2025 13:17 - Local updated: 2025-10-31 12:02:42.000Z - Source updated: 2025-10-31 12:02:28.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-10-31 12:02:42.000Z
Pending updates to MaxOptra? no
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00484
Done all.
Finished at 2025-10-31 12:02:43
Is allocated? no
Local updated: 2025-10-31 12:02:42.000Z
Pending updates to MaxOptra? no
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00484
Done all.
Finished at 2025-10-31 12:02:43
Webhook - sourceUpdated script called at 2025-11-01 18:03:04
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050298006","salesorder_no":"SO-00483","status":"partially_invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000050298006","salesorder_no":"SO-00483","status":"partially_invoiced"}}
EXT ID: 499326000050298006
REF: SO-00483
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050298006 (REF SO-00483)
Local order updated = 2025-10-31 10:06:07.000Z,
source updated = 2025-11-01T18:02:49+0000,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] => +44-07584437952
[contactEmail] => info@fountaininnbridgwater.co.uk
[contactName] => Becky .
[notes] =>
[externalOrderId] => 499326000050298006
[refId] => SO-00483
[externalCustomerId] => 499326000000424593
[externalLocationId] => 499326000000424595
[title] => The Fountain (Bridgwater)
[deliveryStart] => 2025-10-29
[deliveryEnd] => 2025-10-29
[totalValue] => 373.2
[totalWeight] => 153
[syncInCreated] => 2025-10-29T09:04:57+0000
[syncInUpdated] => 2025-11-01T18:02:49+0000
[syncInStatus] => confirmed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000050298012
[externalProductId] => 499326000043516456
[sku] =>
[title] => Harding's Golden Ale 4.2%
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 78
[price] => 78
)
[1] => Array
(
[externalOrderProductId] => 499326000050298014
[externalProductId] => 499326000021043799
[sku] => BB-HSAR-9G
[title] => Hardings Amber Ale 3.9% (9g)
[notes] =>
[quantity] => 1
[weightKg] => 51
[weightTotal] => 51
[priceTotal] => 75
[price] => 75
)
[2] => Array
(
[externalOrderProductId] => 499326000050298016
[externalProductId] => 499326000021043786
[sku] => BB-HSBT-9G
[title] => Hardings Best Bitter 4.2% (9g)
[notes] =>
[quantity] => 1
[weightKg] => 51
[weightTotal] => 51
[priceTotal] => 78
[price] => 78
)
[3] => Array
(
[externalOrderProductId] => 499326000050298018
[externalProductId] => 499326000044145711
[sku] => BB-HSDD-9G
[title] => Hardings Double Hopped 4.0% (9g)
[notes] =>
[quantity] => 1
[weightKg] => 51
[weightTotal] => 51
[priceTotal] => 80
[price] => 80
)
)
[deliveryName] => The Fountain (Bridgwater)
[deliveryStreet] => Bridgwater
[deliveryCity] => Bridgwater
[deliveryCounty] =>
[deliveryPostcode] => TA6 3HL
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] => +44-07584437952
[contactEmail] => info@fountaininnbridgwater.co.uk
[contactName] => Becky .
[notes] =>
[externalOrderId] => 499326000050298006
[refId] => SO-00483
[externalCustomerId] => 499326000000424593
[externalLocationId] => 499326000000424595
[title] => The Fountain (Bridgwater)
[deliveryStart] => 2025-10-29
[deliveryEnd] => 2025-10-29
[totalValue] => 373.2
[totalWeight] => 153
[syncInCreated] => 2025-10-29T09:04:57+0000
[syncInUpdated] => 2025-11-01T18:02:49+0000
[syncInStatus] => confirmed
[deliveryName] => The Fountain (Bridgwater)
[deliveryStreet] => Bridgwater
[deliveryCity] => Bridgwater
[deliveryCounty] =>
[deliveryPostcode] => TA6 3HL
[syncOutUpdated] => 2025-11-01T18:03:06+00:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Becky .
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000000424593
Getting products
Updating product 499326000043516456
Updating order product 499326000050298012
Updated
Updating product 499326000021043799
Updating order product 499326000050298014
Updated
Updating product 499326000021043786
Updating order product 499326000050298016
Updated
Updating product 499326000044145711
Updating order product 499326000050298018
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00483
Processing order: 3vdim2310f3rbbs, ref SO-00483
Syncing SO-00483
Using default start and end times
Delivery start = 2025-10-29 00:00:00.000Z = 2025-10-29T06:00:00+00:00
Delivery end = 2025-10-29 00:00:00.000Z = 2025-10-29T20:00:00+00:00
Delivery is in the past. Skipping creation/update in MaxOptra.
Found order in MaxOptra? yes
MO updated: 29/10/2025 09:05 - Local updated: 2025-11-01 18:03:06.000Z - Source updated: 2025-11-01 18:02:49.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-11-01 18:03:06.000Z
Pending updates to MaxOptra? no
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00483
Done all.
Finished at 2025-11-01 18:03:07
Webhook - sourceUpdated script called at 2025-11-03 11:20:04
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050348139","salesorder_no":"SO-00486","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000050348139","salesorder_no":"SO-00486","status":"open"}}
EXT ID: 499326000050348139
REF: SO-00486
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050348139 (REF SO-00486)
Local order updated = 2025-10-30 13:03:15.000Z,
source updated = 2025-11-03T11:19:39+0000,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] => 07572961803
[contactEmail] =>
[contactName] => Dean .
[notes] =>
[externalOrderId] => 499326000050348139
[refId] => SO-00486
[externalCustomerId] => 499326000045513029
[externalLocationId] => 499326000045513031
[title] => Pebbles Tavern
[deliveryStart] => 2025-11-03
[deliveryEnd] => 2025-11-03
[totalValue] => 356.28
[totalWeight] => 124
[syncInCreated] => 2025-10-30T13:03:15+0000
[syncInUpdated] => 2025-11-03T11:19:39+0000
[syncInStatus] => confirmed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000050348145
[externalProductId] => 499326000023037304
[sku] => GK-EAGA-50LK
[title] => Estrella Galicia (50L)
[notes] =>
[quantity] => 2
[weightKg] => 62
[weightTotal] => 124
[priceTotal] => 296.9
[price] => 148.45
)
)
[deliveryName] => Pebbles Tavern
[deliveryStreet] => 24 Market St
[deliveryCity] => Watchet
[deliveryCounty] =>
[deliveryPostcode] => TA23 0AN
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] => 07572961803
[contactEmail] =>
[contactName] => Dean .
[notes] =>
[externalOrderId] => 499326000050348139
[refId] => SO-00486
[externalCustomerId] => 499326000045513029
[externalLocationId] => 499326000045513031
[title] => Pebbles Tavern
[deliveryStart] => 2025-11-03
[deliveryEnd] => 2025-11-03
[totalValue] => 356.28
[totalWeight] => 124
[syncInCreated] => 2025-10-30T13:03:15+0000
[syncInUpdated] => 2025-11-03T11:19:39+0000
[syncInStatus] => confirmed
[deliveryName] => Pebbles Tavern
[deliveryStreet] => 24 Market St
[deliveryCity] => Watchet
[deliveryCounty] =>
[deliveryPostcode] => TA23 0AN
[syncOutUpdated] => 2025-11-03T11:20:04+00:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Dean .
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
2025-10-30 13:01:49.000Z != 2025-11-03T10:53:13+0000
Customer changed - updating 499326000045513029
Updating order contact details
Getting products
Updating product 499326000023037304
Updating order product 499326000050348145
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00486
Processing order: 95k6apjktmrj6u3, ref SO-00486
Syncing SO-00486
Using default start and end times
Time window: 2025-11-03T06:00:00+00:00 - 2025-11-03T20:00:00+00:00
Found order in MaxOptra? yes
MO updated: 30/10/2025 13:03 - Local updated: 2025-11-03 11:20:04.000Z - Source updated: 2025-11-03 11:19:39.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status:
Status changed - mark for sync back to source
Is allocated? no
Local updated: 2025-11-03 11:20:04.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000045513031
Array
(
[referenceNumber] => 499326000045513031
[name] => Pebbles Tavern, 24 Market St, Watchet
[address] => TA23 0AN
)
499326000045513031
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00486
Done all.
Finished at 2025-11-03 11:20:06
Webhook - sourceUpdated script called at 2025-11-03 11:20:35
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050348139","salesorder_no":"SO-00486","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000050348139","salesorder_no":"SO-00486","status":"invoiced"}}
EXT ID: 499326000050348139
REF: SO-00486
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050348139 (REF SO-00486)
Updates pending to source for order: 499326000050348139
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-11-03 11:19:39.000Z,
source updated = 2025-11-03T11:20:29+0000,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00486
Processing order: 95k6apjktmrj6u3, ref SO-00486
Syncing SO-00486
Using default start and end times
Time window: 2025-11-03T06:00:00+00:00 - 2025-11-03T20:00:00+00:00
Found order in MaxOptra? yes
MO updated: 03/11/2025 11:20 - Local updated: 2025-10-30 13:03:00.000Z - Source updated: 2025-11-03 11:19:39.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-10-30 13:03:00.000Z
Pending updates to MaxOptra? no
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00486
Done all.
Finished at 2025-11-03 11:20:37
Webhook - sourceUpdated script called at 2025-11-03 11:21:05
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050348139","salesorder_no":"SO-00486","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000050348139","salesorder_no":"SO-00486","status":"invoiced"}}
EXT ID: 499326000050348139
REF: SO-00486
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050348139 (REF SO-00486)
Local order updated = 2025-11-03 11:19:39.000Z,
source updated = 2025-11-03T11:20:51+0000,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] => 07572961803
[contactEmail] =>
[contactName] => Dean .
[notes] =>
[externalOrderId] => 499326000050348139
[refId] => SO-00486
[externalCustomerId] => 499326000045513029
[externalLocationId] => 499326000045513031
[title] => Pebbles Tavern
[deliveryStart] => 2025-11-03
[deliveryEnd] => 2025-11-03
[totalValue] => 356.28
[totalWeight] => 124
[syncInCreated] => 2025-10-30T13:03:15+0000
[syncInUpdated] => 2025-11-03T11:20:51+0000
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000050348145
[externalProductId] => 499326000023037304
[sku] => GK-EAGA-50LK
[title] => Estrella Galicia (50L)
[notes] =>
[quantity] => 2
[weightKg] => 62
[weightTotal] => 124
[priceTotal] => 296.9
[price] => 148.45
)
)
[deliveryName] => Pebbles Tavern
[deliveryStreet] => 24 Market St
[deliveryCity] => Watchet
[deliveryCounty] =>
[deliveryPostcode] => TA23 0AN
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] => 07572961803
[contactEmail] =>
[contactName] => Dean .
[notes] =>
[externalOrderId] => 499326000050348139
[refId] => SO-00486
[externalCustomerId] => 499326000045513029
[externalLocationId] => 499326000045513031
[title] => Pebbles Tavern
[deliveryStart] => 2025-11-03
[deliveryEnd] => 2025-11-03
[totalValue] => 356.28
[totalWeight] => 124
[syncInCreated] => 2025-10-30T13:03:15+0000
[syncInUpdated] => 2025-11-03T11:20:51+0000
[syncInStatus] => closed
[deliveryName] => Pebbles Tavern
[deliveryStreet] => 24 Market St
[deliveryCity] => Watchet
[deliveryCounty] =>
[deliveryPostcode] => TA23 0AN
[syncOutUpdated] => 2025-11-03T11:21:05+00:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Dean .
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000045513029
Getting products
Updating product 499326000023037304
Updating order product 499326000050348145
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00486
Processing order: 95k6apjktmrj6u3, ref SO-00486
Syncing SO-00486
Using default start and end times
Time window: 2025-11-03T06:00:00+00:00 - 2025-11-03T20:00:00+00:00
Found order in MaxOptra? yes
MO updated: 03/11/2025 11:20 - Local updated: 2025-11-03 11:21:05.000Z - Source updated: 2025-11-03 11:20:51.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-11-03 11:21:05.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000045513031
Array
(
[referenceNumber] => 499326000045513031
[name] => Pebbles Tavern, 24 Market St, Watchet
[address] => TA23 0AN
)
499326000045513031
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00486
Done all.
Finished at 2025-11-03 11:21:07
Webhook - sourceUpdated script called at 2025-11-03 11:25:52
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050348139","salesorder_no":"SO-00486","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000050348139","salesorder_no":"SO-00486","status":"invoiced"}}
EXT ID: 499326000050348139
REF: SO-00486
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050348139 (REF SO-00486)
Local order updated = 2025-11-03 11:20:51.000Z,
source updated = 2025-11-03T11:20:51+0000,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00486
Processing order: 95k6apjktmrj6u3, ref SO-00486
Syncing SO-00486
Using default start and end times
Time window: 2025-11-03T06:00:00+00:00 - 2025-11-03T20:00:00+00:00
Found order in MaxOptra? yes
MO updated: 03/11/2025 11:21 - Local updated: 2025-11-03 11:20:00.000Z - Source updated: 2025-11-03 11:20:51.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00486
Done all.
Finished at 2025-11-03 11:25:53
Webhook - sourceUpdated script called at 2025-11-03 11:26:01
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050348139","salesorder_no":"SO-00486","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000050348139","salesorder_no":"SO-00486","status":"invoiced"}}
EXT ID: 499326000050348139
REF: SO-00486
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050348139 (REF SO-00486)
Local order updated = 2025-11-03 11:20:51.000Z,
source updated = 2025-11-03T11:20:51+0000,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00486
Processing order: 95k6apjktmrj6u3, ref SO-00486
Syncing SO-00486
Using default start and end times
Time window: 2025-11-03T06:00:00+00:00 - 2025-11-03T20:00:00+00:00
Found order in MaxOptra? yes
MO updated: 03/11/2025 11:21 - Local updated: 2025-11-03 11:20:00.000Z - Source updated: 2025-11-03 11:20:51.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00486
Done all.
Finished at 2025-11-03 11:26:02
Webhook - sourceDeleted script called at 2025-11-03 13:50:04
Source: Zoho
Data: {"salesorder":{"salesorder_no":"SO-00482"}}
JSON: {"salesorder":{"salesorder_no":"SO-00482"}}
REF: SO-00482
200 response code sent
Deleting order: SO-00482
Deleting from MaxOptra
Finished at 2025-11-03 13:50:05
Webhook - sourceUpdated script called at 2025-11-03 13:50:36
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050599368","salesorder_no":"SO-00489","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000050599368","salesorder_no":"SO-00489","status":"draft"}}
EXT ID: 499326000050599368
REF: SO-00489
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050599368 (REF SO-00489)
Source order details: Array
(
[contactPhone] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[notes] => delivery round back
[externalOrderId] => 499326000050599368
[refId] => SO-00489
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[title] => Alex Cullum
[deliveryStart] => 2025-11-03
[deliveryEnd] => 2025-11-03
[totalValue] => 2
[totalWeight] => 0
[syncInCreated] => 2025-11-03T13:50:21+0000
[syncInUpdated] => 2025-11-03T13:50:28+0000
[syncInStatus] => confirmed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000050599378
[externalProductId] => 499326000047467258
[sku] =>
[title] => test-item-2
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 2
[price] => 2
)
)
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
[paymentMethod] => Cash - Don't Leave
)
Does this order already exist?
No
Order data prepared for sync: Array
(
[contactPhone] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[notes] => delivery round back
[externalOrderId] => 499326000050599368
[refId] => SO-00489
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[title] => Alex Cullum
[deliveryStart] => 2025-11-03
[deliveryEnd] => 2025-11-03
[totalValue] => 2
[totalWeight] => 0
[syncInCreated] => 2025-11-03T13:50:21+0000
[syncInUpdated] => 2025-11-03T13:50:28+0000
[syncInStatus] => confirmed
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
[paymentMethod] => Cash - Don't Leave
[syncOutUpdated] => 2025-11-03T13:50:36+00:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Alex Cullum
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => [{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"}]
)
New order
Marking order for sync with MaxOptra
Getting customer details
Customer exists and has not changed (skipping): 499326000021060129
Updating order contact details
Getting products
Updating product 499326000047467258
Creating new order product 499326000050599378
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00489
Processing order: 4x2hb7ruoqfv2fr, ref SO-00489
Syncing SO-00489
Using default start and end times
Time window: 2025-11-03T06:00:00+00:00 - 2025-11-03T20:00:00+00:00
Found order in MaxOptra? no
Creating SO-00489
Done
Finished syncing to MaxOptra for order SO-00489
Done all.
Finished at 2025-11-03 13:50:38
Webhook - sourceUpdated script called at 2025-11-03 13:51:07
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050599368","salesorder_no":"SO-00489","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000050599368","salesorder_no":"SO-00489","status":"invoiced"}}
EXT ID: 499326000050599368
REF: SO-00489
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050599368 (REF SO-00489)
Local order updated = 2025-11-03 13:50:28.000Z,
source updated = 2025-11-03T13:50:47+0000,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00489
Processing order: 4x2hb7ruoqfv2fr, ref SO-00489
Syncing SO-00489
Using default start and end times
Time window: 2025-11-03T06:00:00+00:00 - 2025-11-03T20:00:00+00:00
Found order in MaxOptra? yes
MO updated: 03/11/2025 13:50 - Local updated: 2025-11-03 13:50:38.000Z - Source updated: 2025-11-03 13:50:28.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status:
Status changed - mark for sync back to source
Is allocated? no
Local updated: 2025-11-03 13:50:38.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000021060132
Array
(
[referenceNumber] => 499326000021060132
[name] => Alex Cullum, The Old Rectory, Church Lane, Bristol
[address] => BS26 2QP
)
499326000021060132
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00489
Done all.
Finished at 2025-11-03 13:51:09
Webhook - sourceUpdated script called at 2025-11-03 13:54:51
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050289525","salesorder_no":"SO-00482","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000050289525","salesorder_no":"SO-00482","status":"open"}}
EXT ID: 499326000050289525
REF: SO-00482
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Error: API Error (404): Sales Order does not exist.
Error: Failed to sync source order
Finished at 2025-11-03 13:54:52
Webhook - sourceUpdated script called at 2025-11-03 13:55:28
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050599368","salesorder_no":"SO-00489","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000050599368","salesorder_no":"SO-00489","status":"open"}}
EXT ID: 499326000050599368
REF: SO-00489
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050599368 (REF SO-00489)
Updates pending to source for order: 499326000050599368
Updates found - pushing to source
Done updating. Proceeding to sync from source.
Local order updated = 2025-11-03 13:50:28.000Z,
source updated = 2025-11-03T13:50:47+0000,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00489
Processing order: 4x2hb7ruoqfv2fr, ref SO-00489
Syncing SO-00489
Using default start and end times
Time window: 2025-11-03T06:00:00+00:00 - 2025-11-03T20:00:00+00:00
Found order in MaxOptra? yes
MO updated: 03/11/2025 13:51 - Local updated: 2025-11-03 13:50:00.000Z - Source updated: 2025-11-03 13:50:28.000Z
Changed? no
Done
Finished syncing to MaxOptra for order SO-00489
Done all.
Finished at 2025-11-03 13:55:31
Webhook - sourceUpdated script called at 2025-11-03 13:55:48
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050599368","salesorder_no":"SO-00489","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000050599368","salesorder_no":"SO-00489","status":"invoiced"}}
EXT ID: 499326000050599368
REF: SO-00489
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050599368 (REF SO-00489)
Local order updated = 2025-11-03 13:50:28.000Z,
source updated = 2025-11-03T13:55:30+0000,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[notes] => delivery round back
[externalOrderId] => 499326000050599368
[refId] => SO-00489
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[title] => Alex Cullum
[deliveryStart] => 2025-11-03
[deliveryEnd] => 2025-11-03
[totalValue] => 2
[totalWeight] => 0
[syncInCreated] => 2025-11-03T13:50:21+0000
[syncInUpdated] => 2025-11-03T13:55:30+0000
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000050599378
[externalProductId] => 499326000047467258
[sku] =>
[title] => test-item-2
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 2
[price] => 2
)
)
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
[paymentMethod] => Cash - Don't Leave
)
Does this order already exist?
Yes
Existing custom fields: Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
Is array
Merging custom fields...
Order data prepared for sync: Array
(
[contactPhone] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[notes] => delivery round back
[externalOrderId] => 499326000050599368
[refId] => SO-00489
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[title] => Alex Cullum
[deliveryStart] => 2025-11-03
[deliveryEnd] => 2025-11-03
[totalValue] => 2
[totalWeight] => 0
[syncInCreated] => 2025-11-03T13:50:21+0000
[syncInUpdated] => 2025-11-03T13:55:30+0000
[syncInStatus] => closed
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
[paymentMethod] => Cash - Don't Leave
[syncOutUpdated] => 2025-11-03T13:55:49+00:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Alex Cullum
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => [{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"},{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"}]
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000021060129
Getting products
Updating product 499326000047467258
Updating order product 499326000050599378
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00489
Processing order: 4x2hb7ruoqfv2fr, ref SO-00489
Syncing SO-00489
Using default start and end times
Time window: 2025-11-03T06:00:00+00:00 - 2025-11-03T20:00:00+00:00
Found order in MaxOptra? yes
MO updated: 03/11/2025 13:51 - Local updated: 2025-11-03 13:55:49.000Z - Source updated: 2025-11-03 13:55:30.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-11-03 13:55:49.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000021060132
Array
(
[referenceNumber] => 499326000021060132
[name] => Alex Cullum, The Old Rectory, Church Lane, Bristol
[address] => BS26 2QP
)
499326000021060132
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00489
Done all.
Finished at 2025-11-03 13:55:50
Webhook - sourceUpdated script called at 2025-11-03 13:55:59
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050599368","salesorder_no":"SO-00489","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000050599368","salesorder_no":"SO-00489","status":"invoiced"}}
EXT ID: 499326000050599368
REF: SO-00489
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050599368 (REF SO-00489)
Local order updated = 2025-11-03 13:55:30.000Z,
source updated = 2025-11-03T13:55:30+0000,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00489
Processing order: 4x2hb7ruoqfv2fr, ref SO-00489
Syncing SO-00489
Using default start and end times
Time window: 2025-11-03T06:00:00+00:00 - 2025-11-03T20:00:00+00:00
Found order in MaxOptra? yes
MO updated: 03/11/2025 13:55 - Local updated: 2025-11-03 13:51:00.000Z - Source updated: 2025-11-03 13:55:30.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-11-03 13:51:00.000Z
Pending updates to MaxOptra? no
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00489
Done all.
Finished at 2025-11-03 13:56:01
Webhook - sourceUpdated script called at 2025-11-03 14:00:51
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050298006","salesorder_no":"SO-00483","status":"partially_invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000050298006","salesorder_no":"SO-00483","status":"partially_invoiced"}}
EXT ID: 499326000050298006
REF: SO-00483
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050298006 (REF SO-00483)
Local order updated = 2025-11-01 18:02:49.000Z,
source updated = 2025-11-03T13:49:51+0000,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] => +44-07584437952
[contactEmail] => info@fountaininnbridgwater.co.uk
[contactName] => Becky .
[notes] =>
[externalOrderId] => 499326000050298006
[refId] => SO-00483
[externalCustomerId] => 499326000000424593
[externalLocationId] => 499326000000424595
[title] => The Fountain (Bridgwater)
[deliveryStart] => 2025-10-29
[deliveryEnd] => 2025-10-29
[totalValue] => 373.2
[totalWeight] => 205
[syncInCreated] => 2025-10-29T09:04:57+0000
[syncInUpdated] => 2025-11-03T13:49:51+0000
[syncInStatus] => closed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000050298012
[externalProductId] => 499326000043516456
[sku] => BB-HSGN-9G
[title] => Harding's Golden Ale 4.2%
[notes] =>
[quantity] => 1
[weightKg] => 52
[weightTotal] => 52
[priceTotal] => 78
[price] => 78
)
[1] => Array
(
[externalOrderProductId] => 499326000050298014
[externalProductId] => 499326000021043799
[sku] => BB-HSAR-9G
[title] => Hardings Amber Ale 3.9% (9g)
[notes] =>
[quantity] => 1
[weightKg] => 51
[weightTotal] => 51
[priceTotal] => 75
[price] => 75
)
[2] => Array
(
[externalOrderProductId] => 499326000050298016
[externalProductId] => 499326000021043786
[sku] => BB-HSBT-9G
[title] => Hardings Best Bitter 4.2% (9g)
[notes] =>
[quantity] => 1
[weightKg] => 51
[weightTotal] => 51
[priceTotal] => 78
[price] => 78
)
[3] => Array
(
[externalOrderProductId] => 499326000050298018
[externalProductId] => 499326000044145711
[sku] => BB-HSDD-9G
[title] => Hardings Double Hopped 4.0% (9g)
[notes] =>
[quantity] => 1
[weightKg] => 51
[weightTotal] => 51
[priceTotal] => 80
[price] => 80
)
)
[deliveryName] => The Fountain (Bridgwater)
[deliveryStreet] => Bridgwater
[deliveryCity] => Bridgwater
[deliveryCounty] =>
[deliveryPostcode] => TA6 3HL
)
Does this order already exist?
Yes
Order data prepared for sync: Array
(
[contactPhone] => +44-07584437952
[contactEmail] => info@fountaininnbridgwater.co.uk
[contactName] => Becky .
[notes] =>
[externalOrderId] => 499326000050298006
[refId] => SO-00483
[externalCustomerId] => 499326000000424593
[externalLocationId] => 499326000000424595
[title] => The Fountain (Bridgwater)
[deliveryStart] => 2025-10-29
[deliveryEnd] => 2025-10-29
[totalValue] => 373.2
[totalWeight] => 205
[syncInCreated] => 2025-10-29T09:04:57+0000
[syncInUpdated] => 2025-11-03T13:49:51+0000
[syncInStatus] => closed
[deliveryName] => The Fountain (Bridgwater)
[deliveryStreet] => Bridgwater
[deliveryCity] => Bridgwater
[deliveryCounty] =>
[deliveryPostcode] => TA6 3HL
[syncOutUpdated] => 2025-11-03T14:01:01+00:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Becky .
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => []
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000000424593
Getting products
Updating product 499326000043516456
Updating order product 499326000050298012
Updated
Updating product 499326000021043799
Updating order product 499326000050298014
Updated
Updating product 499326000021043786
Updating order product 499326000050298016
Updated
Updating product 499326000044145711
Updating order product 499326000050298018
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00483
Processing order: 3vdim2310f3rbbs, ref SO-00483
Syncing SO-00483
Using default start and end times
Delivery start = 2025-10-29 00:00:00.000Z = 2025-10-29T06:00:00+00:00
Delivery end = 2025-10-29 00:00:00.000Z = 2025-10-29T20:00:00+00:00
Delivery is in the past. Skipping creation/update in MaxOptra.
Found order in MaxOptra? yes
MO updated: 29/10/2025 09:05 - Local updated: 2025-11-03 14:01:01.000Z - Source updated: 2025-11-03 13:49:51.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-11-03 14:01:01.000Z
Pending updates to MaxOptra? no
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00483
Done all.
Finished at 2025-11-03 14:01:02
Webhook - sourceUpdated script called at 2025-11-03 14:42:49
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050599368","salesorder_no":"SO-00489","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000050599368","salesorder_no":"SO-00489","status":"open"}}
EXT ID: 499326000050599368
REF: SO-00489
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050599368 (REF SO-00489)
Local order updated = 2025-11-03 13:55:30.000Z,
source updated = 2025-11-03T14:42:46+0000,
has changed = yes
Marking order for sync with MaxOptra
Order has changed in source (updating local order)
Source order details: Array
(
[contactPhone] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[notes] => delivery round back
[externalOrderId] => 499326000050599368
[refId] => SO-00489
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[title] => Alex Cullum
[deliveryStart] => 2025-11-03
[deliveryEnd] => 2025-11-03
[totalValue] => 2
[totalWeight] => 0
[syncInCreated] => 2025-11-03T13:50:21+0000
[syncInUpdated] => 2025-11-03T14:42:46+0000
[syncInStatus] => confirmed
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000050599378
[externalProductId] => 499326000047467258
[sku] =>
[title] => test-item-2
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 2
[price] => 2
)
)
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
[paymentMethod] => Cash - Don't Leave
)
Does this order already exist?
Yes
Existing custom fields: Array
(
[0] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
[1] => Array
(
[id] => nc7sndad5bhvi5x
[value] => Cash - Don't Leave
)
)
Is array
Merging custom fields...
Order data prepared for sync: Array
(
[contactPhone] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[notes] => delivery round back
[externalOrderId] => 499326000050599368
[refId] => SO-00489
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[title] => Alex Cullum
[deliveryStart] => 2025-11-03
[deliveryEnd] => 2025-11-03
[totalValue] => 2
[totalWeight] => 0
[syncInCreated] => 2025-11-03T13:50:21+0000
[syncInUpdated] => 2025-11-03T14:42:46+0000
[syncInStatus] => confirmed
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
[paymentMethod] => Cash - Don't Leave
[syncOutUpdated] => 2025-11-03T14:42:49+00:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Alex Cullum
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => [{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"},{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"},{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"}]
)
Updating order
Getting customer details
Customer exists and has not changed (skipping): 499326000021060129
Getting products
Updating product 499326000047467258
Updating order product 499326000050599378
Updated
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00489
Processing order: 4x2hb7ruoqfv2fr, ref SO-00489
Syncing SO-00489
Using default start and end times
Time window: 2025-11-03T06:00:00+00:00 - 2025-11-03T20:00:00+00:00
Found order in MaxOptra? yes
MO updated: 03/11/2025 13:55 - Local updated: 2025-11-03 14:42:49.000Z - Source updated: 2025-11-03 14:42:46.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status: UNALLOCATED
Is allocated? no
Local updated: 2025-11-03 14:42:49.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updated
Replacing location address in MaxOptra: 499326000021060132
Array
(
[referenceNumber] => 499326000021060132
[name] => Alex Cullum, The Old Rectory, Church Lane, Bristol
[address] => BS26 2QP
)
499326000021060132
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00489
Done all.
Finished at 2025-11-03 14:42:51
Webhook - sourceUpdated script called at 2025-11-03 14:51:44
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050593190","salesorder_no":"SO-00490","status":"draft"}}
JSON: {"salesorder":{"salesorder_id":"499326000050593190","salesorder_no":"SO-00490","status":"draft"}}
EXT ID: 499326000050593190
REF: SO-00490
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050593190 (REF SO-00490)
Source order details: Array
(
[contactPhone] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[notes] => delivery round back
[externalOrderId] => 499326000050593190
[refId] => SO-00490
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[title] => Alex Cullum
[deliveryStart] => 2025-11-03
[deliveryEnd] => 2025-11-03
[totalValue] => 2
[totalWeight] => 0
[syncInCreated] => 2025-11-03T14:51:29+0000
[syncInUpdated] => 2025-11-03T14:51:29+0000
[syncInStatus] => draft
[deliveryLines] => Array
(
[0] => Array
(
[externalOrderProductId] => 499326000050593200
[externalProductId] => 499326000047467258
[sku] =>
[title] => test-item-2
[notes] =>
[quantity] => 1
[weightKg] => 0
[weightTotal] => 0
[priceTotal] => 2
[price] => 2
)
)
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
[paymentMethod] => Cash - Don't Leave
)
Does this order already exist?
No
Order data prepared for sync: Array
(
[contactPhone] => +447566237123
[contactEmail] => alex@7daycellar.co.uk
[contactName] => Alex Cullum
[notes] => delivery round back
[externalOrderId] => 499326000050593190
[refId] => SO-00490
[externalCustomerId] => 499326000021060129
[externalLocationId] => 499326000021060132
[title] => Alex Cullum
[deliveryStart] => 2025-11-03
[deliveryEnd] => 2025-11-03
[totalValue] => 2
[totalWeight] => 0
[syncInCreated] => 2025-11-03T14:51:29+0000
[syncInUpdated] => 2025-11-03T14:51:29+0000
[syncInStatus] => draft
[deliveryName] => Alex Cullum
[deliveryStreet] => The Old Rectory, Church Lane
[deliveryCity] => Bristol
[deliveryCounty] =>
[deliveryPostcode] => BS26 2QP
[paymentMethod] => Cash - Don't Leave
[syncOutUpdated] => 2025-11-03T14:51:45+00:00
[isScheduledCollection] =>
[isScheduledDelivery] =>
[pendingSyncToDestination] => 1
[contactPerson] => Alex Cullum
[timeWindows] => Array
(
)
[addons] => Array
(
)
[custom] => [{"id":"nc7sndad5bhvi5x","value":"Cash - Don't Leave"}]
)
New order
Marking order for sync with MaxOptra
Getting customer details
2025-10-30 14:11:51.000Z != 2025-11-03T14:51:17+0000
Customer changed - updating 499326000021060129
Updating order contact details
Getting products
Updating product 499326000047467258
Creating new order product 499326000050593200
Removing deleted order items
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00490
Processing order: 28ju231pbzif8je, ref SO-00490
Syncing SO-00490
Using default start and end times
Time window: 2025-11-03T06:00:00+00:00 - 2025-11-03T20:00:00+00:00
Found order in MaxOptra? no
Creating SO-00490
Done
Finished syncing to MaxOptra for order SO-00490
Done all.
Finished at 2025-11-03 14:51:46
Webhook - sourceUpdated script called at 2025-11-03 14:52:15
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050593190","salesorder_no":"SO-00490","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000050593190","salesorder_no":"SO-00490","status":"invoiced"}}
EXT ID: 499326000050593190
REF: SO-00490
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Webhook - sourceUpdated script called at 2025-11-03 14:52:15
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050593190","salesorder_no":"SO-00490","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000050593190","salesorder_no":"SO-00490","status":"open"}}
EXT ID: 499326000050593190
REF: SO-00490
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Getting local orders...
------------------------
Processing order 499326000050593190 (REF SO-00490)
Local order updated = 2025-11-03 14:51:29.000Z,
source updated = 2025-11-03T14:52:07+0000,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00490
Getting local orders...
------------------------
Processing order 499326000050593190 (REF SO-00490)
Local order updated = 2025-11-03 14:51:29.000Z,
source updated = 2025-11-03T14:52:07+0000,
has changed = no
Marking order for sync with MaxOptra
Order exists and has not changed (skipping local update)
Done
Syncing to MaxOptra
Sync to MaxOptra: SO-00490
Processing order: 28ju231pbzif8je, ref SO-00490
Syncing SO-00490
Using default start and end times
Time window: 2025-11-03T06:00:00+00:00 - 2025-11-03T20:00:00+00:00
Found order in MaxOptra? yes
MO updated: 03/11/2025 14:51 - Local updated: 2025-11-03 14:51:46.000Z - Source updated: 2025-11-03 14:51:29.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status:
Status changed - mark for sync back to source
Is allocated? no
Local updated: 2025-11-03 14:51:46.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Processing order: 28ju231pbzif8je, ref SO-00490
Syncing SO-00490
Using default start and end times
Time window: 2025-11-03T06:00:00+00:00 - 2025-11-03T20:00:00+00:00
Found order in MaxOptra? yes
MO updated: 03/11/2025 14:51 - Local updated: 2025-11-03 14:51:46.000Z - Source updated: 2025-11-03 14:51:29.000Z
Changed? yes
Current MaxOptra status: UNALLOCATED
Completed? no
Previous status:
Status changed - mark for sync back to source
Updated
Replacing location address in MaxOptra: 499326000021060132
Array
(
[referenceNumber] => 499326000021060132
[name] => Alex Cullum, The Old Rectory, Church Lane, Bristol
[address] => BS26 2QP
)
499326000021060132
Is allocated? no
Local updated: 2025-11-03 14:51:46.000Z
Pending updates to MaxOptra? yes
Updating order in MaxOptra
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00490
Done all.
Finished at 2025-11-03 14:52:17
Updated
Replacing location address in MaxOptra: 499326000021060132
Array
(
[referenceNumber] => 499326000021060132
[name] => Alex Cullum, The Old Rectory, Church Lane, Bristol
[address] => BS26 2QP
)
499326000021060132
Updating local order status...
Done
Finished syncing to MaxOptra for order SO-00490
Done all.
Finished at 2025-11-03 14:52:17
Webhook - sourceDeleted script called at 2025-11-03 14:52:46
Source: Zoho
Data: {"salesorder":{"salesorder_no":"SO-00489"}}
JSON: {"salesorder":{"salesorder_no":"SO-00489"}}
REF: SO-00489
200 response code sent
Deleting order: SO-00489
Deleting from MaxOptra
Deleted order SO-00489. Deleting from local database.
Finished at 2025-11-03 14:52:46
Webhook - sourceUpdated script called at 2025-11-03 14:56:49
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050593190","salesorder_no":"SO-00490","status":"open"}}
JSON: {"salesorder":{"salesorder_id":"499326000050593190","salesorder_no":"SO-00490","status":"open"}}
EXT ID: 499326000050593190
REF: SO-00490
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Error: API Error (404): Sales Order does not exist.
Error: Failed to sync source order
Finished at 2025-11-03 14:56:49
Webhook - sourceUpdated script called at 2025-11-03 14:56:53
Source: Zoho
Data: {"salesorder":{"salesorder_id":"499326000050593190","salesorder_no":"SO-00490","status":"invoiced"}}
JSON: {"salesorder":{"salesorder_id":"499326000050593190","salesorder_no":"SO-00490","status":"invoiced"}}
EXT ID: 499326000050593190
REF: SO-00490
200 response code sent
Syncing from Zoho to local database
Getting source order from Zoho...
Error: API Error (404): Sales Order does not exist.
Error: Failed to sync source order
Finished at 2025-11-03 14:56:53
Webhook - sourceDeleted script called at 2025-11-03 14:57:17
Source: Zoho
Data: {"salesorder":{"salesorder_no":"SO-00490"}}
JSON: {"salesorder":{"salesorder_no":"SO-00490"}}
REF: SO-00490
200 response code sent
Deleting order: SO-00490
Deleting from MaxOptra
Deleted order SO-00490. Deleting from local database.
Finished at 2025-11-03 14:57:18