Array ( [per_page] => 200 [last_updated_at] => 2017-12-27 18:44:08 UTC [page] => [status] => Array ( [0] => ready_for_shipment [1] => shipped [2] => cleared ) ) *** Order info:
Array
(
    [id] => 206486633
    [external_order_identifier] => 114-2590914-3706648
    [ext_order_reference_id] => 114-2590914-3706648
    [owner_id] => 
    [sales_channel] => 
    [fulfillment_channel] => fulfillment_by_amazon
    [ordered_at] => 2017-12-26T21:45:48Z
    [order_status] => drop_shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 21.24
    [total_excluding_tax] => 19.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 21.24
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 1.25
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Kaitlin Byrne
    [billing_first_name] => Kaitlin
    [billing_last_name] => R
    [billing_address] => 8901 WENDELL CREEK DR
    [billing_address2] => 
    [billing_city] => SAINT JACOB
    [billing_state] => IL
    [billing_country] => US
    [billing_postal_code] => 62281-1078
    [billing_phone_number] => 
    [billing_email] => rvglxpjllszt9r9@marketplace.amazon.com
    [buyer_email] => rvglxpjllszt9r9@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Kaitlin
                    [last_name] => Byrne
                    [address] => 8901 WENDELL CREEK DR
                    [address2] => 
                    [address3] => 
                    [city] => SAINT JACOB
                    [residential] => 1
                    [state] => IL
                    [province] => 
                    [country] => United States
                    [postal_code] => 62281
                    [postal_code_plus_4] => 1078
                    [phone_number] => 
                    [email] => rvglxpjllszt9r9@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => SecondDay
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Smokin Wedgies - Stainless Steel
                                    [sku] => smoking wedgie
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 0.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 19.99
                                    [unit_price] => 19.99
                                    [ext_line_item_id] => 65162044741762
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => a9726d6f-c199-4274-8445-2a062f798715
                                    [order_source_id] => 215951643
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 206486633
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 208580603
                            [workflow_state] => drop_shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 0.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 4
                            [created_at] => 2017-12-27T21:06:44Z
                            [updated_at] => 2017-12-27T21:06:45Z
                            [ext_shipment_confirmation_id] => 0
                            [store_order_status] => external_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 
                            [internal_notes] => 
                            [line_item_name] => smokin wedgies - stainless steel
                            [line_item_sku] => smoking wedgie
                            [address_kind] => R
                            [recipient_last_name] => byrne
                            [recipient_requested_service] => secondday
                            [gift] => 
                            [prime_order_id] => 206486633
                            [state] => IL
                            [owner_id] => 
                            [denormalized_ordered_at] => 2017-12-26T21:45:48Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 114-2590914-3706648
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 114-2590914-3706648
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 223063783
                    [tracking_number] => 
                    [carrier_key] => 
                    [carrier_service_key] => 
                    [shipment_cost] => 
                    [ship_date] => 2017-12-27
                )

        )

    [updated_at] => 2017-12-27T21:06:45Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 206486633
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for rvglxpjllszt9r9@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 9968

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(7) "Kaitlin"
  ["customer_last_name"]=>
  string(5) "Byrne"
  ["customer_email"]=>
  string(38) "rvglxpjllszt9r9@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(13) "Kaitlin Byrne"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(21) "8901 WENDELL CREEK DR"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(11) "SAINT JACOB"
    ["address_state"]=>
    string(2) "IL"
    ["address_zip"]=>
    string(10) "62281-1078"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9968"
  ["ordered_time"]=>
  string(19) "2017-12-26 21:45:48"
  ["se_order_id"]=>
  int(206486633)
  ["se_order_status"]=>
  string(12) "drop_shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "114-2590914-3706648"
  ["order_weight_ounces"]=>
  string(3) "0.0"
  ["store_order_status"]=>
  string(20) "external_fulfillment"
  ["se_api_response"]=>
  string(3975) "{"id":206486633,"external_order_identifier":"114-2590914-3706648","ext_order_reference_id":"114-2590914-3706648","owner_id":null,"sales_channel":null,"fulfillment_channel":"fulfillment_by_amazon","ordered_at":"2017-12-26T21:45:48Z","order_status":"drop_shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"21.24","total_excluding_tax":"19.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"21.24","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"1.25","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Kaitlin Byrne","billing_first_name":"Kaitlin","billing_last_name":"R","billing_address":"8901 WENDELL CREEK DR","billing_address2":null,"billing_city":"SAINT JACOB","billing_state":"IL","billing_country":"US","billing_postal_code":"62281-1078","billing_phone_number":null,"billing_email":"rvglxpjllszt9r9@marketplace.amazon.com","buyer_email":"rvglxpjllszt9r9@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Kaitlin","last_name":"Byrne","address":"8901 WENDELL CREEK DR","address2":null,"address3":null,"city":"SAINT JACOB","residential":true,"state":"IL","province":null,"country":"United States","postal_code":"62281","postal_code_plus_4":"1078","phone_number":null,"email":"rvglxpjllszt9r9@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"SecondDay","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Smokin Wedgies - Stainless Steel","sku":"smoking wedgie","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"0.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"19.99","unit_price":"19.99","ext_line_item_id":"65162044741762","ext_product_id":null,"product_options":null,"uuid":"a9726d6f-c199-4274-8445-2a062f798715","order_source_id":215951643,"gift_message":null}],"original_order":{"id":206486633,"customer_id":33773,"store_id":70647,"order_detail_id":208580603,"workflow_state":"drop_shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"0.0","total_quantity":1,"is_international":false,"usps_shipping_zone":4,"created_at":"2017-12-27T21:06:44Z","updated_at":"2017-12-27T21:06:45Z","ext_shipment_confirmation_id":0,"store_order_status":"external_fulfillment","drop_ship_tracking_number":null,"category_id":null,"internal_notes":"","line_item_name":"smokin wedgies - stainless steel","line_item_sku":"smoking wedgie","address_kind":"R","recipient_last_name":"byrne","recipient_requested_service":"secondday","gift":null,"prime_order_id":206486633,"state":"IL","owner_id":null,"denormalized_ordered_at":"2017-12-26T21:45:48Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"114-2590914-3706648","packing_slip_generated":null,"denormalized_ext_order_reference_id":"114-2590914-3706648","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":223063783,"tracking_number":null,"carrier_key":null,"carrier_service_key":null,"shipment_cost":null,"ship_date":"2017-12-27"}],"updated_at":"2017-12-27T21:06:45Z","internal_notes":"","meta_data":null,"prime_order_id":206486633,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(223063783)
      ["carrier_key"]=>
      string(7) "SPEEDEE"
      ["shipment_weight_ounces"]=>
      string(3) "0.0"
      ["carrier_service_key"]=>
      NULL
      ["shipment_cost"]=>
      NULL
      ["ship_date"]=>
      string(10) "2017-12-27"
      ["tracking_number"]=>
      string(0) ""
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7360

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7020"
    ["order_id"]=>
    string(4) "7360"
    ["se_shipment_id"]=>
    string(9) "223063783"
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["shipment_weight_ounces"]=>
    string(4) "0.00"
    ["ship_date"]=>
    string(10) "2017-12-27"
    ["tracking_number"]=>
    string(0) ""
    ["tracking_status"]=>
    string(9) "UNSHIPPED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    NULL
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2017-12-28 07:47:48"
  }
}


shipmentDBRows:
array(1) {
  [223063783]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7020"
    ["order_id"]=>
    string(4) "7360"
    ["se_shipment_id"]=>
    string(9) "223063783"
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["shipment_weight_ounces"]=>
    string(4) "0.00"
    ["ship_date"]=>
    string(10) "2017-12-27"
    ["tracking_number"]=>
    string(0) ""
    ["tracking_status"]=>
    string(9) "UNSHIPPED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    NULL
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2017-12-28 07:47:48"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(223063783)
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["shipment_weight_ounces"]=>
    string(3) "0.0"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["ship_date"]=>
    string(10) "2017-12-27"
    ["tracking_number"]=>
    string(0) ""
  }
}

Shipment info shipping easy shipment ID #223063783

From API:
array(7) {
  ["se_shipment_id"]=>
  int(223063783)
  ["carrier_key"]=>
  string(7) "SPEEDEE"
  ["shipment_weight_ounces"]=>
  string(3) "0.0"
  ["carrier_service_key"]=>
  NULL
  ["shipment_cost"]=>
  NULL
  ["ship_date"]=>
  string(10) "2017-12-27"
  ["tracking_number"]=>
  string(0) ""
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7020"
  ["order_id"]=>
  string(4) "7360"
  ["se_shipment_id"]=>
  string(9) "223063783"
  ["carrier_key"]=>
  string(7) "SPEEDEE"
  ["carrier_service_key"]=>
  NULL
  ["shipment_cost"]=>
  NULL
  ["shipment_weight_ounces"]=>
  string(4) "0.00"
  ["ship_date"]=>
  string(10) "2017-12-27"
  ["tracking_number"]=>
  string(0) ""
  ["tracking_status"]=>
  string(9) "UNSHIPPED"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  NULL
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2017-12-28 07:47:48"
}



Shipment info for shipping easy shipment ID #223063783 is same between both arrays

*** Order info:
Array
(
    [id] => 206599383
    [external_order_identifier] => 112-3822934-8147409
    [ext_order_reference_id] => 112-3822934-8147409
    [owner_id] => 
    [sales_channel] => 
    [fulfillment_channel] => fulfillment_by_amazon
    [ordered_at] => 2017-12-25T23:41:07Z
    [order_status] => drop_shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 21.65
    [total_excluding_tax] => 19.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 21.65
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 1.66
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Lacey conner
    [billing_first_name] => Lacey
    [billing_last_name] => Conner
    [billing_address] => 404 s chelan
    [billing_address2] => 
    [billing_city] => Wenatchee
    [billing_state] => Wa
    [billing_country] => US
    [billing_postal_code] => 98801
    [billing_phone_number] => 
    [billing_email] => 9g90y9s4xx71t9r@marketplace.amazon.com
    [buyer_email] => 9g90y9s4xx71t9r@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Lacey
                    [last_name] => conner
                    [address] => 404 s chelan
                    [address2] => 
                    [address3] => 
                    [city] => Wenatchee
                    [residential] => 
                    [state] => WA
                    [province] => 
                    [country] => United States
                    [postal_code] => 98801
                    [postal_code_plus_4] => 2912
                    [phone_number] => 
                    [email] => 9g90y9s4xx71t9r@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => SecondDay
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Smokin Wedgies - Stainless Steel
                                    [sku] => smoking wedgie
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 0.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 19.99
                                    [unit_price] => 19.99
                                    [ext_line_item_id] => 13286529344434
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 30f7fe62-7312-409b-93ea-c9158f0e51ee
                                    [order_source_id] => 216074083
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 206599383
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 208697463
                            [workflow_state] => drop_shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 0.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 6
                            [created_at] => 2017-12-27T23:06:42Z
                            [updated_at] => 2017-12-27T23:06:43Z
                            [ext_shipment_confirmation_id] => 0
                            [store_order_status] => external_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 
                            [internal_notes] => 
                            [line_item_name] => smokin wedgies - stainless steel
                            [line_item_sku] => smoking wedgie
                            [address_kind] => C
                            [recipient_last_name] => conner
                            [recipient_requested_service] => secondday
                            [gift] => 
                            [prime_order_id] => 206599383
                            [state] => WA
                            [owner_id] => 
                            [denormalized_ordered_at] => 2017-12-25T23:41:07Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 112-3822934-8147409
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 112-3822934-8147409
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 223196113
                    [tracking_number] => 
                    [carrier_key] => 
                    [carrier_service_key] => 
                    [shipment_cost] => 
                    [ship_date] => 2017-12-27
                )

        )

    [updated_at] => 2017-12-27T23:06:43Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 206599383
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for 9g90y9s4xx71t9r@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 9969

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(5) "Lacey"
  ["customer_last_name"]=>
  string(6) "conner"
  ["customer_email"]=>
  string(38) "9g90y9s4xx71t9r@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(12) "Lacey conner"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(12) "404 s chelan"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(9) "Wenatchee"
    ["address_state"]=>
    string(2) "Wa"
    ["address_zip"]=>
    string(5) "98801"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9969"
  ["ordered_time"]=>
  string(19) "2017-12-25 23:41:07"
  ["se_order_id"]=>
  int(206599383)
  ["se_order_status"]=>
  string(12) "drop_shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "112-3822934-8147409"
  ["order_weight_ounces"]=>
  string(3) "0.0"
  ["store_order_status"]=>
  string(20) "external_fulfillment"
  ["se_api_response"]=>
  string(3951) "{"id":206599383,"external_order_identifier":"112-3822934-8147409","ext_order_reference_id":"112-3822934-8147409","owner_id":null,"sales_channel":null,"fulfillment_channel":"fulfillment_by_amazon","ordered_at":"2017-12-25T23:41:07Z","order_status":"drop_shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"21.65","total_excluding_tax":"19.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"21.65","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"1.66","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Lacey conner","billing_first_name":"Lacey","billing_last_name":"Conner","billing_address":"404 s chelan","billing_address2":null,"billing_city":"Wenatchee","billing_state":"Wa","billing_country":"US","billing_postal_code":"98801","billing_phone_number":null,"billing_email":"9g90y9s4xx71t9r@marketplace.amazon.com","buyer_email":"9g90y9s4xx71t9r@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Lacey","last_name":"conner","address":"404 s chelan","address2":null,"address3":null,"city":"Wenatchee","residential":false,"state":"WA","province":null,"country":"United States","postal_code":"98801","postal_code_plus_4":"2912","phone_number":null,"email":"9g90y9s4xx71t9r@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"SecondDay","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Smokin Wedgies - Stainless Steel","sku":"smoking wedgie","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"0.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"19.99","unit_price":"19.99","ext_line_item_id":"13286529344434","ext_product_id":null,"product_options":null,"uuid":"30f7fe62-7312-409b-93ea-c9158f0e51ee","order_source_id":216074083,"gift_message":null}],"original_order":{"id":206599383,"customer_id":33773,"store_id":70647,"order_detail_id":208697463,"workflow_state":"drop_shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"0.0","total_quantity":1,"is_international":false,"usps_shipping_zone":6,"created_at":"2017-12-27T23:06:42Z","updated_at":"2017-12-27T23:06:43Z","ext_shipment_confirmation_id":0,"store_order_status":"external_fulfillment","drop_ship_tracking_number":null,"category_id":null,"internal_notes":"","line_item_name":"smokin wedgies - stainless steel","line_item_sku":"smoking wedgie","address_kind":"C","recipient_last_name":"conner","recipient_requested_service":"secondday","gift":null,"prime_order_id":206599383,"state":"WA","owner_id":null,"denormalized_ordered_at":"2017-12-25T23:41:07Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"112-3822934-8147409","packing_slip_generated":null,"denormalized_ext_order_reference_id":"112-3822934-8147409","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":223196113,"tracking_number":null,"carrier_key":null,"carrier_service_key":null,"shipment_cost":null,"ship_date":"2017-12-27"}],"updated_at":"2017-12-27T23:06:43Z","internal_notes":"","meta_data":null,"prime_order_id":206599383,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(223196113)
      ["carrier_key"]=>
      string(7) "SPEEDEE"
      ["shipment_weight_ounces"]=>
      string(3) "0.0"
      ["carrier_service_key"]=>
      NULL
      ["shipment_cost"]=>
      NULL
      ["ship_date"]=>
      string(10) "2017-12-27"
      ["tracking_number"]=>
      string(0) ""
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7361

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7021"
    ["order_id"]=>
    string(4) "7361"
    ["se_shipment_id"]=>
    string(9) "223196113"
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["shipment_weight_ounces"]=>
    string(4) "0.00"
    ["ship_date"]=>
    string(10) "2017-12-27"
    ["tracking_number"]=>
    string(0) ""
    ["tracking_status"]=>
    string(9) "UNSHIPPED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    NULL
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2017-12-28 07:47:48"
  }
}


shipmentDBRows:
array(1) {
  [223196113]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7021"
    ["order_id"]=>
    string(4) "7361"
    ["se_shipment_id"]=>
    string(9) "223196113"
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["shipment_weight_ounces"]=>
    string(4) "0.00"
    ["ship_date"]=>
    string(10) "2017-12-27"
    ["tracking_number"]=>
    string(0) ""
    ["tracking_status"]=>
    string(9) "UNSHIPPED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    NULL
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2017-12-28 07:47:48"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(223196113)
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["shipment_weight_ounces"]=>
    string(3) "0.0"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["ship_date"]=>
    string(10) "2017-12-27"
    ["tracking_number"]=>
    string(0) ""
  }
}

Shipment info shipping easy shipment ID #223196113

From API:
array(7) {
  ["se_shipment_id"]=>
  int(223196113)
  ["carrier_key"]=>
  string(7) "SPEEDEE"
  ["shipment_weight_ounces"]=>
  string(3) "0.0"
  ["carrier_service_key"]=>
  NULL
  ["shipment_cost"]=>
  NULL
  ["ship_date"]=>
  string(10) "2017-12-27"
  ["tracking_number"]=>
  string(0) ""
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7021"
  ["order_id"]=>
  string(4) "7361"
  ["se_shipment_id"]=>
  string(9) "223196113"
  ["carrier_key"]=>
  string(7) "SPEEDEE"
  ["carrier_service_key"]=>
  NULL
  ["shipment_cost"]=>
  NULL
  ["shipment_weight_ounces"]=>
  string(4) "0.00"
  ["ship_date"]=>
  string(10) "2017-12-27"
  ["tracking_number"]=>
  string(0) ""
  ["tracking_status"]=>
  string(9) "UNSHIPPED"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  NULL
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2017-12-28 07:47:48"
}



Shipment info for shipping easy shipment ID #223196113 is same between both arrays

*** Order info:
Array
(
    [id] => 206599453
    [external_order_identifier] => 114-7358060-0965864
    [ext_order_reference_id] => 114-7358060-0965864
    [owner_id] => 
    [sales_channel] => 
    [fulfillment_channel] => fulfillment_by_amazon
    [ordered_at] => 2017-12-26T22:45:32Z
    [order_status] => drop_shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 59.97
    [total_excluding_tax] => 59.97
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 59.97
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Tyler schwartz
    [billing_first_name] => Tyler
    [billing_last_name] => Schwartz
    [billing_address] => 710 1st Ave
    [billing_address2] => 
    [billing_city] => Ipswich
    [billing_state] => SD
    [billing_country] => US
    [billing_postal_code] => 57451
    [billing_phone_number] => 
    [billing_email] => x321zxy1ymrbxmj@marketplace.amazon.com
    [buyer_email] => x321zxy1ymrbxmj@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Tyler
                    [last_name] => schwartz
                    [address] => 710 1st Ave
                    [address2] => 
                    [address3] => 
                    [city] => Ipswich
                    [residential] => 
                    [state] => SD
                    [province] => 
                    [country] => United States
                    [postal_code] => 57451
                    [postal_code_plus_4] => 
                    [phone_number] => 
                    [email] => x321zxy1ymrbxmj@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => SecondDay
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Smokin Wedgies - Stainless Steel
                                    [sku] => smoking wedgie
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 0.0
                                    [quantity] => 3
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 19.99
                                    [unit_price] => 19.99
                                    [ext_line_item_id] => 31009063690858
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => b48a27ad-d570-4a91-97f8-aae58407f682
                                    [order_source_id] => 216074173
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 206599453
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 208697523
                            [workflow_state] => drop_shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 0.0
                            [total_quantity] => 3
                            [is_international] => 
                            [usps_shipping_zone] => 3
                            [created_at] => 2017-12-27T23:06:44Z
                            [updated_at] => 2017-12-27T23:06:44Z
                            [ext_shipment_confirmation_id] => 0
                            [store_order_status] => external_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 
                            [internal_notes] => 
                            [line_item_name] => smokin wedgies - stainless steel
                            [line_item_sku] => smoking wedgie
                            [address_kind] => F
                            [recipient_last_name] => schwartz
                            [recipient_requested_service] => secondday
                            [gift] => 
                            [prime_order_id] => 206599453
                            [state] => SD
                            [owner_id] => 
                            [denormalized_ordered_at] => 2017-12-26T22:45:32Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 114-7358060-0965864
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 114-7358060-0965864
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 223196143
                    [tracking_number] => 
                    [carrier_key] => 
                    [carrier_service_key] => 
                    [shipment_cost] => 
                    [ship_date] => 2017-12-27
                )

        )

    [updated_at] => 2017-12-27T23:06:44Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 206599453
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for x321zxy1ymrbxmj@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 9970

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(5) "Tyler"
  ["customer_last_name"]=>
  string(8) "schwartz"
  ["customer_email"]=>
  string(38) "x321zxy1ymrbxmj@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(14) "Tyler schwartz"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(11) "710 1st Ave"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(7) "Ipswich"
    ["address_state"]=>
    string(2) "SD"
    ["address_zip"]=>
    string(5) "57451"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9970"
  ["ordered_time"]=>
  string(19) "2017-12-26 22:45:32"
  ["se_order_id"]=>
  int(206599453)
  ["se_order_status"]=>
  string(12) "drop_shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "114-7358060-0965864"
  ["order_weight_ounces"]=>
  string(3) "0.0"
  ["store_order_status"]=>
  string(20) "external_fulfillment"
  ["se_api_response"]=>
  string(3950) "{"id":206599453,"external_order_identifier":"114-7358060-0965864","ext_order_reference_id":"114-7358060-0965864","owner_id":null,"sales_channel":null,"fulfillment_channel":"fulfillment_by_amazon","ordered_at":"2017-12-26T22:45:32Z","order_status":"drop_shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"59.97","total_excluding_tax":"59.97","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"59.97","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Tyler schwartz","billing_first_name":"Tyler","billing_last_name":"Schwartz","billing_address":"710 1st Ave","billing_address2":null,"billing_city":"Ipswich","billing_state":"SD","billing_country":"US","billing_postal_code":"57451","billing_phone_number":null,"billing_email":"x321zxy1ymrbxmj@marketplace.amazon.com","buyer_email":"x321zxy1ymrbxmj@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Tyler","last_name":"schwartz","address":"710 1st Ave","address2":null,"address3":null,"city":"Ipswich","residential":null,"state":"SD","province":null,"country":"United States","postal_code":"57451","postal_code_plus_4":null,"phone_number":null,"email":"x321zxy1ymrbxmj@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"SecondDay","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Smokin Wedgies - Stainless Steel","sku":"smoking wedgie","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"0.0","quantity":3,"total_excluding_tax":"0.00","price_excluding_tax":"19.99","unit_price":"19.99","ext_line_item_id":"31009063690858","ext_product_id":null,"product_options":null,"uuid":"b48a27ad-d570-4a91-97f8-aae58407f682","order_source_id":216074173,"gift_message":null}],"original_order":{"id":206599453,"customer_id":33773,"store_id":70647,"order_detail_id":208697523,"workflow_state":"drop_shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"0.0","total_quantity":3,"is_international":false,"usps_shipping_zone":3,"created_at":"2017-12-27T23:06:44Z","updated_at":"2017-12-27T23:06:44Z","ext_shipment_confirmation_id":0,"store_order_status":"external_fulfillment","drop_ship_tracking_number":null,"category_id":null,"internal_notes":"","line_item_name":"smokin wedgies - stainless steel","line_item_sku":"smoking wedgie","address_kind":"F","recipient_last_name":"schwartz","recipient_requested_service":"secondday","gift":null,"prime_order_id":206599453,"state":"SD","owner_id":null,"denormalized_ordered_at":"2017-12-26T22:45:32Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"114-7358060-0965864","packing_slip_generated":null,"denormalized_ext_order_reference_id":"114-7358060-0965864","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":223196143,"tracking_number":null,"carrier_key":null,"carrier_service_key":null,"shipment_cost":null,"ship_date":"2017-12-27"}],"updated_at":"2017-12-27T23:06:44Z","internal_notes":"","meta_data":null,"prime_order_id":206599453,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(223196143)
      ["carrier_key"]=>
      string(7) "SPEEDEE"
      ["shipment_weight_ounces"]=>
      string(3) "0.0"
      ["carrier_service_key"]=>
      NULL
      ["shipment_cost"]=>
      NULL
      ["ship_date"]=>
      string(10) "2017-12-27"
      ["tracking_number"]=>
      string(0) ""
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7362

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7022"
    ["order_id"]=>
    string(4) "7362"
    ["se_shipment_id"]=>
    string(9) "223196143"
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["shipment_weight_ounces"]=>
    string(4) "0.00"
    ["ship_date"]=>
    string(10) "2017-12-27"
    ["tracking_number"]=>
    string(0) ""
    ["tracking_status"]=>
    string(9) "UNSHIPPED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    NULL
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2017-12-28 07:47:49"
  }
}


shipmentDBRows:
array(1) {
  [223196143]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7022"
    ["order_id"]=>
    string(4) "7362"
    ["se_shipment_id"]=>
    string(9) "223196143"
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["shipment_weight_ounces"]=>
    string(4) "0.00"
    ["ship_date"]=>
    string(10) "2017-12-27"
    ["tracking_number"]=>
    string(0) ""
    ["tracking_status"]=>
    string(9) "UNSHIPPED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    NULL
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2017-12-28 07:47:49"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(223196143)
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["shipment_weight_ounces"]=>
    string(3) "0.0"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["ship_date"]=>
    string(10) "2017-12-27"
    ["tracking_number"]=>
    string(0) ""
  }
}

Shipment info shipping easy shipment ID #223196143

From API:
array(7) {
  ["se_shipment_id"]=>
  int(223196143)
  ["carrier_key"]=>
  string(7) "SPEEDEE"
  ["shipment_weight_ounces"]=>
  string(3) "0.0"
  ["carrier_service_key"]=>
  NULL
  ["shipment_cost"]=>
  NULL
  ["ship_date"]=>
  string(10) "2017-12-27"
  ["tracking_number"]=>
  string(0) ""
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7022"
  ["order_id"]=>
  string(4) "7362"
  ["se_shipment_id"]=>
  string(9) "223196143"
  ["carrier_key"]=>
  string(7) "SPEEDEE"
  ["carrier_service_key"]=>
  NULL
  ["shipment_cost"]=>
  NULL
  ["shipment_weight_ounces"]=>
  string(4) "0.00"
  ["ship_date"]=>
  string(10) "2017-12-27"
  ["tracking_number"]=>
  string(0) ""
  ["tracking_status"]=>
  string(9) "UNSHIPPED"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  NULL
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2017-12-28 07:47:49"
}



Shipment info for shipping easy shipment ID #223196143 is same between both arrays

*** Order info:
Array
(
    [id] => 206599473
    [external_order_identifier] => 112-0812108-6949835
    [ext_order_reference_id] => 112-0812108-6949835
    [owner_id] => 
    [sales_channel] => 
    [fulfillment_channel] => fulfillment_by_amazon
    [ordered_at] => 2017-12-27T04:00:01Z
    [order_status] => drop_shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 21.37
    [total_excluding_tax] => 21.37
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 21.37
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 1.38
    [shipping_cost_including_tax] => 1.38
    [shipping_cost_excluding_tax] => 1.38
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Ryan horne
    [billing_first_name] => Ryan
    [billing_last_name] => Horne
    [billing_address] => 1380 ROAD 30
    [billing_address2] => 
    [billing_city] => LAKE VIEW
    [billing_state] => SC
    [billing_country] => US
    [billing_postal_code] => 29563-5204
    [billing_phone_number] => 
    [billing_email] => wgt09bpsrjjwll2@marketplace.amazon.com
    [buyer_email] => wgt09bpsrjjwll2@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Ryan
                    [last_name] => horne
                    [address] => 1380 ROAD 30
                    [address2] => 
                    [address3] => 
                    [city] => LAKE VIEW
                    [residential] => 1
                    [state] => SC
                    [province] => 
                    [country] => United States
                    [postal_code] => 29563
                    [postal_code_plus_4] => 5204
                    [phone_number] => 
                    [email] => wgt09bpsrjjwll2@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => Standard
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Smokin Wedgies - Stainless Steel
                                    [sku] => smoking wedgie
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 0.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 19.99
                                    [unit_price] => 19.99
                                    [ext_line_item_id] => 29675409469682
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 84ec9f99-3711-4993-a813-040137b3a5d2
                                    [order_source_id] => 216074203
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 206599473
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 208697553
                            [workflow_state] => drop_shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 0.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-27T23:06:44Z
                            [updated_at] => 2017-12-27T23:06:45Z
                            [ext_shipment_confirmation_id] => 0
                            [store_order_status] => external_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 
                            [internal_notes] => 
                            [line_item_name] => smokin wedgies - stainless steel
                            [line_item_sku] => smoking wedgie
                            [address_kind] => R
                            [recipient_last_name] => horne
                            [recipient_requested_service] => standard
                            [gift] => 
                            [prime_order_id] => 206599473
                            [state] => SC
                            [owner_id] => 
                            [denormalized_ordered_at] => 2017-12-27T04:00:01Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 112-0812108-6949835
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 112-0812108-6949835
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 223196163
                    [tracking_number] => 
                    [carrier_key] => 
                    [carrier_service_key] => 
                    [shipment_cost] => 
                    [ship_date] => 2017-12-27
                )

        )

    [updated_at] => 2017-12-27T23:06:45Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 206599473
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for wgt09bpsrjjwll2@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 9971

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(4) "Ryan"
  ["customer_last_name"]=>
  string(5) "horne"
  ["customer_email"]=>
  string(38) "wgt09bpsrjjwll2@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(10) "Ryan horne"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(12) "1380 ROAD 30"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(9) "LAKE VIEW"
    ["address_state"]=>
    string(2) "SC"
    ["address_zip"]=>
    string(10) "29563-5204"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9971"
  ["ordered_time"]=>
  string(19) "2017-12-27 04:00:01"
  ["se_order_id"]=>
  int(206599473)
  ["se_order_status"]=>
  string(12) "drop_shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "112-0812108-6949835"
  ["order_weight_ounces"]=>
  string(3) "0.0"
  ["store_order_status"]=>
  string(20) "external_fulfillment"
  ["se_api_response"]=>
  string(3946) "{"id":206599473,"external_order_identifier":"112-0812108-6949835","ext_order_reference_id":"112-0812108-6949835","owner_id":null,"sales_channel":null,"fulfillment_channel":"fulfillment_by_amazon","ordered_at":"2017-12-27T04:00:01Z","order_status":"drop_shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"21.37","total_excluding_tax":"21.37","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"21.37","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"1.38","shipping_cost_including_tax":"1.38","shipping_cost_excluding_tax":"1.38","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Ryan horne","billing_first_name":"Ryan","billing_last_name":"Horne","billing_address":"1380 ROAD 30","billing_address2":null,"billing_city":"LAKE VIEW","billing_state":"SC","billing_country":"US","billing_postal_code":"29563-5204","billing_phone_number":null,"billing_email":"wgt09bpsrjjwll2@marketplace.amazon.com","buyer_email":"wgt09bpsrjjwll2@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Ryan","last_name":"horne","address":"1380 ROAD 30","address2":null,"address3":null,"city":"LAKE VIEW","residential":true,"state":"SC","province":null,"country":"United States","postal_code":"29563","postal_code_plus_4":"5204","phone_number":null,"email":"wgt09bpsrjjwll2@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"Standard","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Smokin Wedgies - Stainless Steel","sku":"smoking wedgie","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"0.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"19.99","unit_price":"19.99","ext_line_item_id":"29675409469682","ext_product_id":null,"product_options":null,"uuid":"84ec9f99-3711-4993-a813-040137b3a5d2","order_source_id":216074203,"gift_message":null}],"original_order":{"id":206599473,"customer_id":33773,"store_id":70647,"order_detail_id":208697553,"workflow_state":"drop_shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"0.0","total_quantity":1,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-27T23:06:44Z","updated_at":"2017-12-27T23:06:45Z","ext_shipment_confirmation_id":0,"store_order_status":"external_fulfillment","drop_ship_tracking_number":null,"category_id":null,"internal_notes":"","line_item_name":"smokin wedgies - stainless steel","line_item_sku":"smoking wedgie","address_kind":"R","recipient_last_name":"horne","recipient_requested_service":"standard","gift":null,"prime_order_id":206599473,"state":"SC","owner_id":null,"denormalized_ordered_at":"2017-12-27T04:00:01Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"112-0812108-6949835","packing_slip_generated":null,"denormalized_ext_order_reference_id":"112-0812108-6949835","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":223196163,"tracking_number":null,"carrier_key":null,"carrier_service_key":null,"shipment_cost":null,"ship_date":"2017-12-27"}],"updated_at":"2017-12-27T23:06:45Z","internal_notes":"","meta_data":null,"prime_order_id":206599473,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(223196163)
      ["carrier_key"]=>
      string(7) "SPEEDEE"
      ["shipment_weight_ounces"]=>
      string(3) "0.0"
      ["carrier_service_key"]=>
      NULL
      ["shipment_cost"]=>
      NULL
      ["ship_date"]=>
      string(10) "2017-12-27"
      ["tracking_number"]=>
      string(0) ""
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7363

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7023"
    ["order_id"]=>
    string(4) "7363"
    ["se_shipment_id"]=>
    string(9) "223196163"
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["shipment_weight_ounces"]=>
    string(4) "0.00"
    ["ship_date"]=>
    string(10) "2017-12-27"
    ["tracking_number"]=>
    string(0) ""
    ["tracking_status"]=>
    string(9) "UNSHIPPED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    NULL
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2017-12-28 07:47:49"
  }
}


shipmentDBRows:
array(1) {
  [223196163]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7023"
    ["order_id"]=>
    string(4) "7363"
    ["se_shipment_id"]=>
    string(9) "223196163"
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["shipment_weight_ounces"]=>
    string(4) "0.00"
    ["ship_date"]=>
    string(10) "2017-12-27"
    ["tracking_number"]=>
    string(0) ""
    ["tracking_status"]=>
    string(9) "UNSHIPPED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    NULL
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2017-12-28 07:47:49"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(223196163)
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["shipment_weight_ounces"]=>
    string(3) "0.0"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["ship_date"]=>
    string(10) "2017-12-27"
    ["tracking_number"]=>
    string(0) ""
  }
}

Shipment info shipping easy shipment ID #223196163

From API:
array(7) {
  ["se_shipment_id"]=>
  int(223196163)
  ["carrier_key"]=>
  string(7) "SPEEDEE"
  ["shipment_weight_ounces"]=>
  string(3) "0.0"
  ["carrier_service_key"]=>
  NULL
  ["shipment_cost"]=>
  NULL
  ["ship_date"]=>
  string(10) "2017-12-27"
  ["tracking_number"]=>
  string(0) ""
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7023"
  ["order_id"]=>
  string(4) "7363"
  ["se_shipment_id"]=>
  string(9) "223196163"
  ["carrier_key"]=>
  string(7) "SPEEDEE"
  ["carrier_service_key"]=>
  NULL
  ["shipment_cost"]=>
  NULL
  ["shipment_weight_ounces"]=>
  string(4) "0.00"
  ["ship_date"]=>
  string(10) "2017-12-27"
  ["tracking_number"]=>
  string(0) ""
  ["tracking_status"]=>
  string(9) "UNSHIPPED"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  NULL
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2017-12-28 07:47:49"
}



Shipment info for shipping easy shipment ID #223196163 is same between both arrays

*** Order info:
Array
(
    [id] => 204997513
    [external_order_identifier] => 113-0773307-7792261
    [ext_order_reference_id] => 113-0773307-7792261
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-26T10:11:35Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 18.22
    [total_excluding_tax] => 18.22
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 18.22
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Jason Ogden
    [billing_first_name] => Jason
    [billing_last_name] => 
    [billing_address] => 1505 AVENUE E
    [billing_address2] => 
    [billing_city] => EL CAMPO
    [billing_state] => TEXAS
    [billing_country] => US
    [billing_postal_code] => 77437-2945
    [billing_phone_number] => 9795416702
    [billing_email] => 5dq6z9q80kdv3lj@marketplace.amazon.com
    [buyer_email] => 5dq6z9q80kdv3lj@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Jason
                    [last_name] => Ogden
                    [address] => 1505 AVENUE E
                    [address2] => 
                    [address3] => 
                    [city] => EL CAMPO
                    [residential] => 1
                    [state] => TX
                    [province] => 
                    [country] => United States
                    [postal_code] => 77437
                    [postal_code_plus_4] => 2945
                    [phone_number] => 9795416702
                    [email] => 5dq6z9q80kdv3lj@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack 100% Hardwood Grilling Smoker Pellets, 100% Cherry, 20 LB (New)
                                    [sku] => 20cherry100
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 336.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 18.22
                                    [unit_price] => 18.22
                                    [ext_line_item_id] => 30709535738922
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 61391ba3-97fc-474f-b142-7949d19e57ae
                                    [order_source_id] => 214334583
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 204997513
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 207063973
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 336.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 6
                            [created_at] => 2017-12-26T11:06:40Z
                            [updated_at] => 2017-12-28T04:40:56Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack 100% hardwood grilling smoker pellets, 100% cherry, 20 lb (new)
                            [line_item_sku] => 20cherry100
                            [address_kind] => R
                            [recipient_last_name] => ogden
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 204997513
                            [state] => TX
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-26T10:11:35Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 113-0773307-7792261
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 113-0773307-7792261
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 220738173
                    [tracking_number] => 789105773253
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 1166
                    [ship_date] => 2017-12-27
                )

        )

    [updated_at] => 2017-12-28T04:40:56Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 204997513
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for 5dq6z9q80kdv3lj@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 9934

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(5) "Jason"
  ["customer_last_name"]=>
  string(5) "Ogden"
  ["customer_email"]=>
  string(38) "5dq6z9q80kdv3lj@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(11) "Jason Ogden"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(13) "1505 AVENUE E"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(8) "EL CAMPO"
    ["address_state"]=>
    string(5) "TEXAS"
    ["address_zip"]=>
    string(10) "77437-2945"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9934"
  ["ordered_time"]=>
  string(19) "2017-12-26 10:11:35"
  ["se_order_id"]=>
  int(204997513)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "113-0773307-7792261"
  ["order_weight_ounces"]=>
  string(5) "336.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4053) "{"id":204997513,"external_order_identifier":"113-0773307-7792261","ext_order_reference_id":"113-0773307-7792261","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-26T10:11:35Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"18.22","total_excluding_tax":"18.22","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"18.22","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Jason Ogden","billing_first_name":"Jason","billing_last_name":null,"billing_address":"1505 AVENUE E","billing_address2":null,"billing_city":"EL CAMPO","billing_state":"TEXAS","billing_country":"US","billing_postal_code":"77437-2945","billing_phone_number":"9795416702","billing_email":"5dq6z9q80kdv3lj@marketplace.amazon.com","buyer_email":"5dq6z9q80kdv3lj@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Jason","last_name":"Ogden","address":"1505 AVENUE E","address2":null,"address3":null,"city":"EL CAMPO","residential":true,"state":"TX","province":null,"country":"United States","postal_code":"77437","postal_code_plus_4":"2945","phone_number":"9795416702","email":"5dq6z9q80kdv3lj@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack 100% Hardwood Grilling Smoker Pellets, 100% Cherry, 20 LB (New)","sku":"20cherry100","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"336.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"18.22","unit_price":"18.22","ext_line_item_id":"30709535738922","ext_product_id":null,"product_options":null,"uuid":"61391ba3-97fc-474f-b142-7949d19e57ae","order_source_id":214334583,"gift_message":null}],"original_order":{"id":204997513,"customer_id":33773,"store_id":70647,"order_detail_id":207063973,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"336.0","total_quantity":1,"is_international":false,"usps_shipping_zone":6,"created_at":"2017-12-26T11:06:40Z","updated_at":"2017-12-28T04:40:56Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack 100% hardwood grilling smoker pellets, 100% cherry, 20 lb (new)","line_item_sku":"20cherry100","address_kind":"R","recipient_last_name":"ogden","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":204997513,"state":"TX","owner_id":37098,"denormalized_ordered_at":"2017-12-26T10:11:35Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"113-0773307-7792261","packing_slip_generated":null,"denormalized_ext_order_reference_id":"113-0773307-7792261","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":220738173,"tracking_number":"789105773253","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":1166,"ship_date":"2017-12-27"}],"updated_at":"2017-12-28T04:40:56Z","internal_notes":"","meta_data":null,"prime_order_id":204997513,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(220738173)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(5) "336.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(1166)
      ["ship_date"]=>
      string(10) "2017-12-27"
      ["tracking_number"]=>
      string(12) "789105773253"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7307

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "6976"
    ["order_id"]=>
    string(4) "7307"
    ["se_shipment_id"]=>
    string(9) "220738173"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1166"
    ["shipment_weight_ounces"]=>
    string(6) "336.00"
    ["ship_date"]=>
    string(10) "2017-12-27"
    ["tracking_number"]=>
    string(12) "789105773253"
    ["tracking_status"]=>
    string(9) "DELIVERED"
    ["tracking_status_code"]=>
    string(2) "DL"
    ["tracking_status_description"]=>
    string(9) "Delivered"
    ["estimated_delivery_time"]=>
    string(19) "2017-12-29 00:00:00"
    ["actual_delivery_time"]=>
    string(19) "2017-12-29 19:48:05"
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:13"
  }
}


shipmentDBRows:
array(1) {
  [220738173]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "6976"
    ["order_id"]=>
    string(4) "7307"
    ["se_shipment_id"]=>
    string(9) "220738173"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1166"
    ["shipment_weight_ounces"]=>
    string(6) "336.00"
    ["ship_date"]=>
    string(10) "2017-12-27"
    ["tracking_number"]=>
    string(12) "789105773253"
    ["tracking_status"]=>
    string(9) "DELIVERED"
    ["tracking_status_code"]=>
    string(2) "DL"
    ["tracking_status_description"]=>
    string(9) "Delivered"
    ["estimated_delivery_time"]=>
    string(19) "2017-12-29 00:00:00"
    ["actual_delivery_time"]=>
    string(19) "2017-12-29 19:48:05"
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:13"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(220738173)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(5) "336.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(1166)
    ["ship_date"]=>
    string(10) "2017-12-27"
    ["tracking_number"]=>
    string(12) "789105773253"
  }
}

Shipment info shipping easy shipment ID #220738173

From API:
array(7) {
  ["se_shipment_id"]=>
  int(220738173)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(5) "336.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(1166)
  ["ship_date"]=>
  string(10) "2017-12-27"
  ["tracking_number"]=>
  string(12) "789105773253"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "6976"
  ["order_id"]=>
  string(4) "7307"
  ["se_shipment_id"]=>
  string(9) "220738173"
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  string(4) "1166"
  ["shipment_weight_ounces"]=>
  string(6) "336.00"
  ["ship_date"]=>
  string(10) "2017-12-27"
  ["tracking_number"]=>
  string(12) "789105773253"
  ["tracking_status"]=>
  string(9) "DELIVERED"
  ["tracking_status_code"]=>
  string(2) "DL"
  ["tracking_status_description"]=>
  string(9) "Delivered"
  ["estimated_delivery_time"]=>
  string(19) "2017-12-29 00:00:00"
  ["actual_delivery_time"]=>
  string(19) "2017-12-29 19:48:05"
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:13"
}



Shipment info for shipping easy shipment ID #220738173 is same between both arrays

*** Order info:
Array
(
    [id] => 206810683
    [external_order_identifier] => 3937
    [ext_order_reference_id] => 3937
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-28T04:24:40Z
    [order_status] => drop_shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 62.00
    [total_excluding_tax] => 0.00
    [discount_amount] => 7.00
    [coupon_discount] => 7.00
    [subtotal_including_tax] => 0.00
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => 
    [billing_first_name] => Gene
    [billing_last_name] => Sheely
    [billing_address] => 8520 County Road 25 SW
    [billing_address2] => 
    [billing_city] => Byron
    [billing_state] => MN
    [billing_country] => US
    [billing_postal_code] => 55920
    [billing_phone_number] => 5072542965
    [billing_email] => genesheely@gmail.com
    [buyer_email] => genesheely@gmail.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Gene
                    [last_name] => Sheely
                    [address] => 8520 County Road 25 SW
                    [address2] => 
                    [address3] => 
                    [city] => Byron
                    [residential] => 1
                    [state] => MN
                    [province] => 
                    [country] => United States
                    [postal_code] => 55920
                    [postal_code_plus_4] => 6321
                    [phone_number] => 5072542965
                    [email] => genesheely@gmail.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 0
                    [shipping_method] => Free Shipping - No PO Boxes or APO
                    [items_shipped] => 0
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Italian (Garlic Spice) Pellets
                                    [sku] => 20garlic
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 336.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 23.00
                                    [price_excluding_tax] => 0.00
                                    [unit_price] => 23.00
                                    [ext_line_item_id] => 
                                    [ext_product_id] => 82522284
                                    [product_options] => Array
                                        (
                                            [Weight] => 20 Pound Bag
                                            [Add Smokin Wedgie Pellet Smoker] => Array
                                                (
                                                )

                                            [Add Handy Camel Bag Clip] => Array
                                                (
                                                )

                                            [Add Gourmet Duck Fat Spray Can(s) Here (7 Ounce)] => Array
                                                (
                                                )

                                            [Add Smokin Wedgie Leg Kit for Flat Bottom Smokers] => Array
                                                (
                                                )

                                            [BBQ Bottle Opener] => Array
                                                (
                                                )

                                        )

                                    [uuid] => d27d601b-31ec-4f47-a007-6eb42506cc3e
                                    [order_source_id] => 216307883
                                    [gift_message] => 
                                )

                            [1] => Array
                                (
                                    [item_name] => 100% Oak Pellets
                                    [sku] => 20100oak
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 320.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 23.00
                                    [price_excluding_tax] => 0.00
                                    [unit_price] => 23.00
                                    [ext_line_item_id] => 
                                    [ext_product_id] => 82522240
                                    [product_options] => Array
                                        (
                                            [Weight] => 20 Pound Bag
                                            [BBQ Bottle Opener] => Array
                                                (
                                                )

                                        )

                                    [uuid] => 617365d0-2b3f-4176-ae11-efcc62dd6852
                                    [order_source_id] => 216307883
                                    [gift_message] => 
                                )

                            [2] => Array
                                (
                                    [item_name] => 100% Cherry Pellets
                                    [sku] => 20100cherry
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 336.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 23.00
                                    [price_excluding_tax] => 0.00
                                    [unit_price] => 23.00
                                    [ext_line_item_id] => 
                                    [ext_product_id] => 82522223
                                    [product_options] => Array
                                        (
                                            [Weight] => 20 Pound Bag
                                            [Add a Flavor Magnet and never forget what's in your hopper] => Array
                                                (
                                                )

                                            [Add Smokin Wedgie Pellet Smoker] => Array
                                                (
                                                )

                                            [Add Handy Camel Bag Clip] => Array
                                                (
                                                )

                                            [Add Gourmet Duck Fat Spray Can(s) Here (7 Ounce)] => Array
                                                (
                                                )

                                            [Add Smokin Wedgie Leg Kit for Flat Bottom Smokers] => Array
                                                (
                                                )

                                            [Add BBQ Bottle Opener] => Array
                                                (
                                                )

                                        )

                                    [uuid] => e5cebb01-c9b9-4aba-9ba2-7d04e3c6c74d
                                    [order_source_id] => 216307883
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 206810683
                            [customer_id] => 33773
                            [store_id] => 70642
                            [order_detail_id] => 208911143
                            [workflow_state] => drop_shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 976.0
                            [total_quantity] => 3
                            [is_international] => 
                            [usps_shipping_zone] => 2
                            [created_at] => 2017-12-28T03:31:37Z
                            [updated_at] => 2017-12-28T05:09:05Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_shipment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136971
                            [internal_notes] => 
                            [line_item_name] => 
                            [line_item_sku] => 
                            [address_kind] => R
                            [recipient_last_name] => sheely
                            [recipient_requested_service] => free shipping - no po boxes or apo
                            [gift] => 
                            [prime_order_id] => 206810683
                            [state] => MN
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-28T04:24:40Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 3937
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 3937
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 276833075f862f916ca417ff8ccb9564
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 223367143
                    [tracking_number] => Shipping Speedee Dec 28 - Will update tracking information
                    [carrier_key] => USPS
                    [carrier_service_key] => 
                    [shipment_cost] => 
                    [ship_date] => 2017-12-27
                )

        )

    [updated_at] => 2017-12-28T05:09:05Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 206810683
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for genesheely@gmail.com) was previously inserted to the DB.
Existing customer ID: 9972

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(4) "Gene"
  ["customer_last_name"]=>
  string(6) "Sheely"
  ["customer_email"]=>
  string(20) "genesheely@gmail.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  NULL
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(22) "8520 County Road 25 SW"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(5) "Byron"
    ["address_state"]=>
    string(2) "MN"
    ["address_zip"]=>
    string(5) "55920"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9972"
  ["ordered_time"]=>
  string(19) "2017-12-28 04:24:40"
  ["se_order_id"]=>
  int(206810683)
  ["se_order_status"]=>
  string(12) "drop_shipped"
  ["store_ordered_from"]=>
  string(5) "Ecwid"
  ["store_order_id"]=>
  string(4) "3937"
  ["order_weight_ounces"]=>
  string(5) "976.0"
  ["store_order_status"]=>
  string(17) "awaiting_shipment"
  ["se_api_response"]=>
  string(5214) "{"id":206810683,"external_order_identifier":"3937","ext_order_reference_id":"3937","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-28T04:24:40Z","order_status":"drop_shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"62.00","total_excluding_tax":"0.00","discount_amount":"7.00","coupon_discount":"7.00","subtotal_including_tax":"0.00","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":null,"billing_first_name":"Gene","billing_last_name":"Sheely","billing_address":"8520 County Road 25 SW","billing_address2":null,"billing_city":"Byron","billing_state":"MN","billing_country":"US","billing_postal_code":"55920","billing_phone_number":"5072542965","billing_email":"genesheely@gmail.com","buyer_email":"genesheely@gmail.com","recipients":[{"company":"","first_name":"Gene","last_name":"Sheely","address":"8520 County Road 25 SW","address2":null,"address3":null,"city":"Byron","residential":true,"state":"MN","province":null,"country":"United States","postal_code":"55920","postal_code_plus_4":"6321","phone_number":"5072542965","email":"genesheely@gmail.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":0,"shipping_method":"Free Shipping - No PO Boxes or APO","items_shipped":0,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Italian (Garlic Spice) Pellets","sku":"20garlic","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"336.0","quantity":1,"total_excluding_tax":"23.00","price_excluding_tax":"0.00","unit_price":"23.00","ext_line_item_id":null,"ext_product_id":"82522284","product_options":{"Weight":"20 Pound Bag","Add Smokin Wedgie Pellet Smoker":[],"Add Handy Camel Bag Clip":[],"Add Gourmet Duck Fat Spray Can(s) Here (7 Ounce)":[],"Add Smokin Wedgie Leg Kit for Flat Bottom Smokers":[],"BBQ Bottle Opener":[]},"uuid":"d27d601b-31ec-4f47-a007-6eb42506cc3e","order_source_id":216307883,"gift_message":null},{"item_name":"100% Oak Pellets","sku":"20100oak","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"320.0","quantity":1,"total_excluding_tax":"23.00","price_excluding_tax":"0.00","unit_price":"23.00","ext_line_item_id":null,"ext_product_id":"82522240","product_options":{"Weight":"20 Pound Bag","BBQ Bottle Opener":[]},"uuid":"617365d0-2b3f-4176-ae11-efcc62dd6852","order_source_id":216307883,"gift_message":null},{"item_name":"100% Cherry Pellets","sku":"20100cherry","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"336.0","quantity":1,"total_excluding_tax":"23.00","price_excluding_tax":"0.00","unit_price":"23.00","ext_line_item_id":null,"ext_product_id":"82522223","product_options":{"Weight":"20 Pound Bag","Add a Flavor Magnet and never forget what's in your hopper":[],"Add Smokin Wedgie Pellet Smoker":[],"Add Handy Camel Bag Clip":[],"Add Gourmet Duck Fat Spray Can(s) Here (7 Ounce)":[],"Add Smokin Wedgie Leg Kit for Flat Bottom Smokers":[],"Add BBQ Bottle Opener":[]},"uuid":"e5cebb01-c9b9-4aba-9ba2-7d04e3c6c74d","order_source_id":216307883,"gift_message":null}],"original_order":{"id":206810683,"customer_id":33773,"store_id":70642,"order_detail_id":208911143,"workflow_state":"drop_shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"976.0","total_quantity":3,"is_international":false,"usps_shipping_zone":2,"created_at":"2017-12-28T03:31:37Z","updated_at":"2017-12-28T05:09:05Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_shipment","drop_ship_tracking_number":null,"category_id":136971,"internal_notes":"","line_item_name":null,"line_item_sku":null,"address_kind":"R","recipient_last_name":"sheely","recipient_requested_service":"free shipping - no po boxes or apo","gift":false,"prime_order_id":206810683,"state":"MN","owner_id":37098,"denormalized_ordered_at":"2017-12-28T04:24:40Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"3937","packing_slip_generated":null,"denormalized_ext_order_reference_id":"3937","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"276833075f862f916ca417ff8ccb9564","shipments":[{"id":223367143,"tracking_number":"Shipping Speedee Dec 28 - Will update tracking information","carrier_key":"USPS","carrier_service_key":null,"shipment_cost":null,"ship_date":"2017-12-27"}],"updated_at":"2017-12-28T05:09:05Z","internal_notes":"","meta_data":null,"prime_order_id":206810683,"is_prime":null,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(223367143)
      ["carrier_key"]=>
      string(7) "SPEEDEE"
      ["shipment_weight_ounces"]=>
      string(5) "976.0"
      ["carrier_service_key"]=>
      NULL
      ["shipment_cost"]=>
      NULL
      ["ship_date"]=>
      string(10) "2017-12-27"
      ["tracking_number"]=>
      string(0) ""
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7364

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7024"
    ["order_id"]=>
    string(4) "7364"
    ["se_shipment_id"]=>
    string(9) "223367143"
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["shipment_weight_ounces"]=>
    string(6) "976.00"
    ["ship_date"]=>
    string(10) "2017-12-27"
    ["tracking_number"]=>
    string(0) ""
    ["tracking_status"]=>
    string(9) "UNSHIPPED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    NULL
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2017-12-28 07:47:49"
  }
}


shipmentDBRows:
array(1) {
  [223367143]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7024"
    ["order_id"]=>
    string(4) "7364"
    ["se_shipment_id"]=>
    string(9) "223367143"
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["shipment_weight_ounces"]=>
    string(6) "976.00"
    ["ship_date"]=>
    string(10) "2017-12-27"
    ["tracking_number"]=>
    string(0) ""
    ["tracking_status"]=>
    string(9) "UNSHIPPED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    NULL
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2017-12-28 07:47:49"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(223367143)
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["shipment_weight_ounces"]=>
    string(5) "976.0"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["ship_date"]=>
    string(10) "2017-12-27"
    ["tracking_number"]=>
    string(0) ""
  }
}

Shipment info shipping easy shipment ID #223367143

From API:
array(7) {
  ["se_shipment_id"]=>
  int(223367143)
  ["carrier_key"]=>
  string(7) "SPEEDEE"
  ["shipment_weight_ounces"]=>
  string(5) "976.0"
  ["carrier_service_key"]=>
  NULL
  ["shipment_cost"]=>
  NULL
  ["ship_date"]=>
  string(10) "2017-12-27"
  ["tracking_number"]=>
  string(0) ""
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7024"
  ["order_id"]=>
  string(4) "7364"
  ["se_shipment_id"]=>
  string(9) "223367143"
  ["carrier_key"]=>
  string(7) "SPEEDEE"
  ["carrier_service_key"]=>
  NULL
  ["shipment_cost"]=>
  NULL
  ["shipment_weight_ounces"]=>
  string(6) "976.00"
  ["ship_date"]=>
  string(10) "2017-12-27"
  ["tracking_number"]=>
  string(0) ""
  ["tracking_status"]=>
  string(9) "UNSHIPPED"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  NULL
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2017-12-28 07:47:49"
}



Shipment info for shipping easy shipment ID #223367143 is same between both arrays

*** Order info:
Array
(
    [id] => 206144293
    [external_order_identifier] => 112-1049773-7482638
    [ext_order_reference_id] => 112-1049773-7482638
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-27T15:23:01Z
    [order_status] => drop_shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 33.00
    [total_excluding_tax] => 33.00
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 33.00
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Anna Mrdutt
    [billing_first_name] => Anna
    [billing_last_name] => Dehmer
    [billing_address] => 22274 183RD ST NW
    [billing_address2] => 
    [billing_city] => BIG LAKE
    [billing_state] => MN
    [billing_country] => US
    [billing_postal_code] => 55309-8283
    [billing_phone_number] => 612.816.4256
    [billing_email] => 1hz3dpqdf0vbkdc@marketplace.amazon.com
    [buyer_email] => 1hz3dpqdf0vbkdc@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Anna
                    [last_name] => Mrdutt
                    [address] => 22274 183RD ST NW
                    [address2] => 
                    [address3] => 
                    [city] => BIG LAKE
                    [residential] => 1
                    [state] => MN
                    [province] => 
                    [country] => United States
                    [postal_code] => 55309
                    [postal_code_plus_4] => 8283
                    [phone_number] => 612.816.4256
                    [email] => 1hz3dpqdf0vbkdc@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack 5086 40-Pound BBQ Grilling Wood Pellets, Competition Blend Maple, Hickory and Cherry Blend (New)
                                    [sku] => 40mhccomp1
                                    [bin_picking_number] => 40mhcmaster
                                    [bundled_product] => 
                                    [weight_in_ounces] => 656.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 33.00
                                    [unit_price] => 33.00
                                    [ext_line_item_id] => 14389528960962
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => e44af9af-5bce-422f-bc36-5fd950069149
                                    [order_source_id] => 215586433
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 206144293
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 208230763
                            [workflow_state] => drop_shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 656.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 2
                            [created_at] => 2017-12-27T16:06:44Z
                            [updated_at] => 2017-12-28T05:11:15Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136971
                            [internal_notes] => 
                            [line_item_name] => lumber jack 5086 40-pound bbq grilling wood pellets, competition blend maple, hickory and cherry blend (new)
                            [line_item_sku] => 40mhccomp1
                            [address_kind] => R
                            [recipient_last_name] => mrdutt
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 206144293
                            [state] => MN
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-27T15:23:01Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 40mhcmaster
                            [denormalized_ext_order_id] => 112-1049773-7482638
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 112-1049773-7482638
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 223367113
                    [tracking_number] => Shipping Speedee Dec 28 - Will update tracking information
                    [carrier_key] => USPS
                    [carrier_service_key] => 
                    [shipment_cost] => 
                    [ship_date] => 2017-12-27
                )

        )

    [updated_at] => 2017-12-28T05:11:15Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 206144293
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for 1hz3dpqdf0vbkdc@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 9973

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(4) "Anna"
  ["customer_last_name"]=>
  string(6) "Mrdutt"
  ["customer_email"]=>
  string(38) "1hz3dpqdf0vbkdc@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(11) "Anna Mrdutt"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(17) "22274 183RD ST NW"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(8) "BIG LAKE"
    ["address_state"]=>
    string(2) "MN"
    ["address_zip"]=>
    string(10) "55309-8283"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9973"
  ["ordered_time"]=>
  string(19) "2017-12-27 15:23:01"
  ["se_order_id"]=>
  int(206144293)
  ["se_order_status"]=>
  string(12) "drop_shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "112-1049773-7482638"
  ["order_weight_ounces"]=>
  string(5) "656.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4193) "{"id":206144293,"external_order_identifier":"112-1049773-7482638","ext_order_reference_id":"112-1049773-7482638","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-27T15:23:01Z","order_status":"drop_shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"33.00","total_excluding_tax":"33.00","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"33.00","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Anna Mrdutt","billing_first_name":"Anna","billing_last_name":"Dehmer","billing_address":"22274 183RD ST NW","billing_address2":null,"billing_city":"BIG LAKE","billing_state":"MN","billing_country":"US","billing_postal_code":"55309-8283","billing_phone_number":"612.816.4256","billing_email":"1hz3dpqdf0vbkdc@marketplace.amazon.com","buyer_email":"1hz3dpqdf0vbkdc@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Anna","last_name":"Mrdutt","address":"22274 183RD ST NW","address2":null,"address3":null,"city":"BIG LAKE","residential":true,"state":"MN","province":null,"country":"United States","postal_code":"55309","postal_code_plus_4":"8283","phone_number":"612.816.4256","email":"1hz3dpqdf0vbkdc@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack 5086 40-Pound BBQ Grilling Wood Pellets, Competition Blend Maple, Hickory and Cherry Blend (New)","sku":"40mhccomp1","bin_picking_number":"40mhcmaster","bundled_product":null,"weight_in_ounces":"656.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"33.00","unit_price":"33.00","ext_line_item_id":"14389528960962","ext_product_id":null,"product_options":null,"uuid":"e44af9af-5bce-422f-bc36-5fd950069149","order_source_id":215586433,"gift_message":null}],"original_order":{"id":206144293,"customer_id":33773,"store_id":70647,"order_detail_id":208230763,"workflow_state":"drop_shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"656.0","total_quantity":1,"is_international":false,"usps_shipping_zone":2,"created_at":"2017-12-27T16:06:44Z","updated_at":"2017-12-28T05:11:15Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136971,"internal_notes":"","line_item_name":"lumber jack 5086 40-pound bbq grilling wood pellets, competition blend maple, hickory and cherry blend (new)","line_item_sku":"40mhccomp1","address_kind":"R","recipient_last_name":"mrdutt","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":206144293,"state":"MN","owner_id":37098,"denormalized_ordered_at":"2017-12-27T15:23:01Z","grab_bag":[],"line_item_bin_picking_number":"40mhcmaster","denormalized_ext_order_id":"112-1049773-7482638","packing_slip_generated":null,"denormalized_ext_order_reference_id":"112-1049773-7482638","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":223367113,"tracking_number":"Shipping Speedee Dec 28 - Will update tracking information","carrier_key":"USPS","carrier_service_key":null,"shipment_cost":null,"ship_date":"2017-12-27"}],"updated_at":"2017-12-28T05:11:15Z","internal_notes":"","meta_data":null,"prime_order_id":206144293,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(223367113)
      ["carrier_key"]=>
      string(7) "SPEEDEE"
      ["shipment_weight_ounces"]=>
      string(5) "656.0"
      ["carrier_service_key"]=>
      NULL
      ["shipment_cost"]=>
      NULL
      ["ship_date"]=>
      string(10) "2017-12-27"
      ["tracking_number"]=>
      string(0) ""
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7365

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7025"
    ["order_id"]=>
    string(4) "7365"
    ["se_shipment_id"]=>
    string(9) "223367113"
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["shipment_weight_ounces"]=>
    string(6) "656.00"
    ["ship_date"]=>
    string(10) "2017-12-27"
    ["tracking_number"]=>
    string(0) ""
    ["tracking_status"]=>
    string(9) "UNSHIPPED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    NULL
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2017-12-28 07:47:49"
  }
}


shipmentDBRows:
array(1) {
  [223367113]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7025"
    ["order_id"]=>
    string(4) "7365"
    ["se_shipment_id"]=>
    string(9) "223367113"
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["shipment_weight_ounces"]=>
    string(6) "656.00"
    ["ship_date"]=>
    string(10) "2017-12-27"
    ["tracking_number"]=>
    string(0) ""
    ["tracking_status"]=>
    string(9) "UNSHIPPED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    NULL
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2017-12-28 07:47:49"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(223367113)
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["shipment_weight_ounces"]=>
    string(5) "656.0"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["ship_date"]=>
    string(10) "2017-12-27"
    ["tracking_number"]=>
    string(0) ""
  }
}

Shipment info shipping easy shipment ID #223367113

From API:
array(7) {
  ["se_shipment_id"]=>
  int(223367113)
  ["carrier_key"]=>
  string(7) "SPEEDEE"
  ["shipment_weight_ounces"]=>
  string(5) "656.0"
  ["carrier_service_key"]=>
  NULL
  ["shipment_cost"]=>
  NULL
  ["ship_date"]=>
  string(10) "2017-12-27"
  ["tracking_number"]=>
  string(0) ""
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7025"
  ["order_id"]=>
  string(4) "7365"
  ["se_shipment_id"]=>
  string(9) "223367113"
  ["carrier_key"]=>
  string(7) "SPEEDEE"
  ["carrier_service_key"]=>
  NULL
  ["shipment_cost"]=>
  NULL
  ["shipment_weight_ounces"]=>
  string(6) "656.00"
  ["ship_date"]=>
  string(10) "2017-12-27"
  ["tracking_number"]=>
  string(0) ""
  ["tracking_status"]=>
  string(9) "UNSHIPPED"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  NULL
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2017-12-28 07:47:49"
}



Shipment info for shipping easy shipment ID #223367113 is same between both arrays

*** Order info:
Array
(
    [id] => 206692203
    [external_order_identifier] => 111-7619813-3994662
    [ext_order_reference_id] => 111-7619813-3994662
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-28T00:32:06Z
    [order_status] => drop_shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 29.99
    [total_excluding_tax] => 29.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 29.99
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => VERLA SHAW
    [billing_first_name] => Linda
    [billing_last_name] => Stern
    [billing_address] => 9174 ALOHA LN
    [billing_address2] => 
    [billing_city] => BREEZY POINT
    [billing_state] => MN
    [billing_country] => US
    [billing_postal_code] => 56472-3363
    [billing_phone_number] => 3202931754
    [billing_email] => 3fk2hp7h89z220k@marketplace.amazon.com
    [buyer_email] => 3fk2hp7h89z220k@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => VERLA
                    [last_name] => SHAW
                    [address] => 9174 ALOHA LN
                    [address2] => 
                    [address3] => 
                    [city] => BREEZY POINT
                    [residential] => 1
                    [state] => MN
                    [province] => 
                    [country] => United States
                    [postal_code] => 56472
                    [postal_code_plus_4] => 3363
                    [phone_number] => 3202931754
                    [email] => 3fk2hp7h89z220k@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Priority Mail if Qty 1 (New)
                                    [sku] => 1poundvariety
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 112.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 29.99
                                    [unit_price] => 29.99
                                    [ext_line_item_id] => 51185172171082
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 4ff803c2-f026-484e-9031-62f54f2bf9dc
                                    [order_source_id] => 216176873
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 206692203
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 208791823
                            [workflow_state] => drop_shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 112.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 2
                            [created_at] => 2017-12-28T01:06:29Z
                            [updated_at] => 2017-12-28T05:11:15Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136971
                            [internal_notes] => 
                            [line_item_name] => lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped priority mail if qty 1 (new)
                            [line_item_sku] => 1poundvariety
                            [address_kind] => R
                            [recipient_last_name] => shaw
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 206692203
                            [state] => MN
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-28T00:32:06Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 111-7619813-3994662
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 111-7619813-3994662
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 223367123
                    [tracking_number] => Shipping Speedee Dec 28 - Will update tracking information
                    [carrier_key] => USPS
                    [carrier_service_key] => 
                    [shipment_cost] => 
                    [ship_date] => 2017-12-27
                )

        )

    [updated_at] => 2017-12-28T05:11:15Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 206692203
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for 3fk2hp7h89z220k@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 9974

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(5) "VERLA"
  ["customer_last_name"]=>
  string(4) "SHAW"
  ["customer_email"]=>
  string(38) "3fk2hp7h89z220k@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(10) "VERLA SHAW"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(13) "9174 ALOHA LN"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(12) "BREEZY POINT"
    ["address_state"]=>
    string(2) "MN"
    ["address_zip"]=>
    string(10) "56472-3363"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9974"
  ["ordered_time"]=>
  string(19) "2017-12-28 00:32:06"
  ["se_order_id"]=>
  int(206692203)
  ["se_order_status"]=>
  string(12) "drop_shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "111-7619813-3994662"
  ["order_weight_ounces"]=>
  string(5) "112.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4307) "{"id":206692203,"external_order_identifier":"111-7619813-3994662","ext_order_reference_id":"111-7619813-3994662","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-28T00:32:06Z","order_status":"drop_shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"29.99","total_excluding_tax":"29.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"29.99","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"VERLA SHAW","billing_first_name":"Linda","billing_last_name":"Stern","billing_address":"9174 ALOHA LN","billing_address2":null,"billing_city":"BREEZY POINT","billing_state":"MN","billing_country":"US","billing_postal_code":"56472-3363","billing_phone_number":"3202931754","billing_email":"3fk2hp7h89z220k@marketplace.amazon.com","buyer_email":"3fk2hp7h89z220k@marketplace.amazon.com","recipients":[{"company":null,"first_name":"VERLA","last_name":"SHAW","address":"9174 ALOHA LN","address2":null,"address3":null,"city":"BREEZY POINT","residential":true,"state":"MN","province":null,"country":"United States","postal_code":"56472","postal_code_plus_4":"3363","phone_number":"3202931754","email":"3fk2hp7h89z220k@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Priority Mail if Qty 1 (New)","sku":"1poundvariety","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"112.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"29.99","unit_price":"29.99","ext_line_item_id":"51185172171082","ext_product_id":null,"product_options":null,"uuid":"4ff803c2-f026-484e-9031-62f54f2bf9dc","order_source_id":216176873,"gift_message":null}],"original_order":{"id":206692203,"customer_id":33773,"store_id":70647,"order_detail_id":208791823,"workflow_state":"drop_shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"112.0","total_quantity":1,"is_international":false,"usps_shipping_zone":2,"created_at":"2017-12-28T01:06:29Z","updated_at":"2017-12-28T05:11:15Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136971,"internal_notes":"","line_item_name":"lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped priority mail if qty 1 (new)","line_item_sku":"1poundvariety","address_kind":"R","recipient_last_name":"shaw","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":206692203,"state":"MN","owner_id":37098,"denormalized_ordered_at":"2017-12-28T00:32:06Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"111-7619813-3994662","packing_slip_generated":null,"denormalized_ext_order_reference_id":"111-7619813-3994662","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":223367123,"tracking_number":"Shipping Speedee Dec 28 - Will update tracking information","carrier_key":"USPS","carrier_service_key":null,"shipment_cost":null,"ship_date":"2017-12-27"}],"updated_at":"2017-12-28T05:11:15Z","internal_notes":"","meta_data":null,"prime_order_id":206692203,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(223367123)
      ["carrier_key"]=>
      string(7) "SPEEDEE"
      ["shipment_weight_ounces"]=>
      string(5) "112.0"
      ["carrier_service_key"]=>
      NULL
      ["shipment_cost"]=>
      NULL
      ["ship_date"]=>
      string(10) "2017-12-27"
      ["tracking_number"]=>
      string(0) ""
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7366

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7026"
    ["order_id"]=>
    string(4) "7366"
    ["se_shipment_id"]=>
    string(9) "223367123"
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["shipment_weight_ounces"]=>
    string(6) "112.00"
    ["ship_date"]=>
    string(10) "2017-12-27"
    ["tracking_number"]=>
    string(0) ""
    ["tracking_status"]=>
    string(9) "UNSHIPPED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    NULL
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2017-12-28 07:47:49"
  }
}


shipmentDBRows:
array(1) {
  [223367123]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7026"
    ["order_id"]=>
    string(4) "7366"
    ["se_shipment_id"]=>
    string(9) "223367123"
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["shipment_weight_ounces"]=>
    string(6) "112.00"
    ["ship_date"]=>
    string(10) "2017-12-27"
    ["tracking_number"]=>
    string(0) ""
    ["tracking_status"]=>
    string(9) "UNSHIPPED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    NULL
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2017-12-28 07:47:49"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(223367123)
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["shipment_weight_ounces"]=>
    string(5) "112.0"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["ship_date"]=>
    string(10) "2017-12-27"
    ["tracking_number"]=>
    string(0) ""
  }
}

Shipment info shipping easy shipment ID #223367123

From API:
array(7) {
  ["se_shipment_id"]=>
  int(223367123)
  ["carrier_key"]=>
  string(7) "SPEEDEE"
  ["shipment_weight_ounces"]=>
  string(5) "112.0"
  ["carrier_service_key"]=>
  NULL
  ["shipment_cost"]=>
  NULL
  ["ship_date"]=>
  string(10) "2017-12-27"
  ["tracking_number"]=>
  string(0) ""
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7026"
  ["order_id"]=>
  string(4) "7366"
  ["se_shipment_id"]=>
  string(9) "223367123"
  ["carrier_key"]=>
  string(7) "SPEEDEE"
  ["carrier_service_key"]=>
  NULL
  ["shipment_cost"]=>
  NULL
  ["shipment_weight_ounces"]=>
  string(6) "112.00"
  ["ship_date"]=>
  string(10) "2017-12-27"
  ["tracking_number"]=>
  string(0) ""
  ["tracking_status"]=>
  string(9) "UNSHIPPED"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  NULL
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2017-12-28 07:47:49"
}



Shipment info for shipping easy shipment ID #223367123 is same between both arrays

*** Order info:
Array
(
    [id] => 206486543
    [external_order_identifier] => 114-7492268-1661052
    [ext_order_reference_id] => 114-7492268-1661052
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-27T19:51:13Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 112.00
    [total_excluding_tax] => 112.00
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 112.00
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => jason newton
    [billing_first_name] => jason
    [billing_last_name] => 
    [billing_address] => 698 REDSTONE HILL RD
    [billing_address2] => 
    [billing_city] => BRISTOL
    [billing_state] => CT
    [billing_country] => US
    [billing_postal_code] => 06010-7909
    [billing_phone_number] => 8606377541
    [billing_email] => msm816g8xq4m0m2@marketplace.amazon.com
    [buyer_email] => msm816g8xq4m0m2@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => jason
                    [last_name] => newton
                    [address] => 698 REDSTONE HILL RD
                    [address2] => 
                    [address3] => 
                    [city] => BRISTOL
                    [residential] => 1
                    [state] => CT
                    [province] => 
                    [country] => United States
                    [postal_code] => 06010
                    [postal_code_plus_4] => 7909
                    [phone_number] => 8606377541
                    [email] => msm816g8xq4m0m2@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => 120 Pound Lumber Jack BBQ Smoker Pellets Variety Pack - Pick 6 x 20-Pound Bags (See Description for Flavors) (New)
                                    [sku] => 12020variety
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 1920.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 112.00
                                    [unit_price] => 112.00
                                    [ext_line_item_id] => 32446183286410
                                    [ext_product_id] => 
                                    [product_options] => Array
                                        (
                                            [Select Bag # 1] => 
                                            [Color (Select Bag # 1)] => 
                                            [Font (Select Bag # 1)] => 
                                            [Select Bag # 2] => 
                                            [Color (Select Bag # 2)] => 
                                            [Font (Select Bag # 2)] => 
                                            [Select Bag # 3] => 
                                            [Color (Select Bag # 3)] => 
                                            [Font (Select Bag # 3)] => 
                                            [Select Bag # 4] => 
                                            [Color (Select Bag # 4)] => 
                                            [Font (Select Bag # 4)] => 
                                            [Select Bag # 5] => 
                                            [Color (Select Bag # 5)] => 
                                            [Font (Select Bag # 5)] => 
                                            [Select Bag # 6] => 
                                            [Color (Select Bag # 6)] => 
                                            [Font (Select Bag # 6)] => 
                                            [Select Wedgie] => 
                                            [Color (Select Wedgie)] => 
                                            [Font (Select Wedgie)] => 
                                            [Wedgie Feet] => 
                                            [Color (Wedgie Feet)] => 
                                            [Font (Wedgie Feet)] => 
                                            [Duck Fat] => 
                                            [Color (Duck Fat)] => 
                                            [Font (Duck Fat)] => 
                                        )

                                    [uuid] => 26ebb2ea-bf1f-4f4d-83fc-fd02fba4edea
                                    [order_source_id] => 215951513
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 206486543
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 208580503
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 1920.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-27T21:06:43Z
                            [updated_at] => 2017-12-28T05:40:47Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => 120 pound lumber jack bbq smoker pellets variety pack - pick 6 x 20-pound bags (see description for flavors) (new)
                            [line_item_sku] => 12020variety
                            [address_kind] => R
                            [recipient_last_name] => newton
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 206486543
                            [state] => CT
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-27T19:51:13Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 114-7492268-1661052
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 114-7492268-1661052
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 223374133
                    [tracking_number] => 789137283602
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 1596
                    [ship_date] => 2017-12-28
                )

            [1] => Array
                (
                    [id] => 223374013
                    [tracking_number] => 789137279183
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 1596
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-28T05:40:47Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 206486543
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for msm816g8xq4m0m2@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 7900

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(5) "jason"
  ["customer_last_name"]=>
  string(6) "newton"
  ["customer_email"]=>
  string(38) "msm816g8xq4m0m2@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(12) "jason newton"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(20) "698 REDSTONE HILL RD"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(7) "BRISTOL"
    ["address_state"]=>
    string(2) "CT"
    ["address_zip"]=>
    string(10) "06010-7909"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "7900"
  ["ordered_time"]=>
  string(19) "2017-12-27 19:51:13"
  ["se_order_id"]=>
  int(206486543)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "114-7492268-1661052"
  ["order_weight_ounces"]=>
  string(6) "1920.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(5003) "{"id":206486543,"external_order_identifier":"114-7492268-1661052","ext_order_reference_id":"114-7492268-1661052","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-27T19:51:13Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"112.00","total_excluding_tax":"112.00","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"112.00","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"jason newton","billing_first_name":"jason","billing_last_name":null,"billing_address":"698 REDSTONE HILL RD","billing_address2":null,"billing_city":"BRISTOL","billing_state":"CT","billing_country":"US","billing_postal_code":"06010-7909","billing_phone_number":"8606377541","billing_email":"msm816g8xq4m0m2@marketplace.amazon.com","buyer_email":"msm816g8xq4m0m2@marketplace.amazon.com","recipients":[{"company":null,"first_name":"jason","last_name":"newton","address":"698 REDSTONE HILL RD","address2":null,"address3":null,"city":"BRISTOL","residential":true,"state":"CT","province":null,"country":"United States","postal_code":"06010","postal_code_plus_4":"7909","phone_number":"8606377541","email":"msm816g8xq4m0m2@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"120 Pound Lumber Jack BBQ Smoker Pellets Variety Pack - Pick 6 x 20-Pound Bags (See Description for Flavors) (New)","sku":"12020variety","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"1920.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"112.00","unit_price":"112.00","ext_line_item_id":"32446183286410","ext_product_id":null,"product_options":{"Select Bag # 1":null,"Color (Select Bag # 1)":null,"Font (Select Bag # 1)":null,"Select Bag # 2":null,"Color (Select Bag # 2)":null,"Font (Select Bag # 2)":null,"Select Bag # 3":null,"Color (Select Bag # 3)":null,"Font (Select Bag # 3)":null,"Select Bag # 4":null,"Color (Select Bag # 4)":null,"Font (Select Bag # 4)":null,"Select Bag # 5":null,"Color (Select Bag # 5)":null,"Font (Select Bag # 5)":null,"Select Bag # 6":null,"Color (Select Bag # 6)":null,"Font (Select Bag # 6)":null,"Select Wedgie":null,"Color (Select Wedgie)":null,"Font (Select Wedgie)":null,"Wedgie Feet":null,"Color (Wedgie Feet)":null,"Font (Wedgie Feet)":null,"Duck Fat":null,"Color (Duck Fat)":null,"Font (Duck Fat)":null},"uuid":"26ebb2ea-bf1f-4f4d-83fc-fd02fba4edea","order_source_id":215951513,"gift_message":null}],"original_order":{"id":206486543,"customer_id":33773,"store_id":70647,"order_detail_id":208580503,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"1920.0","total_quantity":1,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-27T21:06:43Z","updated_at":"2017-12-28T05:40:47Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"120 pound lumber jack bbq smoker pellets variety pack - pick 6 x 20-pound bags (see description for flavors) (new)","line_item_sku":"12020variety","address_kind":"R","recipient_last_name":"newton","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":206486543,"state":"CT","owner_id":37098,"denormalized_ordered_at":"2017-12-27T19:51:13Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"114-7492268-1661052","packing_slip_generated":null,"denormalized_ext_order_reference_id":"114-7492268-1661052","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":223374133,"tracking_number":"789137283602","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":1596,"ship_date":"2017-12-28"},{"id":223374013,"tracking_number":"789137279183","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":1596,"ship_date":"2017-12-28"}],"updated_at":"2017-12-28T05:40:47Z","internal_notes":"","meta_data":null,"prime_order_id":206486543,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(2) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(223374133)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(6) "1920.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(1596)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(12) "789137283602"
    }
    [1]=>
    array(7) {
      ["se_shipment_id"]=>
      int(223374013)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(6) "1920.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(1596)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(12) "789137279183"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7367

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7027"
    ["order_id"]=>
    string(4) "7367"
    ["se_shipment_id"]=>
    string(9) "223374013"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1596"
    ["shipment_weight_ounces"]=>
    string(7) "1920.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789137279183"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "IT"
    ["tracking_status_description"]=>
    string(10) "In transit"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-03 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:22"
  }
}


shipmentDBRows:
array(1) {
  [223374013]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7027"
    ["order_id"]=>
    string(4) "7367"
    ["se_shipment_id"]=>
    string(9) "223374013"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1596"
    ["shipment_weight_ounces"]=>
    string(7) "1920.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789137279183"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "IT"
    ["tracking_status_description"]=>
    string(10) "In transit"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-03 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:22"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(223374013)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(6) "1920.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(1596)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789137279183"
  }
}

Shipment info shipping easy shipment ID #223374013

From API:
array(7) {
  ["se_shipment_id"]=>
  int(223374013)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(6) "1920.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(1596)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789137279183"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7027"
  ["order_id"]=>
  string(4) "7367"
  ["se_shipment_id"]=>
  string(9) "223374013"
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  string(4) "1596"
  ["shipment_weight_ounces"]=>
  string(7) "1920.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789137279183"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  string(2) "IT"
  ["tracking_status_description"]=>
  string(10) "In transit"
  ["estimated_delivery_time"]=>
  string(19) "2018-01-03 00:00:00"
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:22"
}



Shipment info for shipping easy shipment ID #223374013 is same between both arrays

*** Order info:
Array
(
    [id] => 206447533
    [external_order_identifier] => 3581147137260
    [ext_order_reference_id] => 3581147137260
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-27T20:23:04Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 15.99
    [total_excluding_tax] => 15.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 15.99
    [subtotal_excluding_tax] => 15.99
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => 
    [billing_first_name] => 
    [billing_last_name] => 
    [billing_address] => 
    [billing_address2] => 
    [billing_city] => 
    [billing_state] => 
    [billing_country] => 
    [billing_postal_code] => 
    [billing_phone_number] => 
    [billing_email] => CC686ABF7FFF4D4A9EB06EA25F257F6D@relay.walmart.com
    [buyer_email] => CC686ABF7FFF4D4A9EB06EA25F257F6D@relay.walmart.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Brooke
                    [last_name] => Doyle
                    [address] => 18060 Bass Lake Trail
                    [address2] => 
                    [address3] => 
                    [city] => Ponchatoula
                    [residential] => 1
                    [state] => LA
                    [province] => 
                    [country] => United States
                    [postal_code] => 70454
                    [postal_code_plus_4] => 4702
                    [phone_number] => 9857892159
                    [email] => CC686ABF7FFF4D4A9EB06EA25F257F6D@relay.walmart.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => Value
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack Italian Garlic Spice BBQ Grilling Pellets
                                    [sku] => 10garlic
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 160.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 15.99
                                    [price_excluding_tax] => 15.99
                                    [unit_price] => 15.99
                                    [ext_line_item_id] => 1
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => dce77b00-0a7a-49a3-b88b-6252ae4ea308
                                    [order_source_id] => 215981103
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 206447533
                            [customer_id] => 33773
                            [store_id] => 537580
                            [order_detail_id] => 208540613
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 160.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 6
                            [created_at] => 2017-12-27T20:29:44Z
                            [updated_at] => 2017-12-28T05:50:03Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_shipment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack italian garlic spice bbq grilling pellets
                            [line_item_sku] => 10garlic
                            [address_kind] => R
                            [recipient_last_name] => doyle
                            [recipient_requested_service] => value
                            [gift] => 
                            [prime_order_id] => 206447533
                            [state] => LA
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-27T20:23:04Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 3581147137260
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 3581147137260
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 8d8626ca858f2fdea525637cd6a0816f
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 223370533
                    [tracking_number] => 9405510298370316024566
                    [carrier_key] => USPS
                    [carrier_service_key] => Priority
                    [shipment_cost] => 1205
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-28T05:50:03Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 206447533
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for CC686ABF7FFF4D4A9EB06EA25F257F6D@relay.walmart.com) was previously inserted to the DB.
Existing customer ID: 9975

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(6) "Brooke"
  ["customer_last_name"]=>
  string(5) "Doyle"
  ["customer_email"]=>
  string(50) "CC686ABF7FFF4D4A9EB06EA25F257F6D@relay.walmart.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  NULL
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    NULL
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    NULL
    ["address_state"]=>
    NULL
    ["address_zip"]=>
    NULL
    ["address_country"]=>
    NULL
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9975"
  ["ordered_time"]=>
  string(19) "2017-12-27 20:23:04"
  ["se_order_id"]=>
  int(206447533)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(7) "WalMart"
  ["store_order_id"]=>
  string(13) "3581147137260"
  ["order_weight_ounces"]=>
  string(5) "160.0"
  ["store_order_status"]=>
  string(17) "awaiting_shipment"
  ["se_api_response"]=>
  string(3958) "{"id":206447533,"external_order_identifier":"3581147137260","ext_order_reference_id":"3581147137260","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-27T20:23:04Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"15.99","total_excluding_tax":"15.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"15.99","subtotal_excluding_tax":"15.99","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":null,"billing_first_name":null,"billing_last_name":null,"billing_address":null,"billing_address2":null,"billing_city":null,"billing_state":null,"billing_country":null,"billing_postal_code":null,"billing_phone_number":null,"billing_email":"CC686ABF7FFF4D4A9EB06EA25F257F6D@relay.walmart.com","buyer_email":"CC686ABF7FFF4D4A9EB06EA25F257F6D@relay.walmart.com","recipients":[{"company":null,"first_name":"Brooke","last_name":"Doyle","address":"18060 Bass Lake Trail","address2":null,"address3":null,"city":"Ponchatoula","residential":true,"state":"LA","province":null,"country":"United States","postal_code":"70454","postal_code_plus_4":"4702","phone_number":"9857892159","email":"CC686ABF7FFF4D4A9EB06EA25F257F6D@relay.walmart.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"Value","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack Italian Garlic Spice BBQ Grilling Pellets","sku":"10garlic","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"160.0","quantity":1,"total_excluding_tax":"15.99","price_excluding_tax":"15.99","unit_price":"15.99","ext_line_item_id":"1","ext_product_id":null,"product_options":null,"uuid":"dce77b00-0a7a-49a3-b88b-6252ae4ea308","order_source_id":215981103,"gift_message":null}],"original_order":{"id":206447533,"customer_id":33773,"store_id":537580,"order_detail_id":208540613,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"160.0","total_quantity":1,"is_international":false,"usps_shipping_zone":6,"created_at":"2017-12-27T20:29:44Z","updated_at":"2017-12-28T05:50:03Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_shipment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack italian garlic spice bbq grilling pellets","line_item_sku":"10garlic","address_kind":"R","recipient_last_name":"doyle","recipient_requested_service":"value","gift":null,"prime_order_id":206447533,"state":"LA","owner_id":37098,"denormalized_ordered_at":"2017-12-27T20:23:04Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"3581147137260","packing_slip_generated":null,"denormalized_ext_order_reference_id":"3581147137260","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"8d8626ca858f2fdea525637cd6a0816f","shipments":[{"id":223370533,"tracking_number":"9405510298370316024566","carrier_key":"USPS","carrier_service_key":"Priority","shipment_cost":1205,"ship_date":"2017-12-28"}],"updated_at":"2017-12-28T05:50:03Z","internal_notes":"","meta_data":null,"prime_order_id":206447533,"is_prime":null,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(223370533)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(5) "160.0"
      ["carrier_service_key"]=>
      string(8) "Priority"
      ["shipment_cost"]=>
      int(1205)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(22) "9405510298370316024566"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7368

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7028"
    ["order_id"]=>
    string(4) "7368"
    ["se_shipment_id"]=>
    string(9) "223370533"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(4) "1205"
    ["shipment_weight_ounces"]=>
    string(6) "160.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370316024566"
    ["tracking_status"]=>
    string(9) "DELIVERED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(27) "Delivered, Front Door/Porch"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    string(19) "2017-12-31 09:32:00"
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:55"
  }
}


shipmentDBRows:
array(1) {
  [223370533]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7028"
    ["order_id"]=>
    string(4) "7368"
    ["se_shipment_id"]=>
    string(9) "223370533"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(4) "1205"
    ["shipment_weight_ounces"]=>
    string(6) "160.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370316024566"
    ["tracking_status"]=>
    string(9) "DELIVERED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(27) "Delivered, Front Door/Porch"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    string(19) "2017-12-31 09:32:00"
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:55"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(223370533)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(5) "160.0"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    int(1205)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370316024566"
  }
}

Shipment info shipping easy shipment ID #223370533

From API:
array(7) {
  ["se_shipment_id"]=>
  int(223370533)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(5) "160.0"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  int(1205)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9405510298370316024566"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7028"
  ["order_id"]=>
  string(4) "7368"
  ["se_shipment_id"]=>
  string(9) "223370533"
  ["carrier_key"]=>
  string(4) "USPS"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  string(4) "1205"
  ["shipment_weight_ounces"]=>
  string(6) "160.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9405510298370316024566"
  ["tracking_status"]=>
  string(9) "DELIVERED"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  string(27) "Delivered, Front Door/Porch"
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  string(19) "2017-12-31 09:32:00"
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:55"
}



Shipment info for shipping easy shipment ID #223370533 is same between both arrays

*** Order info:
Array
(
    [id] => 206886633
    [external_order_identifier] => 112-6268912-8238643
    [ext_order_reference_id] => 112-6268912-8238643
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-27T15:32:26Z
    [order_status] => shipped
    [parent_order_id] => 206144423
    [source_order_ids] => 
    [total_including_tax] => 73.24
    [total_excluding_tax] => 73.24
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 73.24
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => steve shotwell
    [billing_first_name] => steve
    [billing_last_name] => shotwell
    [billing_address] => 1846 DRAPER DR
    [billing_address2] => 
    [billing_city] => STANTON
    [billing_state] => MI
    [billing_country] => US
    [billing_postal_code] => 48888-8740
    [billing_phone_number] => 616 894 0934
    [billing_email] => 0nyflds0rx4pt6j@marketplace.amazon.com
    [buyer_email] => 0nyflds0rx4pt6j@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => steve
                    [last_name] => shotwell
                    [address] => 1846 DRAPER DR
                    [address2] => 
                    [address3] => 
                    [city] => STANTON
                    [residential] => 1
                    [state] => MI
                    [province] => 
                    [country] => United States
                    [postal_code] => 48888
                    [postal_code_plus_4] => 8740
                    [phone_number] => 616 894 0934
                    [email] => 0nyflds0rx4pt6j@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack 100% Hardwood Grilling Smoker Pellets, 100% Cherry, 20 LB (New)
                                    [sku] => 20cherry100
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 336.0
                                    [quantity] => 2
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 18.22
                                    [unit_price] => 18.22
                                    [ext_line_item_id] => 39610110618826
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 56f736b6-38f7-4d8e-9f20-90e8227b5107
                                    [order_source_id] => 215586563
                                    [gift_message] => 
                                )

                            [1] => Array
                                (
                                    [item_name] => Lumber Jack 100-Percent Hickory Wood BBQ Grilling Pellets, 20-Pound Bag (New)
                                    [sku] => 20hick100Comp1
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 336.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 18.40
                                    [unit_price] => 18.40
                                    [ext_line_item_id] => 59670132774690
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => c1b1da64-51c0-4f42-8eff-05ad34655346
                                    [order_source_id] => 215586563
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 206886633
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 208987943
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 206144423
                            [total_weight_in_ounces] => 1008.0
                            [total_quantity] => 3
                            [is_international] => 
                            [usps_shipping_zone] => 4
                            [created_at] => 2017-12-28T05:33:13Z
                            [updated_at] => 2017-12-28T06:02:48Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_shipment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => 
                            [line_item_sku] => 
                            [address_kind] => R
                            [recipient_last_name] => shotwell
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 206144423
                            [state] => MI
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-27T15:32:26Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 112-6268912-8238643
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 112-6268912-8238643
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 223373883
                    [tracking_number] => 789137397987
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 1532
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-28T06:02:48Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 206144423
    [is_prime] => 
    [split_from_order_id] => 206144423
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for 0nyflds0rx4pt6j@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 9976

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(5) "steve"
  ["customer_last_name"]=>
  string(8) "shotwell"
  ["customer_email"]=>
  string(38) "0nyflds0rx4pt6j@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(14) "steve shotwell"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(14) "1846 DRAPER DR"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(7) "STANTON"
    ["address_state"]=>
    string(2) "MI"
    ["address_zip"]=>
    string(10) "48888-8740"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9976"
  ["ordered_time"]=>
  string(19) "2017-12-27 15:32:26"
  ["se_order_id"]=>
  int(206886633)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "112-6268912-8238643"
  ["order_weight_ounces"]=>
  string(6) "1008.0"
  ["store_order_status"]=>
  string(17) "awaiting_shipment"
  ["se_api_response"]=>
  string(4462) "{"id":206886633,"external_order_identifier":"112-6268912-8238643","ext_order_reference_id":"112-6268912-8238643","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-27T15:32:26Z","order_status":"shipped","parent_order_id":206144423,"source_order_ids":null,"total_including_tax":"73.24","total_excluding_tax":"73.24","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"73.24","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"steve shotwell","billing_first_name":"steve","billing_last_name":"shotwell","billing_address":"1846 DRAPER DR","billing_address2":null,"billing_city":"STANTON","billing_state":"MI","billing_country":"US","billing_postal_code":"48888-8740","billing_phone_number":"616 894 0934","billing_email":"0nyflds0rx4pt6j@marketplace.amazon.com","buyer_email":"0nyflds0rx4pt6j@marketplace.amazon.com","recipients":[{"company":null,"first_name":"steve","last_name":"shotwell","address":"1846 DRAPER DR","address2":null,"address3":null,"city":"STANTON","residential":true,"state":"MI","province":null,"country":"United States","postal_code":"48888","postal_code_plus_4":"8740","phone_number":"616 894 0934","email":"0nyflds0rx4pt6j@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack 100% Hardwood Grilling Smoker Pellets, 100% Cherry, 20 LB (New)","sku":"20cherry100","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"336.0","quantity":2,"total_excluding_tax":"0.00","price_excluding_tax":"18.22","unit_price":"18.22","ext_line_item_id":"39610110618826","ext_product_id":null,"product_options":null,"uuid":"56f736b6-38f7-4d8e-9f20-90e8227b5107","order_source_id":215586563,"gift_message":null},{"item_name":"Lumber Jack 100-Percent Hickory Wood BBQ Grilling Pellets, 20-Pound Bag (New)","sku":"20hick100Comp1","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"336.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"18.40","unit_price":"18.40","ext_line_item_id":"59670132774690","ext_product_id":null,"product_options":null,"uuid":"c1b1da64-51c0-4f42-8eff-05ad34655346","order_source_id":215586563,"gift_message":null}],"original_order":{"id":206886633,"customer_id":33773,"store_id":70647,"order_detail_id":208987943,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":206144423,"total_weight_in_ounces":"1008.0","total_quantity":3,"is_international":false,"usps_shipping_zone":4,"created_at":"2017-12-28T05:33:13Z","updated_at":"2017-12-28T06:02:48Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_shipment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":null,"line_item_sku":null,"address_kind":"R","recipient_last_name":"shotwell","recipient_requested_service":"freeeconomy","gift":false,"prime_order_id":206144423,"state":"MI","owner_id":37098,"denormalized_ordered_at":"2017-12-27T15:32:26Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"112-6268912-8238643","packing_slip_generated":null,"denormalized_ext_order_reference_id":"112-6268912-8238643","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":223373883,"tracking_number":"789137397987","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":1532,"ship_date":"2017-12-28"}],"updated_at":"2017-12-28T06:02:48Z","internal_notes":"","meta_data":null,"prime_order_id":206144423,"is_prime":false,"split_from_order_id":206144423,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(223373883)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(6) "1008.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(1532)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(12) "789137397987"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7369

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7029"
    ["order_id"]=>
    string(4) "7369"
    ["se_shipment_id"]=>
    string(9) "223373883"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1532"
    ["shipment_weight_ounces"]=>
    string(7) "1008.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789137397987"
    ["tracking_status"]=>
    string(9) "UNSHIPPED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    NULL
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2017-12-28 07:47:49"
  }
}


shipmentDBRows:
array(1) {
  [223373883]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7029"
    ["order_id"]=>
    string(4) "7369"
    ["se_shipment_id"]=>
    string(9) "223373883"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1532"
    ["shipment_weight_ounces"]=>
    string(7) "1008.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789137397987"
    ["tracking_status"]=>
    string(9) "UNSHIPPED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    NULL
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2017-12-28 07:47:49"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(223373883)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(6) "1008.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(1532)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789137397987"
  }
}

Shipment info shipping easy shipment ID #223373883

From API:
array(7) {
  ["se_shipment_id"]=>
  int(223373883)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(6) "1008.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(1532)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789137397987"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7029"
  ["order_id"]=>
  string(4) "7369"
  ["se_shipment_id"]=>
  string(9) "223373883"
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  string(4) "1532"
  ["shipment_weight_ounces"]=>
  string(7) "1008.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789137397987"
  ["tracking_status"]=>
  string(9) "UNSHIPPED"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  NULL
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2017-12-28 07:47:49"
}



Shipment info for shipping easy shipment ID #223373883 is same between both arrays

*** Order info:
Array
(
    [id] => 206898783
    [external_order_identifier] => 112-8326956-6873843
    [ext_order_reference_id] => 112-8326956-6873843
    [owner_id] => 
    [sales_channel] => 
    [fulfillment_channel] => fulfillment_by_amazon
    [ordered_at] => 2017-12-27T11:36:51Z
    [order_status] => drop_shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 19.99
    [total_excluding_tax] => 19.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 19.99
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => John DeRosa
    [billing_first_name] => John
    [billing_last_name] => DeRosa
    [billing_address] => 25811 Bowman Acres Lane
    [billing_address2] => 
    [billing_city] => Damascus
    [billing_state] => MD
    [billing_country] => US
    [billing_postal_code] => 20872
    [billing_phone_number] => 
    [billing_email] => 4zxxcsnz0mc9lr8@marketplace.amazon.com
    [buyer_email] => 4zxxcsnz0mc9lr8@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => John
                    [last_name] => DeRosa
                    [address] => 25811 Bowman Acres Lane
                    [address2] => 
                    [address3] => 
                    [city] => Damascus
                    [residential] => 1
                    [state] => MD
                    [province] => 
                    [country] => United States
                    [postal_code] => 20872
                    [postal_code_plus_4] => 1206
                    [phone_number] => 
                    [email] => 4zxxcsnz0mc9lr8@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => SecondDay
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Smokin Wedgies - Stainless Steel
                                    [sku] => smoking wedgie
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 0.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 19.99
                                    [unit_price] => 19.99
                                    [ext_line_item_id] => 28011175259074
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 83257c9b-dc4f-45cc-900b-b9d12838d5d2
                                    [order_source_id] => 216407153
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 206898783
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 209000633
                            [workflow_state] => drop_shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 0.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-28T06:06:58Z
                            [updated_at] => 2017-12-28T06:06:59Z
                            [ext_shipment_confirmation_id] => 0
                            [store_order_status] => external_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 
                            [internal_notes] => 
                            [line_item_name] => smokin wedgies - stainless steel
                            [line_item_sku] => smoking wedgie
                            [address_kind] => R
                            [recipient_last_name] => derosa
                            [recipient_requested_service] => secondday
                            [gift] => 
                            [prime_order_id] => 206898783
                            [state] => MD
                            [owner_id] => 
                            [denormalized_ordered_at] => 2017-12-27T11:36:51Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 112-8326956-6873843
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 112-8326956-6873843
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 223380623
                    [tracking_number] => 
                    [carrier_key] => 
                    [carrier_service_key] => 
                    [shipment_cost] => 
                    [ship_date] => 2017-12-27
                )

        )

    [updated_at] => 2017-12-28T06:06:59Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 206898783
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for 4zxxcsnz0mc9lr8@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 9977

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(4) "John"
  ["customer_last_name"]=>
  string(6) "DeRosa"
  ["customer_email"]=>
  string(38) "4zxxcsnz0mc9lr8@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(11) "John DeRosa"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(23) "25811 Bowman Acres Lane"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(8) "Damascus"
    ["address_state"]=>
    string(2) "MD"
    ["address_zip"]=>
    string(5) "20872"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9977"
  ["ordered_time"]=>
  string(19) "2017-12-27 11:36:51"
  ["se_order_id"]=>
  int(206898783)
  ["se_order_status"]=>
  string(12) "drop_shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "112-8326956-6873843"
  ["order_weight_ounces"]=>
  string(3) "0.0"
  ["store_order_status"]=>
  string(20) "external_fulfillment"
  ["se_api_response"]=>
  string(3967) "{"id":206898783,"external_order_identifier":"112-8326956-6873843","ext_order_reference_id":"112-8326956-6873843","owner_id":null,"sales_channel":null,"fulfillment_channel":"fulfillment_by_amazon","ordered_at":"2017-12-27T11:36:51Z","order_status":"drop_shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"19.99","total_excluding_tax":"19.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"19.99","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"John DeRosa","billing_first_name":"John","billing_last_name":"DeRosa","billing_address":"25811 Bowman Acres Lane","billing_address2":null,"billing_city":"Damascus","billing_state":"MD","billing_country":"US","billing_postal_code":"20872","billing_phone_number":null,"billing_email":"4zxxcsnz0mc9lr8@marketplace.amazon.com","buyer_email":"4zxxcsnz0mc9lr8@marketplace.amazon.com","recipients":[{"company":null,"first_name":"John","last_name":"DeRosa","address":"25811 Bowman Acres Lane","address2":null,"address3":null,"city":"Damascus","residential":true,"state":"MD","province":null,"country":"United States","postal_code":"20872","postal_code_plus_4":"1206","phone_number":null,"email":"4zxxcsnz0mc9lr8@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"SecondDay","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Smokin Wedgies - Stainless Steel","sku":"smoking wedgie","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"0.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"19.99","unit_price":"19.99","ext_line_item_id":"28011175259074","ext_product_id":null,"product_options":null,"uuid":"83257c9b-dc4f-45cc-900b-b9d12838d5d2","order_source_id":216407153,"gift_message":null}],"original_order":{"id":206898783,"customer_id":33773,"store_id":70647,"order_detail_id":209000633,"workflow_state":"drop_shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"0.0","total_quantity":1,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-28T06:06:58Z","updated_at":"2017-12-28T06:06:59Z","ext_shipment_confirmation_id":0,"store_order_status":"external_fulfillment","drop_ship_tracking_number":null,"category_id":null,"internal_notes":"","line_item_name":"smokin wedgies - stainless steel","line_item_sku":"smoking wedgie","address_kind":"R","recipient_last_name":"derosa","recipient_requested_service":"secondday","gift":null,"prime_order_id":206898783,"state":"MD","owner_id":null,"denormalized_ordered_at":"2017-12-27T11:36:51Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"112-8326956-6873843","packing_slip_generated":null,"denormalized_ext_order_reference_id":"112-8326956-6873843","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":223380623,"tracking_number":null,"carrier_key":null,"carrier_service_key":null,"shipment_cost":null,"ship_date":"2017-12-27"}],"updated_at":"2017-12-28T06:06:59Z","internal_notes":"","meta_data":null,"prime_order_id":206898783,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(223380623)
      ["carrier_key"]=>
      string(7) "SPEEDEE"
      ["shipment_weight_ounces"]=>
      string(3) "0.0"
      ["carrier_service_key"]=>
      NULL
      ["shipment_cost"]=>
      NULL
      ["ship_date"]=>
      string(10) "2017-12-27"
      ["tracking_number"]=>
      string(0) ""
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7370

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7030"
    ["order_id"]=>
    string(4) "7370"
    ["se_shipment_id"]=>
    string(9) "223380623"
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["shipment_weight_ounces"]=>
    string(4) "0.00"
    ["ship_date"]=>
    string(10) "2017-12-27"
    ["tracking_number"]=>
    string(0) ""
    ["tracking_status"]=>
    string(9) "UNSHIPPED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    NULL
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2017-12-28 07:47:49"
  }
}


shipmentDBRows:
array(1) {
  [223380623]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7030"
    ["order_id"]=>
    string(4) "7370"
    ["se_shipment_id"]=>
    string(9) "223380623"
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["shipment_weight_ounces"]=>
    string(4) "0.00"
    ["ship_date"]=>
    string(10) "2017-12-27"
    ["tracking_number"]=>
    string(0) ""
    ["tracking_status"]=>
    string(9) "UNSHIPPED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    NULL
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2017-12-28 07:47:49"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(223380623)
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["shipment_weight_ounces"]=>
    string(3) "0.0"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["ship_date"]=>
    string(10) "2017-12-27"
    ["tracking_number"]=>
    string(0) ""
  }
}

Shipment info shipping easy shipment ID #223380623

From API:
array(7) {
  ["se_shipment_id"]=>
  int(223380623)
  ["carrier_key"]=>
  string(7) "SPEEDEE"
  ["shipment_weight_ounces"]=>
  string(3) "0.0"
  ["carrier_service_key"]=>
  NULL
  ["shipment_cost"]=>
  NULL
  ["ship_date"]=>
  string(10) "2017-12-27"
  ["tracking_number"]=>
  string(0) ""
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7030"
  ["order_id"]=>
  string(4) "7370"
  ["se_shipment_id"]=>
  string(9) "223380623"
  ["carrier_key"]=>
  string(7) "SPEEDEE"
  ["carrier_service_key"]=>
  NULL
  ["shipment_cost"]=>
  NULL
  ["shipment_weight_ounces"]=>
  string(4) "0.00"
  ["ship_date"]=>
  string(10) "2017-12-27"
  ["tracking_number"]=>
  string(0) ""
  ["tracking_status"]=>
  string(9) "UNSHIPPED"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  NULL
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2017-12-28 07:47:49"
}



Shipment info for shipping easy shipment ID #223380623 is same between both arrays

*** Order info:
Array
(
    [id] => 206886653
    [external_order_identifier] => 112-6268912-8238643
    [ext_order_reference_id] => 112-6268912-8238643
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-27T15:32:26Z
    [order_status] => shipped
    [parent_order_id] => 206144423
    [source_order_ids] => 
    [total_including_tax] => 73.24
    [total_excluding_tax] => 73.24
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 73.24
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => steve shotwell
    [billing_first_name] => steve
    [billing_last_name] => shotwell
    [billing_address] => 1846 DRAPER DR
    [billing_address2] => 
    [billing_city] => STANTON
    [billing_state] => MI
    [billing_country] => US
    [billing_postal_code] => 48888-8740
    [billing_phone_number] => 616 894 0934
    [billing_email] => 0nyflds0rx4pt6j@marketplace.amazon.com
    [buyer_email] => 0nyflds0rx4pt6j@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => steve
                    [last_name] => shotwell
                    [address] => 1846 DRAPER DR
                    [address2] => 
                    [address3] => 
                    [city] => STANTON
                    [residential] => 1
                    [state] => MI
                    [province] => 
                    [country] => United States
                    [postal_code] => 48888
                    [postal_code_plus_4] => 8740
                    [phone_number] => 616 894 0934
                    [email] => 0nyflds0rx4pt6j@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack 100-Percent Hickory Wood BBQ Grilling Pellets, 20-Pound Bag (New)
                                    [sku] => 20hick100Comp1
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 336.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 18.40
                                    [unit_price] => 18.40
                                    [ext_line_item_id] => 59670132774690
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => c1b1da64-51c0-4f42-8eff-05ad34655346
                                    [order_source_id] => 215586563
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 206886653
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 208987963
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 206144423
                            [total_weight_in_ounces] => 336.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 4
                            [created_at] => 2017-12-28T05:33:14Z
                            [updated_at] => 2017-12-28T06:09:12Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_shipment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack 100-percent hickory wood bbq grilling pellets, 20-pound bag (new)
                            [line_item_sku] => 20hick100comp1
                            [address_kind] => R
                            [recipient_last_name] => shotwell
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 206144423
                            [state] => MI
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-27T15:32:26Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 112-6268912-8238643
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 112-6268912-8238643
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 223373873
                    [tracking_number] => 789137434345
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 951
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-28T06:09:12Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 206144423
    [is_prime] => 
    [split_from_order_id] => 206144423
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for 0nyflds0rx4pt6j@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 9976

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(5) "steve"
  ["customer_last_name"]=>
  string(8) "shotwell"
  ["customer_email"]=>
  string(38) "0nyflds0rx4pt6j@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(14) "steve shotwell"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(14) "1846 DRAPER DR"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(7) "STANTON"
    ["address_state"]=>
    string(2) "MI"
    ["address_zip"]=>
    string(10) "48888-8740"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9976"
  ["ordered_time"]=>
  string(19) "2017-12-27 15:32:26"
  ["se_order_id"]=>
  int(206886653)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "112-6268912-8238643"
  ["order_weight_ounces"]=>
  string(5) "336.0"
  ["store_order_status"]=>
  string(17) "awaiting_shipment"
  ["se_api_response"]=>
  string(4091) "{"id":206886653,"external_order_identifier":"112-6268912-8238643","ext_order_reference_id":"112-6268912-8238643","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-27T15:32:26Z","order_status":"shipped","parent_order_id":206144423,"source_order_ids":null,"total_including_tax":"73.24","total_excluding_tax":"73.24","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"73.24","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"steve shotwell","billing_first_name":"steve","billing_last_name":"shotwell","billing_address":"1846 DRAPER DR","billing_address2":null,"billing_city":"STANTON","billing_state":"MI","billing_country":"US","billing_postal_code":"48888-8740","billing_phone_number":"616 894 0934","billing_email":"0nyflds0rx4pt6j@marketplace.amazon.com","buyer_email":"0nyflds0rx4pt6j@marketplace.amazon.com","recipients":[{"company":null,"first_name":"steve","last_name":"shotwell","address":"1846 DRAPER DR","address2":null,"address3":null,"city":"STANTON","residential":true,"state":"MI","province":null,"country":"United States","postal_code":"48888","postal_code_plus_4":"8740","phone_number":"616 894 0934","email":"0nyflds0rx4pt6j@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack 100-Percent Hickory Wood BBQ Grilling Pellets, 20-Pound Bag (New)","sku":"20hick100Comp1","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"336.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"18.40","unit_price":"18.40","ext_line_item_id":"59670132774690","ext_product_id":null,"product_options":null,"uuid":"c1b1da64-51c0-4f42-8eff-05ad34655346","order_source_id":215586563,"gift_message":null}],"original_order":{"id":206886653,"customer_id":33773,"store_id":70647,"order_detail_id":208987963,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":206144423,"total_weight_in_ounces":"336.0","total_quantity":1,"is_international":false,"usps_shipping_zone":4,"created_at":"2017-12-28T05:33:14Z","updated_at":"2017-12-28T06:09:12Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_shipment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack 100-percent hickory wood bbq grilling pellets, 20-pound bag (new)","line_item_sku":"20hick100comp1","address_kind":"R","recipient_last_name":"shotwell","recipient_requested_service":"freeeconomy","gift":false,"prime_order_id":206144423,"state":"MI","owner_id":37098,"denormalized_ordered_at":"2017-12-27T15:32:26Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"112-6268912-8238643","packing_slip_generated":null,"denormalized_ext_order_reference_id":"112-6268912-8238643","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":223373873,"tracking_number":"789137434345","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":951,"ship_date":"2017-12-28"}],"updated_at":"2017-12-28T06:09:12Z","internal_notes":"","meta_data":null,"prime_order_id":206144423,"is_prime":false,"split_from_order_id":206144423,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(223373873)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(5) "336.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(951)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(12) "789137434345"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7371

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7031"
    ["order_id"]=>
    string(4) "7371"
    ["se_shipment_id"]=>
    string(9) "223373873"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(3) "951"
    ["shipment_weight_ounces"]=>
    string(6) "336.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789137434345"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "OD"
    ["tracking_status_description"]=>
    string(29) "On FedEx vehicle for delivery"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-02 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:23"
  }
}


shipmentDBRows:
array(1) {
  [223373873]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7031"
    ["order_id"]=>
    string(4) "7371"
    ["se_shipment_id"]=>
    string(9) "223373873"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(3) "951"
    ["shipment_weight_ounces"]=>
    string(6) "336.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789137434345"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "OD"
    ["tracking_status_description"]=>
    string(29) "On FedEx vehicle for delivery"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-02 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:23"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(223373873)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(5) "336.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(951)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789137434345"
  }
}

Shipment info shipping easy shipment ID #223373873

From API:
array(7) {
  ["se_shipment_id"]=>
  int(223373873)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(5) "336.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(951)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789137434345"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7031"
  ["order_id"]=>
  string(4) "7371"
  ["se_shipment_id"]=>
  string(9) "223373873"
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  string(3) "951"
  ["shipment_weight_ounces"]=>
  string(6) "336.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789137434345"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  string(2) "OD"
  ["tracking_status_description"]=>
  string(29) "On FedEx vehicle for delivery"
  ["estimated_delivery_time"]=>
  string(19) "2018-01-02 00:00:00"
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:23"
}



Shipment info for shipping easy shipment ID #223373873 is same between both arrays

*** Order info:
Array
(
    [id] => 205992643
    [external_order_identifier] => 111-7659457-6307457
    [ext_order_reference_id] => 111-7659457-6307457
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-27T12:15:21Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 18.40
    [total_excluding_tax] => 18.40
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 18.40
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Karen Wallin
    [billing_first_name] => Karen
    [billing_last_name] => Wallin
    [billing_address] => 5661 SE NASSAU TER
    [billing_address2] => 
    [billing_city] => STUART
    [billing_state] => FL
    [billing_country] => US
    [billing_postal_code] => 34997-2441
    [billing_phone_number] => 772 475 3090
    [billing_email] => wjtmjh349c1ndnv@marketplace.amazon.com
    [buyer_email] => wjtmjh349c1ndnv@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Karen
                    [last_name] => Wallin
                    [address] => 5661 SE NASSAU TER
                    [address2] => 
                    [address3] => 
                    [city] => STUART
                    [residential] => 1
                    [state] => FL
                    [province] => 
                    [country] => United States
                    [postal_code] => 34997
                    [postal_code_plus_4] => 2441
                    [phone_number] => 772 475 3090
                    [email] => wjtmjh349c1ndnv@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack 100-Percent Hickory Wood BBQ Grilling Pellets, 20-Pound Bag (New)
                                    [sku] => 20hick100Comp1
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 336.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 18.40
                                    [unit_price] => 18.40
                                    [ext_line_item_id] => 68269465526626
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => a716a2d5-f55a-4fec-b644-efb959c3f7d4
                                    [order_source_id] => 215425733
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 205992643
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 208077003
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 336.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 6
                            [created_at] => 2017-12-27T13:06:08Z
                            [updated_at] => 2017-12-28T06:10:51Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack 100-percent hickory wood bbq grilling pellets, 20-pound bag (new)
                            [line_item_sku] => 20hick100comp1
                            [address_kind] => R
                            [recipient_last_name] => wallin
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 205992643
                            [state] => FL
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-27T12:15:21Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 111-7659457-6307457
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 111-7659457-6307457
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 223370643
                    [tracking_number] => 789137412329
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 1102
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-28T06:10:51Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 205992643
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for wjtmjh349c1ndnv@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 5691

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(5) "Karen"
  ["customer_last_name"]=>
  string(6) "Wallin"
  ["customer_email"]=>
  string(38) "wjtmjh349c1ndnv@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(12) "Karen Wallin"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(18) "5661 SE NASSAU TER"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(6) "STUART"
    ["address_state"]=>
    string(2) "FL"
    ["address_zip"]=>
    string(10) "34997-2441"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "5691"
  ["ordered_time"]=>
  string(19) "2017-12-27 12:15:21"
  ["se_order_id"]=>
  int(205992643)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "111-7659457-6307457"
  ["order_weight_ounces"]=>
  string(5) "336.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4077) "{"id":205992643,"external_order_identifier":"111-7659457-6307457","ext_order_reference_id":"111-7659457-6307457","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-27T12:15:21Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"18.40","total_excluding_tax":"18.40","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"18.40","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Karen Wallin","billing_first_name":"Karen","billing_last_name":"Wallin","billing_address":"5661 SE NASSAU TER","billing_address2":null,"billing_city":"STUART","billing_state":"FL","billing_country":"US","billing_postal_code":"34997-2441","billing_phone_number":"772 475 3090","billing_email":"wjtmjh349c1ndnv@marketplace.amazon.com","buyer_email":"wjtmjh349c1ndnv@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Karen","last_name":"Wallin","address":"5661 SE NASSAU TER","address2":null,"address3":null,"city":"STUART","residential":true,"state":"FL","province":null,"country":"United States","postal_code":"34997","postal_code_plus_4":"2441","phone_number":"772 475 3090","email":"wjtmjh349c1ndnv@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack 100-Percent Hickory Wood BBQ Grilling Pellets, 20-Pound Bag (New)","sku":"20hick100Comp1","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"336.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"18.40","unit_price":"18.40","ext_line_item_id":"68269465526626","ext_product_id":null,"product_options":null,"uuid":"a716a2d5-f55a-4fec-b644-efb959c3f7d4","order_source_id":215425733,"gift_message":null}],"original_order":{"id":205992643,"customer_id":33773,"store_id":70647,"order_detail_id":208077003,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"336.0","total_quantity":1,"is_international":false,"usps_shipping_zone":6,"created_at":"2017-12-27T13:06:08Z","updated_at":"2017-12-28T06:10:51Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack 100-percent hickory wood bbq grilling pellets, 20-pound bag (new)","line_item_sku":"20hick100comp1","address_kind":"R","recipient_last_name":"wallin","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":205992643,"state":"FL","owner_id":37098,"denormalized_ordered_at":"2017-12-27T12:15:21Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"111-7659457-6307457","packing_slip_generated":null,"denormalized_ext_order_reference_id":"111-7659457-6307457","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":223370643,"tracking_number":"789137412329","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":1102,"ship_date":"2017-12-28"}],"updated_at":"2017-12-28T06:10:51Z","internal_notes":"","meta_data":null,"prime_order_id":205992643,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(223370643)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(5) "336.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(1102)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(12) "789137412329"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7372

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7032"
    ["order_id"]=>
    string(4) "7372"
    ["se_shipment_id"]=>
    string(9) "223370643"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1102"
    ["shipment_weight_ounces"]=>
    string(6) "336.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789137412329"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "IT"
    ["tracking_status_description"]=>
    string(10) "In transit"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-03 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:23"
  }
}


shipmentDBRows:
array(1) {
  [223370643]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7032"
    ["order_id"]=>
    string(4) "7372"
    ["se_shipment_id"]=>
    string(9) "223370643"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1102"
    ["shipment_weight_ounces"]=>
    string(6) "336.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789137412329"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "IT"
    ["tracking_status_description"]=>
    string(10) "In transit"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-03 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:23"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(223370643)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(5) "336.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(1102)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789137412329"
  }
}

Shipment info shipping easy shipment ID #223370643

From API:
array(7) {
  ["se_shipment_id"]=>
  int(223370643)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(5) "336.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(1102)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789137412329"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7032"
  ["order_id"]=>
  string(4) "7372"
  ["se_shipment_id"]=>
  string(9) "223370643"
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  string(4) "1102"
  ["shipment_weight_ounces"]=>
  string(6) "336.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789137412329"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  string(2) "IT"
  ["tracking_status_description"]=>
  string(10) "In transit"
  ["estimated_delivery_time"]=>
  string(19) "2018-01-03 00:00:00"
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:23"
}



Shipment info for shipping easy shipment ID #223370643 is same between both arrays

*** Order info:
Array
(
    [id] => 206301183
    [external_order_identifier] => 32
    [ext_order_reference_id] => 32
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-27T17:30:20Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 12.99
    [total_excluding_tax] => 12.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 0.00
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => 
    [billing_first_name] => Darin
    [billing_last_name] => Hendrix
    [billing_address] => 23260 225th St
    [billing_address2] => 
    [billing_city] => Leon
    [billing_state] => IA
    [billing_country] => United States
    [billing_postal_code] => 50144
    [billing_phone_number] => 6414146261
    [billing_email] => darinhendrix101@yahoo.com
    [buyer_email] => darinhendrix101@yahoo.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Darin
                    [last_name] => Hendrix
                    [address] => 23260 225th St
                    [address2] => 
                    [address3] => 
                    [city] => Leon
                    [residential] => 1
                    [state] => IA
                    [province] => 
                    [country] => United States
                    [postal_code] => 50144
                    [postal_code_plus_4] => 1793
                    [phone_number] => 6414146261
                    [email] => darinhendrix101@yahoo.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => US Flat Rate
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Gourmet Duck Fat Spray Can (7 Ounce) - Free Shipping
                                    [sku] => duckfat1
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 12.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 12.99
                                    [price_excluding_tax] => 12.99
                                    [unit_price] => 12.99
                                    [ext_line_item_id] => 126479903
                                    [ext_product_id] => 94443625
                                    [product_options] => 
                                    [uuid] => 7d152e36-9600-47e7-9e3f-3c63722b8dc5
                                    [order_source_id] => 215754913
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 206301183
                            [customer_id] => 33773
                            [store_id] => 139243
                            [order_detail_id] => 208388353
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 12.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 3
                            [created_at] => 2017-12-27T18:28:08Z
                            [updated_at] => 2017-12-28T06:15:53Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_shipment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136971
                            [internal_notes] => 
                            [line_item_name] => gourmet duck fat spray can (7 ounce) - free shipping
                            [line_item_sku] => duckfat1
                            [address_kind] => R
                            [recipient_last_name] => hendrix
                            [recipient_requested_service] => us flat rate
                            [gift] => 
                            [prime_order_id] => 206301183
                            [state] => IA
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-27T17:30:20Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 32
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 32
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => b3256337c5c80201913c211d31dcfcda
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 223364293
                    [tracking_number] => 9400110298370316027335
                    [carrier_key] => USPS
                    [carrier_service_key] => First
                    [shipment_cost] => 374
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-28T06:15:53Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 206301183
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for darinhendrix101@yahoo.com) was previously inserted to the DB.
Existing customer ID: 9978

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(5) "Darin"
  ["customer_last_name"]=>
  string(7) "Hendrix"
  ["customer_email"]=>
  string(25) "darinhendrix101@yahoo.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(0) ""
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(14) "23260 225th St"
    ["address_line_2"]=>
    string(0) ""
    ["address_city"]=>
    string(4) "Leon"
    ["address_state"]=>
    string(2) "IA"
    ["address_zip"]=>
    string(5) "50144"
    ["address_country"]=>
    string(13) "United States"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9978"
  ["ordered_time"]=>
  string(19) "2017-12-27 17:30:20"
  ["se_order_id"]=>
  int(206301183)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  NULL
  ["store_order_id"]=>
  string(2) "32"
  ["order_weight_ounces"]=>
  string(4) "12.0"
  ["store_order_status"]=>
  string(17) "awaiting_shipment"
  ["se_api_response"]=>
  string(3884) "{"id":206301183,"external_order_identifier":"32","ext_order_reference_id":"32","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-27T17:30:20Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"12.99","total_excluding_tax":"12.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"0.00","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"","billing_first_name":"Darin","billing_last_name":"Hendrix","billing_address":"23260 225th St","billing_address2":"","billing_city":"Leon","billing_state":"IA","billing_country":"United States","billing_postal_code":"50144","billing_phone_number":"6414146261","billing_email":"darinhendrix101@yahoo.com","buyer_email":"darinhendrix101@yahoo.com","recipients":[{"company":"","first_name":"Darin","last_name":"Hendrix","address":"23260 225th St","address2":null,"address3":null,"city":"Leon","residential":true,"state":"IA","province":null,"country":"United States","postal_code":"50144","postal_code_plus_4":"1793","phone_number":"6414146261","email":"darinhendrix101@yahoo.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"US Flat Rate","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Gourmet Duck Fat Spray Can (7 Ounce) - Free Shipping","sku":"duckfat1","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"12.0","quantity":1,"total_excluding_tax":"12.99","price_excluding_tax":"12.99","unit_price":"12.99","ext_line_item_id":"126479903","ext_product_id":"94443625","product_options":null,"uuid":"7d152e36-9600-47e7-9e3f-3c63722b8dc5","order_source_id":215754913,"gift_message":null}],"original_order":{"id":206301183,"customer_id":33773,"store_id":139243,"order_detail_id":208388353,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"12.0","total_quantity":1,"is_international":false,"usps_shipping_zone":3,"created_at":"2017-12-27T18:28:08Z","updated_at":"2017-12-28T06:15:53Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_shipment","drop_ship_tracking_number":null,"category_id":136971,"internal_notes":"","line_item_name":"gourmet duck fat spray can (7 ounce) - free shipping","line_item_sku":"duckfat1","address_kind":"R","recipient_last_name":"hendrix","recipient_requested_service":"us flat rate","gift":null,"prime_order_id":206301183,"state":"IA","owner_id":37098,"denormalized_ordered_at":"2017-12-27T17:30:20Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"32","packing_slip_generated":null,"denormalized_ext_order_reference_id":"32","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"b3256337c5c80201913c211d31dcfcda","shipments":[{"id":223364293,"tracking_number":"9400110298370316027335","carrier_key":"USPS","carrier_service_key":"First","shipment_cost":374,"ship_date":"2017-12-28"}],"updated_at":"2017-12-28T06:15:53Z","internal_notes":"","meta_data":null,"prime_order_id":206301183,"is_prime":null,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(223364293)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(4) "12.0"
      ["carrier_service_key"]=>
      string(5) "First"
      ["shipment_cost"]=>
      int(374)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(22) "9400110298370316027335"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7373

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7033"
    ["order_id"]=>
    string(4) "7373"
    ["se_shipment_id"]=>
    string(9) "223364293"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(5) "First"
    ["shipment_cost"]=>
    string(3) "374"
    ["shipment_weight_ounces"]=>
    string(5) "12.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9400110298370316027335"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(25) "In Transit to Destination"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:36"
  }
}


shipmentDBRows:
array(1) {
  [223364293]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7033"
    ["order_id"]=>
    string(4) "7373"
    ["se_shipment_id"]=>
    string(9) "223364293"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(5) "First"
    ["shipment_cost"]=>
    string(3) "374"
    ["shipment_weight_ounces"]=>
    string(5) "12.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9400110298370316027335"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(25) "In Transit to Destination"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:36"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(223364293)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(4) "12.0"
    ["carrier_service_key"]=>
    string(5) "First"
    ["shipment_cost"]=>
    int(374)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9400110298370316027335"
  }
}

Shipment info shipping easy shipment ID #223364293

From API:
array(7) {
  ["se_shipment_id"]=>
  int(223364293)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(4) "12.0"
  ["carrier_service_key"]=>
  string(5) "First"
  ["shipment_cost"]=>
  int(374)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9400110298370316027335"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7033"
  ["order_id"]=>
  string(4) "7373"
  ["se_shipment_id"]=>
  string(9) "223364293"
  ["carrier_key"]=>
  string(4) "USPS"
  ["carrier_service_key"]=>
  string(5) "First"
  ["shipment_cost"]=>
  string(3) "374"
  ["shipment_weight_ounces"]=>
  string(5) "12.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9400110298370316027335"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  string(25) "In Transit to Destination"
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:36"
}



Shipment info for shipping easy shipment ID #223364293 is same between both arrays

*** Order info:
Array
(
    [id] => 206417783
    [external_order_identifier] => 114-8802414-4677836
    [ext_order_reference_id] => 114-8802414-4677836
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-27T19:01:58Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 19.99
    [total_excluding_tax] => 19.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 19.99
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Patrice Fogg
    [billing_first_name] => Patrice
    [billing_last_name] => Fogg
    [billing_address] => 2 TASKER LN
    [billing_address2] => 
    [billing_city] => MADBURY
    [billing_state] => NH
    [billing_country] => US
    [billing_postal_code] => 03823-7541
    [billing_phone_number] => 6038338223
    [billing_email] => yzv1wm061pv8bxt@marketplace.amazon.com
    [buyer_email] => yzv1wm061pv8bxt@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Patrice
                    [last_name] => Fogg
                    [address] => 2 TASKER LN
                    [address2] => 
                    [address3] => 
                    [city] => MADBURY
                    [residential] => 1
                    [state] => NH
                    [province] => 
                    [country] => United States
                    [postal_code] => 03823
                    [postal_code_plus_4] => 7541
                    [phone_number] => 6038338223
                    [email] => yzv1wm061pv8bxt@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => Standard
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => World's Best Fire Starter - Wood Stove, Pellet Stove, BBQ (New)
                                    [sku] => firestarter1fbb
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 12.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 19.99
                                    [unit_price] => 19.99
                                    [ext_line_item_id] => 39628297986266
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 2c3a71d6-2368-4310-b4a6-4e43e8b4b021
                                    [order_source_id] => 215879963
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 206417783
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 208510843
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 12.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-27T20:06:45Z
                            [updated_at] => 2017-12-28T06:40:56Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => world's best fire starter - wood stove, pellet stove, bbq (new)
                            [line_item_sku] => firestarter1fbb
                            [address_kind] => R
                            [recipient_last_name] => fogg
                            [recipient_requested_service] => standard
                            [gift] => 
                            [prime_order_id] => 206417783
                            [state] => NH
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-27T19:01:58Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 114-8802414-4677836
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 114-8802414-4677836
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 223367313
                    [tracking_number] => 9400110298370316028455
                    [carrier_key] => USPS
                    [carrier_service_key] => First
                    [shipment_cost] => 374
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-28T06:40:56Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 206417783
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for yzv1wm061pv8bxt@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 9981

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(7) "Patrice"
  ["customer_last_name"]=>
  string(4) "Fogg"
  ["customer_email"]=>
  string(38) "yzv1wm061pv8bxt@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(12) "Patrice Fogg"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(11) "2 TASKER LN"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(7) "MADBURY"
    ["address_state"]=>
    string(2) "NH"
    ["address_zip"]=>
    string(10) "03823-7541"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9981"
  ["ordered_time"]=>
  string(19) "2017-12-27 19:01:58"
  ["se_order_id"]=>
  int(206417783)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "114-8802414-4677836"
  ["order_weight_ounces"]=>
  string(4) "12.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4026) "{"id":206417783,"external_order_identifier":"114-8802414-4677836","ext_order_reference_id":"114-8802414-4677836","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-27T19:01:58Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"19.99","total_excluding_tax":"19.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"19.99","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Patrice Fogg","billing_first_name":"Patrice","billing_last_name":"Fogg","billing_address":"2 TASKER LN","billing_address2":null,"billing_city":"MADBURY","billing_state":"NH","billing_country":"US","billing_postal_code":"03823-7541","billing_phone_number":"6038338223","billing_email":"yzv1wm061pv8bxt@marketplace.amazon.com","buyer_email":"yzv1wm061pv8bxt@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Patrice","last_name":"Fogg","address":"2 TASKER LN","address2":null,"address3":null,"city":"MADBURY","residential":true,"state":"NH","province":null,"country":"United States","postal_code":"03823","postal_code_plus_4":"7541","phone_number":"6038338223","email":"yzv1wm061pv8bxt@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"Standard","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"World's Best Fire Starter - Wood Stove, Pellet Stove, BBQ (New)","sku":"firestarter1fbb","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"12.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"19.99","unit_price":"19.99","ext_line_item_id":"39628297986266","ext_product_id":null,"product_options":null,"uuid":"2c3a71d6-2368-4310-b4a6-4e43e8b4b021","order_source_id":215879963,"gift_message":null}],"original_order":{"id":206417783,"customer_id":33773,"store_id":70647,"order_detail_id":208510843,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"12.0","total_quantity":1,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-27T20:06:45Z","updated_at":"2017-12-28T06:40:56Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"world's best fire starter - wood stove, pellet stove, bbq (new)","line_item_sku":"firestarter1fbb","address_kind":"R","recipient_last_name":"fogg","recipient_requested_service":"standard","gift":null,"prime_order_id":206417783,"state":"NH","owner_id":37098,"denormalized_ordered_at":"2017-12-27T19:01:58Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"114-8802414-4677836","packing_slip_generated":null,"denormalized_ext_order_reference_id":"114-8802414-4677836","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":223367313,"tracking_number":"9400110298370316028455","carrier_key":"USPS","carrier_service_key":"First","shipment_cost":374,"ship_date":"2017-12-28"}],"updated_at":"2017-12-28T06:40:56Z","internal_notes":"","meta_data":null,"prime_order_id":206417783,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(223367313)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(4) "12.0"
      ["carrier_service_key"]=>
      string(5) "First"
      ["shipment_cost"]=>
      int(374)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(22) "9400110298370316028455"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7376

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7036"
    ["order_id"]=>
    string(4) "7376"
    ["se_shipment_id"]=>
    string(9) "223367313"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(5) "First"
    ["shipment_cost"]=>
    string(3) "374"
    ["shipment_weight_ounces"]=>
    string(5) "12.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9400110298370316028455"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(14) "Arrived at Hub"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:37"
  }
}


shipmentDBRows:
array(1) {
  [223367313]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7036"
    ["order_id"]=>
    string(4) "7376"
    ["se_shipment_id"]=>
    string(9) "223367313"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(5) "First"
    ["shipment_cost"]=>
    string(3) "374"
    ["shipment_weight_ounces"]=>
    string(5) "12.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9400110298370316028455"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(14) "Arrived at Hub"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:37"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(223367313)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(4) "12.0"
    ["carrier_service_key"]=>
    string(5) "First"
    ["shipment_cost"]=>
    int(374)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9400110298370316028455"
  }
}

Shipment info shipping easy shipment ID #223367313

From API:
array(7) {
  ["se_shipment_id"]=>
  int(223367313)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(4) "12.0"
  ["carrier_service_key"]=>
  string(5) "First"
  ["shipment_cost"]=>
  int(374)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9400110298370316028455"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7036"
  ["order_id"]=>
  string(4) "7376"
  ["se_shipment_id"]=>
  string(9) "223367313"
  ["carrier_key"]=>
  string(4) "USPS"
  ["carrier_service_key"]=>
  string(5) "First"
  ["shipment_cost"]=>
  string(3) "374"
  ["shipment_weight_ounces"]=>
  string(5) "12.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9400110298370316028455"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  string(14) "Arrived at Hub"
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:37"
}



Shipment info for shipping easy shipment ID #223367313 is same between both arrays

*** Order info:
Array
(
    [id] => 206832703
    [external_order_identifier] => 113-0467880-7640202
    [ext_order_reference_id] => 113-0467880-7640202
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-28T03:11:54Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 21.24
    [total_excluding_tax] => 19.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 21.24
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 1.25
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Elizabeth Petroskey
    [billing_first_name] => Elizabeth
    [billing_last_name] => L.
    [billing_address] => GROTON SCHOOL
    [billing_address2] => 282 FARMERS ROW
    [billing_city] => GROTON
    [billing_state] => MA
    [billing_country] => US
    [billing_postal_code] => 01450-1848
    [billing_phone_number] => 978-448-7670
    [billing_email] => l7hq4yjtf3myqk8@marketplace.amazon.com
    [buyer_email] => l7hq4yjtf3myqk8@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Elizabeth
                    [last_name] => Petroskey
                    [address] => GROTON SCHOOL
                    [address2] => 282 FARMERS ROW
                    [address3] => 
                    [city] => GROTON
                    [residential] => 
                    [state] => MA
                    [province] => 
                    [country] => United States
                    [postal_code] => 01450
                    [postal_code_plus_4] => 1848
                    [phone_number] => 978-448-7670
                    [email] => l7hq4yjtf3myqk8@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => Standard
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => World's Best Fire Starter - Wood Stove, Pellet Stove, BBQ (New)
                                    [sku] => firestarter1fbb
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 12.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 19.99
                                    [unit_price] => 19.99
                                    [ext_line_item_id] => 35097345005106
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 668fec24-56f1-41d4-8301-c8e664648bd9
                                    [order_source_id] => 216332223
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 206832703
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 208933223
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 12.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-28T04:07:16Z
                            [updated_at] => 2017-12-28T06:40:56Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => world's best fire starter - wood stove, pellet stove, bbq (new)
                            [line_item_sku] => firestarter1fbb
                            [address_kind] => C
                            [recipient_last_name] => petroskey
                            [recipient_requested_service] => standard
                            [gift] => 
                            [prime_order_id] => 206832703
                            [state] => MA
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-28T03:11:54Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 113-0467880-7640202
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 113-0467880-7640202
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 223367323
                    [tracking_number] => 9400110298370316028448
                    [carrier_key] => USPS
                    [carrier_service_key] => First
                    [shipment_cost] => 374
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-28T06:40:56Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 206832703
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for l7hq4yjtf3myqk8@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 9982

Delivery address already in our DB. Data:
array(14) {
  ["address_id"]=>
  string(5) "13617"
  ["customer_id"]=>
  string(4) "9982"
  ["address_type"]=>
  string(8) "delivery"
  ["order_id"]=>
  NULL
  ["address_line_1"]=>
  string(13) "GROTON SCHOOL"
  ["address_line_2"]=>
  string(15) "282 FARMERS ROW"
  ["address_city"]=>
  string(6) "GROTON"
  ["address_state"]=>
  string(2) "MA"
  ["address_zip"]=>
  string(5) "01450"
  ["address_country"]=>
  string(13) "United States"
  ["accessorial"]=>
  NULL
  ["county_tag"]=>
  string(19) "MA-Middlesex County"
  ["created_time"]=>
  string(19) "2017-12-28 07:47:49"
  ["active"]=>
  string(1) "1"
}


parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9982"
  ["ordered_time"]=>
  string(19) "2017-12-28 03:11:54"
  ["se_order_id"]=>
  int(206832703)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "113-0467880-7640202"
  ["order_weight_ounces"]=>
  string(4) "12.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4078) "{"id":206832703,"external_order_identifier":"113-0467880-7640202","ext_order_reference_id":"113-0467880-7640202","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-28T03:11:54Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"21.24","total_excluding_tax":"19.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"21.24","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"1.25","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Elizabeth Petroskey","billing_first_name":"Elizabeth","billing_last_name":"L.","billing_address":"GROTON SCHOOL","billing_address2":"282 FARMERS ROW","billing_city":"GROTON","billing_state":"MA","billing_country":"US","billing_postal_code":"01450-1848","billing_phone_number":"978-448-7670","billing_email":"l7hq4yjtf3myqk8@marketplace.amazon.com","buyer_email":"l7hq4yjtf3myqk8@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Elizabeth","last_name":"Petroskey","address":"GROTON SCHOOL","address2":"282 FARMERS ROW","address3":null,"city":"GROTON","residential":false,"state":"MA","province":null,"country":"United States","postal_code":"01450","postal_code_plus_4":"1848","phone_number":"978-448-7670","email":"l7hq4yjtf3myqk8@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"Standard","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"World's Best Fire Starter - Wood Stove, Pellet Stove, BBQ (New)","sku":"firestarter1fbb","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"12.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"19.99","unit_price":"19.99","ext_line_item_id":"35097345005106","ext_product_id":null,"product_options":null,"uuid":"668fec24-56f1-41d4-8301-c8e664648bd9","order_source_id":216332223,"gift_message":null}],"original_order":{"id":206832703,"customer_id":33773,"store_id":70647,"order_detail_id":208933223,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"12.0","total_quantity":1,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-28T04:07:16Z","updated_at":"2017-12-28T06:40:56Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"world's best fire starter - wood stove, pellet stove, bbq (new)","line_item_sku":"firestarter1fbb","address_kind":"C","recipient_last_name":"petroskey","recipient_requested_service":"standard","gift":null,"prime_order_id":206832703,"state":"MA","owner_id":37098,"denormalized_ordered_at":"2017-12-28T03:11:54Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"113-0467880-7640202","packing_slip_generated":null,"denormalized_ext_order_reference_id":"113-0467880-7640202","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":223367323,"tracking_number":"9400110298370316028448","carrier_key":"USPS","carrier_service_key":"First","shipment_cost":374,"ship_date":"2017-12-28"}],"updated_at":"2017-12-28T06:40:56Z","internal_notes":"","meta_data":null,"prime_order_id":206832703,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(223367323)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(4) "12.0"
      ["carrier_service_key"]=>
      string(5) "First"
      ["shipment_cost"]=>
      int(374)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(22) "9400110298370316028448"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7377

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7037"
    ["order_id"]=>
    string(4) "7377"
    ["se_shipment_id"]=>
    string(9) "223367323"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(5) "First"
    ["shipment_cost"]=>
    string(3) "374"
    ["shipment_weight_ounces"]=>
    string(5) "12.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9400110298370316028448"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(45) "Arrived at USPS Regional Destination Facility"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:37"
  }
}


shipmentDBRows:
array(1) {
  [223367323]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7037"
    ["order_id"]=>
    string(4) "7377"
    ["se_shipment_id"]=>
    string(9) "223367323"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(5) "First"
    ["shipment_cost"]=>
    string(3) "374"
    ["shipment_weight_ounces"]=>
    string(5) "12.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9400110298370316028448"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(45) "Arrived at USPS Regional Destination Facility"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:37"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(223367323)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(4) "12.0"
    ["carrier_service_key"]=>
    string(5) "First"
    ["shipment_cost"]=>
    int(374)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9400110298370316028448"
  }
}

Shipment info shipping easy shipment ID #223367323

From API:
array(7) {
  ["se_shipment_id"]=>
  int(223367323)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(4) "12.0"
  ["carrier_service_key"]=>
  string(5) "First"
  ["shipment_cost"]=>
  int(374)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9400110298370316028448"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7037"
  ["order_id"]=>
  string(4) "7377"
  ["se_shipment_id"]=>
  string(9) "223367323"
  ["carrier_key"]=>
  string(4) "USPS"
  ["carrier_service_key"]=>
  string(5) "First"
  ["shipment_cost"]=>
  string(3) "374"
  ["shipment_weight_ounces"]=>
  string(5) "12.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9400110298370316028448"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  string(45) "Arrived at USPS Regional Destination Facility"
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:37"
}



Shipment info for shipping easy shipment ID #223367323 is same between both arrays

*** Order info:
Array
(
    [id] => 206735403
    [external_order_identifier] => 113-9007520-1905006
    [ext_order_reference_id] => 113-9007520-1905006
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-28T00:34:47Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 19.99
    [total_excluding_tax] => 19.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 19.99
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Mark Fredrick
    [billing_first_name] => Mark
    [billing_last_name] => Fredrick
    [billing_address] => 64 Elm St
    [billing_address2] => 
    [billing_city] => Dumont
    [billing_state] => NJ
    [billing_country] => US
    [billing_postal_code] => 07628-3221
    [billing_phone_number] => 201-384-1335
    [billing_email] => v64xxphhtpnf6ft@marketplace.amazon.com
    [buyer_email] => v64xxphhtpnf6ft@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Mark
                    [last_name] => Fredrick
                    [address] => 64 Elm St
                    [address2] => 
                    [address3] => 
                    [city] => Dumont
                    [residential] => 1
                    [state] => NJ
                    [province] => 
                    [country] => United States
                    [postal_code] => 07628
                    [postal_code_plus_4] => 3221
                    [phone_number] => 201-384-1335
                    [email] => v64xxphhtpnf6ft@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => Standard
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => World's Best Fire Starter - Wood Stove, Pellet Stove, BBQ (New)
                                    [sku] => firestarter1fbb
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 12.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 19.99
                                    [unit_price] => 19.99
                                    [ext_line_item_id] => 16882880067274
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => cafa2547-f288-4095-a4c4-7cab97dcbe92
                                    [order_source_id] => 216224603
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 206735403
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 208835493
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 12.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-28T02:08:05Z
                            [updated_at] => 2017-12-28T06:40:56Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => world's best fire starter - wood stove, pellet stove, bbq (new)
                            [line_item_sku] => firestarter1fbb
                            [address_kind] => R
                            [recipient_last_name] => fredrick
                            [recipient_requested_service] => standard
                            [gift] => 
                            [prime_order_id] => 206735403
                            [state] => NJ
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-28T00:34:47Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 113-9007520-1905006
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 113-9007520-1905006
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 223367333
                    [tracking_number] => 9400110298370316028431
                    [carrier_key] => USPS
                    [carrier_service_key] => First
                    [shipment_cost] => 374
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-28T06:40:56Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 206735403
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for v64xxphhtpnf6ft@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 9983

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(4) "Mark"
  ["customer_last_name"]=>
  string(8) "Fredrick"
  ["customer_email"]=>
  string(38) "v64xxphhtpnf6ft@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(13) "Mark Fredrick"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(9) "64 Elm St"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(6) "Dumont"
    ["address_state"]=>
    string(2) "NJ"
    ["address_zip"]=>
    string(10) "07628-3221"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9983"
  ["ordered_time"]=>
  string(19) "2017-12-28 00:34:47"
  ["se_order_id"]=>
  int(206735403)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "113-9007520-1905006"
  ["order_weight_ounces"]=>
  string(4) "12.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4031) "{"id":206735403,"external_order_identifier":"113-9007520-1905006","ext_order_reference_id":"113-9007520-1905006","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-28T00:34:47Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"19.99","total_excluding_tax":"19.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"19.99","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Mark Fredrick","billing_first_name":"Mark","billing_last_name":"Fredrick","billing_address":"64 Elm St","billing_address2":null,"billing_city":"Dumont","billing_state":"NJ","billing_country":"US","billing_postal_code":"07628-3221","billing_phone_number":"201-384-1335","billing_email":"v64xxphhtpnf6ft@marketplace.amazon.com","buyer_email":"v64xxphhtpnf6ft@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Mark","last_name":"Fredrick","address":"64 Elm St","address2":null,"address3":null,"city":"Dumont","residential":true,"state":"NJ","province":null,"country":"United States","postal_code":"07628","postal_code_plus_4":"3221","phone_number":"201-384-1335","email":"v64xxphhtpnf6ft@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"Standard","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"World's Best Fire Starter - Wood Stove, Pellet Stove, BBQ (New)","sku":"firestarter1fbb","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"12.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"19.99","unit_price":"19.99","ext_line_item_id":"16882880067274","ext_product_id":null,"product_options":null,"uuid":"cafa2547-f288-4095-a4c4-7cab97dcbe92","order_source_id":216224603,"gift_message":null}],"original_order":{"id":206735403,"customer_id":33773,"store_id":70647,"order_detail_id":208835493,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"12.0","total_quantity":1,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-28T02:08:05Z","updated_at":"2017-12-28T06:40:56Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"world's best fire starter - wood stove, pellet stove, bbq (new)","line_item_sku":"firestarter1fbb","address_kind":"R","recipient_last_name":"fredrick","recipient_requested_service":"standard","gift":null,"prime_order_id":206735403,"state":"NJ","owner_id":37098,"denormalized_ordered_at":"2017-12-28T00:34:47Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"113-9007520-1905006","packing_slip_generated":null,"denormalized_ext_order_reference_id":"113-9007520-1905006","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":223367333,"tracking_number":"9400110298370316028431","carrier_key":"USPS","carrier_service_key":"First","shipment_cost":374,"ship_date":"2017-12-28"}],"updated_at":"2017-12-28T06:40:56Z","internal_notes":"","meta_data":null,"prime_order_id":206735403,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(223367333)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(4) "12.0"
      ["carrier_service_key"]=>
      string(5) "First"
      ["shipment_cost"]=>
      int(374)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(22) "9400110298370316028431"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7378

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7038"
    ["order_id"]=>
    string(4) "7378"
    ["se_shipment_id"]=>
    string(9) "223367333"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(5) "First"
    ["shipment_cost"]=>
    string(3) "374"
    ["shipment_weight_ounces"]=>
    string(5) "12.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9400110298370316028431"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(43) "Departed USPS Regional Destination Facility"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:36"
  }
}


shipmentDBRows:
array(1) {
  [223367333]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7038"
    ["order_id"]=>
    string(4) "7378"
    ["se_shipment_id"]=>
    string(9) "223367333"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(5) "First"
    ["shipment_cost"]=>
    string(3) "374"
    ["shipment_weight_ounces"]=>
    string(5) "12.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9400110298370316028431"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(43) "Departed USPS Regional Destination Facility"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:36"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(223367333)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(4) "12.0"
    ["carrier_service_key"]=>
    string(5) "First"
    ["shipment_cost"]=>
    int(374)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9400110298370316028431"
  }
}

Shipment info shipping easy shipment ID #223367333

From API:
array(7) {
  ["se_shipment_id"]=>
  int(223367333)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(4) "12.0"
  ["carrier_service_key"]=>
  string(5) "First"
  ["shipment_cost"]=>
  int(374)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9400110298370316028431"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7038"
  ["order_id"]=>
  string(4) "7378"
  ["se_shipment_id"]=>
  string(9) "223367333"
  ["carrier_key"]=>
  string(4) "USPS"
  ["carrier_service_key"]=>
  string(5) "First"
  ["shipment_cost"]=>
  string(3) "374"
  ["shipment_weight_ounces"]=>
  string(5) "12.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9400110298370316028431"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  string(43) "Departed USPS Regional Destination Facility"
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:36"
}



Shipment info for shipping easy shipment ID #223367333 is same between both arrays

*** Order info:
Array
(
    [id] => 206208633
    [external_order_identifier] => 114-5182938-9724253
    [ext_order_reference_id] => 114-5182938-9724253
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-27T15:40:21Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 31.79
    [total_excluding_tax] => 29.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 31.79
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 1.80
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Ivan Capistran
    [billing_first_name] => Ivan
    [billing_last_name] => capistran
    [billing_address] => 2790 BLAKE TOWERS LN
    [billing_address2] => 
    [billing_city] => BUFORD
    [billing_state] => GA
    [billing_country] => US
    [billing_postal_code] => 30519-3842
    [billing_phone_number] => 706-280-2010
    [billing_email] => ynh6tf0wrxxrg9v@marketplace.amazon.com
    [buyer_email] => ynh6tf0wrxxrg9v@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Ivan
                    [last_name] => Capistran
                    [address] => 2790 BLAKE TOWERS LN
                    [address2] => 
                    [address3] => 
                    [city] => BUFORD
                    [residential] => 1
                    [state] => GA
                    [province] => 
                    [country] => United States
                    [postal_code] => 30519
                    [postal_code_plus_4] => 3842
                    [phone_number] => 706-280-2010
                    [email] => ynh6tf0wrxxrg9v@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Priority Mail if Qty 1 (New)
                                    [sku] => 1poundvariety
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 112.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 29.99
                                    [unit_price] => 29.99
                                    [ext_line_item_id] => 34567903064890
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 7daae36b-e2c7-4b64-8cb1-660db78fcf5c
                                    [order_source_id] => 215654533
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 206208633
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 208295213
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 112.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-27T17:06:50Z
                            [updated_at] => 2017-12-28T06:40:56Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped priority mail if qty 1 (new)
                            [line_item_sku] => 1poundvariety
                            [address_kind] => R
                            [recipient_last_name] => capistran
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 206208633
                            [state] => GA
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-27T15:40:21Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 114-5182938-9724253
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 114-5182938-9724253
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 223368073
                    [tracking_number] => 9405510298370316028342
                    [carrier_key] => USPS
                    [carrier_service_key] => Priority
                    [shipment_cost] => 815
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-28T06:40:56Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 206208633
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for ynh6tf0wrxxrg9v@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 9984

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(4) "Ivan"
  ["customer_last_name"]=>
  string(9) "Capistran"
  ["customer_email"]=>
  string(38) "ynh6tf0wrxxrg9v@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(14) "Ivan Capistran"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(20) "2790 BLAKE TOWERS LN"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(6) "BUFORD"
    ["address_state"]=>
    string(2) "GA"
    ["address_zip"]=>
    string(10) "30519-3842"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9984"
  ["ordered_time"]=>
  string(19) "2017-12-27 15:40:21"
  ["se_order_id"]=>
  int(206208633)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "114-5182938-9724253"
  ["order_weight_ounces"]=>
  string(5) "112.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4288) "{"id":206208633,"external_order_identifier":"114-5182938-9724253","ext_order_reference_id":"114-5182938-9724253","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-27T15:40:21Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"31.79","total_excluding_tax":"29.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"31.79","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"1.80","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Ivan Capistran","billing_first_name":"Ivan","billing_last_name":"capistran","billing_address":"2790 BLAKE TOWERS LN","billing_address2":null,"billing_city":"BUFORD","billing_state":"GA","billing_country":"US","billing_postal_code":"30519-3842","billing_phone_number":"706-280-2010","billing_email":"ynh6tf0wrxxrg9v@marketplace.amazon.com","buyer_email":"ynh6tf0wrxxrg9v@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Ivan","last_name":"Capistran","address":"2790 BLAKE TOWERS LN","address2":null,"address3":null,"city":"BUFORD","residential":true,"state":"GA","province":null,"country":"United States","postal_code":"30519","postal_code_plus_4":"3842","phone_number":"706-280-2010","email":"ynh6tf0wrxxrg9v@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Priority Mail if Qty 1 (New)","sku":"1poundvariety","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"112.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"29.99","unit_price":"29.99","ext_line_item_id":"34567903064890","ext_product_id":null,"product_options":null,"uuid":"7daae36b-e2c7-4b64-8cb1-660db78fcf5c","order_source_id":215654533,"gift_message":null}],"original_order":{"id":206208633,"customer_id":33773,"store_id":70647,"order_detail_id":208295213,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"112.0","total_quantity":1,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-27T17:06:50Z","updated_at":"2017-12-28T06:40:56Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped priority mail if qty 1 (new)","line_item_sku":"1poundvariety","address_kind":"R","recipient_last_name":"capistran","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":206208633,"state":"GA","owner_id":37098,"denormalized_ordered_at":"2017-12-27T15:40:21Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"114-5182938-9724253","packing_slip_generated":null,"denormalized_ext_order_reference_id":"114-5182938-9724253","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":223368073,"tracking_number":"9405510298370316028342","carrier_key":"USPS","carrier_service_key":"Priority","shipment_cost":815,"ship_date":"2017-12-28"}],"updated_at":"2017-12-28T06:40:56Z","internal_notes":"","meta_data":null,"prime_order_id":206208633,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(223368073)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(5) "112.0"
      ["carrier_service_key"]=>
      string(8) "Priority"
      ["shipment_cost"]=>
      int(815)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(22) "9405510298370316028342"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7379

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7039"
    ["order_id"]=>
    string(4) "7379"
    ["se_shipment_id"]=>
    string(9) "223368073"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(3) "815"
    ["shipment_weight_ounces"]=>
    string(6) "112.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370316028342"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(43) "Departed USPS Regional Destination Facility"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:56"
  }
}


shipmentDBRows:
array(1) {
  [223368073]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7039"
    ["order_id"]=>
    string(4) "7379"
    ["se_shipment_id"]=>
    string(9) "223368073"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(3) "815"
    ["shipment_weight_ounces"]=>
    string(6) "112.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370316028342"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(43) "Departed USPS Regional Destination Facility"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:56"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(223368073)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(5) "112.0"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    int(815)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370316028342"
  }
}

Shipment info shipping easy shipment ID #223368073

From API:
array(7) {
  ["se_shipment_id"]=>
  int(223368073)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(5) "112.0"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  int(815)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9405510298370316028342"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7039"
  ["order_id"]=>
  string(4) "7379"
  ["se_shipment_id"]=>
  string(9) "223368073"
  ["carrier_key"]=>
  string(4) "USPS"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  string(3) "815"
  ["shipment_weight_ounces"]=>
  string(6) "112.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9405510298370316028342"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  string(43) "Departed USPS Regional Destination Facility"
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:56"
}



Shipment info for shipping easy shipment ID #223368073 is same between both arrays

*** Order info:
Array
(
    [id] => 206144353
    [external_order_identifier] => 114-5234856-5190642
    [ext_order_reference_id] => 114-5234856-5190642
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-27T15:18:01Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 37.51
    [total_excluding_tax] => 34.98
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 37.51
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 2.53
    [base_shipping_cost] => 4.99
    [shipping_cost_including_tax] => 4.99
    [shipping_cost_excluding_tax] => 4.99
    [shipping_cost_tax] => 0.36
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Alexander Pavlukevich
    [billing_first_name] => Alex
    [billing_last_name] => pavlukevich
    [billing_address] => 1064 Oakbriar Circle
    [billing_address2] => 
    [billing_city] => Roseville
    [billing_state] => CA
    [billing_country] => US
    [billing_postal_code] => 95747
    [billing_phone_number] => 4087180521
    [billing_email] => db27246mbq3j293@marketplace.amazon.com
    [buyer_email] => db27246mbq3j293@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Alexander
                    [last_name] => Pavlukevich
                    [address] => 1064 Oakbriar Circle
                    [address2] => 
                    [address3] => 
                    [city] => Roseville
                    [residential] => 1
                    [state] => CA
                    [province] => 
                    [country] => United States
                    [postal_code] => 95747
                    [postal_code_plus_4] => 9658
                    [phone_number] => 4087180521
                    [email] => db27246mbq3j293@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => Standard
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Priority Mail if Qty 1 (New)
                                    [sku] => 1poundvariety
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 112.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 29.99
                                    [unit_price] => 29.99
                                    [ext_line_item_id] => 33108768476114
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => af4f7f14-347e-4e7f-8a50-e8619602cb06
                                    [order_source_id] => 215586503
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 206144353
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 208230833
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 112.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 7
                            [created_at] => 2017-12-27T16:06:45Z
                            [updated_at] => 2017-12-28T06:40:56Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped priority mail if qty 1 (new)
                            [line_item_sku] => 1poundvariety
                            [address_kind] => R
                            [recipient_last_name] => pavlukevich
                            [recipient_requested_service] => standard
                            [gift] => 
                            [prime_order_id] => 206144353
                            [state] => CA
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-27T15:18:01Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 114-5234856-5190642
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 114-5234856-5190642
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 223368083
                    [tracking_number] => 9405510298370316028380
                    [carrier_key] => USPS
                    [carrier_service_key] => Priority
                    [shipment_cost] => 999
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-28T06:40:56Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 206144353
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for db27246mbq3j293@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 9985

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(9) "Alexander"
  ["customer_last_name"]=>
  string(11) "Pavlukevich"
  ["customer_email"]=>
  string(38) "db27246mbq3j293@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(21) "Alexander Pavlukevich"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(20) "1064 Oakbriar Circle"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(9) "Roseville"
    ["address_state"]=>
    string(2) "CA"
    ["address_zip"]=>
    string(5) "95747"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9985"
  ["ordered_time"]=>
  string(19) "2017-12-27 15:18:01"
  ["se_order_id"]=>
  int(206144353)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "114-5234856-5190642"
  ["order_weight_ounces"]=>
  string(5) "112.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4297) "{"id":206144353,"external_order_identifier":"114-5234856-5190642","ext_order_reference_id":"114-5234856-5190642","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-27T15:18:01Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"37.51","total_excluding_tax":"34.98","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"37.51","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"2.53","base_shipping_cost":"4.99","shipping_cost_including_tax":"4.99","shipping_cost_excluding_tax":"4.99","shipping_cost_tax":"0.36","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Alexander Pavlukevich","billing_first_name":"Alex","billing_last_name":"pavlukevich","billing_address":"1064 Oakbriar Circle","billing_address2":null,"billing_city":"Roseville","billing_state":"CA","billing_country":"US","billing_postal_code":"95747","billing_phone_number":"4087180521","billing_email":"db27246mbq3j293@marketplace.amazon.com","buyer_email":"db27246mbq3j293@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Alexander","last_name":"Pavlukevich","address":"1064 Oakbriar Circle","address2":null,"address3":null,"city":"Roseville","residential":true,"state":"CA","province":null,"country":"United States","postal_code":"95747","postal_code_plus_4":"9658","phone_number":"4087180521","email":"db27246mbq3j293@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"Standard","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Priority Mail if Qty 1 (New)","sku":"1poundvariety","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"112.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"29.99","unit_price":"29.99","ext_line_item_id":"33108768476114","ext_product_id":null,"product_options":null,"uuid":"af4f7f14-347e-4e7f-8a50-e8619602cb06","order_source_id":215586503,"gift_message":null}],"original_order":{"id":206144353,"customer_id":33773,"store_id":70647,"order_detail_id":208230833,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"112.0","total_quantity":1,"is_international":false,"usps_shipping_zone":7,"created_at":"2017-12-27T16:06:45Z","updated_at":"2017-12-28T06:40:56Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped priority mail if qty 1 (new)","line_item_sku":"1poundvariety","address_kind":"R","recipient_last_name":"pavlukevich","recipient_requested_service":"standard","gift":null,"prime_order_id":206144353,"state":"CA","owner_id":37098,"denormalized_ordered_at":"2017-12-27T15:18:01Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"114-5234856-5190642","packing_slip_generated":null,"denormalized_ext_order_reference_id":"114-5234856-5190642","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":223368083,"tracking_number":"9405510298370316028380","carrier_key":"USPS","carrier_service_key":"Priority","shipment_cost":999,"ship_date":"2017-12-28"}],"updated_at":"2017-12-28T06:40:56Z","internal_notes":"","meta_data":null,"prime_order_id":206144353,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(223368083)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(5) "112.0"
      ["carrier_service_key"]=>
      string(8) "Priority"
      ["shipment_cost"]=>
      int(999)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(22) "9405510298370316028380"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7380

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7040"
    ["order_id"]=>
    string(4) "7380"
    ["se_shipment_id"]=>
    string(9) "223368083"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(3) "999"
    ["shipment_weight_ounces"]=>
    string(6) "112.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370316028380"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(14) "Arrived at Hub"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:57"
  }
}


shipmentDBRows:
array(1) {
  [223368083]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7040"
    ["order_id"]=>
    string(4) "7380"
    ["se_shipment_id"]=>
    string(9) "223368083"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(3) "999"
    ["shipment_weight_ounces"]=>
    string(6) "112.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370316028380"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(14) "Arrived at Hub"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:57"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(223368083)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(5) "112.0"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    int(999)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370316028380"
  }
}

Shipment info shipping easy shipment ID #223368083

From API:
array(7) {
  ["se_shipment_id"]=>
  int(223368083)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(5) "112.0"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  int(999)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9405510298370316028380"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7040"
  ["order_id"]=>
  string(4) "7380"
  ["se_shipment_id"]=>
  string(9) "223368083"
  ["carrier_key"]=>
  string(4) "USPS"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  string(3) "999"
  ["shipment_weight_ounces"]=>
  string(6) "112.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9405510298370316028380"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  string(14) "Arrived at Hub"
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:57"
}



Shipment info for shipping easy shipment ID #223368083 is same between both arrays

*** Order info:
Array
(
    [id] => 206543133
    [external_order_identifier] => 112-2286258-6374636
    [ext_order_reference_id] => 112-2286258-6374636
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-27T21:19:59Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 29.99
    [total_excluding_tax] => 29.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 29.99
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => John Foley
    [billing_first_name] => Sean
    [billing_last_name] => Foley
    [billing_address] => 752 ALBEMARLE ST
    [billing_address2] => 
    [billing_city] => WYCKOFF
    [billing_state] => NJ
    [billing_country] => US
    [billing_postal_code] => 07481-1005
    [billing_phone_number] => 201-847-8608
    [billing_email] => k6zw95rpr404kpw@marketplace.amazon.com
    [buyer_email] => k6zw95rpr404kpw@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => John
                    [last_name] => Foley
                    [address] => 752 ALBEMARLE ST
                    [address2] => 
                    [address3] => 
                    [city] => WYCKOFF
                    [residential] => 1
                    [state] => NJ
                    [province] => 
                    [country] => United States
                    [postal_code] => 07481
                    [postal_code_plus_4] => 1005
                    [phone_number] => 201-847-8608
                    [email] => k6zw95rpr404kpw@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Priority Mail if Qty 1 (New)
                                    [sku] => 1poundvariety
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 112.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 29.99
                                    [unit_price] => 29.99
                                    [ext_line_item_id] => 25817791128802
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => b09a6988-ecda-4b9d-b8f3-942f694039ad
                                    [order_source_id] => 216012893
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 206543133
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 208640743
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 112.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-27T22:06:40Z
                            [updated_at] => 2017-12-28T06:40:56Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped priority mail if qty 1 (new)
                            [line_item_sku] => 1poundvariety
                            [address_kind] => R
                            [recipient_last_name] => foley
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 206543133
                            [state] => NJ
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-27T21:19:59Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 112-2286258-6374636
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 112-2286258-6374636
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 223368093
                    [tracking_number] => 9405510298370316028359
                    [carrier_key] => USPS
                    [carrier_service_key] => Priority
                    [shipment_cost] => 815
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-28T06:40:56Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 206543133
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for k6zw95rpr404kpw@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 9986

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(4) "John"
  ["customer_last_name"]=>
  string(5) "Foley"
  ["customer_email"]=>
  string(38) "k6zw95rpr404kpw@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(10) "John Foley"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(16) "752 ALBEMARLE ST"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(7) "WYCKOFF"
    ["address_state"]=>
    string(2) "NJ"
    ["address_zip"]=>
    string(10) "07481-1005"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9986"
  ["ordered_time"]=>
  string(19) "2017-12-27 21:19:59"
  ["se_order_id"]=>
  int(206543133)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "112-2286258-6374636"
  ["order_weight_ounces"]=>
  string(5) "112.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4266) "{"id":206543133,"external_order_identifier":"112-2286258-6374636","ext_order_reference_id":"112-2286258-6374636","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-27T21:19:59Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"29.99","total_excluding_tax":"29.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"29.99","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"John Foley","billing_first_name":"Sean","billing_last_name":"Foley","billing_address":"752 ALBEMARLE ST","billing_address2":null,"billing_city":"WYCKOFF","billing_state":"NJ","billing_country":"US","billing_postal_code":"07481-1005","billing_phone_number":"201-847-8608","billing_email":"k6zw95rpr404kpw@marketplace.amazon.com","buyer_email":"k6zw95rpr404kpw@marketplace.amazon.com","recipients":[{"company":null,"first_name":"John","last_name":"Foley","address":"752 ALBEMARLE ST","address2":null,"address3":null,"city":"WYCKOFF","residential":true,"state":"NJ","province":null,"country":"United States","postal_code":"07481","postal_code_plus_4":"1005","phone_number":"201-847-8608","email":"k6zw95rpr404kpw@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Priority Mail if Qty 1 (New)","sku":"1poundvariety","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"112.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"29.99","unit_price":"29.99","ext_line_item_id":"25817791128802","ext_product_id":null,"product_options":null,"uuid":"b09a6988-ecda-4b9d-b8f3-942f694039ad","order_source_id":216012893,"gift_message":null}],"original_order":{"id":206543133,"customer_id":33773,"store_id":70647,"order_detail_id":208640743,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"112.0","total_quantity":1,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-27T22:06:40Z","updated_at":"2017-12-28T06:40:56Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped priority mail if qty 1 (new)","line_item_sku":"1poundvariety","address_kind":"R","recipient_last_name":"foley","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":206543133,"state":"NJ","owner_id":37098,"denormalized_ordered_at":"2017-12-27T21:19:59Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"112-2286258-6374636","packing_slip_generated":null,"denormalized_ext_order_reference_id":"112-2286258-6374636","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":223368093,"tracking_number":"9405510298370316028359","carrier_key":"USPS","carrier_service_key":"Priority","shipment_cost":815,"ship_date":"2017-12-28"}],"updated_at":"2017-12-28T06:40:56Z","internal_notes":"","meta_data":null,"prime_order_id":206543133,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(223368093)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(5) "112.0"
      ["carrier_service_key"]=>
      string(8) "Priority"
      ["shipment_cost"]=>
      int(815)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(22) "9405510298370316028359"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7381

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7041"
    ["order_id"]=>
    string(4) "7381"
    ["se_shipment_id"]=>
    string(9) "223368093"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(3) "815"
    ["shipment_weight_ounces"]=>
    string(6) "112.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370316028359"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(43) "Departed USPS Regional Destination Facility"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:56"
  }
}


shipmentDBRows:
array(1) {
  [223368093]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7041"
    ["order_id"]=>
    string(4) "7381"
    ["se_shipment_id"]=>
    string(9) "223368093"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(3) "815"
    ["shipment_weight_ounces"]=>
    string(6) "112.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370316028359"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(43) "Departed USPS Regional Destination Facility"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:56"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(223368093)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(5) "112.0"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    int(815)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370316028359"
  }
}

Shipment info shipping easy shipment ID #223368093

From API:
array(7) {
  ["se_shipment_id"]=>
  int(223368093)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(5) "112.0"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  int(815)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9405510298370316028359"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7041"
  ["order_id"]=>
  string(4) "7381"
  ["se_shipment_id"]=>
  string(9) "223368093"
  ["carrier_key"]=>
  string(4) "USPS"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  string(3) "815"
  ["shipment_weight_ounces"]=>
  string(6) "112.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9405510298370316028359"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  string(43) "Departed USPS Regional Destination Facility"
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:56"
}



Shipment info for shipping easy shipment ID #223368093 is same between both arrays

*** Order info:
Array
(
    [id] => 206786103
    [external_order_identifier] => 111-4663772-9306664
    [ext_order_reference_id] => 111-4663772-9306664
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-28T02:05:34Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 29.99
    [total_excluding_tax] => 29.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 29.99
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Nicole Cito
    [billing_first_name] => Nicole
    [billing_last_name] => G
    [billing_address] => 13304 WINDHAM DR
    [billing_address2] => 
    [billing_city] => WASHINGTON
    [billing_state] => MI
    [billing_country] => US
    [billing_postal_code] => 48094-3174
    [billing_phone_number] => 586-201-2068
    [billing_email] => c6yf1qc4m3rdlf7@marketplace.amazon.com
    [buyer_email] => c6yf1qc4m3rdlf7@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Nicole
                    [last_name] => Cito
                    [address] => 13304 WINDHAM DR
                    [address2] => 
                    [address3] => 
                    [city] => WASHINGTON
                    [residential] => 1
                    [state] => MI
                    [province] => 
                    [country] => United States
                    [postal_code] => 48094
                    [postal_code_plus_4] => 3174
                    [phone_number] => 586-201-2068
                    [email] => c6yf1qc4m3rdlf7@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Pri (New)
                                    [sku] => 1poundvariety
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 112.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 29.99
                                    [unit_price] => 29.99
                                    [ext_line_item_id] => 65448135511058
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 19f1f88f-3d07-4805-8801-8a779e091081
                                    [order_source_id] => 216280133
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 206786103
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 208886393
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 112.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 4
                            [created_at] => 2017-12-28T03:07:40Z
                            [updated_at] => 2017-12-28T06:40:56Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped pri (new)
                            [line_item_sku] => 1poundvariety
                            [address_kind] => R
                            [recipient_last_name] => cito
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 206786103
                            [state] => MI
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-28T02:05:34Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 111-4663772-9306664
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 111-4663772-9306664
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 223368103
                    [tracking_number] => 9405510298370316028373
                    [carrier_key] => USPS
                    [carrier_service_key] => Priority
                    [shipment_cost] => 683
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-28T06:40:56Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 206786103
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for c6yf1qc4m3rdlf7@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 9987

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(6) "Nicole"
  ["customer_last_name"]=>
  string(4) "Cito"
  ["customer_email"]=>
  string(38) "c6yf1qc4m3rdlf7@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(11) "Nicole Cito"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(16) "13304 WINDHAM DR"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(10) "WASHINGTON"
    ["address_state"]=>
    string(2) "MI"
    ["address_zip"]=>
    string(10) "48094-3174"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9987"
  ["ordered_time"]=>
  string(19) "2017-12-28 02:05:34"
  ["se_order_id"]=>
  int(206786103)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "111-4663772-9306664"
  ["order_weight_ounces"]=>
  string(5) "112.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4233) "{"id":206786103,"external_order_identifier":"111-4663772-9306664","ext_order_reference_id":"111-4663772-9306664","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-28T02:05:34Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"29.99","total_excluding_tax":"29.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"29.99","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Nicole Cito","billing_first_name":"Nicole","billing_last_name":"G","billing_address":"13304 WINDHAM DR","billing_address2":null,"billing_city":"WASHINGTON","billing_state":"MI","billing_country":"US","billing_postal_code":"48094-3174","billing_phone_number":"586-201-2068","billing_email":"c6yf1qc4m3rdlf7@marketplace.amazon.com","buyer_email":"c6yf1qc4m3rdlf7@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Nicole","last_name":"Cito","address":"13304 WINDHAM DR","address2":null,"address3":null,"city":"WASHINGTON","residential":true,"state":"MI","province":null,"country":"United States","postal_code":"48094","postal_code_plus_4":"3174","phone_number":"586-201-2068","email":"c6yf1qc4m3rdlf7@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Pri (New)","sku":"1poundvariety","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"112.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"29.99","unit_price":"29.99","ext_line_item_id":"65448135511058","ext_product_id":null,"product_options":null,"uuid":"19f1f88f-3d07-4805-8801-8a779e091081","order_source_id":216280133,"gift_message":null}],"original_order":{"id":206786103,"customer_id":33773,"store_id":70647,"order_detail_id":208886393,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"112.0","total_quantity":1,"is_international":false,"usps_shipping_zone":4,"created_at":"2017-12-28T03:07:40Z","updated_at":"2017-12-28T06:40:56Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped pri (new)","line_item_sku":"1poundvariety","address_kind":"R","recipient_last_name":"cito","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":206786103,"state":"MI","owner_id":37098,"denormalized_ordered_at":"2017-12-28T02:05:34Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"111-4663772-9306664","packing_slip_generated":null,"denormalized_ext_order_reference_id":"111-4663772-9306664","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":223368103,"tracking_number":"9405510298370316028373","carrier_key":"USPS","carrier_service_key":"Priority","shipment_cost":683,"ship_date":"2017-12-28"}],"updated_at":"2017-12-28T06:40:56Z","internal_notes":"","meta_data":null,"prime_order_id":206786103,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(223368103)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(5) "112.0"
      ["carrier_service_key"]=>
      string(8) "Priority"
      ["shipment_cost"]=>
      int(683)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(22) "9405510298370316028373"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7382

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7042"
    ["order_id"]=>
    string(4) "7382"
    ["se_shipment_id"]=>
    string(9) "223368103"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(3) "683"
    ["shipment_weight_ounces"]=>
    string(6) "112.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370316028373"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(45) "Arrived at USPS Regional Destination Facility"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:57"
  }
}


shipmentDBRows:
array(1) {
  [223368103]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7042"
    ["order_id"]=>
    string(4) "7382"
    ["se_shipment_id"]=>
    string(9) "223368103"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(3) "683"
    ["shipment_weight_ounces"]=>
    string(6) "112.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370316028373"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(45) "Arrived at USPS Regional Destination Facility"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:57"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(223368103)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(5) "112.0"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    int(683)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370316028373"
  }
}

Shipment info shipping easy shipment ID #223368103

From API:
array(7) {
  ["se_shipment_id"]=>
  int(223368103)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(5) "112.0"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  int(683)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9405510298370316028373"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7042"
  ["order_id"]=>
  string(4) "7382"
  ["se_shipment_id"]=>
  string(9) "223368103"
  ["carrier_key"]=>
  string(4) "USPS"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  string(3) "683"
  ["shipment_weight_ounces"]=>
  string(6) "112.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9405510298370316028373"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  string(45) "Arrived at USPS Regional Destination Facility"
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:57"
}



Shipment info for shipping easy shipment ID #223368103 is same between both arrays

*** Order info:
Array
(
    [id] => 206599503
    [external_order_identifier] => 113-7700510-0642669
    [ext_order_reference_id] => 113-7700510-0642669
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-27T22:34:41Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 32.16
    [total_excluding_tax] => 29.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 32.16
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 2.17
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Jodi Switzer
    [billing_first_name] => Jodi
    [billing_last_name] => Switzer
    [billing_address] => 4004 MAPLE ST
    [billing_address2] => 
    [billing_city] => VENTURA
    [billing_state] => CA
    [billing_country] => US
    [billing_postal_code] => 93003-3652
    [billing_phone_number] => 2699676097
    [billing_email] => 28hh0zc5jhg332j@marketplace.amazon.com
    [buyer_email] => 28hh0zc5jhg332j@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Jodi
                    [last_name] => Switzer
                    [address] => 4004 MAPLE ST
                    [address2] => 
                    [address3] => 
                    [city] => VENTURA
                    [residential] => 1
                    [state] => CA
                    [province] => 
                    [country] => United States
                    [postal_code] => 93003
                    [postal_code_plus_4] => 3652
                    [phone_number] => 2699676097
                    [email] => 28hh0zc5jhg332j@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Priority Mail if Qty 1 (New)
                                    [sku] => 1poundvariety
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 112.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 29.99
                                    [unit_price] => 29.99
                                    [ext_line_item_id] => 24995441163506
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 3a96954c-a4ec-480a-9ce3-aceb63eae5b0
                                    [order_source_id] => 216074233
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 206599503
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 208697583
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 112.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 7
                            [created_at] => 2017-12-27T23:06:45Z
                            [updated_at] => 2017-12-28T06:40:56Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped priority mail if qty 1 (new)
                            [line_item_sku] => 1poundvariety
                            [address_kind] => R
                            [recipient_last_name] => switzer
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 206599503
                            [state] => CA
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-27T22:34:41Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 113-7700510-0642669
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 113-7700510-0642669
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 223368113
                    [tracking_number] => 9405510298370316028397
                    [carrier_key] => USPS
                    [carrier_service_key] => Priority
                    [shipment_cost] => 999
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-28T06:40:56Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 206599503
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for 28hh0zc5jhg332j@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 9988

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(4) "Jodi"
  ["customer_last_name"]=>
  string(7) "Switzer"
  ["customer_email"]=>
  string(38) "28hh0zc5jhg332j@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(12) "Jodi Switzer"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(13) "4004 MAPLE ST"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(7) "VENTURA"
    ["address_state"]=>
    string(2) "CA"
    ["address_zip"]=>
    string(10) "93003-3652"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9988"
  ["ordered_time"]=>
  string(19) "2017-12-27 22:34:41"
  ["se_order_id"]=>
  int(206599503)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "113-7700510-0642669"
  ["order_weight_ounces"]=>
  string(5) "112.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4264) "{"id":206599503,"external_order_identifier":"113-7700510-0642669","ext_order_reference_id":"113-7700510-0642669","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-27T22:34:41Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"32.16","total_excluding_tax":"29.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"32.16","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"2.17","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Jodi Switzer","billing_first_name":"Jodi","billing_last_name":"Switzer","billing_address":"4004 MAPLE ST","billing_address2":null,"billing_city":"VENTURA","billing_state":"CA","billing_country":"US","billing_postal_code":"93003-3652","billing_phone_number":"2699676097","billing_email":"28hh0zc5jhg332j@marketplace.amazon.com","buyer_email":"28hh0zc5jhg332j@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Jodi","last_name":"Switzer","address":"4004 MAPLE ST","address2":null,"address3":null,"city":"VENTURA","residential":true,"state":"CA","province":null,"country":"United States","postal_code":"93003","postal_code_plus_4":"3652","phone_number":"2699676097","email":"28hh0zc5jhg332j@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Priority Mail if Qty 1 (New)","sku":"1poundvariety","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"112.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"29.99","unit_price":"29.99","ext_line_item_id":"24995441163506","ext_product_id":null,"product_options":null,"uuid":"3a96954c-a4ec-480a-9ce3-aceb63eae5b0","order_source_id":216074233,"gift_message":null}],"original_order":{"id":206599503,"customer_id":33773,"store_id":70647,"order_detail_id":208697583,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"112.0","total_quantity":1,"is_international":false,"usps_shipping_zone":7,"created_at":"2017-12-27T23:06:45Z","updated_at":"2017-12-28T06:40:56Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped priority mail if qty 1 (new)","line_item_sku":"1poundvariety","address_kind":"R","recipient_last_name":"switzer","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":206599503,"state":"CA","owner_id":37098,"denormalized_ordered_at":"2017-12-27T22:34:41Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"113-7700510-0642669","packing_slip_generated":null,"denormalized_ext_order_reference_id":"113-7700510-0642669","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":223368113,"tracking_number":"9405510298370316028397","carrier_key":"USPS","carrier_service_key":"Priority","shipment_cost":999,"ship_date":"2017-12-28"}],"updated_at":"2017-12-28T06:40:56Z","internal_notes":"","meta_data":null,"prime_order_id":206599503,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(223368113)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(5) "112.0"
      ["carrier_service_key"]=>
      string(8) "Priority"
      ["shipment_cost"]=>
      int(999)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(22) "9405510298370316028397"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7383

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7043"
    ["order_id"]=>
    string(4) "7383"
    ["se_shipment_id"]=>
    string(9) "223368113"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(3) "999"
    ["shipment_weight_ounces"]=>
    string(6) "112.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370316028397"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(25) "In Transit to Destination"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:57"
  }
}


shipmentDBRows:
array(1) {
  [223368113]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7043"
    ["order_id"]=>
    string(4) "7383"
    ["se_shipment_id"]=>
    string(9) "223368113"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(3) "999"
    ["shipment_weight_ounces"]=>
    string(6) "112.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370316028397"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(25) "In Transit to Destination"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:57"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(223368113)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(5) "112.0"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    int(999)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370316028397"
  }
}

Shipment info shipping easy shipment ID #223368113

From API:
array(7) {
  ["se_shipment_id"]=>
  int(223368113)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(5) "112.0"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  int(999)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9405510298370316028397"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7043"
  ["order_id"]=>
  string(4) "7383"
  ["se_shipment_id"]=>
  string(9) "223368113"
  ["carrier_key"]=>
  string(4) "USPS"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  string(3) "999"
  ["shipment_weight_ounces"]=>
  string(6) "112.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9405510298370316028397"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  string(25) "In Transit to Destination"
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:57"
}



Shipment info for shipping easy shipment ID #223368113 is same between both arrays

*** Order info:
Array
(
    [id] => 206648863
    [external_order_identifier] => 114-1070074-4806625
    [ext_order_reference_id] => 114-1070074-4806625
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-27T22:37:00Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 29.99
    [total_excluding_tax] => 29.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 29.99
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Landon Henke
    [billing_first_name] => Landon
    [billing_last_name] => Henke
    [billing_address] => 17 S CARRIAGE DR
    [billing_address2] => 
    [billing_city] => SAINT JOSEPH
    [billing_state] => MO
    [billing_country] => US
    [billing_postal_code] => 64506-1232
    [billing_phone_number] => 701-880-8993
    [billing_email] => rncc38cq6n812nn@marketplace.amazon.com
    [buyer_email] => rncc38cq6n812nn@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Landon
                    [last_name] => Henke
                    [address] => 17 S CARRIAGE DR
                    [address2] => 
                    [address3] => 
                    [city] => SAINT JOSEPH
                    [residential] => 1
                    [state] => MO
                    [province] => 
                    [country] => United States
                    [postal_code] => 64506
                    [postal_code_plus_4] => 1232
                    [phone_number] => 701-880-8993
                    [email] => rncc38cq6n812nn@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Priority Mail if Qty 1 (New)
                                    [sku] => 1poundvariety
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 112.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 29.99
                                    [unit_price] => 29.99
                                    [ext_line_item_id] => 49611903292202
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => f3dc3d82-3aac-479c-8d78-7d94e433e0c3
                                    [order_source_id] => 216128973
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 206648863
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 208748403
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 112.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 4
                            [created_at] => 2017-12-28T00:06:26Z
                            [updated_at] => 2017-12-28T06:40:56Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped priority mail if qty 1 (new)
                            [line_item_sku] => 1poundvariety
                            [address_kind] => R
                            [recipient_last_name] => henke
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 206648863
                            [state] => MO
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-27T22:37:00Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 114-1070074-4806625
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 114-1070074-4806625
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 223368123
                    [tracking_number] => 9405510298370316028366
                    [carrier_key] => USPS
                    [carrier_service_key] => Priority
                    [shipment_cost] => 683
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-28T06:40:56Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 206648863
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for rncc38cq6n812nn@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 9989

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(6) "Landon"
  ["customer_last_name"]=>
  string(5) "Henke"
  ["customer_email"]=>
  string(38) "rncc38cq6n812nn@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(12) "Landon Henke"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(16) "17 S CARRIAGE DR"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(12) "SAINT JOSEPH"
    ["address_state"]=>
    string(2) "MO"
    ["address_zip"]=>
    string(10) "64506-1232"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9989"
  ["ordered_time"]=>
  string(19) "2017-12-27 22:37:00"
  ["se_order_id"]=>
  int(206648863)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "114-1070074-4806625"
  ["order_weight_ounces"]=>
  string(5) "112.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4282) "{"id":206648863,"external_order_identifier":"114-1070074-4806625","ext_order_reference_id":"114-1070074-4806625","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-27T22:37:00Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"29.99","total_excluding_tax":"29.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"29.99","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Landon Henke","billing_first_name":"Landon","billing_last_name":"Henke","billing_address":"17 S CARRIAGE DR","billing_address2":null,"billing_city":"SAINT JOSEPH","billing_state":"MO","billing_country":"US","billing_postal_code":"64506-1232","billing_phone_number":"701-880-8993","billing_email":"rncc38cq6n812nn@marketplace.amazon.com","buyer_email":"rncc38cq6n812nn@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Landon","last_name":"Henke","address":"17 S CARRIAGE DR","address2":null,"address3":null,"city":"SAINT JOSEPH","residential":true,"state":"MO","province":null,"country":"United States","postal_code":"64506","postal_code_plus_4":"1232","phone_number":"701-880-8993","email":"rncc38cq6n812nn@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Priority Mail if Qty 1 (New)","sku":"1poundvariety","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"112.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"29.99","unit_price":"29.99","ext_line_item_id":"49611903292202","ext_product_id":null,"product_options":null,"uuid":"f3dc3d82-3aac-479c-8d78-7d94e433e0c3","order_source_id":216128973,"gift_message":null}],"original_order":{"id":206648863,"customer_id":33773,"store_id":70647,"order_detail_id":208748403,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"112.0","total_quantity":1,"is_international":false,"usps_shipping_zone":4,"created_at":"2017-12-28T00:06:26Z","updated_at":"2017-12-28T06:40:56Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped priority mail if qty 1 (new)","line_item_sku":"1poundvariety","address_kind":"R","recipient_last_name":"henke","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":206648863,"state":"MO","owner_id":37098,"denormalized_ordered_at":"2017-12-27T22:37:00Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"114-1070074-4806625","packing_slip_generated":null,"denormalized_ext_order_reference_id":"114-1070074-4806625","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":223368123,"tracking_number":"9405510298370316028366","carrier_key":"USPS","carrier_service_key":"Priority","shipment_cost":683,"ship_date":"2017-12-28"}],"updated_at":"2017-12-28T06:40:56Z","internal_notes":"","meta_data":null,"prime_order_id":206648863,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(223368123)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(5) "112.0"
      ["carrier_service_key"]=>
      string(8) "Priority"
      ["shipment_cost"]=>
      int(683)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(22) "9405510298370316028366"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7384

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7044"
    ["order_id"]=>
    string(4) "7384"
    ["se_shipment_id"]=>
    string(9) "223368123"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(3) "683"
    ["shipment_weight_ounces"]=>
    string(6) "112.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370316028366"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(43) "Departed USPS Regional Destination Facility"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:56"
  }
}


shipmentDBRows:
array(1) {
  [223368123]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7044"
    ["order_id"]=>
    string(4) "7384"
    ["se_shipment_id"]=>
    string(9) "223368123"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(3) "683"
    ["shipment_weight_ounces"]=>
    string(6) "112.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370316028366"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(43) "Departed USPS Regional Destination Facility"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:56"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(223368123)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(5) "112.0"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    int(683)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370316028366"
  }
}

Shipment info shipping easy shipment ID #223368123

From API:
array(7) {
  ["se_shipment_id"]=>
  int(223368123)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(5) "112.0"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  int(683)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9405510298370316028366"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7044"
  ["order_id"]=>
  string(4) "7384"
  ["se_shipment_id"]=>
  string(9) "223368123"
  ["carrier_key"]=>
  string(4) "USPS"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  string(3) "683"
  ["shipment_weight_ounces"]=>
  string(6) "112.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9405510298370316028366"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  string(43) "Departed USPS Regional Destination Facility"
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:56"
}



Shipment info for shipping easy shipment ID #223368123 is same between both arrays

*** Order info:
Array
(
    [id] => 206832663
    [external_order_identifier] => 113-1025847-1137836
    [ext_order_reference_id] => 113-1025847-1137836
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-28T02:43:35Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 18.50
    [total_excluding_tax] => 18.50
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 18.50
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Mark A Sanders
    [billing_first_name] => Mark
    [billing_last_name] => A
    [billing_address] => 2006 ASHGROVE DR
    [billing_address2] => 
    [billing_city] => HOUSTON
    [billing_state] => TEXAS
    [billing_country] => US
    [billing_postal_code] => 77077-6006
    [billing_phone_number] => 281-250-4484
    [billing_email] => 9stctzcrqszkvjw@marketplace.amazon.com
    [buyer_email] => 9stctzcrqszkvjw@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Mark
                    [last_name] => A Sanders
                    [address] => 2006 ASHGROVE DR
                    [address2] => 
                    [address3] => 
                    [city] => HOUSTON
                    [residential] => 1
                    [state] => TX
                    [province] => 
                    [country] => United States
                    [postal_code] => 77077
                    [postal_code_plus_4] => 6006
                    [phone_number] => 281-250-4484
                    [email] => 9stctzcrqszkvjw@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack 20-pounds BBQ Grilling wood pellets (Oak-Hickory-Cherry Supreme Blend) (New)
                                    [sku] => 20poundljohc
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 336.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 18.50
                                    [unit_price] => 18.50
                                    [ext_line_item_id] => 31160709899498
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 1d318008-66c5-4789-830a-10aac6e500ed
                                    [order_source_id] => 216332133
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 206832663
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 208933153
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 336.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 6
                            [created_at] => 2017-12-28T04:07:14Z
                            [updated_at] => 2017-12-28T06:40:56Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack 20-pounds bbq grilling wood pellets (oak-hickory-cherry supreme blend) (new)
                            [line_item_sku] => 20poundljohc
                            [address_kind] => R
                            [recipient_last_name] => a sanders
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 206832663
                            [state] => TX
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-28T02:43:35Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 113-1025847-1137836
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 113-1025847-1137836
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 223370613
                    [tracking_number] => 789137474522
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 908
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-28T06:40:56Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 206832663
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for 9stctzcrqszkvjw@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 9990

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(4) "Mark"
  ["customer_last_name"]=>
  string(9) "A Sanders"
  ["customer_email"]=>
  string(38) "9stctzcrqszkvjw@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(14) "Mark A Sanders"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(16) "2006 ASHGROVE DR"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(7) "HOUSTON"
    ["address_state"]=>
    string(5) "TEXAS"
    ["address_zip"]=>
    string(10) "77077-6006"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9990"
  ["ordered_time"]=>
  string(19) "2017-12-28 02:43:35"
  ["se_order_id"]=>
  int(206832663)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "113-1025847-1137836"
  ["order_weight_ounces"]=>
  string(5) "336.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4096) "{"id":206832663,"external_order_identifier":"113-1025847-1137836","ext_order_reference_id":"113-1025847-1137836","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-28T02:43:35Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"18.50","total_excluding_tax":"18.50","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"18.50","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Mark A Sanders","billing_first_name":"Mark","billing_last_name":"A","billing_address":"2006 ASHGROVE DR","billing_address2":null,"billing_city":"HOUSTON","billing_state":"TEXAS","billing_country":"US","billing_postal_code":"77077-6006","billing_phone_number":"281-250-4484","billing_email":"9stctzcrqszkvjw@marketplace.amazon.com","buyer_email":"9stctzcrqszkvjw@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Mark","last_name":"A Sanders","address":"2006 ASHGROVE DR","address2":null,"address3":null,"city":"HOUSTON","residential":true,"state":"TX","province":null,"country":"United States","postal_code":"77077","postal_code_plus_4":"6006","phone_number":"281-250-4484","email":"9stctzcrqszkvjw@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack 20-pounds BBQ Grilling wood pellets (Oak-Hickory-Cherry Supreme Blend) (New)","sku":"20poundljohc","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"336.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"18.50","unit_price":"18.50","ext_line_item_id":"31160709899498","ext_product_id":null,"product_options":null,"uuid":"1d318008-66c5-4789-830a-10aac6e500ed","order_source_id":216332133,"gift_message":null}],"original_order":{"id":206832663,"customer_id":33773,"store_id":70647,"order_detail_id":208933153,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"336.0","total_quantity":1,"is_international":false,"usps_shipping_zone":6,"created_at":"2017-12-28T04:07:14Z","updated_at":"2017-12-28T06:40:56Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack 20-pounds bbq grilling wood pellets (oak-hickory-cherry supreme blend) (new)","line_item_sku":"20poundljohc","address_kind":"R","recipient_last_name":"a sanders","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":206832663,"state":"TX","owner_id":37098,"denormalized_ordered_at":"2017-12-28T02:43:35Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"113-1025847-1137836","packing_slip_generated":null,"denormalized_ext_order_reference_id":"113-1025847-1137836","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":223370613,"tracking_number":"789137474522","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":908,"ship_date":"2017-12-28"}],"updated_at":"2017-12-28T06:40:56Z","internal_notes":"","meta_data":null,"prime_order_id":206832663,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(223370613)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(5) "336.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(908)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(12) "789137474522"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7385

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7045"
    ["order_id"]=>
    string(4) "7385"
    ["se_shipment_id"]=>
    string(9) "223370613"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(3) "908"
    ["shipment_weight_ounces"]=>
    string(6) "336.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789137474522"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "IT"
    ["tracking_status_description"]=>
    string(10) "In transit"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-03 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:24"
  }
}


shipmentDBRows:
array(1) {
  [223370613]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7045"
    ["order_id"]=>
    string(4) "7385"
    ["se_shipment_id"]=>
    string(9) "223370613"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(3) "908"
    ["shipment_weight_ounces"]=>
    string(6) "336.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789137474522"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "IT"
    ["tracking_status_description"]=>
    string(10) "In transit"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-03 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:24"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(223370613)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(5) "336.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(908)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789137474522"
  }
}

Shipment info shipping easy shipment ID #223370613

From API:
array(7) {
  ["se_shipment_id"]=>
  int(223370613)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(5) "336.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(908)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789137474522"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7045"
  ["order_id"]=>
  string(4) "7385"
  ["se_shipment_id"]=>
  string(9) "223370613"
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  string(3) "908"
  ["shipment_weight_ounces"]=>
  string(6) "336.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789137474522"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  string(2) "IT"
  ["tracking_status_description"]=>
  string(10) "In transit"
  ["estimated_delivery_time"]=>
  string(19) "2018-01-03 00:00:00"
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:24"
}



Shipment info for shipping easy shipment ID #223370613 is same between both arrays

*** Order info:
Array
(
    [id] => 206735453
    [external_order_identifier] => 114-5652447-5205837
    [ext_order_reference_id] => 114-5652447-5205837
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-28T00:42:14Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 19.73
    [total_excluding_tax] => 18.40
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 19.73
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 1.33
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Patrick Waite
    [billing_first_name] => Patrick
    [billing_last_name] => Waite
    [billing_address] => 3418 Royal Meadow Lane
    [billing_address2] => 
    [billing_city] => San Jose
    [billing_state] => CA
    [billing_country] => US
    [billing_postal_code] => 95135
    [billing_phone_number] => (408)270-9255
    [billing_email] => ly0qd5wvmkdcxmf@marketplace.amazon.com
    [buyer_email] => ly0qd5wvmkdcxmf@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Patrick
                    [last_name] => Waite
                    [address] => 3418 Royal Meadow Lane
                    [address2] => 
                    [address3] => 
                    [city] => San Jose
                    [residential] => 1
                    [state] => CA
                    [province] => 
                    [country] => United States
                    [postal_code] => 95135
                    [postal_code_plus_4] => 1641
                    [phone_number] => (408)270-9255
                    [email] => ly0qd5wvmkdcxmf@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack 100% Hardwood Grilling Smoker Pellets, Pecan Blend, 20 LB (New)
                                    [sku] => 20PecComp
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 336.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 18.40
                                    [unit_price] => 18.40
                                    [ext_line_item_id] => 33454924381506
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => c95a2da8-b9b7-4b91-a159-9e8ff4b45e1c
                                    [order_source_id] => 216224673
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 206735453
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 208835543
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 336.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 7
                            [created_at] => 2017-12-28T02:08:07Z
                            [updated_at] => 2017-12-28T06:40:56Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack 100% hardwood grilling smoker pellets, pecan blend, 20 lb (new)
                            [line_item_sku] => 20peccomp
                            [address_kind] => R
                            [recipient_last_name] => waite
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 206735453
                            [state] => CA
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-28T00:42:14Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 114-5652447-5205837
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 114-5652447-5205837
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 223370623
                    [tracking_number] => 789137473055
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 1102
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-28T06:40:56Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 206735453
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for ly0qd5wvmkdcxmf@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 9991

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(7) "Patrick"
  ["customer_last_name"]=>
  string(5) "Waite"
  ["customer_email"]=>
  string(38) "ly0qd5wvmkdcxmf@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(13) "Patrick Waite"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(22) "3418 Royal Meadow Lane"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(8) "San Jose"
    ["address_state"]=>
    string(2) "CA"
    ["address_zip"]=>
    string(5) "95135"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9991"
  ["ordered_time"]=>
  string(19) "2017-12-28 00:42:14"
  ["se_order_id"]=>
  int(206735453)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "114-5652447-5205837"
  ["order_weight_ounces"]=>
  string(5) "336.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4074) "{"id":206735453,"external_order_identifier":"114-5652447-5205837","ext_order_reference_id":"114-5652447-5205837","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-28T00:42:14Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"19.73","total_excluding_tax":"18.40","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"19.73","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"1.33","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Patrick Waite","billing_first_name":"Patrick","billing_last_name":"Waite","billing_address":"3418 Royal Meadow Lane","billing_address2":null,"billing_city":"San Jose","billing_state":"CA","billing_country":"US","billing_postal_code":"95135","billing_phone_number":"(408)270-9255","billing_email":"ly0qd5wvmkdcxmf@marketplace.amazon.com","buyer_email":"ly0qd5wvmkdcxmf@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Patrick","last_name":"Waite","address":"3418 Royal Meadow Lane","address2":null,"address3":null,"city":"San Jose","residential":true,"state":"CA","province":null,"country":"United States","postal_code":"95135","postal_code_plus_4":"1641","phone_number":"(408)270-9255","email":"ly0qd5wvmkdcxmf@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack 100% Hardwood Grilling Smoker Pellets, Pecan Blend, 20 LB (New)","sku":"20PecComp","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"336.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"18.40","unit_price":"18.40","ext_line_item_id":"33454924381506","ext_product_id":null,"product_options":null,"uuid":"c95a2da8-b9b7-4b91-a159-9e8ff4b45e1c","order_source_id":216224673,"gift_message":null}],"original_order":{"id":206735453,"customer_id":33773,"store_id":70647,"order_detail_id":208835543,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"336.0","total_quantity":1,"is_international":false,"usps_shipping_zone":7,"created_at":"2017-12-28T02:08:07Z","updated_at":"2017-12-28T06:40:56Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack 100% hardwood grilling smoker pellets, pecan blend, 20 lb (new)","line_item_sku":"20peccomp","address_kind":"R","recipient_last_name":"waite","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":206735453,"state":"CA","owner_id":37098,"denormalized_ordered_at":"2017-12-28T00:42:14Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"114-5652447-5205837","packing_slip_generated":null,"denormalized_ext_order_reference_id":"114-5652447-5205837","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":223370623,"tracking_number":"789137473055","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":1102,"ship_date":"2017-12-28"}],"updated_at":"2017-12-28T06:40:56Z","internal_notes":"","meta_data":null,"prime_order_id":206735453,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(223370623)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(5) "336.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(1102)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(12) "789137473055"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7386

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7046"
    ["order_id"]=>
    string(4) "7386"
    ["se_shipment_id"]=>
    string(9) "223370623"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1102"
    ["shipment_weight_ounces"]=>
    string(6) "336.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789137473055"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "IT"
    ["tracking_status_description"]=>
    string(10) "In transit"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-04 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:24"
  }
}


shipmentDBRows:
array(1) {
  [223370623]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7046"
    ["order_id"]=>
    string(4) "7386"
    ["se_shipment_id"]=>
    string(9) "223370623"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1102"
    ["shipment_weight_ounces"]=>
    string(6) "336.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789137473055"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "IT"
    ["tracking_status_description"]=>
    string(10) "In transit"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-04 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:24"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(223370623)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(5) "336.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(1102)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789137473055"
  }
}

Shipment info shipping easy shipment ID #223370623

From API:
array(7) {
  ["se_shipment_id"]=>
  int(223370623)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(5) "336.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(1102)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789137473055"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7046"
  ["order_id"]=>
  string(4) "7386"
  ["se_shipment_id"]=>
  string(9) "223370623"
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  string(4) "1102"
  ["shipment_weight_ounces"]=>
  string(6) "336.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789137473055"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  string(2) "IT"
  ["tracking_status_description"]=>
  string(10) "In transit"
  ["estimated_delivery_time"]=>
  string(19) "2018-01-04 00:00:00"
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:24"
}



Shipment info for shipping easy shipment ID #223370623 is same between both arrays

*** Order info:
Array
(
    [id] => 206349793
    [external_order_identifier] => 114-6943566-1807468
    [ext_order_reference_id] => 114-6943566-1807468
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-27T18:29:51Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 19.69
    [total_excluding_tax] => 18.40
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 19.69
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 1.29
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Salvatore W. Collura
    [billing_first_name] => Salvatore
    [billing_last_name] => W
    [billing_address] => 18 MIDDLE MARSH RETREAT
    [billing_address2] => 
    [billing_city] => SAVANNAH
    [billing_state] => GA
    [billing_country] => US
    [billing_postal_code] => 31411-2602
    [billing_phone_number] => 404 229-3143
    [billing_email] => hd0qb69109c8gwv@marketplace.amazon.com
    [buyer_email] => hd0qb69109c8gwv@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Salvatore
                    [last_name] => W. Collura
                    [address] => 18 MIDDLE MARSH RETREAT
                    [address2] => 
                    [address3] => 
                    [city] => SAVANNAH
                    [residential] => 1
                    [state] => GA
                    [province] => 
                    [country] => United States
                    [postal_code] => 31411
                    [postal_code_plus_4] => 2602
                    [phone_number] => 404 229-3143
                    [email] => hd0qb69109c8gwv@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack 100% Hardwood Grilling Smoker Pellets, Pecan Blend, 20 LB (New)
                                    [sku] => 20PecComp
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 336.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 18.40
                                    [unit_price] => 18.40
                                    [ext_line_item_id] => 18241951964410
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => f54a8323-cc0e-41a9-9e74-f525c19cc293
                                    [order_source_id] => 215806713
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 206349793
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 208437343
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 336.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 6
                            [created_at] => 2017-12-27T19:07:30Z
                            [updated_at] => 2017-12-28T06:40:56Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack 100% hardwood grilling smoker pellets, pecan blend, 20 lb (new)
                            [line_item_sku] => 20peccomp
                            [address_kind] => R
                            [recipient_last_name] => w. collura
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 206349793
                            [state] => GA
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-27T18:29:51Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 114-6943566-1807468
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 114-6943566-1807468
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 223370633
                    [tracking_number] => 789137470387
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 908
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-28T06:40:56Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 206349793
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for hd0qb69109c8gwv@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 9992

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(9) "Salvatore"
  ["customer_last_name"]=>
  string(10) "W. Collura"
  ["customer_email"]=>
  string(38) "hd0qb69109c8gwv@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(20) "Salvatore W. Collura"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(23) "18 MIDDLE MARSH RETREAT"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(8) "SAVANNAH"
    ["address_state"]=>
    string(2) "GA"
    ["address_zip"]=>
    string(10) "31411-2602"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9992"
  ["ordered_time"]=>
  string(19) "2017-12-27 18:29:51"
  ["se_order_id"]=>
  int(206349793)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "114-6943566-1807468"
  ["order_weight_ounces"]=>
  string(5) "336.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4095) "{"id":206349793,"external_order_identifier":"114-6943566-1807468","ext_order_reference_id":"114-6943566-1807468","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-27T18:29:51Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"19.69","total_excluding_tax":"18.40","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"19.69","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"1.29","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Salvatore W. Collura","billing_first_name":"Salvatore","billing_last_name":"W","billing_address":"18 MIDDLE MARSH RETREAT","billing_address2":null,"billing_city":"SAVANNAH","billing_state":"GA","billing_country":"US","billing_postal_code":"31411-2602","billing_phone_number":"404 229-3143","billing_email":"hd0qb69109c8gwv@marketplace.amazon.com","buyer_email":"hd0qb69109c8gwv@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Salvatore","last_name":"W. Collura","address":"18 MIDDLE MARSH RETREAT","address2":null,"address3":null,"city":"SAVANNAH","residential":true,"state":"GA","province":null,"country":"United States","postal_code":"31411","postal_code_plus_4":"2602","phone_number":"404 229-3143","email":"hd0qb69109c8gwv@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack 100% Hardwood Grilling Smoker Pellets, Pecan Blend, 20 LB (New)","sku":"20PecComp","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"336.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"18.40","unit_price":"18.40","ext_line_item_id":"18241951964410","ext_product_id":null,"product_options":null,"uuid":"f54a8323-cc0e-41a9-9e74-f525c19cc293","order_source_id":215806713,"gift_message":null}],"original_order":{"id":206349793,"customer_id":33773,"store_id":70647,"order_detail_id":208437343,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"336.0","total_quantity":1,"is_international":false,"usps_shipping_zone":6,"created_at":"2017-12-27T19:07:30Z","updated_at":"2017-12-28T06:40:56Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack 100% hardwood grilling smoker pellets, pecan blend, 20 lb (new)","line_item_sku":"20peccomp","address_kind":"R","recipient_last_name":"w. collura","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":206349793,"state":"GA","owner_id":37098,"denormalized_ordered_at":"2017-12-27T18:29:51Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"114-6943566-1807468","packing_slip_generated":null,"denormalized_ext_order_reference_id":"114-6943566-1807468","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":223370633,"tracking_number":"789137470387","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":908,"ship_date":"2017-12-28"}],"updated_at":"2017-12-28T06:40:56Z","internal_notes":"","meta_data":null,"prime_order_id":206349793,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(223370633)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(5) "336.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(908)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(12) "789137470387"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7387

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7047"
    ["order_id"]=>
    string(4) "7387"
    ["se_shipment_id"]=>
    string(9) "223370633"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(3) "908"
    ["shipment_weight_ounces"]=>
    string(6) "336.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789137470387"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "IT"
    ["tracking_status_description"]=>
    string(10) "In transit"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-03 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:24"
  }
}


shipmentDBRows:
array(1) {
  [223370633]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7047"
    ["order_id"]=>
    string(4) "7387"
    ["se_shipment_id"]=>
    string(9) "223370633"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(3) "908"
    ["shipment_weight_ounces"]=>
    string(6) "336.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789137470387"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "IT"
    ["tracking_status_description"]=>
    string(10) "In transit"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-03 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:24"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(223370633)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(5) "336.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(908)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789137470387"
  }
}

Shipment info shipping easy shipment ID #223370633

From API:
array(7) {
  ["se_shipment_id"]=>
  int(223370633)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(5) "336.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(908)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789137470387"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7047"
  ["order_id"]=>
  string(4) "7387"
  ["se_shipment_id"]=>
  string(9) "223370633"
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  string(3) "908"
  ["shipment_weight_ounces"]=>
  string(6) "336.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789137470387"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  string(2) "IT"
  ["tracking_status_description"]=>
  string(10) "In transit"
  ["estimated_delivery_time"]=>
  string(19) "2018-01-03 00:00:00"
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:24"
}



Shipment info for shipping easy shipment ID #223370633 is same between both arrays

*** Order info:
Array
(
    [id] => 206144213
    [external_order_identifier] => 114-7812677-8198608
    [ext_order_reference_id] => 114-7812677-8198608
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-27T14:56:50Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 33.00
    [total_excluding_tax] => 33.00
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 33.00
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => James T. Hubler
    [billing_first_name] => James
    [billing_last_name] => T.
    [billing_address] => 10242 N KANSAS AVE
    [billing_address2] => 
    [billing_city] => KANSAS CITY
    [billing_state] => MO
    [billing_country] => US
    [billing_postal_code] => 64155-1939
    [billing_phone_number] => 816-716-0784
    [billing_email] => ky3vvkx6ns2yl98@marketplace.amazon.com
    [buyer_email] => ky3vvkx6ns2yl98@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => James
                    [last_name] => T. Hubler
                    [address] => 10242 N KANSAS AVE
                    [address2] => 
                    [address3] => 
                    [city] => KANSAS CITY
                    [residential] => 1
                    [state] => MO
                    [province] => 
                    [country] => United States
                    [postal_code] => 64155
                    [postal_code_plus_4] => 1939
                    [phone_number] => 816-716-0784
                    [email] => ky3vvkx6ns2yl98@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack 5086 40-Pound BBQ Grilling Wood Pellets, Competition Blend Maple, Hickory and Cherry Blend (New)
                                    [sku] => 40mhccomp1
                                    [bin_picking_number] => 40mhcmaster
                                    [bundled_product] => 
                                    [weight_in_ounces] => 656.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 33.00
                                    [unit_price] => 33.00
                                    [ext_line_item_id] => 61873874312074
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 98c44c8e-ec9d-4abd-8f2c-9cfaee978742
                                    [order_source_id] => 215586333
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 206144213
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 208230683
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 656.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 4
                            [created_at] => 2017-12-27T16:06:43Z
                            [updated_at] => 2017-12-28T06:40:56Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack 5086 40-pound bbq grilling wood pellets, competition blend maple, hickory and cherry blend (new)
                            [line_item_sku] => 40mhccomp1
                            [address_kind] => R
                            [recipient_last_name] => t. hubler
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 206144213
                            [state] => MO
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-27T14:56:50Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 40mhcmaster
                            [denormalized_ext_order_id] => 114-7812677-8198608
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 114-7812677-8198608
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 223370723
                    [tracking_number] => 789137501118
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 1048
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-28T06:40:56Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 206144213
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for ky3vvkx6ns2yl98@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 9993

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(5) "James"
  ["customer_last_name"]=>
  string(9) "T. Hubler"
  ["customer_email"]=>
  string(38) "ky3vvkx6ns2yl98@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(15) "James T. Hubler"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(18) "10242 N KANSAS AVE"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(11) "KANSAS CITY"
    ["address_state"]=>
    string(2) "MO"
    ["address_zip"]=>
    string(10) "64155-1939"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9993"
  ["ordered_time"]=>
  string(19) "2017-12-27 14:56:50"
  ["se_order_id"]=>
  int(206144213)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "114-7812677-8198608"
  ["order_weight_ounces"]=>
  string(5) "656.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4164) "{"id":206144213,"external_order_identifier":"114-7812677-8198608","ext_order_reference_id":"114-7812677-8198608","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-27T14:56:50Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"33.00","total_excluding_tax":"33.00","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"33.00","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"James T. Hubler","billing_first_name":"James","billing_last_name":"T.","billing_address":"10242 N KANSAS AVE","billing_address2":null,"billing_city":"KANSAS CITY","billing_state":"MO","billing_country":"US","billing_postal_code":"64155-1939","billing_phone_number":"816-716-0784","billing_email":"ky3vvkx6ns2yl98@marketplace.amazon.com","buyer_email":"ky3vvkx6ns2yl98@marketplace.amazon.com","recipients":[{"company":null,"first_name":"James","last_name":"T. Hubler","address":"10242 N KANSAS AVE","address2":null,"address3":null,"city":"KANSAS CITY","residential":true,"state":"MO","province":null,"country":"United States","postal_code":"64155","postal_code_plus_4":"1939","phone_number":"816-716-0784","email":"ky3vvkx6ns2yl98@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack 5086 40-Pound BBQ Grilling Wood Pellets, Competition Blend Maple, Hickory and Cherry Blend (New)","sku":"40mhccomp1","bin_picking_number":"40mhcmaster","bundled_product":null,"weight_in_ounces":"656.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"33.00","unit_price":"33.00","ext_line_item_id":"61873874312074","ext_product_id":null,"product_options":null,"uuid":"98c44c8e-ec9d-4abd-8f2c-9cfaee978742","order_source_id":215586333,"gift_message":null}],"original_order":{"id":206144213,"customer_id":33773,"store_id":70647,"order_detail_id":208230683,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"656.0","total_quantity":1,"is_international":false,"usps_shipping_zone":4,"created_at":"2017-12-27T16:06:43Z","updated_at":"2017-12-28T06:40:56Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack 5086 40-pound bbq grilling wood pellets, competition blend maple, hickory and cherry blend (new)","line_item_sku":"40mhccomp1","address_kind":"R","recipient_last_name":"t. hubler","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":206144213,"state":"MO","owner_id":37098,"denormalized_ordered_at":"2017-12-27T14:56:50Z","grab_bag":[],"line_item_bin_picking_number":"40mhcmaster","denormalized_ext_order_id":"114-7812677-8198608","packing_slip_generated":null,"denormalized_ext_order_reference_id":"114-7812677-8198608","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":223370723,"tracking_number":"789137501118","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":1048,"ship_date":"2017-12-28"}],"updated_at":"2017-12-28T06:40:56Z","internal_notes":"","meta_data":null,"prime_order_id":206144213,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(223370723)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(5) "656.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(1048)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(12) "789137501118"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7388

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7048"
    ["order_id"]=>
    string(4) "7388"
    ["se_shipment_id"]=>
    string(9) "223370723"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1048"
    ["shipment_weight_ounces"]=>
    string(6) "656.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789137501118"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "OD"
    ["tracking_status_description"]=>
    string(29) "On FedEx vehicle for delivery"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-02 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:26"
  }
}


shipmentDBRows:
array(1) {
  [223370723]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7048"
    ["order_id"]=>
    string(4) "7388"
    ["se_shipment_id"]=>
    string(9) "223370723"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1048"
    ["shipment_weight_ounces"]=>
    string(6) "656.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789137501118"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "OD"
    ["tracking_status_description"]=>
    string(29) "On FedEx vehicle for delivery"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-02 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:26"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(223370723)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(5) "656.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(1048)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789137501118"
  }
}

Shipment info shipping easy shipment ID #223370723

From API:
array(7) {
  ["se_shipment_id"]=>
  int(223370723)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(5) "656.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(1048)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789137501118"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7048"
  ["order_id"]=>
  string(4) "7388"
  ["se_shipment_id"]=>
  string(9) "223370723"
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  string(4) "1048"
  ["shipment_weight_ounces"]=>
  string(6) "656.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789137501118"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  string(2) "OD"
  ["tracking_status_description"]=>
  string(29) "On FedEx vehicle for delivery"
  ["estimated_delivery_time"]=>
  string(19) "2018-01-02 00:00:00"
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:26"
}



Shipment info for shipping easy shipment ID #223370723 is same between both arrays

*** Order info:
Array
(
    [id] => 206349723
    [external_order_identifier] => 114-3112642-1835439
    [ext_order_reference_id] => 114-3112642-1835439
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-27T17:51:53Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 33.00
    [total_excluding_tax] => 33.00
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 33.00
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Tyson Smith
    [billing_first_name] => Tyson
    [billing_last_name] => C.
    [billing_address] => 10674 Viewmont Lane
    [billing_address2] => 
    [billing_city] => Manassas
    [billing_state] => VA
    [billing_country] => US
    [billing_postal_code] => 20112
    [billing_phone_number] => 7038622416
    [billing_email] => l52k4c5845h76sm@marketplace.amazon.com
    [buyer_email] => l52k4c5845h76sm@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Tyson
                    [last_name] => Smith
                    [address] => 10674 Viewmont Lane
                    [address2] => 
                    [address3] => 
                    [city] => Manassas
                    [residential] => 1
                    [state] => VA
                    [province] => 
                    [country] => United States
                    [postal_code] => 20112
                    [postal_code_plus_4] => 5888
                    [phone_number] => 7038622416
                    [email] => l52k4c5845h76sm@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack 5086 40-Pound BBQ Grilling Wood Pellets, Competition Blend Maple, Hickory and Cherry Blend (New)
                                    [sku] => 40mhccomp1
                                    [bin_picking_number] => 40mhcmaster
                                    [bundled_product] => 
                                    [weight_in_ounces] => 656.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 33.00
                                    [unit_price] => 33.00
                                    [ext_line_item_id] => 47829390070242
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 1f266940-aa1c-44b2-915f-24fc86c0f99a
                                    [order_source_id] => 215806613
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 206349723
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 208437263
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 656.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-27T19:07:28Z
                            [updated_at] => 2017-12-28T06:40:56Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack 5086 40-pound bbq grilling wood pellets, competition blend maple, hickory and cherry blend (new)
                            [line_item_sku] => 40mhccomp1
                            [address_kind] => R
                            [recipient_last_name] => smith
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 206349723
                            [state] => VA
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-27T17:51:53Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 40mhcmaster
                            [denormalized_ext_order_id] => 114-3112642-1835439
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 114-3112642-1835439
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 223370733
                    [tracking_number] => 789137500810
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 1261
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-28T06:40:56Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 206349723
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for l52k4c5845h76sm@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 9994

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(5) "Tyson"
  ["customer_last_name"]=>
  string(5) "Smith"
  ["customer_email"]=>
  string(38) "l52k4c5845h76sm@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(11) "Tyson Smith"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(19) "10674 Viewmont Lane"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(8) "Manassas"
    ["address_state"]=>
    string(2) "VA"
    ["address_zip"]=>
    string(5) "20112"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9994"
  ["ordered_time"]=>
  string(19) "2017-12-27 17:51:53"
  ["se_order_id"]=>
  int(206349723)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "114-3112642-1835439"
  ["order_weight_ounces"]=>
  string(5) "656.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4139) "{"id":206349723,"external_order_identifier":"114-3112642-1835439","ext_order_reference_id":"114-3112642-1835439","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-27T17:51:53Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"33.00","total_excluding_tax":"33.00","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"33.00","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Tyson Smith","billing_first_name":"Tyson","billing_last_name":"C.","billing_address":"10674 Viewmont Lane","billing_address2":null,"billing_city":"Manassas","billing_state":"VA","billing_country":"US","billing_postal_code":"20112","billing_phone_number":"7038622416","billing_email":"l52k4c5845h76sm@marketplace.amazon.com","buyer_email":"l52k4c5845h76sm@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Tyson","last_name":"Smith","address":"10674 Viewmont Lane","address2":null,"address3":null,"city":"Manassas","residential":true,"state":"VA","province":null,"country":"United States","postal_code":"20112","postal_code_plus_4":"5888","phone_number":"7038622416","email":"l52k4c5845h76sm@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack 5086 40-Pound BBQ Grilling Wood Pellets, Competition Blend Maple, Hickory and Cherry Blend (New)","sku":"40mhccomp1","bin_picking_number":"40mhcmaster","bundled_product":null,"weight_in_ounces":"656.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"33.00","unit_price":"33.00","ext_line_item_id":"47829390070242","ext_product_id":null,"product_options":null,"uuid":"1f266940-aa1c-44b2-915f-24fc86c0f99a","order_source_id":215806613,"gift_message":null}],"original_order":{"id":206349723,"customer_id":33773,"store_id":70647,"order_detail_id":208437263,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"656.0","total_quantity":1,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-27T19:07:28Z","updated_at":"2017-12-28T06:40:56Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack 5086 40-pound bbq grilling wood pellets, competition blend maple, hickory and cherry blend (new)","line_item_sku":"40mhccomp1","address_kind":"R","recipient_last_name":"smith","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":206349723,"state":"VA","owner_id":37098,"denormalized_ordered_at":"2017-12-27T17:51:53Z","grab_bag":[],"line_item_bin_picking_number":"40mhcmaster","denormalized_ext_order_id":"114-3112642-1835439","packing_slip_generated":null,"denormalized_ext_order_reference_id":"114-3112642-1835439","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":223370733,"tracking_number":"789137500810","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":1261,"ship_date":"2017-12-28"}],"updated_at":"2017-12-28T06:40:56Z","internal_notes":"","meta_data":null,"prime_order_id":206349723,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(223370733)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(5) "656.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(1261)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(12) "789137500810"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7389

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7049"
    ["order_id"]=>
    string(4) "7389"
    ["se_shipment_id"]=>
    string(9) "223370733"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1261"
    ["shipment_weight_ounces"]=>
    string(6) "656.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789137500810"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "IT"
    ["tracking_status_description"]=>
    string(10) "In transit"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-03 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:25"
  }
}


shipmentDBRows:
array(1) {
  [223370733]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7049"
    ["order_id"]=>
    string(4) "7389"
    ["se_shipment_id"]=>
    string(9) "223370733"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1261"
    ["shipment_weight_ounces"]=>
    string(6) "656.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789137500810"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "IT"
    ["tracking_status_description"]=>
    string(10) "In transit"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-03 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:25"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(223370733)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(5) "656.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(1261)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789137500810"
  }
}

Shipment info shipping easy shipment ID #223370733

From API:
array(7) {
  ["se_shipment_id"]=>
  int(223370733)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(5) "656.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(1261)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789137500810"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7049"
  ["order_id"]=>
  string(4) "7389"
  ["se_shipment_id"]=>
  string(9) "223370733"
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  string(4) "1261"
  ["shipment_weight_ounces"]=>
  string(6) "656.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789137500810"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  string(2) "IT"
  ["tracking_status_description"]=>
  string(10) "In transit"
  ["estimated_delivery_time"]=>
  string(19) "2018-01-03 00:00:00"
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:25"
}



Shipment info for shipping easy shipment ID #223370733 is same between both arrays

*** Order info:
Array
(
    [id] => 206599413
    [external_order_identifier] => 112-7032420-1853046
    [ext_order_reference_id] => 112-7032420-1853046
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-27T21:58:33Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 64.35
    [total_excluding_tax] => 60.00
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 64.35
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 4.35
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Ron and Gloria Denton
    [billing_first_name] => Heather
    [billing_last_name] => Oliveira
    [billing_address] => 2410 MUSTANG DR
    [billing_address2] => 
    [billing_city] => ARROYO GRANDE
    [billing_state] => CA
    [billing_country] => US
    [billing_postal_code] => 93420-5550
    [billing_phone_number] => 2094957270
    [billing_email] => 1krtxjtz4lcr4h3@marketplace.amazon.com
    [buyer_email] => 1krtxjtz4lcr4h3@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Ron
                    [last_name] => and Gloria Denton
                    [address] => 2410 MUSTANG DR
                    [address2] => 
                    [address3] => 
                    [city] => ARROYO GRANDE
                    [residential] => 1
                    [state] => CA
                    [province] => 
                    [country] => United States
                    [postal_code] => 93420
                    [postal_code_plus_4] => 5550
                    [phone_number] => 2094957270
                    [email] => 1krtxjtz4lcr4h3@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack BBQ 60 Pounds Pellet Assortment (Pick 3 x 20 Pound Bags) See Description for Flavors (New)
                                    [sku] => sw-20lb-assort-20lb
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 976.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 60.00
                                    [unit_price] => 60.00
                                    [ext_line_item_id] => 59953014314042
                                    [ext_product_id] => 
                                    [product_options] => Array
                                        (
                                            [Select Bag # 1] => 
                                            [Color (Select Bag # 1)] => 
                                            [Font (Select Bag # 1)] => 
                                            [Select Bag # 2] => 
                                            [Color (Select Bag # 2)] => 
                                            [Font (Select Bag # 2)] => 
                                            [Select Bag # 3] => 
                                            [Color (Select Bag # 3)] => 
                                            [Font (Select Bag # 3)] => 
                                            [Wedgie] => 
                                            [Color (Wedgie)] => 
                                            [Font (Wedgie)] => 
                                            [Wedgie Feet] => 
                                            [Color (Wedgie Feet)] => 
                                            [Font (Wedgie Feet)] => 
                                            [Duck Fat] => 
                                            [Color (Duck Fat)] => 
                                            [Font (Duck Fat)] => 
                                        )

                                    [uuid] => 417834f3-4331-4fa1-9b42-0758a882c93d
                                    [order_source_id] => 216074133
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 206599413
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 208697483
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 976.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 7
                            [created_at] => 2017-12-27T23:06:43Z
                            [updated_at] => 2017-12-28T06:40:56Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack bbq 60 pounds pellet assortment (pick 3 x 20 pound bags) see description for flavors (new)
                            [line_item_sku] => sw-20lb-assort-20lb
                            [address_kind] => R
                            [recipient_last_name] => and gloria denton
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 206599413
                            [state] => CA
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-27T21:58:33Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 112-7032420-1853046
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 112-7032420-1853046
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 223370863
                    [tracking_number] => 789137494178
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 2518
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-28T06:40:56Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 206599413
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for 1krtxjtz4lcr4h3@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 9995

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(3) "Ron"
  ["customer_last_name"]=>
  string(17) "and Gloria Denton"
  ["customer_email"]=>
  string(38) "1krtxjtz4lcr4h3@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(21) "Ron and Gloria Denton"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(15) "2410 MUSTANG DR"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(13) "ARROYO GRANDE"
    ["address_state"]=>
    string(2) "CA"
    ["address_zip"]=>
    string(10) "93420-5550"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9995"
  ["ordered_time"]=>
  string(19) "2017-12-27 21:58:33"
  ["se_order_id"]=>
  int(206599413)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "112-7032420-1853046"
  ["order_weight_ounces"]=>
  string(5) "976.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4606) "{"id":206599413,"external_order_identifier":"112-7032420-1853046","ext_order_reference_id":"112-7032420-1853046","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-27T21:58:33Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"64.35","total_excluding_tax":"60.00","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"64.35","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"4.35","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Ron and Gloria Denton","billing_first_name":"Heather","billing_last_name":"Oliveira","billing_address":"2410 MUSTANG DR","billing_address2":null,"billing_city":"ARROYO GRANDE","billing_state":"CA","billing_country":"US","billing_postal_code":"93420-5550","billing_phone_number":"2094957270","billing_email":"1krtxjtz4lcr4h3@marketplace.amazon.com","buyer_email":"1krtxjtz4lcr4h3@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Ron","last_name":"and Gloria Denton","address":"2410 MUSTANG DR","address2":null,"address3":null,"city":"ARROYO GRANDE","residential":true,"state":"CA","province":null,"country":"United States","postal_code":"93420","postal_code_plus_4":"5550","phone_number":"2094957270","email":"1krtxjtz4lcr4h3@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack BBQ 60 Pounds Pellet Assortment (Pick 3 x 20 Pound Bags) See Description for Flavors (New)","sku":"sw-20lb-assort-20lb","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"976.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"60.00","unit_price":"60.00","ext_line_item_id":"59953014314042","ext_product_id":null,"product_options":{"Select Bag # 1":null,"Color (Select Bag # 1)":null,"Font (Select Bag # 1)":null,"Select Bag # 2":null,"Color (Select Bag # 2)":null,"Font (Select Bag # 2)":null,"Select Bag # 3":null,"Color (Select Bag # 3)":null,"Font (Select Bag # 3)":null,"Wedgie":null,"Color (Wedgie)":null,"Font (Wedgie)":null,"Wedgie Feet":null,"Color (Wedgie Feet)":null,"Font (Wedgie Feet)":null,"Duck Fat":null,"Color (Duck Fat)":null,"Font (Duck Fat)":null},"uuid":"417834f3-4331-4fa1-9b42-0758a882c93d","order_source_id":216074133,"gift_message":null}],"original_order":{"id":206599413,"customer_id":33773,"store_id":70647,"order_detail_id":208697483,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"976.0","total_quantity":1,"is_international":false,"usps_shipping_zone":7,"created_at":"2017-12-27T23:06:43Z","updated_at":"2017-12-28T06:40:56Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack bbq 60 pounds pellet assortment (pick 3 x 20 pound bags) see description for flavors (new)","line_item_sku":"sw-20lb-assort-20lb","address_kind":"R","recipient_last_name":"and gloria denton","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":206599413,"state":"CA","owner_id":37098,"denormalized_ordered_at":"2017-12-27T21:58:33Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"112-7032420-1853046","packing_slip_generated":null,"denormalized_ext_order_reference_id":"112-7032420-1853046","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":223370863,"tracking_number":"789137494178","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":2518,"ship_date":"2017-12-28"}],"updated_at":"2017-12-28T06:40:56Z","internal_notes":"","meta_data":null,"prime_order_id":206599413,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(223370863)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(5) "976.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(2518)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(12) "789137494178"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7390

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7050"
    ["order_id"]=>
    string(4) "7390"
    ["se_shipment_id"]=>
    string(9) "223370863"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "2518"
    ["shipment_weight_ounces"]=>
    string(6) "976.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789137494178"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "IT"
    ["tracking_status_description"]=>
    string(10) "In transit"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-04 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:25"
  }
}


shipmentDBRows:
array(1) {
  [223370863]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7050"
    ["order_id"]=>
    string(4) "7390"
    ["se_shipment_id"]=>
    string(9) "223370863"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "2518"
    ["shipment_weight_ounces"]=>
    string(6) "976.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789137494178"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "IT"
    ["tracking_status_description"]=>
    string(10) "In transit"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-04 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:25"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(223370863)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(5) "976.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(2518)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789137494178"
  }
}

Shipment info shipping easy shipment ID #223370863

From API:
array(7) {
  ["se_shipment_id"]=>
  int(223370863)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(5) "976.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(2518)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789137494178"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7050"
  ["order_id"]=>
  string(4) "7390"
  ["se_shipment_id"]=>
  string(9) "223370863"
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  string(4) "2518"
  ["shipment_weight_ounces"]=>
  string(6) "976.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789137494178"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  string(2) "IT"
  ["tracking_status_description"]=>
  string(10) "In transit"
  ["estimated_delivery_time"]=>
  string(19) "2018-01-04 00:00:00"
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:25"
}



Shipment info for shipping easy shipment ID #223370863 is same between both arrays

*** Order info:
Array
(
    [id] => 206944603
    [external_order_identifier] => 111-4508403-0589018
    [ext_order_reference_id] => 111-4508403-0589018
    [owner_id] => 
    [sales_channel] => 
    [fulfillment_channel] => fulfillment_by_amazon
    [ordered_at] => 2017-12-28T00:32:06Z
    [order_status] => drop_shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 19.99
    [total_excluding_tax] => 19.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 19.99
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => VERLA SHAW
    [billing_first_name] => Linda
    [billing_last_name] => Stern
    [billing_address] => 9174 ALOHA LN
    [billing_address2] => 
    [billing_city] => BREEZY POINT
    [billing_state] => MN
    [billing_country] => US
    [billing_postal_code] => 56472-3363
    [billing_phone_number] => 
    [billing_email] => 3fk2hp7h89z220k@marketplace.amazon.com
    [buyer_email] => 3fk2hp7h89z220k@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => VERLA
                    [last_name] => SHAW
                    [address] => 9174 ALOHA LN
                    [address2] => 
                    [address3] => 
                    [city] => BREEZY POINT
                    [residential] => 1
                    [state] => MN
                    [province] => 
                    [country] => United States
                    [postal_code] => 56472
                    [postal_code_plus_4] => 3363
                    [phone_number] => 
                    [email] => 3fk2hp7h89z220k@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => SecondDay
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Smokin Wedgies - Stainless Steel
                                    [sku] => smoking wedgie
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 0.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 19.99
                                    [unit_price] => 19.99
                                    [ext_line_item_id] => 17413079239634
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 11a96d69-001d-4276-9f22-50265dbfbc21
                                    [order_source_id] => 216461823
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 206944603
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 209047393
                            [workflow_state] => drop_shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 0.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 2
                            [created_at] => 2017-12-28T09:06:51Z
                            [updated_at] => 2017-12-28T09:06:51Z
                            [ext_shipment_confirmation_id] => 0
                            [store_order_status] => external_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 
                            [internal_notes] => 
                            [line_item_name] => smokin wedgies - stainless steel
                            [line_item_sku] => smoking wedgie
                            [address_kind] => R
                            [recipient_last_name] => shaw
                            [recipient_requested_service] => secondday
                            [gift] => 
                            [prime_order_id] => 206944603
                            [state] => MN
                            [owner_id] => 
                            [denormalized_ordered_at] => 2017-12-28T00:32:06Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 111-4508403-0589018
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 111-4508403-0589018
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 223405833
                    [tracking_number] => 
                    [carrier_key] => 
                    [carrier_service_key] => 
                    [shipment_cost] => 
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-28T09:06:51Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 206944603
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for 3fk2hp7h89z220k@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 9974

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(5) "VERLA"
  ["customer_last_name"]=>
  string(4) "SHAW"
  ["customer_email"]=>
  string(38) "3fk2hp7h89z220k@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(10) "VERLA SHAW"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(13) "9174 ALOHA LN"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(12) "BREEZY POINT"
    ["address_state"]=>
    string(2) "MN"
    ["address_zip"]=>
    string(10) "56472-3363"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9974"
  ["ordered_time"]=>
  string(19) "2017-12-28 00:32:06"
  ["se_order_id"]=>
  int(206944603)
  ["se_order_status"]=>
  string(12) "drop_shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "111-4508403-0589018"
  ["order_weight_ounces"]=>
  string(3) "0.0"
  ["store_order_status"]=>
  string(20) "external_fulfillment"
  ["se_api_response"]=>
  string(3956) "{"id":206944603,"external_order_identifier":"111-4508403-0589018","ext_order_reference_id":"111-4508403-0589018","owner_id":null,"sales_channel":null,"fulfillment_channel":"fulfillment_by_amazon","ordered_at":"2017-12-28T00:32:06Z","order_status":"drop_shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"19.99","total_excluding_tax":"19.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"19.99","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"VERLA SHAW","billing_first_name":"Linda","billing_last_name":"Stern","billing_address":"9174 ALOHA LN","billing_address2":null,"billing_city":"BREEZY POINT","billing_state":"MN","billing_country":"US","billing_postal_code":"56472-3363","billing_phone_number":null,"billing_email":"3fk2hp7h89z220k@marketplace.amazon.com","buyer_email":"3fk2hp7h89z220k@marketplace.amazon.com","recipients":[{"company":null,"first_name":"VERLA","last_name":"SHAW","address":"9174 ALOHA LN","address2":null,"address3":null,"city":"BREEZY POINT","residential":true,"state":"MN","province":null,"country":"United States","postal_code":"56472","postal_code_plus_4":"3363","phone_number":null,"email":"3fk2hp7h89z220k@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"SecondDay","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Smokin Wedgies - Stainless Steel","sku":"smoking wedgie","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"0.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"19.99","unit_price":"19.99","ext_line_item_id":"17413079239634","ext_product_id":null,"product_options":null,"uuid":"11a96d69-001d-4276-9f22-50265dbfbc21","order_source_id":216461823,"gift_message":null}],"original_order":{"id":206944603,"customer_id":33773,"store_id":70647,"order_detail_id":209047393,"workflow_state":"drop_shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"0.0","total_quantity":1,"is_international":false,"usps_shipping_zone":2,"created_at":"2017-12-28T09:06:51Z","updated_at":"2017-12-28T09:06:51Z","ext_shipment_confirmation_id":0,"store_order_status":"external_fulfillment","drop_ship_tracking_number":null,"category_id":null,"internal_notes":"","line_item_name":"smokin wedgies - stainless steel","line_item_sku":"smoking wedgie","address_kind":"R","recipient_last_name":"shaw","recipient_requested_service":"secondday","gift":null,"prime_order_id":206944603,"state":"MN","owner_id":null,"denormalized_ordered_at":"2017-12-28T00:32:06Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"111-4508403-0589018","packing_slip_generated":null,"denormalized_ext_order_reference_id":"111-4508403-0589018","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":223405833,"tracking_number":null,"carrier_key":null,"carrier_service_key":null,"shipment_cost":null,"ship_date":"2017-12-28"}],"updated_at":"2017-12-28T09:06:51Z","internal_notes":"","meta_data":null,"prime_order_id":206944603,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(223405833)
      ["carrier_key"]=>
      string(7) "SPEEDEE"
      ["shipment_weight_ounces"]=>
      string(3) "0.0"
      ["carrier_service_key"]=>
      NULL
      ["shipment_cost"]=>
      NULL
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(0) ""
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7391

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7051"
    ["order_id"]=>
    string(4) "7391"
    ["se_shipment_id"]=>
    string(9) "223405833"
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["shipment_weight_ounces"]=>
    string(4) "0.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(0) ""
    ["tracking_status"]=>
    string(9) "UNSHIPPED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    NULL
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2017-12-28 10:49:18"
  }
}


shipmentDBRows:
array(1) {
  [223405833]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7051"
    ["order_id"]=>
    string(4) "7391"
    ["se_shipment_id"]=>
    string(9) "223405833"
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["shipment_weight_ounces"]=>
    string(4) "0.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(0) ""
    ["tracking_status"]=>
    string(9) "UNSHIPPED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    NULL
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2017-12-28 10:49:18"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(223405833)
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["shipment_weight_ounces"]=>
    string(3) "0.0"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(0) ""
  }
}

Shipment info shipping easy shipment ID #223405833

From API:
array(7) {
  ["se_shipment_id"]=>
  int(223405833)
  ["carrier_key"]=>
  string(7) "SPEEDEE"
  ["shipment_weight_ounces"]=>
  string(3) "0.0"
  ["carrier_service_key"]=>
  NULL
  ["shipment_cost"]=>
  NULL
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(0) ""
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7051"
  ["order_id"]=>
  string(4) "7391"
  ["se_shipment_id"]=>
  string(9) "223405833"
  ["carrier_key"]=>
  string(7) "SPEEDEE"
  ["carrier_service_key"]=>
  NULL
  ["shipment_cost"]=>
  NULL
  ["shipment_weight_ounces"]=>
  string(4) "0.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(0) ""
  ["tracking_status"]=>
  string(9) "UNSHIPPED"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  NULL
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2017-12-28 10:49:18"
}



Shipment info for shipping easy shipment ID #223405833 is same between both arrays

*** Order info:
Array
(
    [id] => 206920473
    [external_order_identifier] => 112-7736598-3011451
    [ext_order_reference_id] => 112-7736598-3011451
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-28T06:28:45Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 29.99
    [total_excluding_tax] => 29.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 29.99
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Brandon & Kayla Voller
    [billing_first_name] => Michael
    [billing_last_name] => 
    [billing_address] => 1129 S LOGAN ST
    [billing_address2] => 
    [billing_city] => DENVER
    [billing_state] => CO
    [billing_country] => US
    [billing_postal_code] => 80210-1522
    [billing_phone_number] => 701-866-3774
    [billing_email] => ysq2njm0gcy694k@marketplace.amazon.com
    [buyer_email] => ysq2njm0gcy694k@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Brandon
                    [last_name] => & Kayla Voller
                    [address] => 1129 S LOGAN ST
                    [address2] => 
                    [address3] => 
                    [city] => DENVER
                    [residential] => 1
                    [state] => CO
                    [province] => 
                    [country] => United States
                    [postal_code] => 80210
                    [postal_code_plus_4] => 1522
                    [phone_number] => 701-866-3774
                    [email] => ysq2njm0gcy694k@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Priority Mail if Qty 1 (New)
                                    [sku] => 1poundvariety
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 112.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 29.99
                                    [unit_price] => 29.99
                                    [ext_line_item_id] => 68941789934370
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => b9f3bb79-b449-4550-91c5-9cc00a67e5c7
                                    [order_source_id] => 216431983
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 206920473
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 209022553
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 112.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-28T07:06:52Z
                            [updated_at] => 2017-12-28T10:10:45Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped priority mail if qty 1 (new)
                            [line_item_sku] => 1poundvariety
                            [address_kind] => R
                            [recipient_last_name] => & kayla voller
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 206920473
                            [state] => CO
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-28T06:28:45Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 112-7736598-3011451
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 112-7736598-3011451
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 223411483
                    [tracking_number] => 9405510298370316060267
                    [carrier_key] => USPS
                    [carrier_service_key] => Priority
                    [shipment_cost] => 815
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-28T10:10:45Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 206920473
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for ysq2njm0gcy694k@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 9996

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(7) "Brandon"
  ["customer_last_name"]=>
  string(18) "& Kayla Voller"
  ["customer_email"]=>
  string(38) "ysq2njm0gcy694k@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(26) "Brandon & Kayla Voller"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(15) "1129 S LOGAN ST"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(6) "DENVER"
    ["address_state"]=>
    string(2) "CO"
    ["address_zip"]=>
    string(10) "80210-1522"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9996"
  ["ordered_time"]=>
  string(19) "2017-12-28 06:28:45"
  ["se_order_id"]=>
  int(206920473)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "112-7736598-3011451"
  ["order_weight_ounces"]=>
  string(5) "112.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4307) "{"id":206920473,"external_order_identifier":"112-7736598-3011451","ext_order_reference_id":"112-7736598-3011451","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-28T06:28:45Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"29.99","total_excluding_tax":"29.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"29.99","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Brandon & Kayla Voller","billing_first_name":"Michael","billing_last_name":null,"billing_address":"1129 S LOGAN ST","billing_address2":null,"billing_city":"DENVER","billing_state":"CO","billing_country":"US","billing_postal_code":"80210-1522","billing_phone_number":"701-866-3774","billing_email":"ysq2njm0gcy694k@marketplace.amazon.com","buyer_email":"ysq2njm0gcy694k@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Brandon","last_name":"& Kayla Voller","address":"1129 S LOGAN ST","address2":null,"address3":null,"city":"DENVER","residential":true,"state":"CO","province":null,"country":"United States","postal_code":"80210","postal_code_plus_4":"1522","phone_number":"701-866-3774","email":"ysq2njm0gcy694k@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Priority Mail if Qty 1 (New)","sku":"1poundvariety","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"112.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"29.99","unit_price":"29.99","ext_line_item_id":"68941789934370","ext_product_id":null,"product_options":null,"uuid":"b9f3bb79-b449-4550-91c5-9cc00a67e5c7","order_source_id":216431983,"gift_message":null}],"original_order":{"id":206920473,"customer_id":33773,"store_id":70647,"order_detail_id":209022553,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"112.0","total_quantity":1,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-28T07:06:52Z","updated_at":"2017-12-28T10:10:45Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped priority mail if qty 1 (new)","line_item_sku":"1poundvariety","address_kind":"R","recipient_last_name":"& kayla voller","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":206920473,"state":"CO","owner_id":37098,"denormalized_ordered_at":"2017-12-28T06:28:45Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"112-7736598-3011451","packing_slip_generated":null,"denormalized_ext_order_reference_id":"112-7736598-3011451","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":223411483,"tracking_number":"9405510298370316060267","carrier_key":"USPS","carrier_service_key":"Priority","shipment_cost":815,"ship_date":"2017-12-28"}],"updated_at":"2017-12-28T10:10:45Z","internal_notes":"","meta_data":null,"prime_order_id":206920473,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(223411483)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(5) "112.0"
      ["carrier_service_key"]=>
      string(8) "Priority"
      ["shipment_cost"]=>
      int(815)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(22) "9405510298370316060267"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7392

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7052"
    ["order_id"]=>
    string(4) "7392"
    ["se_shipment_id"]=>
    string(9) "223411483"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(3) "815"
    ["shipment_weight_ounces"]=>
    string(6) "112.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370316060267"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(45) "Arrived at USPS Regional Destination Facility"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:57"
  }
}


shipmentDBRows:
array(1) {
  [223411483]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7052"
    ["order_id"]=>
    string(4) "7392"
    ["se_shipment_id"]=>
    string(9) "223411483"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(3) "815"
    ["shipment_weight_ounces"]=>
    string(6) "112.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370316060267"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(45) "Arrived at USPS Regional Destination Facility"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:57"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(223411483)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(5) "112.0"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    int(815)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370316060267"
  }
}

Shipment info shipping easy shipment ID #223411483

From API:
array(7) {
  ["se_shipment_id"]=>
  int(223411483)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(5) "112.0"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  int(815)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9405510298370316060267"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7052"
  ["order_id"]=>
  string(4) "7392"
  ["se_shipment_id"]=>
  string(9) "223411483"
  ["carrier_key"]=>
  string(4) "USPS"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  string(3) "815"
  ["shipment_weight_ounces"]=>
  string(6) "112.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9405510298370316060267"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  string(45) "Arrived at USPS Regional Destination Facility"
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:57"
}



Shipment info for shipping easy shipment ID #223411483 is same between both arrays

*** Order info:
Array
(
    [id] => 206966033
    [external_order_identifier] => M-122817-001
    [ext_order_reference_id] => 7e0e29be6a5189e44949434c98ac6906
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-28T05:00:00Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 0.00
    [total_excluding_tax] => 0.00
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 0.00
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => 
    [billing_first_name] => Jennifer
    [billing_last_name] => Rivera
    [billing_address] => 10008 Perthshire Cir
    [billing_address2] => 
    [billing_city] => Land O' Lakes
    [billing_state] => FL
    [billing_country] => United States
    [billing_postal_code] => 34638-6002
    [billing_phone_number] => 
    [billing_email] => 
    [buyer_email] => 
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Jennifer
                    [last_name] => Rivera
                    [address] => 10008 Perthshire Cir
                    [address2] => 
                    [address3] => 
                    [city] => Land O' Lakes
                    [residential] => 1
                    [state] => FL
                    [province] => 
                    [country] => United States
                    [postal_code] => 34638
                    [postal_code_plus_4] => 6002
                    [phone_number] => 
                    [email] => 
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 0
                    [shipping_method] => 
                    [items_shipped] => 0
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack BBQ 60 Pounds Pellet Assortment (Pick 3 x 20 Pound Bags) See Description for Flavors
                                    [sku] => sw-20lb-assort-20lb
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 976.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 60.00
                                    [price_excluding_tax] => 0.00
                                    [unit_price] => 60.00
                                    [ext_line_item_id] => 
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 449c326c-8611-45a7-9ae2-d8483b151c1d
                                    [order_source_id] => 216486823
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 206966033
                            [customer_id] => 33773
                            [store_id] => 70641
                            [order_detail_id] => 209070093
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 976.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 6
                            [created_at] => 2017-12-28T11:27:13Z
                            [updated_at] => 2017-12-28T11:34:59Z
                            [ext_shipment_confirmation_id] => 
                            [store_order_status] => awaiting_shipment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack bbq 60 pounds pellet assortment (pick 3 x 20 pound bags) see description for flavors
                            [line_item_sku] => sw-20lb-assort-20lb
                            [address_kind] => R
                            [recipient_last_name] => rivera
                            [recipient_requested_service] => 
                            [gift] => 
                            [prime_order_id] => 206966033
                            [state] => FL
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-28T05:00:00Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => M-122817-001
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 7e0e29be6a5189e44949434c98ac6906
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 2176d64d37ab878b37f246d849dcde35
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 223422643
                    [tracking_number] => 789138537490
                    [carrier_key] => FEDEX
                    [carrier_service_key] => GROUND_HOME_DELIVERY
                    [shipment_cost] => 2906
                    [ship_date] => 2017-12-29
                )

        )

    [updated_at] => 2017-12-28T11:34:59Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 206966033
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for ) was previously inserted to the DB.
Existing customer ID: 166

Delivery address already in our DB. Data:
array(14) {
  ["address_id"]=>
  string(3) "313"
  ["customer_id"]=>
  string(3) "166"
  ["address_type"]=>
  string(8) "delivery"
  ["order_id"]=>
  NULL
  ["address_line_1"]=>
  string(38) "94 Queen Street, Southington, CT, 6489"
  ["address_line_2"]=>
  string(0) ""
  ["address_city"]=>
  string(0) ""
  ["address_state"]=>
  string(0) ""
  ["address_zip"]=>
  string(0) ""
  ["address_country"]=>
  string(0) ""
  ["accessorial"]=>
  NULL
  ["county_tag"]=>
  string(0) ""
  ["created_time"]=>
  string(19) "2017-03-01 02:01:47"
  ["active"]=>
  string(1) "1"
}


parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(3) "166"
  ["ordered_time"]=>
  string(19) "2017-12-28 05:00:00"
  ["se_order_id"]=>
  int(206966033)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Manual"
  ["store_order_id"]=>
  string(12) "M-122817-001"
  ["order_weight_ounces"]=>
  string(5) "976.0"
  ["store_order_status"]=>
  string(17) "awaiting_shipment"
  ["se_api_response"]=>
  string(3977) "{"id":206966033,"external_order_identifier":"M-122817-001","ext_order_reference_id":"7e0e29be6a5189e44949434c98ac6906","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-28T05:00:00Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"0.00","total_excluding_tax":"0.00","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"0.00","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"","billing_first_name":"Jennifer","billing_last_name":"Rivera","billing_address":"10008 Perthshire Cir","billing_address2":"","billing_city":"Land O' Lakes","billing_state":"FL","billing_country":"United States","billing_postal_code":"34638-6002","billing_phone_number":"","billing_email":"","buyer_email":"","recipients":[{"company":"","first_name":"Jennifer","last_name":"Rivera","address":"10008 Perthshire Cir","address2":null,"address3":null,"city":"Land O' Lakes","residential":true,"state":"FL","province":null,"country":"United States","postal_code":"34638","postal_code_plus_4":"6002","phone_number":"","email":"","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":0,"shipping_method":null,"items_shipped":0,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack BBQ 60 Pounds Pellet Assortment (Pick 3 x 20 Pound Bags) See Description for Flavors","sku":"sw-20lb-assort-20lb","bin_picking_number":"","bundled_product":null,"weight_in_ounces":"976.0","quantity":1,"total_excluding_tax":"60.00","price_excluding_tax":"0.00","unit_price":"60.00","ext_line_item_id":null,"ext_product_id":null,"product_options":null,"uuid":"449c326c-8611-45a7-9ae2-d8483b151c1d","order_source_id":216486823,"gift_message":null}],"original_order":{"id":206966033,"customer_id":33773,"store_id":70641,"order_detail_id":209070093,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"976.0","total_quantity":1,"is_international":false,"usps_shipping_zone":6,"created_at":"2017-12-28T11:27:13Z","updated_at":"2017-12-28T11:34:59Z","ext_shipment_confirmation_id":null,"store_order_status":"awaiting_shipment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack bbq 60 pounds pellet assortment (pick 3 x 20 pound bags) see description for flavors","line_item_sku":"sw-20lb-assort-20lb","address_kind":"R","recipient_last_name":"rivera","recipient_requested_service":null,"gift":false,"prime_order_id":206966033,"state":"FL","owner_id":37098,"denormalized_ordered_at":"2017-12-28T05:00:00Z","grab_bag":[],"line_item_bin_picking_number":"","denormalized_ext_order_id":"M-122817-001","packing_slip_generated":null,"denormalized_ext_order_reference_id":"7e0e29be6a5189e44949434c98ac6906","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":"","custom_2":"","custom_3":"","hidden":null,"allocated":null}}],"store_api_key":"2176d64d37ab878b37f246d849dcde35","shipments":[{"id":223422643,"tracking_number":"789138537490","carrier_key":"FEDEX","carrier_service_key":"GROUND_HOME_DELIVERY","shipment_cost":2906,"ship_date":"2017-12-29"}],"updated_at":"2017-12-28T11:34:59Z","internal_notes":"","meta_data":null,"prime_order_id":206966033,"is_prime":null,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(223422643)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(5) "976.0"
      ["carrier_service_key"]=>
      string(20) "GROUND_HOME_DELIVERY"
      ["shipment_cost"]=>
      int(2906)
      ["ship_date"]=>
      string(10) "2017-12-29"
      ["tracking_number"]=>
      string(12) "789138537490"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7393

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7053"
    ["order_id"]=>
    string(4) "7393"
    ["se_shipment_id"]=>
    string(9) "223422643"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(20) "GROUND_HOME_DELIVERY"
    ["shipment_cost"]=>
    string(4) "2906"
    ["shipment_weight_ounces"]=>
    string(6) "976.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(12) "789138537490"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "IT"
    ["tracking_status_description"]=>
    string(10) "In transit"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-04 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:26"
  }
}


shipmentDBRows:
array(1) {
  [223422643]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7053"
    ["order_id"]=>
    string(4) "7393"
    ["se_shipment_id"]=>
    string(9) "223422643"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(20) "GROUND_HOME_DELIVERY"
    ["shipment_cost"]=>
    string(4) "2906"
    ["shipment_weight_ounces"]=>
    string(6) "976.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(12) "789138537490"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "IT"
    ["tracking_status_description"]=>
    string(10) "In transit"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-04 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:26"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(223422643)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(5) "976.0"
    ["carrier_service_key"]=>
    string(20) "GROUND_HOME_DELIVERY"
    ["shipment_cost"]=>
    int(2906)
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(12) "789138537490"
  }
}

Shipment info shipping easy shipment ID #223422643

From API:
array(7) {
  ["se_shipment_id"]=>
  int(223422643)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(5) "976.0"
  ["carrier_service_key"]=>
  string(20) "GROUND_HOME_DELIVERY"
  ["shipment_cost"]=>
  int(2906)
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(12) "789138537490"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7053"
  ["order_id"]=>
  string(4) "7393"
  ["se_shipment_id"]=>
  string(9) "223422643"
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["carrier_service_key"]=>
  string(20) "GROUND_HOME_DELIVERY"
  ["shipment_cost"]=>
  string(4) "2906"
  ["shipment_weight_ounces"]=>
  string(6) "976.00"
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(12) "789138537490"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  string(2) "IT"
  ["tracking_status_description"]=>
  string(10) "In transit"
  ["estimated_delivery_time"]=>
  string(19) "2018-01-04 00:00:00"
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:26"
}



Shipment info for shipping easy shipment ID #223422643 is same between both arrays

*** Order info:
Array
(
    [id] => 205899403
    [external_order_identifier] => 114-5974153-4276264
    [ext_order_reference_id] => 114-5974153-4276264
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-27T05:21:18Z
    [order_status] => cleared
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 62.00
    [total_excluding_tax] => 62.00
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 62.00
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Jennifer Rivera
    [billing_first_name] => Jennifer
    [billing_last_name] => Rivera
    [billing_address] => 10008 PERTHSHIRE CIR
    [billing_address2] => 
    [billing_city] => LAND O LAKES
    [billing_state] => FL
    [billing_country] => US
    [billing_postal_code] => 34638-6002
    [billing_phone_number] => 8138332012
    [billing_email] => 9d1stmnsl9g35v2@marketplace.amazon.com
    [buyer_email] => 9d1stmnsl9g35v2@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Jennifer
                    [last_name] => Rivera
                    [address] => 10008 PERTHSHIRE CIR
                    [address2] => 
                    [address3] => 
                    [city] => LAND O LAKES
                    [residential] => 1
                    [state] => FL
                    [province] => 
                    [country] => United States
                    [postal_code] => 34638
                    [postal_code_plus_4] => 6002
                    [phone_number] => 8138332012
                    [email] => 9d1stmnsl9g35v2@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack BBQ 60 Pounds Pellet Assortment (Pick 3 x 20 Pound Bags) See Description for Flavors (New)
                                    [sku] => sw-20lb-assort-20lb
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 976.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 62.00
                                    [unit_price] => 62.00
                                    [ext_line_item_id] => 19572031709098
                                    [ext_product_id] => 
                                    [product_options] => Array
                                        (
                                            [Select Bag # 1] => 
                                            [Color (Select Bag # 1)] => 
                                            [Font (Select Bag # 1)] => 
                                            [Select Bag # 2] => 
                                            [Color (Select Bag # 2)] => 
                                            [Font (Select Bag # 2)] => 
                                            [Select Bag # 3] => 
                                            [Color (Select Bag # 3)] => 
                                            [Font (Select Bag # 3)] => 
                                            [Wedgie] => 
                                            [Color (Wedgie)] => 
                                            [Font (Wedgie)] => 
                                            [Wedgie Feet] => 
                                            [Color (Wedgie Feet)] => 
                                            [Font (Wedgie Feet)] => 
                                            [Duck Fat] => 
                                            [Color (Duck Fat)] => 
                                            [Font (Duck Fat)] => 
                                        )

                                    [uuid] => 2435b51f-52e5-49db-b099-199212732ecb
                                    [order_source_id] => 215316173
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 205899403
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 207982823
                            [workflow_state] => cleared
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 976.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 6
                            [created_at] => 2017-12-27T06:07:20Z
                            [updated_at] => 2017-12-28T11:35:22Z
                            [ext_shipment_confirmation_id] => 
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack bbq 60 pounds pellet assortment (pick 3 x 20 pound bags) see description for flavors (new)
                            [line_item_sku] => sw-20lb-assort-20lb
                            [address_kind] => R
                            [recipient_last_name] => rivera
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 205899403
                            [state] => FL
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-27T05:21:18Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 114-5974153-4276264
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 114-5974153-4276264
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
        )

    [updated_at] => 2017-12-28T11:35:22Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 205899403
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for 9d1stmnsl9g35v2@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 9997

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(8) "Jennifer"
  ["customer_last_name"]=>
  string(6) "Rivera"
  ["customer_email"]=>
  string(38) "9d1stmnsl9g35v2@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(15) "Jennifer Rivera"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(20) "10008 PERTHSHIRE CIR"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(12) "LAND O LAKES"
    ["address_state"]=>
    string(2) "FL"
    ["address_zip"]=>
    string(10) "34638-6002"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9997"
  ["ordered_time"]=>
  string(19) "2017-12-27 05:21:18"
  ["se_order_id"]=>
  int(205899403)
  ["se_order_status"]=>
  string(7) "cleared"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "114-5974153-4276264"
  ["order_weight_ounces"]=>
  string(5) "976.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4439) "{"id":205899403,"external_order_identifier":"114-5974153-4276264","ext_order_reference_id":"114-5974153-4276264","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-27T05:21:18Z","order_status":"cleared","parent_order_id":null,"source_order_ids":null,"total_including_tax":"62.00","total_excluding_tax":"62.00","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"62.00","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Jennifer Rivera","billing_first_name":"Jennifer","billing_last_name":"Rivera","billing_address":"10008 PERTHSHIRE CIR","billing_address2":null,"billing_city":"LAND O LAKES","billing_state":"FL","billing_country":"US","billing_postal_code":"34638-6002","billing_phone_number":"8138332012","billing_email":"9d1stmnsl9g35v2@marketplace.amazon.com","buyer_email":"9d1stmnsl9g35v2@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Jennifer","last_name":"Rivera","address":"10008 PERTHSHIRE CIR","address2":null,"address3":null,"city":"LAND O LAKES","residential":true,"state":"FL","province":null,"country":"United States","postal_code":"34638","postal_code_plus_4":"6002","phone_number":"8138332012","email":"9d1stmnsl9g35v2@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack BBQ 60 Pounds Pellet Assortment (Pick 3 x 20 Pound Bags) See Description for Flavors (New)","sku":"sw-20lb-assort-20lb","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"976.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"62.00","unit_price":"62.00","ext_line_item_id":"19572031709098","ext_product_id":null,"product_options":{"Select Bag # 1":null,"Color (Select Bag # 1)":null,"Font (Select Bag # 1)":null,"Select Bag # 2":null,"Color (Select Bag # 2)":null,"Font (Select Bag # 2)":null,"Select Bag # 3":null,"Color (Select Bag # 3)":null,"Font (Select Bag # 3)":null,"Wedgie":null,"Color (Wedgie)":null,"Font (Wedgie)":null,"Wedgie Feet":null,"Color (Wedgie Feet)":null,"Font (Wedgie Feet)":null,"Duck Fat":null,"Color (Duck Fat)":null,"Font (Duck Fat)":null},"uuid":"2435b51f-52e5-49db-b099-199212732ecb","order_source_id":215316173,"gift_message":null}],"original_order":{"id":205899403,"customer_id":33773,"store_id":70647,"order_detail_id":207982823,"workflow_state":"cleared","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"976.0","total_quantity":1,"is_international":false,"usps_shipping_zone":6,"created_at":"2017-12-27T06:07:20Z","updated_at":"2017-12-28T11:35:22Z","ext_shipment_confirmation_id":null,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack bbq 60 pounds pellet assortment (pick 3 x 20 pound bags) see description for flavors (new)","line_item_sku":"sw-20lb-assort-20lb","address_kind":"R","recipient_last_name":"rivera","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":205899403,"state":"FL","owner_id":37098,"denormalized_ordered_at":"2017-12-27T05:21:18Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"114-5974153-4276264","packing_slip_generated":null,"denormalized_ext_order_reference_id":"114-5974153-4276264","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[],"updated_at":"2017-12-28T11:35:22Z","internal_notes":"","meta_data":null,"prime_order_id":205899403,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(0) {
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7394

No shipment elements found in API response. Continuing

*** Order info:
Array
(
    [id] => 206885403
    [external_order_identifier] => 3939
    [ext_order_reference_id] => 3939
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-28T06:27:21Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 51.46
    [total_excluding_tax] => 0.00
    [discount_amount] => 5.00
    [coupon_discount] => 5.00
    [subtotal_including_tax] => 0.00
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 3.41
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => 
    [billing_first_name] => Matthew
    [billing_last_name] => Handley
    [billing_address] => 830 Cliffside Drive
    [billing_address2] => 
    [billing_city] => Chillicothe
    [billing_state] => OH
    [billing_country] => US
    [billing_postal_code] => 45601
    [billing_phone_number] => 7408044996
    [billing_email] => matt2007@horizonview.net
    [buyer_email] => matt2007@horizonview.net
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Matthew
                    [last_name] => Handley
                    [address] => 830 Cliffside Drive
                    [address2] => 
                    [address3] => 
                    [city] => Chillicothe
                    [residential] => 1
                    [state] => OH
                    [province] => 
                    [country] => United States
                    [postal_code] => 45601
                    [postal_code_plus_4] => 2914
                    [phone_number] => 7408044996
                    [email] => matt2007@horizonview.net
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 0
                    [shipping_method] => Free Shipping - No PO Boxes or APO
                    [items_shipped] => 0
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => 1 or 2 Wedgies with Smoker Pellets Variety Pack (Select up to 6 3-lb. Assortments at Checkout = min 9 lbs.)
                                    [sku] => wedgie-9-pounds-1
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 144.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 53.05
                                    [price_excluding_tax] => 0.00
                                    [unit_price] => 53.05
                                    [ext_line_item_id] => 
                                    [ext_product_id] => 80439134
                                    [product_options] => Array
                                        (
                                            [Number of Wedgies] => 1 wedgie
                                            [Bag 1 (3#)] => 100% Cherry
                                            [Bag 2 (3#)] => Fruitwood (80% Cherry/20# Apple)
                                            [Bag 3 (3#)] => Maple-Oak-Cherry (Timberline)
                                            [Add 4th Sample Bag Below] => Maple-Oak-Cherry (Timberline)
                                            [Add 5th Sample Bag Below] => 100% Cherry
                                            [Add 6th Sample  Bag Below] => Fruitwood (80% Cherry/20# Apple)
                                            [Add Can(s) Gourmet Duck Fat Spray Here] => Array
                                                (
                                                )

                                            [Add Smokin Wedgie Leg Kit for Flat Bottom Smokers] => Array
                                                (
                                                    [0] => Add 1 Set of Smokin Wedgie Legs
                                                )

                                        )

                                    [uuid] => f49b87f2-6ed8-43ac-8bf5-6135fd467279
                                    [order_source_id] => 216391863
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 206885403
                            [customer_id] => 33773
                            [store_id] => 70642
                            [order_detail_id] => 208986663
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 160.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 4
                            [created_at] => 2017-12-28T05:31:29Z
                            [updated_at] => 2017-12-28T15:39:31Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_shipment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => 1 or 2 wedgies with smoker pellets variety pack (select up to 6 3-lb. assortments at checkout = min 9 lbs.)
                            [line_item_sku] => wedgie-9-pounds-1
                            [address_kind] => R
                            [recipient_last_name] => handley
                            [recipient_requested_service] => free shipping - no po boxes or apo
                            [gift] => 
                            [prime_order_id] => 206885403
                            [state] => OH
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-28T06:27:21Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 3939
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 3939
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 276833075f862f916ca417ff8ccb9564
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 223693993
                    [tracking_number] => 789141060631
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 794
                    [ship_date] => 2017-12-28
                )

            [1] => Array
                (
                    [id] => 223375683
                    [tracking_number] => 9405510298370316027857
                    [carrier_key] => USPS
                    [carrier_service_key] => Priority
                    [shipment_cost] => 919
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-28T15:39:31Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 206885403
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for matt2007@horizonview.net) was previously inserted to the DB.
Existing customer ID: 9979

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(7) "Matthew"
  ["customer_last_name"]=>
  string(7) "Handley"
  ["customer_email"]=>
  string(24) "matt2007@horizonview.net"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  NULL
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(19) "830 Cliffside Drive"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(11) "Chillicothe"
    ["address_state"]=>
    string(2) "OH"
    ["address_zip"]=>
    string(5) "45601"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9979"
  ["ordered_time"]=>
  string(19) "2017-12-28 06:27:21"
  ["se_order_id"]=>
  int(206885403)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(5) "Ecwid"
  ["store_order_id"]=>
  string(4) "3939"
  ["order_weight_ounces"]=>
  string(5) "160.0"
  ["store_order_status"]=>
  string(17) "awaiting_shipment"
  ["se_api_response"]=>
  string(4671) "{"id":206885403,"external_order_identifier":"3939","ext_order_reference_id":"3939","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-28T06:27:21Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"51.46","total_excluding_tax":"0.00","discount_amount":"5.00","coupon_discount":"5.00","subtotal_including_tax":"0.00","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"3.41","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":null,"billing_first_name":"Matthew","billing_last_name":"Handley","billing_address":"830 Cliffside Drive","billing_address2":null,"billing_city":"Chillicothe","billing_state":"OH","billing_country":"US","billing_postal_code":"45601","billing_phone_number":"7408044996","billing_email":"matt2007@horizonview.net","buyer_email":"matt2007@horizonview.net","recipients":[{"company":"","first_name":"Matthew","last_name":"Handley","address":"830 Cliffside Drive","address2":null,"address3":null,"city":"Chillicothe","residential":true,"state":"OH","province":null,"country":"United States","postal_code":"45601","postal_code_plus_4":"2914","phone_number":"7408044996","email":"matt2007@horizonview.net","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":0,"shipping_method":"Free Shipping - No PO Boxes or APO","items_shipped":0,"ext_shipping_detail_id":null,"line_items":[{"item_name":"1 or 2 Wedgies with Smoker Pellets Variety Pack (Select up to 6 3-lb. Assortments at Checkout = min 9 lbs.)","sku":"wedgie-9-pounds-1","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"144.0","quantity":1,"total_excluding_tax":"53.05","price_excluding_tax":"0.00","unit_price":"53.05","ext_line_item_id":null,"ext_product_id":"80439134","product_options":{"Number of Wedgies":"1 wedgie","Bag 1 (3#)":"100% Cherry","Bag 2 (3#)":"Fruitwood (80% Cherry\/20# Apple)","Bag 3 (3#)":"Maple-Oak-Cherry (Timberline)","Add 4th Sample Bag Below":"Maple-Oak-Cherry (Timberline)","Add 5th Sample Bag Below":"100% Cherry","Add 6th Sample  Bag Below":"Fruitwood (80% Cherry\/20# Apple)","Add Can(s) Gourmet Duck Fat Spray Here":[],"Add Smokin Wedgie Leg Kit for Flat Bottom Smokers":["Add 1 Set of Smokin Wedgie Legs"]},"uuid":"f49b87f2-6ed8-43ac-8bf5-6135fd467279","order_source_id":216391863,"gift_message":null}],"original_order":{"id":206885403,"customer_id":33773,"store_id":70642,"order_detail_id":208986663,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"160.0","total_quantity":1,"is_international":false,"usps_shipping_zone":4,"created_at":"2017-12-28T05:31:29Z","updated_at":"2017-12-28T15:39:31Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_shipment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"1 or 2 wedgies with smoker pellets variety pack (select up to 6 3-lb. assortments at checkout = min 9 lbs.)","line_item_sku":"wedgie-9-pounds-1","address_kind":"R","recipient_last_name":"handley","recipient_requested_service":"free shipping - no po boxes or apo","gift":false,"prime_order_id":206885403,"state":"OH","owner_id":37098,"denormalized_ordered_at":"2017-12-28T06:27:21Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"3939","packing_slip_generated":null,"denormalized_ext_order_reference_id":"3939","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"276833075f862f916ca417ff8ccb9564","shipments":[{"id":223693993,"tracking_number":"789141060631","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":794,"ship_date":"2017-12-28"},{"id":223375683,"tracking_number":"9405510298370316027857","carrier_key":"USPS","carrier_service_key":"Priority","shipment_cost":919,"ship_date":"2017-12-28"}],"updated_at":"2017-12-28T15:39:31Z","internal_notes":"","meta_data":null,"prime_order_id":206885403,"is_prime":null,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(2) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(223693993)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(5) "160.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(794)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(12) "789141060631"
    }
    [1]=>
    array(7) {
      ["se_shipment_id"]=>
      int(223375683)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(5) "160.0"
      ["carrier_service_key"]=>
      string(8) "Priority"
      ["shipment_cost"]=>
      int(919)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(22) "9405510298370316027857"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7374

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7034"
    ["order_id"]=>
    string(4) "7374"
    ["se_shipment_id"]=>
    string(9) "223375683"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(3) "919"
    ["shipment_weight_ounces"]=>
    string(6) "160.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370316027857"
    ["tracking_status"]=>
    string(15) "AWAITING PICKUP"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(42) "Shipping Label Created, USPS Awaiting Item"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2017-12-28 07:48:42"
  }
}


shipmentDBRows:
array(1) {
  [223375683]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7034"
    ["order_id"]=>
    string(4) "7374"
    ["se_shipment_id"]=>
    string(9) "223375683"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(3) "919"
    ["shipment_weight_ounces"]=>
    string(6) "160.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370316027857"
    ["tracking_status"]=>
    string(15) "AWAITING PICKUP"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(42) "Shipping Label Created, USPS Awaiting Item"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2017-12-28 07:48:42"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(223375683)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(5) "160.0"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    int(919)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370316027857"
  }
}

Shipment info shipping easy shipment ID #223375683

From API:
array(7) {
  ["se_shipment_id"]=>
  int(223375683)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(5) "160.0"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  int(919)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9405510298370316027857"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7034"
  ["order_id"]=>
  string(4) "7374"
  ["se_shipment_id"]=>
  string(9) "223375683"
  ["carrier_key"]=>
  string(4) "USPS"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  string(3) "919"
  ["shipment_weight_ounces"]=>
  string(6) "160.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9405510298370316027857"
  ["tracking_status"]=>
  string(15) "AWAITING PICKUP"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  string(42) "Shipping Label Created, USPS Awaiting Item"
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2017-12-28 07:48:42"
}



Shipment info for shipping easy shipment ID #223375683 is same between both arrays

*** Order info:
Array
(
    [id] => 206885483
    [external_order_identifier] => 3938
    [ext_order_reference_id] => 3938
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-28T06:23:37Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 56.58
    [total_excluding_tax] => 0.00
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 0.00
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 3.53
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => 
    [billing_first_name] => Charles
    [billing_last_name] => Powell
    [billing_address] => 47 mulberry circle
    [billing_address2] => 
    [billing_city] => crawfordville
    [billing_state] => FL
    [billing_country] => US
    [billing_postal_code] => 32327
    [billing_phone_number] => 8509264795
    [billing_email] => 5631clp@gmail.com
    [buyer_email] => 5631clp@gmail.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Charles
                    [last_name] => Powell
                    [address] => 47 mulberry circle
                    [address2] => 
                    [address3] => 
                    [city] => crawfordville
                    [residential] => 1
                    [state] => FL
                    [province] => 
                    [country] => United States
                    [postal_code] => 32327
                    [postal_code_plus_4] => 2276
                    [phone_number] => 8509264795
                    [email] => 5631clp@gmail.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 0
                    [shipping_method] => Free Shipping - No PO Boxes or APO
                    [items_shipped] => 0
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => 1 or 2 Wedgies with Smoker Pellets Variety Pack (Select up to 6 3-lb. Assortments at Checkout = min 9 lbs.)
                                    [sku] => wedgie-9-pounds-1
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 144.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 53.05
                                    [price_excluding_tax] => 0.00
                                    [unit_price] => 53.05
                                    [ext_line_item_id] => 
                                    [ext_product_id] => 80439134
                                    [product_options] => Array
                                        (
                                            [Number of Wedgies] => 1 wedgie
                                            [Bag 1 (3#)] => 100% Apple
                                            [Bag 2 (3#)] => 100% Apple
                                            [Bag 3 (3#)] => 100% Pecan
                                            [Add 4th Sample Bag Below] => 100% Pecan
                                            [Add 5th Sample Bag Below] => 100% Alder
                                            [Add 6th Sample  Bag Below] => 100% Apple
                                            [Add Can(s) Gourmet Duck Fat Spray Here] => Array
                                                (
                                                )

                                            [Add Smokin Wedgie Leg Kit for Flat Bottom Smokers] => Array
                                                (
                                                    [0] => Add 1 Set of Smokin Wedgie Legs
                                                )

                                        )

                                    [uuid] => 5ee77854-ddee-41d9-98f1-808fb6b5ca9b
                                    [order_source_id] => 216391953
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 206885483
                            [customer_id] => 33773
                            [store_id] => 70642
                            [order_detail_id] => 208986753
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 160.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 6
                            [created_at] => 2017-12-28T05:31:30Z
                            [updated_at] => 2017-12-28T19:07:59Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_shipment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => 1 or 2 wedgies with smoker pellets variety pack (select up to 6 3-lb. assortments at checkout = min 9 lbs.)
                            [line_item_sku] => wedgie-9-pounds-1
                            [address_kind] => R
                            [recipient_last_name] => powell
                            [recipient_requested_service] => free shipping - no po boxes or apo
                            [gift] => 
                            [prime_order_id] => 206885483
                            [state] => FL
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-28T06:23:37Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 3938
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 3938
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 276833075f862f916ca417ff8ccb9564
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 224049243
                    [tracking_number] => 789145389163
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 993
                    [ship_date] => 2017-12-28
                )

            [1] => Array
                (
                    [id] => 223375693
                    [tracking_number] => 9405510298370316027871
                    [carrier_key] => USPS
                    [carrier_service_key] => Priority
                    [shipment_cost] => 1205
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-28T19:07:59Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 206885483
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for 5631clp@gmail.com) was previously inserted to the DB.
Existing customer ID: 9980

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(7) "Charles"
  ["customer_last_name"]=>
  string(6) "Powell"
  ["customer_email"]=>
  string(17) "5631clp@gmail.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  NULL
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(18) "47 mulberry circle"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(13) "crawfordville"
    ["address_state"]=>
    string(2) "FL"
    ["address_zip"]=>
    string(5) "32327"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9980"
  ["ordered_time"]=>
  string(19) "2017-12-28 06:23:37"
  ["se_order_id"]=>
  int(206885483)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(5) "Ecwid"
  ["store_order_id"]=>
  string(4) "3938"
  ["order_weight_ounces"]=>
  string(5) "160.0"
  ["store_order_status"]=>
  string(17) "awaiting_shipment"
  ["se_api_response"]=>
  string(4564) "{"id":206885483,"external_order_identifier":"3938","ext_order_reference_id":"3938","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-28T06:23:37Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"56.58","total_excluding_tax":"0.00","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"0.00","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"3.53","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":null,"billing_first_name":"Charles","billing_last_name":"Powell","billing_address":"47 mulberry circle","billing_address2":null,"billing_city":"crawfordville","billing_state":"FL","billing_country":"US","billing_postal_code":"32327","billing_phone_number":"8509264795","billing_email":"5631clp@gmail.com","buyer_email":"5631clp@gmail.com","recipients":[{"company":"","first_name":"Charles","last_name":"Powell","address":"47 mulberry circle","address2":null,"address3":null,"city":"crawfordville","residential":true,"state":"FL","province":null,"country":"United States","postal_code":"32327","postal_code_plus_4":"2276","phone_number":"8509264795","email":"5631clp@gmail.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":0,"shipping_method":"Free Shipping - No PO Boxes or APO","items_shipped":0,"ext_shipping_detail_id":null,"line_items":[{"item_name":"1 or 2 Wedgies with Smoker Pellets Variety Pack (Select up to 6 3-lb. Assortments at Checkout = min 9 lbs.)","sku":"wedgie-9-pounds-1","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"144.0","quantity":1,"total_excluding_tax":"53.05","price_excluding_tax":"0.00","unit_price":"53.05","ext_line_item_id":null,"ext_product_id":"80439134","product_options":{"Number of Wedgies":"1 wedgie","Bag 1 (3#)":"100% Apple","Bag 2 (3#)":"100% Apple","Bag 3 (3#)":"100% Pecan","Add 4th Sample Bag Below":"100% Pecan","Add 5th Sample Bag Below":"100% Alder","Add 6th Sample  Bag Below":"100% Apple","Add Can(s) Gourmet Duck Fat Spray Here":[],"Add Smokin Wedgie Leg Kit for Flat Bottom Smokers":["Add 1 Set of Smokin Wedgie Legs"]},"uuid":"5ee77854-ddee-41d9-98f1-808fb6b5ca9b","order_source_id":216391953,"gift_message":null}],"original_order":{"id":206885483,"customer_id":33773,"store_id":70642,"order_detail_id":208986753,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"160.0","total_quantity":1,"is_international":false,"usps_shipping_zone":6,"created_at":"2017-12-28T05:31:30Z","updated_at":"2017-12-28T19:07:59Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_shipment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"1 or 2 wedgies with smoker pellets variety pack (select up to 6 3-lb. assortments at checkout = min 9 lbs.)","line_item_sku":"wedgie-9-pounds-1","address_kind":"R","recipient_last_name":"powell","recipient_requested_service":"free shipping - no po boxes or apo","gift":false,"prime_order_id":206885483,"state":"FL","owner_id":37098,"denormalized_ordered_at":"2017-12-28T06:23:37Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"3938","packing_slip_generated":null,"denormalized_ext_order_reference_id":"3938","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"276833075f862f916ca417ff8ccb9564","shipments":[{"id":224049243,"tracking_number":"789145389163","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":993,"ship_date":"2017-12-28"},{"id":223375693,"tracking_number":"9405510298370316027871","carrier_key":"USPS","carrier_service_key":"Priority","shipment_cost":1205,"ship_date":"2017-12-28"}],"updated_at":"2017-12-28T19:07:59Z","internal_notes":"","meta_data":null,"prime_order_id":206885483,"is_prime":null,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(2) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(224049243)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(5) "160.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(993)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(12) "789145389163"
    }
    [1]=>
    array(7) {
      ["se_shipment_id"]=>
      int(223375693)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(5) "160.0"
      ["carrier_service_key"]=>
      string(8) "Priority"
      ["shipment_cost"]=>
      int(1205)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(22) "9405510298370316027871"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7375

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7035"
    ["order_id"]=>
    string(4) "7375"
    ["se_shipment_id"]=>
    string(9) "223375693"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(4) "1205"
    ["shipment_weight_ounces"]=>
    string(6) "160.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370316027871"
    ["tracking_status"]=>
    string(15) "AWAITING PICKUP"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(42) "Shipping Label Created, USPS Awaiting Item"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2017-12-28 07:48:42"
  }
}


shipmentDBRows:
array(1) {
  [223375693]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7035"
    ["order_id"]=>
    string(4) "7375"
    ["se_shipment_id"]=>
    string(9) "223375693"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(4) "1205"
    ["shipment_weight_ounces"]=>
    string(6) "160.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370316027871"
    ["tracking_status"]=>
    string(15) "AWAITING PICKUP"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(42) "Shipping Label Created, USPS Awaiting Item"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2017-12-28 07:48:42"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(223375693)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(5) "160.0"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    int(1205)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370316027871"
  }
}

Shipment info shipping easy shipment ID #223375693

From API:
array(7) {
  ["se_shipment_id"]=>
  int(223375693)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(5) "160.0"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  int(1205)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9405510298370316027871"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7035"
  ["order_id"]=>
  string(4) "7375"
  ["se_shipment_id"]=>
  string(9) "223375693"
  ["carrier_key"]=>
  string(4) "USPS"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  string(4) "1205"
  ["shipment_weight_ounces"]=>
  string(6) "160.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9405510298370316027871"
  ["tracking_status"]=>
  string(15) "AWAITING PICKUP"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  string(42) "Shipping Label Created, USPS Awaiting Item"
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2017-12-28 07:48:42"
}



Shipment info for shipping easy shipment ID #223375693 is same between both arrays

*** Order info:
Array
(
    [id] => 207380563
    [external_order_identifier] => 112-8969386-4989057
    [ext_order_reference_id] => 112-8969386-4989057
    [owner_id] => 
    [sales_channel] => 
    [fulfillment_channel] => fulfillment_by_amazon
    [ordered_at] => 2017-12-27T22:06:17Z
    [order_status] => drop_shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 21.44
    [total_excluding_tax] => 19.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 21.44
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 1.45
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => STACY R SCHNEIDER
    [billing_first_name] => Stacy
    [billing_last_name] => Schneider
    [billing_address] => 26358 OAK ST
    [billing_address2] => 
    [billing_city] => MCARTHUR
    [billing_state] => CA
    [billing_country] => US
    [billing_postal_code] => 96056-8548
    [billing_phone_number] => 
    [billing_email] => tm6bgy4mjzbq0z4@marketplace.amazon.com
    [buyer_email] => tm6bgy4mjzbq0z4@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => STACY
                    [last_name] => R SCHNEIDER
                    [address] => 26358 OAK ST
                    [address2] => 
                    [address3] => 
                    [city] => MCARTHUR
                    [residential] => 1
                    [state] => CA
                    [province] => 
                    [country] => United States
                    [postal_code] => 96056
                    [postal_code_plus_4] => 8548
                    [phone_number] => 
                    [email] => tm6bgy4mjzbq0z4@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => SecondDay
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Smokin Wedgies - Stainless Steel
                                    [sku] => smoking wedgie
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 0.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 19.99
                                    [unit_price] => 19.99
                                    [ext_line_item_id] => 31175458810986
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => b3436057-35b8-4517-90f3-e182665424e8
                                    [order_source_id] => 216927523
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 207380563
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 209489063
                            [workflow_state] => drop_shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 0.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 7
                            [created_at] => 2017-12-28T20:06:54Z
                            [updated_at] => 2017-12-28T20:06:55Z
                            [ext_shipment_confirmation_id] => 0
                            [store_order_status] => external_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 
                            [internal_notes] => 
                            [line_item_name] => smokin wedgies - stainless steel
                            [line_item_sku] => smoking wedgie
                            [address_kind] => R
                            [recipient_last_name] => r schneider
                            [recipient_requested_service] => secondday
                            [gift] => 
                            [prime_order_id] => 207380563
                            [state] => CA
                            [owner_id] => 
                            [denormalized_ordered_at] => 2017-12-27T22:06:17Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 112-8969386-4989057
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 112-8969386-4989057
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 224135043
                    [tracking_number] => 
                    [carrier_key] => 
                    [carrier_service_key] => 
                    [shipment_cost] => 
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-28T20:06:55Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 207380563
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for tm6bgy4mjzbq0z4@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 9998

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(5) "STACY"
  ["customer_last_name"]=>
  string(11) "R SCHNEIDER"
  ["customer_email"]=>
  string(38) "tm6bgy4mjzbq0z4@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(17) "STACY R SCHNEIDER"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(12) "26358 OAK ST"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(8) "MCARTHUR"
    ["address_state"]=>
    string(2) "CA"
    ["address_zip"]=>
    string(10) "96056-8548"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9998"
  ["ordered_time"]=>
  string(19) "2017-12-27 22:06:17"
  ["se_order_id"]=>
  int(207380563)
  ["se_order_status"]=>
  string(12) "drop_shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "112-8969386-4989057"
  ["order_weight_ounces"]=>
  string(3) "0.0"
  ["store_order_status"]=>
  string(20) "external_fulfillment"
  ["se_api_response"]=>
  string(3971) "{"id":207380563,"external_order_identifier":"112-8969386-4989057","ext_order_reference_id":"112-8969386-4989057","owner_id":null,"sales_channel":null,"fulfillment_channel":"fulfillment_by_amazon","ordered_at":"2017-12-27T22:06:17Z","order_status":"drop_shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"21.44","total_excluding_tax":"19.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"21.44","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"1.45","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"STACY R SCHNEIDER","billing_first_name":"Stacy","billing_last_name":"Schneider","billing_address":"26358 OAK ST","billing_address2":null,"billing_city":"MCARTHUR","billing_state":"CA","billing_country":"US","billing_postal_code":"96056-8548","billing_phone_number":null,"billing_email":"tm6bgy4mjzbq0z4@marketplace.amazon.com","buyer_email":"tm6bgy4mjzbq0z4@marketplace.amazon.com","recipients":[{"company":null,"first_name":"STACY","last_name":"R SCHNEIDER","address":"26358 OAK ST","address2":null,"address3":null,"city":"MCARTHUR","residential":true,"state":"CA","province":null,"country":"United States","postal_code":"96056","postal_code_plus_4":"8548","phone_number":null,"email":"tm6bgy4mjzbq0z4@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"SecondDay","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Smokin Wedgies - Stainless Steel","sku":"smoking wedgie","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"0.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"19.99","unit_price":"19.99","ext_line_item_id":"31175458810986","ext_product_id":null,"product_options":null,"uuid":"b3436057-35b8-4517-90f3-e182665424e8","order_source_id":216927523,"gift_message":null}],"original_order":{"id":207380563,"customer_id":33773,"store_id":70647,"order_detail_id":209489063,"workflow_state":"drop_shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"0.0","total_quantity":1,"is_international":false,"usps_shipping_zone":7,"created_at":"2017-12-28T20:06:54Z","updated_at":"2017-12-28T20:06:55Z","ext_shipment_confirmation_id":0,"store_order_status":"external_fulfillment","drop_ship_tracking_number":null,"category_id":null,"internal_notes":"","line_item_name":"smokin wedgies - stainless steel","line_item_sku":"smoking wedgie","address_kind":"R","recipient_last_name":"r schneider","recipient_requested_service":"secondday","gift":null,"prime_order_id":207380563,"state":"CA","owner_id":null,"denormalized_ordered_at":"2017-12-27T22:06:17Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"112-8969386-4989057","packing_slip_generated":null,"denormalized_ext_order_reference_id":"112-8969386-4989057","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":224135043,"tracking_number":null,"carrier_key":null,"carrier_service_key":null,"shipment_cost":null,"ship_date":"2017-12-28"}],"updated_at":"2017-12-28T20:06:55Z","internal_notes":"","meta_data":null,"prime_order_id":207380563,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(224135043)
      ["carrier_key"]=>
      string(7) "SPEEDEE"
      ["shipment_weight_ounces"]=>
      string(3) "0.0"
      ["carrier_service_key"]=>
      NULL
      ["shipment_cost"]=>
      NULL
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(0) ""
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7395

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7054"
    ["order_id"]=>
    string(4) "7395"
    ["se_shipment_id"]=>
    string(9) "224135043"
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["shipment_weight_ounces"]=>
    string(4) "0.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(0) ""
    ["tracking_status"]=>
    string(9) "UNSHIPPED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    NULL
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2017-12-29 07:37:24"
  }
}


shipmentDBRows:
array(1) {
  [224135043]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7054"
    ["order_id"]=>
    string(4) "7395"
    ["se_shipment_id"]=>
    string(9) "224135043"
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["shipment_weight_ounces"]=>
    string(4) "0.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(0) ""
    ["tracking_status"]=>
    string(9) "UNSHIPPED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    NULL
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2017-12-29 07:37:24"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(224135043)
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["shipment_weight_ounces"]=>
    string(3) "0.0"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(0) ""
  }
}

Shipment info shipping easy shipment ID #224135043

From API:
array(7) {
  ["se_shipment_id"]=>
  int(224135043)
  ["carrier_key"]=>
  string(7) "SPEEDEE"
  ["shipment_weight_ounces"]=>
  string(3) "0.0"
  ["carrier_service_key"]=>
  NULL
  ["shipment_cost"]=>
  NULL
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(0) ""
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7054"
  ["order_id"]=>
  string(4) "7395"
  ["se_shipment_id"]=>
  string(9) "224135043"
  ["carrier_key"]=>
  string(7) "SPEEDEE"
  ["carrier_service_key"]=>
  NULL
  ["shipment_cost"]=>
  NULL
  ["shipment_weight_ounces"]=>
  string(4) "0.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(0) ""
  ["tracking_status"]=>
  string(9) "UNSHIPPED"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  NULL
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2017-12-29 07:37:24"
}



Shipment info for shipping easy shipment ID #224135043 is same between both arrays

*** Order info:
Array
(
    [id] => 207513013
    [external_order_identifier] => 114-9008448-3193052
    [ext_order_reference_id] => 114-9008448-3193052
    [owner_id] => 
    [sales_channel] => 
    [fulfillment_channel] => fulfillment_by_amazon
    [ordered_at] => 2017-12-27T22:10:35Z
    [order_status] => drop_shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 19.99
    [total_excluding_tax] => 19.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 19.99
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Grayson Bidel
    [billing_first_name] => Grayson
    [billing_last_name] => Bidel
    [billing_address] => 30 W 3RD ST
    [billing_address2] => 
    [billing_city] => BLOOMSBURG
    [billing_state] => PA
    [billing_country] => US
    [billing_postal_code] => 17815-1707
    [billing_phone_number] => 
    [billing_email] => ngm1fmgchd40979@marketplace.amazon.com
    [buyer_email] => ngm1fmgchd40979@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Grayson
                    [last_name] => Bidel
                    [address] => 30 W 3RD ST
                    [address2] => 
                    [address3] => 
                    [city] => BLOOMSBURG
                    [residential] => 1
                    [state] => PA
                    [province] => 
                    [country] => United States
                    [postal_code] => 17815
                    [postal_code_plus_4] => 1707
                    [phone_number] => 
                    [email] => ngm1fmgchd40979@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => SecondDay
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Smokin Wedgies - Stainless Steel
                                    [sku] => smoking wedgie
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 0.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 19.99
                                    [unit_price] => 19.99
                                    [ext_line_item_id] => 08127728698530
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 8491108d-ef08-443d-a6ca-687fa3770cbc
                                    [order_source_id] => 217068363
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 207513013
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 209623503
                            [workflow_state] => drop_shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 0.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-28T22:07:14Z
                            [updated_at] => 2017-12-28T22:07:14Z
                            [ext_shipment_confirmation_id] => 0
                            [store_order_status] => external_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 
                            [internal_notes] => 
                            [line_item_name] => smokin wedgies - stainless steel
                            [line_item_sku] => smoking wedgie
                            [address_kind] => R
                            [recipient_last_name] => bidel
                            [recipient_requested_service] => secondday
                            [gift] => 
                            [prime_order_id] => 207513013
                            [state] => PA
                            [owner_id] => 
                            [denormalized_ordered_at] => 2017-12-27T22:10:35Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 114-9008448-3193052
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 114-9008448-3193052
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 224308673
                    [tracking_number] => 
                    [carrier_key] => 
                    [carrier_service_key] => 
                    [shipment_cost] => 
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-28T22:07:14Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 207513013
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for ngm1fmgchd40979@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 9999

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(7) "Grayson"
  ["customer_last_name"]=>
  string(5) "Bidel"
  ["customer_email"]=>
  string(38) "ngm1fmgchd40979@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(13) "Grayson Bidel"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(11) "30 W 3RD ST"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(10) "BLOOMSBURG"
    ["address_state"]=>
    string(2) "PA"
    ["address_zip"]=>
    string(10) "17815-1707"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9999"
  ["ordered_time"]=>
  string(19) "2017-12-27 22:10:35"
  ["se_order_id"]=>
  int(207513013)
  ["se_order_status"]=>
  string(12) "drop_shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "114-9008448-3193052"
  ["order_weight_ounces"]=>
  string(3) "0.0"
  ["store_order_status"]=>
  string(20) "external_fulfillment"
  ["se_api_response"]=>
  string(3957) "{"id":207513013,"external_order_identifier":"114-9008448-3193052","ext_order_reference_id":"114-9008448-3193052","owner_id":null,"sales_channel":null,"fulfillment_channel":"fulfillment_by_amazon","ordered_at":"2017-12-27T22:10:35Z","order_status":"drop_shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"19.99","total_excluding_tax":"19.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"19.99","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Grayson Bidel","billing_first_name":"Grayson","billing_last_name":"Bidel","billing_address":"30 W 3RD ST","billing_address2":null,"billing_city":"BLOOMSBURG","billing_state":"PA","billing_country":"US","billing_postal_code":"17815-1707","billing_phone_number":null,"billing_email":"ngm1fmgchd40979@marketplace.amazon.com","buyer_email":"ngm1fmgchd40979@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Grayson","last_name":"Bidel","address":"30 W 3RD ST","address2":null,"address3":null,"city":"BLOOMSBURG","residential":true,"state":"PA","province":null,"country":"United States","postal_code":"17815","postal_code_plus_4":"1707","phone_number":null,"email":"ngm1fmgchd40979@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"SecondDay","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Smokin Wedgies - Stainless Steel","sku":"smoking wedgie","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"0.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"19.99","unit_price":"19.99","ext_line_item_id":"08127728698530","ext_product_id":null,"product_options":null,"uuid":"8491108d-ef08-443d-a6ca-687fa3770cbc","order_source_id":217068363,"gift_message":null}],"original_order":{"id":207513013,"customer_id":33773,"store_id":70647,"order_detail_id":209623503,"workflow_state":"drop_shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"0.0","total_quantity":1,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-28T22:07:14Z","updated_at":"2017-12-28T22:07:14Z","ext_shipment_confirmation_id":0,"store_order_status":"external_fulfillment","drop_ship_tracking_number":null,"category_id":null,"internal_notes":"","line_item_name":"smokin wedgies - stainless steel","line_item_sku":"smoking wedgie","address_kind":"R","recipient_last_name":"bidel","recipient_requested_service":"secondday","gift":null,"prime_order_id":207513013,"state":"PA","owner_id":null,"denormalized_ordered_at":"2017-12-27T22:10:35Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"114-9008448-3193052","packing_slip_generated":null,"denormalized_ext_order_reference_id":"114-9008448-3193052","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":224308673,"tracking_number":null,"carrier_key":null,"carrier_service_key":null,"shipment_cost":null,"ship_date":"2017-12-28"}],"updated_at":"2017-12-28T22:07:14Z","internal_notes":"","meta_data":null,"prime_order_id":207513013,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(224308673)
      ["carrier_key"]=>
      string(7) "SPEEDEE"
      ["shipment_weight_ounces"]=>
      string(3) "0.0"
      ["carrier_service_key"]=>
      NULL
      ["shipment_cost"]=>
      NULL
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(0) ""
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7396

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7055"
    ["order_id"]=>
    string(4) "7396"
    ["se_shipment_id"]=>
    string(9) "224308673"
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["shipment_weight_ounces"]=>
    string(4) "0.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(0) ""
    ["tracking_status"]=>
    string(9) "UNSHIPPED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    NULL
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2017-12-29 07:37:24"
  }
}


shipmentDBRows:
array(1) {
  [224308673]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7055"
    ["order_id"]=>
    string(4) "7396"
    ["se_shipment_id"]=>
    string(9) "224308673"
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["shipment_weight_ounces"]=>
    string(4) "0.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(0) ""
    ["tracking_status"]=>
    string(9) "UNSHIPPED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    NULL
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2017-12-29 07:37:24"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(224308673)
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["shipment_weight_ounces"]=>
    string(3) "0.0"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(0) ""
  }
}

Shipment info shipping easy shipment ID #224308673

From API:
array(7) {
  ["se_shipment_id"]=>
  int(224308673)
  ["carrier_key"]=>
  string(7) "SPEEDEE"
  ["shipment_weight_ounces"]=>
  string(3) "0.0"
  ["carrier_service_key"]=>
  NULL
  ["shipment_cost"]=>
  NULL
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(0) ""
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7055"
  ["order_id"]=>
  string(4) "7396"
  ["se_shipment_id"]=>
  string(9) "224308673"
  ["carrier_key"]=>
  string(7) "SPEEDEE"
  ["carrier_service_key"]=>
  NULL
  ["shipment_cost"]=>
  NULL
  ["shipment_weight_ounces"]=>
  string(4) "0.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(0) ""
  ["tracking_status"]=>
  string(9) "UNSHIPPED"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  NULL
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2017-12-29 07:37:24"
}



Shipment info for shipping easy shipment ID #224308673 is same between both arrays

*** Order info:
Array
(
    [id] => 207567593
    [external_order_identifier] => 113-5961490-7087411
    [ext_order_reference_id] => 113-5961490-7087411
    [owner_id] => 
    [sales_channel] => 
    [fulfillment_channel] => fulfillment_by_amazon
    [ordered_at] => 2017-12-28T18:44:12Z
    [order_status] => drop_shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 26.78
    [total_excluding_tax] => 26.78
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 26.78
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 6.79
    [shipping_cost_including_tax] => 6.79
    [shipping_cost_excluding_tax] => 6.79
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Danny Kilber
    [billing_first_name] => Danny
    [billing_last_name] => Kilber
    [billing_address] => 302 S MITCHELL ST
    [billing_address2] => 
    [billing_city] => ROSCOE
    [billing_state] => SD
    [billing_country] => US
    [billing_postal_code] => 57471-2007
    [billing_phone_number] => 
    [billing_email] => sfkyprkqsqtbzn1@marketplace.amazon.com
    [buyer_email] => sfkyprkqsqtbzn1@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Danny
                    [last_name] => Kilber
                    [address] => 302 S MITCHELL ST
                    [address2] => 
                    [address3] => 
                    [city] => ROSCOE
                    [residential] => 1
                    [state] => SD
                    [province] => 
                    [country] => United States
                    [postal_code] => 57471
                    [postal_code_plus_4] => 2007
                    [phone_number] => 
                    [email] => sfkyprkqsqtbzn1@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => Standard
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Smokin Wedgies - Stainless Steel
                                    [sku] => smoking wedgie
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 0.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 19.99
                                    [unit_price] => 19.99
                                    [ext_line_item_id] => 64051432194210
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 92db8de9-6392-40f0-8182-2bb5ecffdc70
                                    [order_source_id] => 217127323
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 207567593
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 209678493
                            [workflow_state] => drop_shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 0.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 3
                            [created_at] => 2017-12-28T23:06:53Z
                            [updated_at] => 2017-12-28T23:06:54Z
                            [ext_shipment_confirmation_id] => 0
                            [store_order_status] => external_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 
                            [internal_notes] => 
                            [line_item_name] => smokin wedgies - stainless steel
                            [line_item_sku] => smoking wedgie
                            [address_kind] => R
                            [recipient_last_name] => kilber
                            [recipient_requested_service] => standard
                            [gift] => 
                            [prime_order_id] => 207567593
                            [state] => SD
                            [owner_id] => 
                            [denormalized_ordered_at] => 2017-12-28T18:44:12Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 113-5961490-7087411
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 113-5961490-7087411
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 224359693
                    [tracking_number] => 
                    [carrier_key] => 
                    [carrier_service_key] => 
                    [shipment_cost] => 
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-28T23:06:54Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 207567593
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for sfkyprkqsqtbzn1@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 10000

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(5) "Danny"
  ["customer_last_name"]=>
  string(6) "Kilber"
  ["customer_email"]=>
  string(38) "sfkyprkqsqtbzn1@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(12) "Danny Kilber"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(17) "302 S MITCHELL ST"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(6) "ROSCOE"
    ["address_state"]=>
    string(2) "SD"
    ["address_zip"]=>
    string(10) "57471-2007"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10000"
  ["ordered_time"]=>
  string(19) "2017-12-28 18:44:12"
  ["se_order_id"]=>
  int(207567593)
  ["se_order_status"]=>
  string(12) "drop_shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "113-5961490-7087411"
  ["order_weight_ounces"]=>
  string(3) "0.0"
  ["store_order_status"]=>
  string(20) "external_fulfillment"
  ["se_api_response"]=>
  string(3957) "{"id":207567593,"external_order_identifier":"113-5961490-7087411","ext_order_reference_id":"113-5961490-7087411","owner_id":null,"sales_channel":null,"fulfillment_channel":"fulfillment_by_amazon","ordered_at":"2017-12-28T18:44:12Z","order_status":"drop_shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"26.78","total_excluding_tax":"26.78","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"26.78","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"6.79","shipping_cost_including_tax":"6.79","shipping_cost_excluding_tax":"6.79","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Danny Kilber","billing_first_name":"Danny","billing_last_name":"Kilber","billing_address":"302 S MITCHELL ST","billing_address2":null,"billing_city":"ROSCOE","billing_state":"SD","billing_country":"US","billing_postal_code":"57471-2007","billing_phone_number":null,"billing_email":"sfkyprkqsqtbzn1@marketplace.amazon.com","buyer_email":"sfkyprkqsqtbzn1@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Danny","last_name":"Kilber","address":"302 S MITCHELL ST","address2":null,"address3":null,"city":"ROSCOE","residential":true,"state":"SD","province":null,"country":"United States","postal_code":"57471","postal_code_plus_4":"2007","phone_number":null,"email":"sfkyprkqsqtbzn1@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"Standard","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Smokin Wedgies - Stainless Steel","sku":"smoking wedgie","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"0.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"19.99","unit_price":"19.99","ext_line_item_id":"64051432194210","ext_product_id":null,"product_options":null,"uuid":"92db8de9-6392-40f0-8182-2bb5ecffdc70","order_source_id":217127323,"gift_message":null}],"original_order":{"id":207567593,"customer_id":33773,"store_id":70647,"order_detail_id":209678493,"workflow_state":"drop_shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"0.0","total_quantity":1,"is_international":false,"usps_shipping_zone":3,"created_at":"2017-12-28T23:06:53Z","updated_at":"2017-12-28T23:06:54Z","ext_shipment_confirmation_id":0,"store_order_status":"external_fulfillment","drop_ship_tracking_number":null,"category_id":null,"internal_notes":"","line_item_name":"smokin wedgies - stainless steel","line_item_sku":"smoking wedgie","address_kind":"R","recipient_last_name":"kilber","recipient_requested_service":"standard","gift":null,"prime_order_id":207567593,"state":"SD","owner_id":null,"denormalized_ordered_at":"2017-12-28T18:44:12Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"113-5961490-7087411","packing_slip_generated":null,"denormalized_ext_order_reference_id":"113-5961490-7087411","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":224359693,"tracking_number":null,"carrier_key":null,"carrier_service_key":null,"shipment_cost":null,"ship_date":"2017-12-28"}],"updated_at":"2017-12-28T23:06:54Z","internal_notes":"","meta_data":null,"prime_order_id":207567593,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(224359693)
      ["carrier_key"]=>
      string(7) "SPEEDEE"
      ["shipment_weight_ounces"]=>
      string(3) "0.0"
      ["carrier_service_key"]=>
      NULL
      ["shipment_cost"]=>
      NULL
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(0) ""
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7397

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7056"
    ["order_id"]=>
    string(4) "7397"
    ["se_shipment_id"]=>
    string(9) "224359693"
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["shipment_weight_ounces"]=>
    string(4) "0.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(0) ""
    ["tracking_status"]=>
    string(9) "UNSHIPPED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    NULL
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2017-12-29 07:37:24"
  }
}


shipmentDBRows:
array(1) {
  [224359693]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7056"
    ["order_id"]=>
    string(4) "7397"
    ["se_shipment_id"]=>
    string(9) "224359693"
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["shipment_weight_ounces"]=>
    string(4) "0.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(0) ""
    ["tracking_status"]=>
    string(9) "UNSHIPPED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    NULL
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2017-12-29 07:37:24"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(224359693)
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["shipment_weight_ounces"]=>
    string(3) "0.0"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(0) ""
  }
}

Shipment info shipping easy shipment ID #224359693

From API:
array(7) {
  ["se_shipment_id"]=>
  int(224359693)
  ["carrier_key"]=>
  string(7) "SPEEDEE"
  ["shipment_weight_ounces"]=>
  string(3) "0.0"
  ["carrier_service_key"]=>
  NULL
  ["shipment_cost"]=>
  NULL
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(0) ""
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7056"
  ["order_id"]=>
  string(4) "7397"
  ["se_shipment_id"]=>
  string(9) "224359693"
  ["carrier_key"]=>
  string(7) "SPEEDEE"
  ["carrier_service_key"]=>
  NULL
  ["shipment_cost"]=>
  NULL
  ["shipment_weight_ounces"]=>
  string(4) "0.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(0) ""
  ["tracking_status"]=>
  string(9) "UNSHIPPED"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  NULL
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2017-12-29 07:37:24"
}



Shipment info for shipping easy shipment ID #224359693 is same between both arrays

*** Order info:
Array
(
    [id] => 207611633
    [external_order_identifier] => 114-0938617-2868244
    [ext_order_reference_id] => 114-0938617-2868244
    [owner_id] => 
    [sales_channel] => 
    [fulfillment_channel] => fulfillment_by_amazon
    [ordered_at] => 2017-12-27T20:10:13Z
    [order_status] => drop_shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 19.99
    [total_excluding_tax] => 19.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 19.99
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Wayne Daniels
    [billing_first_name] => Wayne
    [billing_last_name] => 
    [billing_address] => 114 HUNLOCK HARVEYVILLE RD
    [billing_address2] => 
    [billing_city] => HUNLOCK CREEK
    [billing_state] => PA
    [billing_country] => US
    [billing_postal_code] => 18621-3019
    [billing_phone_number] => 
    [billing_email] => 5cdc3651vw0x5w5@marketplace.amazon.com
    [buyer_email] => 5cdc3651vw0x5w5@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Wayne
                    [last_name] => Daniels
                    [address] => 114 HUNLOCK HARVEYVILLE RD
                    [address2] => 
                    [address3] => 
                    [city] => HUNLOCK CREEK
                    [residential] => 1
                    [state] => PA
                    [province] => 
                    [country] => United States
                    [postal_code] => 18621
                    [postal_code_plus_4] => 3019
                    [phone_number] => 
                    [email] => 5cdc3651vw0x5w5@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => SecondDay
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Smokin Wedgies - Stainless Steel
                                    [sku] => smoking wedgie
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 0.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 19.99
                                    [unit_price] => 19.99
                                    [ext_line_item_id] => 20955766687786
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 59d20505-3a11-48a3-b166-abf1f7902f82
                                    [order_source_id] => 217177093
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 207611633
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 209723883
                            [workflow_state] => drop_shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 0.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-29T00:06:53Z
                            [updated_at] => 2017-12-29T00:06:53Z
                            [ext_shipment_confirmation_id] => 0
                            [store_order_status] => external_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 
                            [internal_notes] => 
                            [line_item_name] => smokin wedgies - stainless steel
                            [line_item_sku] => smoking wedgie
                            [address_kind] => R
                            [recipient_last_name] => daniels
                            [recipient_requested_service] => secondday
                            [gift] => 
                            [prime_order_id] => 207611633
                            [state] => PA
                            [owner_id] => 
                            [denormalized_ordered_at] => 2017-12-27T20:10:13Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 114-0938617-2868244
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 114-0938617-2868244
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 224385673
                    [tracking_number] => 
                    [carrier_key] => 
                    [carrier_service_key] => 
                    [shipment_cost] => 
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-29T00:06:53Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 207611633
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for 5cdc3651vw0x5w5@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 10001

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(5) "Wayne"
  ["customer_last_name"]=>
  string(7) "Daniels"
  ["customer_email"]=>
  string(38) "5cdc3651vw0x5w5@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(13) "Wayne Daniels"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(26) "114 HUNLOCK HARVEYVILLE RD"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(13) "HUNLOCK CREEK"
    ["address_state"]=>
    string(2) "PA"
    ["address_zip"]=>
    string(10) "18621-3019"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10001"
  ["ordered_time"]=>
  string(19) "2017-12-27 20:10:13"
  ["se_order_id"]=>
  int(207611633)
  ["se_order_status"]=>
  string(12) "drop_shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "114-0938617-2868244"
  ["order_weight_ounces"]=>
  string(3) "0.0"
  ["store_order_status"]=>
  string(20) "external_fulfillment"
  ["se_api_response"]=>
  string(3990) "{"id":207611633,"external_order_identifier":"114-0938617-2868244","ext_order_reference_id":"114-0938617-2868244","owner_id":null,"sales_channel":null,"fulfillment_channel":"fulfillment_by_amazon","ordered_at":"2017-12-27T20:10:13Z","order_status":"drop_shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"19.99","total_excluding_tax":"19.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"19.99","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Wayne Daniels","billing_first_name":"Wayne","billing_last_name":null,"billing_address":"114 HUNLOCK HARVEYVILLE RD","billing_address2":null,"billing_city":"HUNLOCK CREEK","billing_state":"PA","billing_country":"US","billing_postal_code":"18621-3019","billing_phone_number":null,"billing_email":"5cdc3651vw0x5w5@marketplace.amazon.com","buyer_email":"5cdc3651vw0x5w5@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Wayne","last_name":"Daniels","address":"114 HUNLOCK HARVEYVILLE RD","address2":null,"address3":null,"city":"HUNLOCK CREEK","residential":true,"state":"PA","province":null,"country":"United States","postal_code":"18621","postal_code_plus_4":"3019","phone_number":null,"email":"5cdc3651vw0x5w5@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"SecondDay","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Smokin Wedgies - Stainless Steel","sku":"smoking wedgie","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"0.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"19.99","unit_price":"19.99","ext_line_item_id":"20955766687786","ext_product_id":null,"product_options":null,"uuid":"59d20505-3a11-48a3-b166-abf1f7902f82","order_source_id":217177093,"gift_message":null}],"original_order":{"id":207611633,"customer_id":33773,"store_id":70647,"order_detail_id":209723883,"workflow_state":"drop_shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"0.0","total_quantity":1,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-29T00:06:53Z","updated_at":"2017-12-29T00:06:53Z","ext_shipment_confirmation_id":0,"store_order_status":"external_fulfillment","drop_ship_tracking_number":null,"category_id":null,"internal_notes":"","line_item_name":"smokin wedgies - stainless steel","line_item_sku":"smoking wedgie","address_kind":"R","recipient_last_name":"daniels","recipient_requested_service":"secondday","gift":null,"prime_order_id":207611633,"state":"PA","owner_id":null,"denormalized_ordered_at":"2017-12-27T20:10:13Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"114-0938617-2868244","packing_slip_generated":null,"denormalized_ext_order_reference_id":"114-0938617-2868244","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":224385673,"tracking_number":null,"carrier_key":null,"carrier_service_key":null,"shipment_cost":null,"ship_date":"2017-12-28"}],"updated_at":"2017-12-29T00:06:53Z","internal_notes":"","meta_data":null,"prime_order_id":207611633,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(224385673)
      ["carrier_key"]=>
      string(7) "SPEEDEE"
      ["shipment_weight_ounces"]=>
      string(3) "0.0"
      ["carrier_service_key"]=>
      NULL
      ["shipment_cost"]=>
      NULL
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(0) ""
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7398

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7057"
    ["order_id"]=>
    string(4) "7398"
    ["se_shipment_id"]=>
    string(9) "224385673"
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["shipment_weight_ounces"]=>
    string(4) "0.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(0) ""
    ["tracking_status"]=>
    string(9) "UNSHIPPED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    NULL
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2017-12-29 07:37:24"
  }
}


shipmentDBRows:
array(1) {
  [224385673]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7057"
    ["order_id"]=>
    string(4) "7398"
    ["se_shipment_id"]=>
    string(9) "224385673"
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["shipment_weight_ounces"]=>
    string(4) "0.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(0) ""
    ["tracking_status"]=>
    string(9) "UNSHIPPED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    NULL
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2017-12-29 07:37:24"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(224385673)
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["shipment_weight_ounces"]=>
    string(3) "0.0"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(0) ""
  }
}

Shipment info shipping easy shipment ID #224385673

From API:
array(7) {
  ["se_shipment_id"]=>
  int(224385673)
  ["carrier_key"]=>
  string(7) "SPEEDEE"
  ["shipment_weight_ounces"]=>
  string(3) "0.0"
  ["carrier_service_key"]=>
  NULL
  ["shipment_cost"]=>
  NULL
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(0) ""
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7057"
  ["order_id"]=>
  string(4) "7398"
  ["se_shipment_id"]=>
  string(9) "224385673"
  ["carrier_key"]=>
  string(7) "SPEEDEE"
  ["carrier_service_key"]=>
  NULL
  ["shipment_cost"]=>
  NULL
  ["shipment_weight_ounces"]=>
  string(4) "0.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(0) ""
  ["tracking_status"]=>
  string(9) "UNSHIPPED"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  NULL
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2017-12-29 07:37:24"
}



Shipment info for shipping easy shipment ID #224385673 is same between both arrays

*** Order info:
Array
(
    [id] => 207745803
    [external_order_identifier] => 111-8135629-7212254
    [ext_order_reference_id] => 111-8135629-7212254
    [owner_id] => 
    [sales_channel] => 
    [fulfillment_channel] => fulfillment_by_amazon
    [ordered_at] => 2017-12-26T23:59:01Z
    [order_status] => drop_shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 19.99
    [total_excluding_tax] => 19.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 19.99
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Donald LaPan
    [billing_first_name] => Donald
    [billing_last_name] => 
    [billing_address] => 719 NEEDLE AVE NE
    [billing_address2] => 
    [billing_city] => PALM BAY
    [billing_state] => FL
    [billing_country] => US
    [billing_postal_code] => 32907-1562
    [billing_phone_number] => 
    [billing_email] => 3z3jfstkyb11g8f@marketplace.amazon.com
    [buyer_email] => 3z3jfstkyb11g8f@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Donald
                    [last_name] => LaPan
                    [address] => 719 NEEDLE AVE NE
                    [address2] => 
                    [address3] => 
                    [city] => PALM BAY
                    [residential] => 1
                    [state] => FL
                    [province] => 
                    [country] => United States
                    [postal_code] => 32907
                    [postal_code_plus_4] => 1562
                    [phone_number] => 
                    [email] => 3z3jfstkyb11g8f@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => SecondDay
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Smokin Wedgies - Stainless Steel
                                    [sku] => smoking wedgie
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 0.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 19.99
                                    [unit_price] => 19.99
                                    [ext_line_item_id] => 14127882978554
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 5a8735ae-9571-483c-97ef-45dd66ffbd0a
                                    [order_source_id] => 217326183
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 207745803
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 209862153
                            [workflow_state] => drop_shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 0.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 6
                            [created_at] => 2017-12-29T03:07:25Z
                            [updated_at] => 2017-12-29T03:07:25Z
                            [ext_shipment_confirmation_id] => 0
                            [store_order_status] => external_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 
                            [internal_notes] => 
                            [line_item_name] => smokin wedgies - stainless steel
                            [line_item_sku] => smoking wedgie
                            [address_kind] => R
                            [recipient_last_name] => lapan
                            [recipient_requested_service] => secondday
                            [gift] => 
                            [prime_order_id] => 207745803
                            [state] => FL
                            [owner_id] => 
                            [denormalized_ordered_at] => 2017-12-26T23:59:01Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 111-8135629-7212254
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 111-8135629-7212254
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 224456333
                    [tracking_number] => 
                    [carrier_key] => 
                    [carrier_service_key] => 
                    [shipment_cost] => 
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-29T03:07:25Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 207745803
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for 3z3jfstkyb11g8f@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 10002

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(6) "Donald"
  ["customer_last_name"]=>
  string(5) "LaPan"
  ["customer_email"]=>
  string(38) "3z3jfstkyb11g8f@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(12) "Donald LaPan"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(17) "719 NEEDLE AVE NE"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(8) "PALM BAY"
    ["address_state"]=>
    string(2) "FL"
    ["address_zip"]=>
    string(10) "32907-1562"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10002"
  ["ordered_time"]=>
  string(19) "2017-12-26 23:59:01"
  ["se_order_id"]=>
  int(207745803)
  ["se_order_status"]=>
  string(12) "drop_shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "111-8135629-7212254"
  ["order_weight_ounces"]=>
  string(3) "0.0"
  ["store_order_status"]=>
  string(20) "external_fulfillment"
  ["se_api_response"]=>
  string(3959) "{"id":207745803,"external_order_identifier":"111-8135629-7212254","ext_order_reference_id":"111-8135629-7212254","owner_id":null,"sales_channel":null,"fulfillment_channel":"fulfillment_by_amazon","ordered_at":"2017-12-26T23:59:01Z","order_status":"drop_shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"19.99","total_excluding_tax":"19.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"19.99","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Donald LaPan","billing_first_name":"Donald","billing_last_name":null,"billing_address":"719 NEEDLE AVE NE","billing_address2":null,"billing_city":"PALM BAY","billing_state":"FL","billing_country":"US","billing_postal_code":"32907-1562","billing_phone_number":null,"billing_email":"3z3jfstkyb11g8f@marketplace.amazon.com","buyer_email":"3z3jfstkyb11g8f@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Donald","last_name":"LaPan","address":"719 NEEDLE AVE NE","address2":null,"address3":null,"city":"PALM BAY","residential":true,"state":"FL","province":null,"country":"United States","postal_code":"32907","postal_code_plus_4":"1562","phone_number":null,"email":"3z3jfstkyb11g8f@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"SecondDay","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Smokin Wedgies - Stainless Steel","sku":"smoking wedgie","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"0.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"19.99","unit_price":"19.99","ext_line_item_id":"14127882978554","ext_product_id":null,"product_options":null,"uuid":"5a8735ae-9571-483c-97ef-45dd66ffbd0a","order_source_id":217326183,"gift_message":null}],"original_order":{"id":207745803,"customer_id":33773,"store_id":70647,"order_detail_id":209862153,"workflow_state":"drop_shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"0.0","total_quantity":1,"is_international":false,"usps_shipping_zone":6,"created_at":"2017-12-29T03:07:25Z","updated_at":"2017-12-29T03:07:25Z","ext_shipment_confirmation_id":0,"store_order_status":"external_fulfillment","drop_ship_tracking_number":null,"category_id":null,"internal_notes":"","line_item_name":"smokin wedgies - stainless steel","line_item_sku":"smoking wedgie","address_kind":"R","recipient_last_name":"lapan","recipient_requested_service":"secondday","gift":null,"prime_order_id":207745803,"state":"FL","owner_id":null,"denormalized_ordered_at":"2017-12-26T23:59:01Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"111-8135629-7212254","packing_slip_generated":null,"denormalized_ext_order_reference_id":"111-8135629-7212254","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":224456333,"tracking_number":null,"carrier_key":null,"carrier_service_key":null,"shipment_cost":null,"ship_date":"2017-12-28"}],"updated_at":"2017-12-29T03:07:25Z","internal_notes":"","meta_data":null,"prime_order_id":207745803,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(224456333)
      ["carrier_key"]=>
      string(7) "SPEEDEE"
      ["shipment_weight_ounces"]=>
      string(3) "0.0"
      ["carrier_service_key"]=>
      NULL
      ["shipment_cost"]=>
      NULL
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(0) ""
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7399

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7058"
    ["order_id"]=>
    string(4) "7399"
    ["se_shipment_id"]=>
    string(9) "224456333"
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["shipment_weight_ounces"]=>
    string(4) "0.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(0) ""
    ["tracking_status"]=>
    string(9) "UNSHIPPED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    NULL
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2017-12-29 07:37:24"
  }
}


shipmentDBRows:
array(1) {
  [224456333]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7058"
    ["order_id"]=>
    string(4) "7399"
    ["se_shipment_id"]=>
    string(9) "224456333"
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["shipment_weight_ounces"]=>
    string(4) "0.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(0) ""
    ["tracking_status"]=>
    string(9) "UNSHIPPED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    NULL
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2017-12-29 07:37:24"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(224456333)
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["shipment_weight_ounces"]=>
    string(3) "0.0"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(0) ""
  }
}

Shipment info shipping easy shipment ID #224456333

From API:
array(7) {
  ["se_shipment_id"]=>
  int(224456333)
  ["carrier_key"]=>
  string(7) "SPEEDEE"
  ["shipment_weight_ounces"]=>
  string(3) "0.0"
  ["carrier_service_key"]=>
  NULL
  ["shipment_cost"]=>
  NULL
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(0) ""
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7058"
  ["order_id"]=>
  string(4) "7399"
  ["se_shipment_id"]=>
  string(9) "224456333"
  ["carrier_key"]=>
  string(7) "SPEEDEE"
  ["carrier_service_key"]=>
  NULL
  ["shipment_cost"]=>
  NULL
  ["shipment_weight_ounces"]=>
  string(4) "0.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(0) ""
  ["tracking_status"]=>
  string(9) "UNSHIPPED"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  NULL
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2017-12-29 07:37:24"
}



Shipment info for shipping easy shipment ID #224456333 is same between both arrays

*** Order info:
Array
(
    [id] => 205178763
    [external_order_identifier] => 1581137410756
    [ext_order_reference_id] => 1581137410756
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-26T16:04:15Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 12.99
    [total_excluding_tax] => 12.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 12.99
    [subtotal_excluding_tax] => 12.99
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => 
    [billing_first_name] => 
    [billing_last_name] => 
    [billing_address] => 
    [billing_address2] => 
    [billing_city] => 
    [billing_state] => 
    [billing_country] => 
    [billing_postal_code] => 
    [billing_phone_number] => 
    [billing_email] => CF87D74D109D432E9756EC24012D930E@relay.walmart.com
    [buyer_email] => CF87D74D109D432E9756EC24012D930E@relay.walmart.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Esther
                    [last_name] => Cheal
                    [address] => 40240 Aspen rd
                    [address2] => 
                    [address3] => 
                    [city] => Toivola
                    [residential] => 1
                    [state] => MI
                    [province] => 
                    [country] => United States
                    [postal_code] => 49965
                    [postal_code_plus_4] => 9393
                    [phone_number] => 9062883486
                    [email] => CF87D74D109D432E9756EC24012D930E@relay.walmart.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => Value
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Gourmet Duck Fat Cooking Oil Spray - Gluten Free
                                    [sku] => duckfat1
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 12.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 12.99
                                    [price_excluding_tax] => 12.99
                                    [unit_price] => 12.99
                                    [ext_line_item_id] => 1
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 71eba757-fd3a-4172-b32a-eaf33e516f02
                                    [order_source_id] => 214614263
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 205178763
                            [customer_id] => 33773
                            [store_id] => 537580
                            [order_detail_id] => 207245723
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 12.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 2
                            [created_at] => 2017-12-26T16:29:28Z
                            [updated_at] => 2017-12-29T04:00:56Z
                            [ext_shipment_confirmation_id] => -99
                            [store_order_status] => awaiting_shipment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => gourmet duck fat cooking oil spray - gluten free
                            [line_item_sku] => duckfat1
                            [address_kind] => R
                            [recipient_last_name] => cheal
                            [recipient_requested_service] => value
                            [gift] => 
                            [prime_order_id] => 205178763
                            [state] => MI
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-26T16:04:15Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 1581137410756
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 1581137410756
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 8d8626ca858f2fdea525637cd6a0816f
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 222099543
                    [tracking_number] => 9400110298370314521941
                    [carrier_key] => USPS
                    [carrier_service_key] => First
                    [shipment_cost] => 374
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-29T04:00:56Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 205178763
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for CF87D74D109D432E9756EC24012D930E@relay.walmart.com) was previously inserted to the DB.
Existing customer ID: 9941

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(6) "Esther"
  ["customer_last_name"]=>
  string(5) "Cheal"
  ["customer_email"]=>
  string(50) "CF87D74D109D432E9756EC24012D930E@relay.walmart.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  NULL
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    NULL
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    NULL
    ["address_state"]=>
    NULL
    ["address_zip"]=>
    NULL
    ["address_country"]=>
    NULL
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9941"
  ["ordered_time"]=>
  string(19) "2017-12-26 16:04:15"
  ["se_order_id"]=>
  int(205178763)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(7) "WalMart"
  ["store_order_id"]=>
  string(13) "1581137410756"
  ["order_weight_ounces"]=>
  string(4) "12.0"
  ["store_order_status"]=>
  string(17) "awaiting_shipment"
  ["se_api_response"]=>
  string(3933) "{"id":205178763,"external_order_identifier":"1581137410756","ext_order_reference_id":"1581137410756","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-26T16:04:15Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"12.99","total_excluding_tax":"12.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"12.99","subtotal_excluding_tax":"12.99","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":null,"billing_first_name":null,"billing_last_name":null,"billing_address":null,"billing_address2":null,"billing_city":null,"billing_state":null,"billing_country":null,"billing_postal_code":null,"billing_phone_number":null,"billing_email":"CF87D74D109D432E9756EC24012D930E@relay.walmart.com","buyer_email":"CF87D74D109D432E9756EC24012D930E@relay.walmart.com","recipients":[{"company":null,"first_name":"Esther","last_name":"Cheal","address":"40240 Aspen rd","address2":null,"address3":null,"city":"Toivola","residential":true,"state":"MI","province":null,"country":"United States","postal_code":"49965","postal_code_plus_4":"9393","phone_number":"9062883486","email":"CF87D74D109D432E9756EC24012D930E@relay.walmart.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"Value","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Gourmet Duck Fat Cooking Oil Spray - Gluten Free","sku":"duckfat1","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"12.0","quantity":1,"total_excluding_tax":"12.99","price_excluding_tax":"12.99","unit_price":"12.99","ext_line_item_id":"1","ext_product_id":null,"product_options":null,"uuid":"71eba757-fd3a-4172-b32a-eaf33e516f02","order_source_id":214614263,"gift_message":null}],"original_order":{"id":205178763,"customer_id":33773,"store_id":537580,"order_detail_id":207245723,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"12.0","total_quantity":1,"is_international":false,"usps_shipping_zone":2,"created_at":"2017-12-26T16:29:28Z","updated_at":"2017-12-29T04:00:56Z","ext_shipment_confirmation_id":-99,"store_order_status":"awaiting_shipment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"gourmet duck fat cooking oil spray - gluten free","line_item_sku":"duckfat1","address_kind":"R","recipient_last_name":"cheal","recipient_requested_service":"value","gift":null,"prime_order_id":205178763,"state":"MI","owner_id":37098,"denormalized_ordered_at":"2017-12-26T16:04:15Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"1581137410756","packing_slip_generated":null,"denormalized_ext_order_reference_id":"1581137410756","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"8d8626ca858f2fdea525637cd6a0816f","shipments":[{"id":222099543,"tracking_number":"9400110298370314521941","carrier_key":"USPS","carrier_service_key":"First","shipment_cost":374,"ship_date":"2017-12-28"}],"updated_at":"2017-12-29T04:00:56Z","internal_notes":"","meta_data":null,"prime_order_id":205178763,"is_prime":null,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(222099543)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(4) "12.0"
      ["carrier_service_key"]=>
      string(5) "First"
      ["shipment_cost"]=>
      int(374)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(22) "9400110298370314521941"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7323

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "6982"
    ["order_id"]=>
    string(4) "7323"
    ["se_shipment_id"]=>
    string(9) "222099543"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(5) "First"
    ["shipment_cost"]=>
    string(3) "374"
    ["shipment_weight_ounces"]=>
    string(5) "12.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9400110298370314521941"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(45) "Arrived at USPS Regional Destination Facility"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:35"
  }
}


shipmentDBRows:
array(1) {
  [222099543]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "6982"
    ["order_id"]=>
    string(4) "7323"
    ["se_shipment_id"]=>
    string(9) "222099543"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(5) "First"
    ["shipment_cost"]=>
    string(3) "374"
    ["shipment_weight_ounces"]=>
    string(5) "12.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9400110298370314521941"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(45) "Arrived at USPS Regional Destination Facility"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:35"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(222099543)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(4) "12.0"
    ["carrier_service_key"]=>
    string(5) "First"
    ["shipment_cost"]=>
    int(374)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9400110298370314521941"
  }
}

Shipment info shipping easy shipment ID #222099543

From API:
array(7) {
  ["se_shipment_id"]=>
  int(222099543)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(4) "12.0"
  ["carrier_service_key"]=>
  string(5) "First"
  ["shipment_cost"]=>
  int(374)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9400110298370314521941"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "6982"
  ["order_id"]=>
  string(4) "7323"
  ["se_shipment_id"]=>
  string(9) "222099543"
  ["carrier_key"]=>
  string(4) "USPS"
  ["carrier_service_key"]=>
  string(5) "First"
  ["shipment_cost"]=>
  string(3) "374"
  ["shipment_weight_ounces"]=>
  string(5) "12.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9400110298370314521941"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  string(45) "Arrived at USPS Regional Destination Facility"
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:35"
}



Shipment info for shipping easy shipment ID #222099543 is same between both arrays

*** Order info:
Array
(
    [id] => 205620853
    [external_order_identifier] => 4581136918699
    [ext_order_reference_id] => 4581136918699
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-26T22:36:49Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 19.47
    [total_excluding_tax] => 17.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 19.47
    [subtotal_excluding_tax] => 17.99
    [subtotal_tax] => 1.48
    [total_tax] => 1.48
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => 
    [billing_first_name] => 
    [billing_last_name] => 
    [billing_address] => 
    [billing_address2] => 
    [billing_city] => 
    [billing_state] => 
    [billing_country] => 
    [billing_postal_code] => 
    [billing_phone_number] => 
    [billing_email] => DA78C94CFF314CBEB054307DE8423ADC@relay.walmart.com
    [buyer_email] => DA78C94CFF314CBEB054307DE8423ADC@relay.walmart.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => William
                    [last_name] => Witzig
                    [address] => 8711 Grandview
                    [address2] => 
                    [address3] => 
                    [city] => Jonestown
                    [residential] => 1
                    [state] => TX
                    [province] => 
                    [country] => United States
                    [postal_code] => 78645
                    [postal_code_plus_4] => 4435
                    [phone_number] => 5127778239
                    [email] => DA78C94CFF314CBEB054307DE8423ADC@relay.walmart.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => Value
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack 100% Mesquite BBQ Grilling Pellets
                                    [sku] => 10100mesquite
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 160.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 17.99
                                    [price_excluding_tax] => 17.99
                                    [unit_price] => 17.99
                                    [ext_line_item_id] => 1
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => ab22e564-6ea9-4548-9401-358b21048b72
                                    [order_source_id] => 215057503
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 205620853
                            [customer_id] => 33773
                            [store_id] => 537580
                            [order_detail_id] => 207696103
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 160.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 6
                            [created_at] => 2017-12-26T23:29:11Z
                            [updated_at] => 2017-12-29T04:00:57Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_shipment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack 100% mesquite bbq grilling pellets
                            [line_item_sku] => 10100mesquite
                            [address_kind] => R
                            [recipient_last_name] => witzig
                            [recipient_requested_service] => value
                            [gift] => 
                            [prime_order_id] => 205620853
                            [state] => TX
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-26T22:36:49Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 4581136918699
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 4581136918699
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 8d8626ca858f2fdea525637cd6a0816f
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 222099903
                    [tracking_number] => 9405510298370314522576
                    [carrier_key] => USPS
                    [carrier_service_key] => Priority
                    [shipment_cost] => 1205
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-29T04:00:57Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 205620853
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for DA78C94CFF314CBEB054307DE8423ADC@relay.walmart.com) was previously inserted to the DB.
Existing customer ID: 9957

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(7) "William"
  ["customer_last_name"]=>
  string(6) "Witzig"
  ["customer_email"]=>
  string(50) "DA78C94CFF314CBEB054307DE8423ADC@relay.walmart.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  NULL
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    NULL
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    NULL
    ["address_state"]=>
    NULL
    ["address_zip"]=>
    NULL
    ["address_country"]=>
    NULL
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9957"
  ["ordered_time"]=>
  string(19) "2017-12-26 22:36:49"
  ["se_order_id"]=>
  int(205620853)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(7) "WalMart"
  ["store_order_id"]=>
  string(13) "4581136918699"
  ["order_weight_ounces"]=>
  string(5) "160.0"
  ["store_order_status"]=>
  string(17) "awaiting_shipment"
  ["se_api_response"]=>
  string(3948) "{"id":205620853,"external_order_identifier":"4581136918699","ext_order_reference_id":"4581136918699","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-26T22:36:49Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"19.47","total_excluding_tax":"17.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"19.47","subtotal_excluding_tax":"17.99","subtotal_tax":"1.48","total_tax":"1.48","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":null,"billing_first_name":null,"billing_last_name":null,"billing_address":null,"billing_address2":null,"billing_city":null,"billing_state":null,"billing_country":null,"billing_postal_code":null,"billing_phone_number":null,"billing_email":"DA78C94CFF314CBEB054307DE8423ADC@relay.walmart.com","buyer_email":"DA78C94CFF314CBEB054307DE8423ADC@relay.walmart.com","recipients":[{"company":null,"first_name":"William","last_name":"Witzig","address":"8711 Grandview","address2":null,"address3":null,"city":"Jonestown","residential":true,"state":"TX","province":null,"country":"United States","postal_code":"78645","postal_code_plus_4":"4435","phone_number":"5127778239","email":"DA78C94CFF314CBEB054307DE8423ADC@relay.walmart.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"Value","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack 100% Mesquite BBQ Grilling Pellets","sku":"10100mesquite","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"160.0","quantity":1,"total_excluding_tax":"17.99","price_excluding_tax":"17.99","unit_price":"17.99","ext_line_item_id":"1","ext_product_id":null,"product_options":null,"uuid":"ab22e564-6ea9-4548-9401-358b21048b72","order_source_id":215057503,"gift_message":null}],"original_order":{"id":205620853,"customer_id":33773,"store_id":537580,"order_detail_id":207696103,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"160.0","total_quantity":1,"is_international":false,"usps_shipping_zone":6,"created_at":"2017-12-26T23:29:11Z","updated_at":"2017-12-29T04:00:57Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_shipment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack 100% mesquite bbq grilling pellets","line_item_sku":"10100mesquite","address_kind":"R","recipient_last_name":"witzig","recipient_requested_service":"value","gift":null,"prime_order_id":205620853,"state":"TX","owner_id":37098,"denormalized_ordered_at":"2017-12-26T22:36:49Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"4581136918699","packing_slip_generated":null,"denormalized_ext_order_reference_id":"4581136918699","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"8d8626ca858f2fdea525637cd6a0816f","shipments":[{"id":222099903,"tracking_number":"9405510298370314522576","carrier_key":"USPS","carrier_service_key":"Priority","shipment_cost":1205,"ship_date":"2017-12-28"}],"updated_at":"2017-12-29T04:00:57Z","internal_notes":"","meta_data":null,"prime_order_id":205620853,"is_prime":null,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(222099903)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(5) "160.0"
      ["carrier_service_key"]=>
      string(8) "Priority"
      ["shipment_cost"]=>
      int(1205)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(22) "9405510298370314522576"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7340

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "6993"
    ["order_id"]=>
    string(4) "7340"
    ["se_shipment_id"]=>
    string(9) "222099903"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(4) "1205"
    ["shipment_weight_ounces"]=>
    string(6) "160.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370314522576"
    ["tracking_status"]=>
    string(9) "DELIVERED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(27) "Delivered, Front Door/Porch"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    string(19) "2017-12-30 14:36:00"
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:54"
  }
}


shipmentDBRows:
array(1) {
  [222099903]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "6993"
    ["order_id"]=>
    string(4) "7340"
    ["se_shipment_id"]=>
    string(9) "222099903"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(4) "1205"
    ["shipment_weight_ounces"]=>
    string(6) "160.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370314522576"
    ["tracking_status"]=>
    string(9) "DELIVERED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(27) "Delivered, Front Door/Porch"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    string(19) "2017-12-30 14:36:00"
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:54"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(222099903)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(5) "160.0"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    int(1205)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370314522576"
  }
}

Shipment info shipping easy shipment ID #222099903

From API:
array(7) {
  ["se_shipment_id"]=>
  int(222099903)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(5) "160.0"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  int(1205)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9405510298370314522576"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "6993"
  ["order_id"]=>
  string(4) "7340"
  ["se_shipment_id"]=>
  string(9) "222099903"
  ["carrier_key"]=>
  string(4) "USPS"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  string(4) "1205"
  ["shipment_weight_ounces"]=>
  string(6) "160.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9405510298370314522576"
  ["tracking_status"]=>
  string(9) "DELIVERED"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  string(27) "Delivered, Front Door/Porch"
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  string(19) "2017-12-30 14:36:00"
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:54"
}



Shipment info for shipping easy shipment ID #222099903 is same between both arrays

*** Order info:
Array
(
    [id] => 205955543
    [external_order_identifier] => 111-9052117-2205050
    [ext_order_reference_id] => 111-9052117-2205050
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-26T21:07:35Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => Array
        (
            [0] => 205546323
            [1] => 205427793
        )

    [total_including_tax] => 18.40
    [total_excluding_tax] => 18.40
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 18.40
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => dustin r ford
    [billing_first_name] => Dustin
    [billing_last_name] => Ford
    [billing_address] => 4055 ROXBURY RD
    [billing_address2] => 
    [billing_city] => JACKSON
    [billing_state] => MS
    [billing_country] => US
    [billing_postal_code] => 39211-6358
    [billing_phone_number] => 6013833234
    [billing_email] => b9j011d254n5l4h@marketplace.amazon.com
    [buyer_email] => b9j011d254n5l4h@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => dustin
                    [last_name] => r ford
                    [address] => 4055 ROXBURY RD
                    [address2] => 
                    [address3] => 
                    [city] => JACKSON
                    [residential] => 1
                    [state] => MS
                    [province] => 
                    [country] => United States
                    [postal_code] => 39211
                    [postal_code_plus_4] => 6358
                    [phone_number] => 6013833234
                    [email] => b9j011d254n5l4h@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack 100-Percent Hickory Wood BBQ Grilling Pellets, 20-Pound Bag (New)
                                    [sku] => 20hick100Comp1
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 336.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 18.40
                                    [unit_price] => 18.40
                                    [ext_line_item_id] => 57361490930890
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 13359e86-1022-459f-b789-4870994f9c60
                                    [order_source_id] => 214922883
                                    [gift_message] => 
                                )

                            [1] => Array
                                (
                                    [item_name] => Lumber Jack 100% Hardwood Grilling Smoker Pellets, 100% Maple, 20 LB (New)
                                    [sku] => 20Maple100Comp
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 336.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 18.40
                                    [unit_price] => 18.40
                                    [ext_line_item_id] => 42229306117186
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => bd82714f-f7e6-47af-af5e-b3b14488034f
                                    [order_source_id] => 214795493
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 205955543
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 208039653
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 672.0
                            [total_quantity] => 2
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-27T09:53:21Z
                            [updated_at] => 2017-12-29T04:30:56Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_shipment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => 
                            [line_item_sku] => 
                            [address_kind] => R
                            [recipient_last_name] => r ford
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 205955543
                            [state] => MS
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-26T21:07:35Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 111-9052117-2205050
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 111-9052117-2205050
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 222100173
                    [tracking_number] => 789121996841
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 1261
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-29T04:30:56Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 205955543
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for b9j011d254n5l4h@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 9946

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(6) "dustin"
  ["customer_last_name"]=>
  string(6) "r ford"
  ["customer_email"]=>
  string(38) "b9j011d254n5l4h@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(13) "dustin r ford"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(15) "4055 ROXBURY RD"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(7) "JACKSON"
    ["address_state"]=>
    string(2) "MS"
    ["address_zip"]=>
    string(10) "39211-6358"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9946"
  ["ordered_time"]=>
  string(19) "2017-12-26 21:07:35"
  ["se_order_id"]=>
  int(205955543)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "111-9052117-2205050"
  ["order_weight_ounces"]=>
  string(5) "672.0"
  ["store_order_status"]=>
  string(17) "awaiting_shipment"
  ["se_api_response"]=>
  string(4456) "{"id":205955543,"external_order_identifier":"111-9052117-2205050","ext_order_reference_id":"111-9052117-2205050","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-26T21:07:35Z","order_status":"shipped","parent_order_id":null,"source_order_ids":[205546323,205427793],"total_including_tax":"18.40","total_excluding_tax":"18.40","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"18.40","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"dustin r ford","billing_first_name":"Dustin","billing_last_name":"Ford","billing_address":"4055 ROXBURY RD","billing_address2":null,"billing_city":"JACKSON","billing_state":"MS","billing_country":"US","billing_postal_code":"39211-6358","billing_phone_number":"6013833234","billing_email":"b9j011d254n5l4h@marketplace.amazon.com","buyer_email":"b9j011d254n5l4h@marketplace.amazon.com","recipients":[{"company":null,"first_name":"dustin","last_name":"r ford","address":"4055 ROXBURY RD","address2":null,"address3":null,"city":"JACKSON","residential":true,"state":"MS","province":null,"country":"United States","postal_code":"39211","postal_code_plus_4":"6358","phone_number":"6013833234","email":"b9j011d254n5l4h@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack 100-Percent Hickory Wood BBQ Grilling Pellets, 20-Pound Bag (New)","sku":"20hick100Comp1","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"336.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"18.40","unit_price":"18.40","ext_line_item_id":"57361490930890","ext_product_id":null,"product_options":null,"uuid":"13359e86-1022-459f-b789-4870994f9c60","order_source_id":214922883,"gift_message":null},{"item_name":"Lumber Jack 100% Hardwood Grilling Smoker Pellets, 100% Maple, 20 LB (New)","sku":"20Maple100Comp","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"336.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"18.40","unit_price":"18.40","ext_line_item_id":"42229306117186","ext_product_id":null,"product_options":null,"uuid":"bd82714f-f7e6-47af-af5e-b3b14488034f","order_source_id":214795493,"gift_message":null}],"original_order":{"id":205955543,"customer_id":33773,"store_id":70647,"order_detail_id":208039653,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"672.0","total_quantity":2,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-27T09:53:21Z","updated_at":"2017-12-29T04:30:56Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_shipment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":null,"line_item_sku":null,"address_kind":"R","recipient_last_name":"r ford","recipient_requested_service":"freeeconomy","gift":false,"prime_order_id":205955543,"state":"MS","owner_id":37098,"denormalized_ordered_at":"2017-12-26T21:07:35Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"111-9052117-2205050","packing_slip_generated":null,"denormalized_ext_order_reference_id":"111-9052117-2205050","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":222100173,"tracking_number":"789121996841","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":1261,"ship_date":"2017-12-28"}],"updated_at":"2017-12-29T04:30:56Z","internal_notes":"","meta_data":null,"prime_order_id":205955543,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(222100173)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(5) "672.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(1261)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(12) "789121996841"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7355

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7008"
    ["order_id"]=>
    string(4) "7355"
    ["se_shipment_id"]=>
    string(9) "222100173"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1261"
    ["shipment_weight_ounces"]=>
    string(6) "672.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789121996841"
    ["tracking_status"]=>
    string(9) "DELIVERED"
    ["tracking_status_code"]=>
    string(2) "DL"
    ["tracking_status_description"]=>
    string(9) "Delivered"
    ["estimated_delivery_time"]=>
    string(19) "2017-12-29 00:00:00"
    ["actual_delivery_time"]=>
    string(19) "2017-12-29 15:24:10"
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:16"
  }
}


shipmentDBRows:
array(1) {
  [222100173]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7008"
    ["order_id"]=>
    string(4) "7355"
    ["se_shipment_id"]=>
    string(9) "222100173"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1261"
    ["shipment_weight_ounces"]=>
    string(6) "672.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789121996841"
    ["tracking_status"]=>
    string(9) "DELIVERED"
    ["tracking_status_code"]=>
    string(2) "DL"
    ["tracking_status_description"]=>
    string(9) "Delivered"
    ["estimated_delivery_time"]=>
    string(19) "2017-12-29 00:00:00"
    ["actual_delivery_time"]=>
    string(19) "2017-12-29 15:24:10"
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:16"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(222100173)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(5) "672.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(1261)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789121996841"
  }
}

Shipment info shipping easy shipment ID #222100173

From API:
array(7) {
  ["se_shipment_id"]=>
  int(222100173)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(5) "672.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(1261)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789121996841"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7008"
  ["order_id"]=>
  string(4) "7355"
  ["se_shipment_id"]=>
  string(9) "222100173"
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  string(4) "1261"
  ["shipment_weight_ounces"]=>
  string(6) "672.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789121996841"
  ["tracking_status"]=>
  string(9) "DELIVERED"
  ["tracking_status_code"]=>
  string(2) "DL"
  ["tracking_status_description"]=>
  string(9) "Delivered"
  ["estimated_delivery_time"]=>
  string(19) "2017-12-29 00:00:00"
  ["actual_delivery_time"]=>
  string(19) "2017-12-29 15:24:10"
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:16"
}



Shipment info for shipping easy shipment ID #222100173 is same between both arrays

*** Order info:
Array
(
    [id] => 205170973
    [external_order_identifier] => 623
    [ext_order_reference_id] => 263172615353-2144498117016
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-26T16:23:48Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 19.99
    [total_excluding_tax] => 19.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 19.99
    [subtotal_excluding_tax] => 19.99
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => 
    [billing_first_name] => Jason
    [billing_last_name] => Nipper
    [billing_address] => 102 Woodworth Lake Rd
    [billing_address2] => 
    [billing_city] => Gloversville
    [billing_state] => NY
    [billing_country] => US
    [billing_postal_code] => 12078
    [billing_phone_number] => 603 312 7624
    [billing_email] => jasonnipper@yahoo.com
    [buyer_email] => jasonnipper@yahoo.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Jason
                    [last_name] => Nipper
                    [address] => 102 Woodworth Lake Rd
                    [address2] => 
                    [address3] => 
                    [city] => Gloversville
                    [residential] => 1
                    [state] => NY
                    [province] => 
                    [country] => United States
                    [postal_code] => 12078
                    [postal_code_plus_4] => 7346
                    [phone_number] => 603 312 7624
                    [email] => jasonnipper@yahoo.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FedExHomeDelivery
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Smokin Wedgie - Stainless Steel - BBQ Grill Traeger, Big Green Egg, GMG, Yoder (New)
                                    [sku] => ebaywedgie
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 11.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 19.99
                                    [unit_price] => 19.99
                                    [ext_line_item_id] => 263172615353
                                    [ext_product_id] => 263172615353
                                    [product_options] => 
                                    [uuid] => 64cc7e4e-aca8-4898-8251-85f9bb0bd727
                                    [order_source_id] => 214522943
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 205170973
                            [customer_id] => 33773
                            [store_id] => 70645
                            [order_detail_id] => 207237933
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 11.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-26T16:26:41Z
                            [updated_at] => 2017-12-29T04:30:56Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_shipment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => smokin wedgie - stainless steel - bbq grill traeger, big green egg, gmg, yoder (new)
                            [line_item_sku] => ebaywedgie
                            [address_kind] => R
                            [recipient_last_name] => nipper
                            [recipient_requested_service] => fedexhomedelivery
                            [gift] => 
                            [prime_order_id] => 205170973
                            [state] => NY
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-26T16:23:48Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 623
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 263172615353-2144498117016
                            [denormalized_alternate_order_id] => 623
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => c7abd3d962624149b18bc3415cae937a
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 222099573
                    [tracking_number] => 9400110298370314521958
                    [carrier_key] => USPS
                    [carrier_service_key] => First
                    [shipment_cost] => 360
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-29T04:30:56Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 205170973
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for jasonnipper@yahoo.com) was previously inserted to the DB.
Existing customer ID: 9940

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(5) "Jason"
  ["customer_last_name"]=>
  string(6) "Nipper"
  ["customer_email"]=>
  string(21) "jasonnipper@yahoo.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  NULL
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(21) "102 Woodworth Lake Rd"
    ["address_line_2"]=>
    string(0) ""
    ["address_city"]=>
    string(12) "Gloversville"
    ["address_state"]=>
    string(2) "NY"
    ["address_zip"]=>
    string(5) "12078"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9940"
  ["ordered_time"]=>
  string(19) "2017-12-26 16:23:48"
  ["se_order_id"]=>
  int(205170973)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(4) "eBay"
  ["store_order_id"]=>
  string(3) "623"
  ["order_weight_ounces"]=>
  string(4) "11.0"
  ["store_order_status"]=>
  string(17) "awaiting_shipment"
  ["se_api_response"]=>
  string(4032) "{"id":205170973,"external_order_identifier":"623","ext_order_reference_id":"263172615353-2144498117016","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-26T16:23:48Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"19.99","total_excluding_tax":"19.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"19.99","subtotal_excluding_tax":"19.99","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":null,"billing_first_name":"Jason","billing_last_name":"Nipper","billing_address":"102 Woodworth Lake Rd","billing_address2":"","billing_city":"Gloversville","billing_state":"NY","billing_country":"US","billing_postal_code":"12078","billing_phone_number":"603 312 7624","billing_email":"jasonnipper@yahoo.com","buyer_email":"jasonnipper@yahoo.com","recipients":[{"company":null,"first_name":"Jason","last_name":"Nipper","address":"102 Woodworth Lake Rd","address2":null,"address3":null,"city":"Gloversville","residential":true,"state":"NY","province":null,"country":"United States","postal_code":"12078","postal_code_plus_4":"7346","phone_number":"603 312 7624","email":"jasonnipper@yahoo.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FedExHomeDelivery","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Smokin Wedgie - Stainless Steel - BBQ Grill Traeger, Big Green Egg, GMG, Yoder (New)","sku":"ebaywedgie","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"11.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"19.99","unit_price":"19.99","ext_line_item_id":"263172615353","ext_product_id":"263172615353","product_options":null,"uuid":"64cc7e4e-aca8-4898-8251-85f9bb0bd727","order_source_id":214522943,"gift_message":null}],"original_order":{"id":205170973,"customer_id":33773,"store_id":70645,"order_detail_id":207237933,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"11.0","total_quantity":1,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-26T16:26:41Z","updated_at":"2017-12-29T04:30:56Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_shipment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"smokin wedgie - stainless steel - bbq grill traeger, big green egg, gmg, yoder (new)","line_item_sku":"ebaywedgie","address_kind":"R","recipient_last_name":"nipper","recipient_requested_service":"fedexhomedelivery","gift":null,"prime_order_id":205170973,"state":"NY","owner_id":37098,"denormalized_ordered_at":"2017-12-26T16:23:48Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"623","packing_slip_generated":null,"denormalized_ext_order_reference_id":"263172615353-2144498117016","denormalized_alternate_order_id":"623","denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"c7abd3d962624149b18bc3415cae937a","shipments":[{"id":222099573,"tracking_number":"9400110298370314521958","carrier_key":"USPS","carrier_service_key":"First","shipment_cost":360,"ship_date":"2017-12-28"}],"updated_at":"2017-12-29T04:30:56Z","internal_notes":"","meta_data":null,"prime_order_id":205170973,"is_prime":null,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(222099573)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(4) "11.0"
      ["carrier_service_key"]=>
      string(5) "First"
      ["shipment_cost"]=>
      int(360)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(22) "9400110298370314521958"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7320

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "6984"
    ["order_id"]=>
    string(4) "7320"
    ["se_shipment_id"]=>
    string(9) "222099573"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(5) "First"
    ["shipment_cost"]=>
    string(3) "360"
    ["shipment_weight_ounces"]=>
    string(5) "11.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9400110298370314521958"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(45) "Arrived at USPS Regional Destination Facility"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:35"
  }
}


shipmentDBRows:
array(1) {
  [222099573]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "6984"
    ["order_id"]=>
    string(4) "7320"
    ["se_shipment_id"]=>
    string(9) "222099573"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(5) "First"
    ["shipment_cost"]=>
    string(3) "360"
    ["shipment_weight_ounces"]=>
    string(5) "11.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9400110298370314521958"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(45) "Arrived at USPS Regional Destination Facility"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:35"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(222099573)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(4) "11.0"
    ["carrier_service_key"]=>
    string(5) "First"
    ["shipment_cost"]=>
    int(360)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9400110298370314521958"
  }
}

Shipment info shipping easy shipment ID #222099573

From API:
array(7) {
  ["se_shipment_id"]=>
  int(222099573)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(4) "11.0"
  ["carrier_service_key"]=>
  string(5) "First"
  ["shipment_cost"]=>
  int(360)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9400110298370314521958"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "6984"
  ["order_id"]=>
  string(4) "7320"
  ["se_shipment_id"]=>
  string(9) "222099573"
  ["carrier_key"]=>
  string(4) "USPS"
  ["carrier_service_key"]=>
  string(5) "First"
  ["shipment_cost"]=>
  string(3) "360"
  ["shipment_weight_ounces"]=>
  string(5) "11.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9400110298370314521958"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  string(45) "Arrived at USPS Regional Destination Facility"
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:35"
}



Shipment info for shipping easy shipment ID #222099573 is same between both arrays

*** Order info:
Array
(
    [id] => 205013173
    [external_order_identifier] => 3930
    [ext_order_reference_id] => 3930
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-26T12:39:57Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 40.58
    [total_excluding_tax] => 0.00
    [discount_amount] => 5.00
    [coupon_discount] => 5.00
    [subtotal_including_tax] => 0.00
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 2.53
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => 
    [billing_first_name] => Bobby
    [billing_last_name] => Morig
    [billing_address] => 4943 Ridgemoor Circle
    [billing_address2] => 
    [billing_city] => Palm Harbor
    [billing_state] => FL
    [billing_country] => US
    [billing_postal_code] => 34685
    [billing_phone_number] => 7275437854
    [billing_email] => bobby.morig@gmail.com
    [buyer_email] => bobby.morig@gmail.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Bobby
                    [last_name] => Morig
                    [address] => 4943 Ridgemoor Circle
                    [address2] => 
                    [address3] => 
                    [city] => Palm Harbor
                    [residential] => 1
                    [state] => FL
                    [province] => 
                    [country] => United States
                    [postal_code] => 34685
                    [postal_code_plus_4] => 3154
                    [phone_number] => 7275437854
                    [email] => bobby.morig@gmail.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 0
                    [shipping_method] => Free Shipping - No PO Boxes or APO
                    [items_shipped] => 0
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => 1 Smokin Wedgie with Lumber Jack 1 Pound 7 Variety Pack - Free Shipping
                                    [sku] => 1poundvarietywedgie
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 128.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 43.05
                                    [price_excluding_tax] => 0.00
                                    [unit_price] => 43.05
                                    [ext_line_item_id] => 
                                    [ext_product_id] => 69201137
                                    [product_options] => Array
                                        (
                                            [Add Optional 8th Flavor Sample] => Select 8th Variety Below
                                            [Add Optional 9th Flavor Sample] => Select 9th Variety Below
                                            [Add Can(s) Gourmet Duck Fat Spray Here] => Array
                                                (
                                                )

                                            [Add Smokin Wedgie Leg Kit for Flat Bottom Smokers] => Array
                                                (
                                                    [0] => Add 1 Set of Smokin Wedgie Legs
                                                )

                                        )

                                    [uuid] => 3cb8716f-339a-49ba-986a-f9a2d0432dfd
                                    [order_source_id] => 214352053
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 205013173
                            [customer_id] => 33773
                            [store_id] => 70642
                            [order_detail_id] => 207079743
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 128.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 6
                            [created_at] => 2017-12-26T12:31:23Z
                            [updated_at] => 2017-12-29T04:30:57Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_shipment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => 1 smokin wedgie with lumber jack 1 pound 7 variety pack - free shipping
                            [line_item_sku] => 1poundvarietywedgie
                            [address_kind] => R
                            [recipient_last_name] => morig
                            [recipient_requested_service] => free shipping - no po boxes or apo
                            [gift] => 
                            [prime_order_id] => 205013173
                            [state] => FL
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-26T12:39:57Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 3930
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 3930
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 276833075f862f916ca417ff8ccb9564
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 222099643
                    [tracking_number] => 9405510298370314522002
                    [carrier_key] => USPS
                    [carrier_service_key] => Priority
                    [shipment_cost] => 919
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-29T04:30:57Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 205013173
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for bobby.morig@gmail.com) was previously inserted to the DB.
Existing customer ID: 9936

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(5) "Bobby"
  ["customer_last_name"]=>
  string(5) "Morig"
  ["customer_email"]=>
  string(21) "bobby.morig@gmail.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  NULL
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(21) "4943 Ridgemoor Circle"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(11) "Palm Harbor"
    ["address_state"]=>
    string(2) "FL"
    ["address_zip"]=>
    string(5) "34685"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9936"
  ["ordered_time"]=>
  string(19) "2017-12-26 12:39:57"
  ["se_order_id"]=>
  int(205013173)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(5) "Ecwid"
  ["store_order_id"]=>
  string(4) "3930"
  ["order_weight_ounces"]=>
  string(5) "128.0"
  ["store_order_status"]=>
  string(17) "awaiting_shipment"
  ["se_api_response"]=>
  string(4238) "{"id":205013173,"external_order_identifier":"3930","ext_order_reference_id":"3930","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-26T12:39:57Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"40.58","total_excluding_tax":"0.00","discount_amount":"5.00","coupon_discount":"5.00","subtotal_including_tax":"0.00","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"2.53","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":null,"billing_first_name":"Bobby","billing_last_name":"Morig","billing_address":"4943 Ridgemoor Circle","billing_address2":null,"billing_city":"Palm Harbor","billing_state":"FL","billing_country":"US","billing_postal_code":"34685","billing_phone_number":"7275437854","billing_email":"bobby.morig@gmail.com","buyer_email":"bobby.morig@gmail.com","recipients":[{"company":"","first_name":"Bobby","last_name":"Morig","address":"4943 Ridgemoor Circle","address2":null,"address3":null,"city":"Palm Harbor","residential":true,"state":"FL","province":null,"country":"United States","postal_code":"34685","postal_code_plus_4":"3154","phone_number":"7275437854","email":"bobby.morig@gmail.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":0,"shipping_method":"Free Shipping - No PO Boxes or APO","items_shipped":0,"ext_shipping_detail_id":null,"line_items":[{"item_name":"1 Smokin Wedgie with Lumber Jack 1 Pound 7 Variety Pack - Free Shipping","sku":"1poundvarietywedgie","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"128.0","quantity":1,"total_excluding_tax":"43.05","price_excluding_tax":"0.00","unit_price":"43.05","ext_line_item_id":null,"ext_product_id":"69201137","product_options":{"Add Optional 8th Flavor Sample":"Select 8th Variety Below","Add Optional 9th Flavor Sample":"Select 9th Variety Below","Add Can(s) Gourmet Duck Fat Spray Here":[],"Add Smokin Wedgie Leg Kit for Flat Bottom Smokers":["Add 1 Set of Smokin Wedgie Legs"]},"uuid":"3cb8716f-339a-49ba-986a-f9a2d0432dfd","order_source_id":214352053,"gift_message":null}],"original_order":{"id":205013173,"customer_id":33773,"store_id":70642,"order_detail_id":207079743,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"128.0","total_quantity":1,"is_international":false,"usps_shipping_zone":6,"created_at":"2017-12-26T12:31:23Z","updated_at":"2017-12-29T04:30:57Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_shipment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"1 smokin wedgie with lumber jack 1 pound 7 variety pack - free shipping","line_item_sku":"1poundvarietywedgie","address_kind":"R","recipient_last_name":"morig","recipient_requested_service":"free shipping - no po boxes or apo","gift":false,"prime_order_id":205013173,"state":"FL","owner_id":37098,"denormalized_ordered_at":"2017-12-26T12:39:57Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"3930","packing_slip_generated":null,"denormalized_ext_order_reference_id":"3930","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"276833075f862f916ca417ff8ccb9564","shipments":[{"id":222099643,"tracking_number":"9405510298370314522002","carrier_key":"USPS","carrier_service_key":"Priority","shipment_cost":919,"ship_date":"2017-12-28"}],"updated_at":"2017-12-29T04:30:57Z","internal_notes":"","meta_data":null,"prime_order_id":205013173,"is_prime":null,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(222099643)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(5) "128.0"
      ["carrier_service_key"]=>
      string(8) "Priority"
      ["shipment_cost"]=>
      int(919)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(22) "9405510298370314522002"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7315

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "6990"
    ["order_id"]=>
    string(4) "7315"
    ["se_shipment_id"]=>
    string(9) "222099643"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(3) "919"
    ["shipment_weight_ounces"]=>
    string(6) "128.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370314522002"
    ["tracking_status"]=>
    string(9) "DELIVERED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(27) "Delivered, Front Door/Porch"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    string(19) "2017-12-30 12:18:00"
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:52"
  }
}


shipmentDBRows:
array(1) {
  [222099643]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "6990"
    ["order_id"]=>
    string(4) "7315"
    ["se_shipment_id"]=>
    string(9) "222099643"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(3) "919"
    ["shipment_weight_ounces"]=>
    string(6) "128.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370314522002"
    ["tracking_status"]=>
    string(9) "DELIVERED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(27) "Delivered, Front Door/Porch"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    string(19) "2017-12-30 12:18:00"
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:52"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(222099643)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(5) "128.0"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    int(919)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370314522002"
  }
}

Shipment info shipping easy shipment ID #222099643

From API:
array(7) {
  ["se_shipment_id"]=>
  int(222099643)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(5) "128.0"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  int(919)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9405510298370314522002"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "6990"
  ["order_id"]=>
  string(4) "7315"
  ["se_shipment_id"]=>
  string(9) "222099643"
  ["carrier_key"]=>
  string(4) "USPS"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  string(3) "919"
  ["shipment_weight_ounces"]=>
  string(6) "128.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9405510298370314522002"
  ["tracking_status"]=>
  string(9) "DELIVERED"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  string(27) "Delivered, Front Door/Porch"
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  string(19) "2017-12-30 12:18:00"
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:52"
}



Shipment info for shipping easy shipment ID #222099643 is same between both arrays

*** Order info:
Array
(
    [id] => 205670113
    [external_order_identifier] => 3935
    [ext_order_reference_id] => 3935
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-27T00:46:11Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 45.00
    [total_excluding_tax] => 0.00
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 0.00
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => 
    [billing_first_name] => Lee
    [billing_last_name] => Horton
    [billing_address] => 109 Old Stagecoach Lane
    [billing_address2] => 
    [billing_city] => Canton
    [billing_state] => MS
    [billing_country] => US
    [billing_postal_code] => 39046
    [billing_phone_number] => +17693008293
    [billing_email] => lch269@yahoo.com
    [buyer_email] => lch269@yahoo.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Lee
                    [last_name] => Horton
                    [address] => 109 Old Stagecoach Lane
                    [address2] => 
                    [address3] => 
                    [city] => Canton
                    [residential] => 1
                    [state] => MS
                    [province] => 
                    [country] => United States
                    [postal_code] => 39046
                    [postal_code_plus_4] => 7014
                    [phone_number] => +17693008293
                    [email] => lch269@yahoo.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 0
                    [shipping_method] => Free Shipping - No PO Boxes or APO
                    [items_shipped] => 0
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => BBQ Drumstick Bottle Opener
                                    [sku] => bottleopener-drumstick
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 3.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 0.00
                                    [unit_price] => 0.00
                                    [ext_line_item_id] => 
                                    [ext_product_id] => 
                                    [product_options] => Array
                                        (
                                        )

                                    [uuid] => 9f00e6a1-a244-466f-8dea-0d54716fc12d
                                    [order_source_id] => 
                                    [gift_message] => 
                                )

                            [1] => Array
                                (
                                    [item_name] => Smokin Wedgie
                                    [sku] => wedgie
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 11.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 0.00
                                    [unit_price] => 0.00
                                    [ext_line_item_id] => 
                                    [ext_product_id] => 
                                    [product_options] => Array
                                        (
                                        )

                                    [uuid] => e056bb41-72c5-4450-87ab-e73aa86d4efc
                                    [order_source_id] => 
                                    [gift_message] => 
                                )

                            [2] => Array
                                (
                                    [item_name] => Maple-Hickory-Cherry (MHC) - Competition Blend Pellets
                                    [sku] => 40mhc
                                    [bin_picking_number] => 40mhcmaster
                                    [bundled_product] => 
                                    [weight_in_ounces] => 656.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 45.00
                                    [price_excluding_tax] => 0.00
                                    [unit_price] => 45.00
                                    [ext_line_item_id] => 
                                    [ext_product_id] => 82522196
                                    [product_options] => Array
                                        (
                                            [Weight] => 40 Pounds (2x20 Pound Bags)
                                            [Add a Flavor Magnet and never forget what's in your hopper] => Array
                                                (
                                                )

                                            [Add Smokin Wedgie Pellet Smoker] => Array
                                                (
                                                )

                                            [Add Handy Camel Bag Clip] => Array
                                                (
                                                )

                                            [Add Gourmet Duck Fat Spray Can(s) Here (7 Ounce)] => Array
                                                (
                                                )

                                            [Add Smokin Wedgie Leg Kit for Flat Bottom Smokers] => Array
                                                (
                                                )

                                            [BBQ Bottle Opener] => Array
                                                (
                                                )

                                        )

                                    [uuid] => 435ce833-d2ec-48d9-a7dc-0ffb9eb24e53
                                    [order_source_id] => 215060433
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 205670113
                            [customer_id] => 33773
                            [store_id] => 70642
                            [order_detail_id] => 207745793
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 670.0
                            [total_quantity] => 3
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-27T00:31:05Z
                            [updated_at] => 2017-12-29T04:30:57Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_shipment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => maple-hickory-cherry (mhc) - competition blend pellets
                            [line_item_sku] => 40mhc
                            [address_kind] => R
                            [recipient_last_name] => horton
                            [recipient_requested_service] => free shipping - no po boxes or apo
                            [gift] => 
                            [prime_order_id] => 205670113
                            [state] => MS
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-27T00:46:11Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 40mhcmaster
                            [denormalized_ext_order_id] => 3935
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 3935
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 276833075f862f916ca417ff8ccb9564
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 222100133
                    [tracking_number] => 789121997403
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 1519
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-29T04:30:57Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 205670113
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for lch269@yahoo.com) was previously inserted to the DB.
Existing customer ID: 8359

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(3) "Lee"
  ["customer_last_name"]=>
  string(6) "Horton"
  ["customer_email"]=>
  string(16) "lch269@yahoo.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  NULL
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(23) "109 Old Stagecoach Lane"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(6) "Canton"
    ["address_state"]=>
    string(2) "MS"
    ["address_zip"]=>
    string(5) "39046"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "8359"
  ["ordered_time"]=>
  string(19) "2017-12-27 00:46:11"
  ["se_order_id"]=>
  int(205670113)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(5) "Ecwid"
  ["store_order_id"]=>
  string(4) "3935"
  ["order_weight_ounces"]=>
  string(5) "670.0"
  ["store_order_status"]=>
  string(17) "awaiting_shipment"
  ["se_api_response"]=>
  string(4969) "{"id":205670113,"external_order_identifier":"3935","ext_order_reference_id":"3935","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-27T00:46:11Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"45.00","total_excluding_tax":"0.00","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"0.00","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":null,"billing_first_name":"Lee","billing_last_name":"Horton","billing_address":"109 Old Stagecoach Lane","billing_address2":null,"billing_city":"Canton","billing_state":"MS","billing_country":"US","billing_postal_code":"39046","billing_phone_number":"+17693008293","billing_email":"lch269@yahoo.com","buyer_email":"lch269@yahoo.com","recipients":[{"company":"","first_name":"Lee","last_name":"Horton","address":"109 Old Stagecoach Lane","address2":"","address3":null,"city":"Canton","residential":true,"state":"MS","province":null,"country":"United States","postal_code":"39046","postal_code_plus_4":"7014","phone_number":"+17693008293","email":"lch269@yahoo.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":0,"shipping_method":"Free Shipping - No PO Boxes or APO","items_shipped":0,"ext_shipping_detail_id":null,"line_items":[{"item_name":"BBQ Drumstick Bottle Opener","sku":"bottleopener-drumstick","bin_picking_number":"","bundled_product":null,"weight_in_ounces":"3.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"0.00","unit_price":"0.00","ext_line_item_id":null,"ext_product_id":null,"product_options":[],"uuid":"9f00e6a1-a244-466f-8dea-0d54716fc12d","order_source_id":null,"gift_message":""},{"item_name":"Smokin Wedgie","sku":"wedgie","bin_picking_number":"","bundled_product":null,"weight_in_ounces":"11.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"0.00","unit_price":"0.00","ext_line_item_id":null,"ext_product_id":null,"product_options":[],"uuid":"e056bb41-72c5-4450-87ab-e73aa86d4efc","order_source_id":null,"gift_message":""},{"item_name":"Maple-Hickory-Cherry (MHC) - Competition Blend Pellets","sku":"40mhc","bin_picking_number":"40mhcmaster","bundled_product":null,"weight_in_ounces":"656.0","quantity":1,"total_excluding_tax":"45.00","price_excluding_tax":"0.00","unit_price":"45.00","ext_line_item_id":null,"ext_product_id":"82522196","product_options":{"Weight":"40 Pounds (2x20 Pound Bags)","Add a Flavor Magnet and never forget what's in your hopper":[],"Add Smokin Wedgie Pellet Smoker":[],"Add Handy Camel Bag Clip":[],"Add Gourmet Duck Fat Spray Can(s) Here (7 Ounce)":[],"Add Smokin Wedgie Leg Kit for Flat Bottom Smokers":[],"BBQ Bottle Opener":[]},"uuid":"435ce833-d2ec-48d9-a7dc-0ffb9eb24e53","order_source_id":215060433,"gift_message":null}],"original_order":{"id":205670113,"customer_id":33773,"store_id":70642,"order_detail_id":207745793,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"670.0","total_quantity":3,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-27T00:31:05Z","updated_at":"2017-12-29T04:30:57Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_shipment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"maple-hickory-cherry (mhc) - competition blend pellets","line_item_sku":"40mhc","address_kind":"R","recipient_last_name":"horton","recipient_requested_service":"free shipping - no po boxes or apo","gift":false,"prime_order_id":205670113,"state":"MS","owner_id":37098,"denormalized_ordered_at":"2017-12-27T00:46:11Z","grab_bag":[],"line_item_bin_picking_number":"40mhcmaster","denormalized_ext_order_id":"3935","packing_slip_generated":null,"denormalized_ext_order_reference_id":"3935","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":"","custom_2":"","custom_3":"","hidden":null,"allocated":null}}],"store_api_key":"276833075f862f916ca417ff8ccb9564","shipments":[{"id":222100133,"tracking_number":"789121997403","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":1519,"ship_date":"2017-12-28"}],"updated_at":"2017-12-29T04:30:57Z","internal_notes":"","meta_data":null,"prime_order_id":205670113,"is_prime":null,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(222100133)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(5) "670.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(1519)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(12) "789121997403"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7341

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7004"
    ["order_id"]=>
    string(4) "7341"
    ["se_shipment_id"]=>
    string(9) "222100133"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1519"
    ["shipment_weight_ounces"]=>
    string(6) "670.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789121997403"
    ["tracking_status"]=>
    string(9) "DELIVERED"
    ["tracking_status_code"]=>
    string(2) "DL"
    ["tracking_status_description"]=>
    string(9) "Delivered"
    ["estimated_delivery_time"]=>
    string(19) "2017-12-29 00:00:00"
    ["actual_delivery_time"]=>
    string(19) "2017-12-29 21:56:08"
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:17"
  }
}


shipmentDBRows:
array(1) {
  [222100133]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7004"
    ["order_id"]=>
    string(4) "7341"
    ["se_shipment_id"]=>
    string(9) "222100133"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1519"
    ["shipment_weight_ounces"]=>
    string(6) "670.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789121997403"
    ["tracking_status"]=>
    string(9) "DELIVERED"
    ["tracking_status_code"]=>
    string(2) "DL"
    ["tracking_status_description"]=>
    string(9) "Delivered"
    ["estimated_delivery_time"]=>
    string(19) "2017-12-29 00:00:00"
    ["actual_delivery_time"]=>
    string(19) "2017-12-29 21:56:08"
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:17"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(222100133)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(5) "670.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(1519)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789121997403"
  }
}

Shipment info shipping easy shipment ID #222100133

From API:
array(7) {
  ["se_shipment_id"]=>
  int(222100133)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(5) "670.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(1519)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789121997403"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7004"
  ["order_id"]=>
  string(4) "7341"
  ["se_shipment_id"]=>
  string(9) "222100133"
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  string(4) "1519"
  ["shipment_weight_ounces"]=>
  string(6) "670.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789121997403"
  ["tracking_status"]=>
  string(9) "DELIVERED"
  ["tracking_status_code"]=>
  string(2) "DL"
  ["tracking_status_description"]=>
  string(9) "Delivered"
  ["estimated_delivery_time"]=>
  string(19) "2017-12-29 00:00:00"
  ["actual_delivery_time"]=>
  string(19) "2017-12-29 21:56:08"
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:17"
}



Shipment info for shipping easy shipment ID #222100133 is same between both arrays

*** Order info:
Array
(
    [id] => 205516713
    [external_order_identifier] => 3934
    [ext_order_reference_id] => 3934
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-26T21:56:21Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 52.00
    [total_excluding_tax] => 0.00
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 0.00
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => 
    [billing_first_name] => Jerry
    [billing_last_name] => Basham
    [billing_address] => 230 East Washington Street
    [billing_address2] => 
    [billing_city] => Oakland City
    [billing_state] => IN
    [billing_country] => US
    [billing_postal_code] => 47660
    [billing_phone_number] => 812-664-3355
    [billing_email] => jbash@gibsoncounty.net
    [buyer_email] => jbash@gibsoncounty.net
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Jerry
                    [last_name] => Basham
                    [address] => 230 East Washington Street
                    [address2] => 
                    [address3] => 
                    [city] => Oakland City
                    [residential] => 1
                    [state] => IN
                    [province] => 
                    [country] => United States
                    [postal_code] => 47660
                    [postal_code_plus_4] => 1548
                    [phone_number] => 812-664-3355
                    [email] => jbash@gibsoncounty.net
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 0
                    [shipping_method] => Free Shipping - No PO Boxes or APO
                    [items_shipped] => 0
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => 100% Apple Pellets
                                    [sku] => 40100apple
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 656.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 52.00
                                    [price_excluding_tax] => 0.00
                                    [unit_price] => 52.00
                                    [ext_line_item_id] => 
                                    [ext_product_id] => 82522214
                                    [product_options] => Array
                                        (
                                            [Weight] => 40 Pounds (2x20 Pound Bags)
                                            [Add Smokin Wedgie Pellet Smoker] => Array
                                                (
                                                )

                                            [Add Handy Camel Bag Clip] => Array
                                                (
                                                )

                                            [Add Gourmet Duck Fat Spray Can(s) Here (7 Ounce)] => Array
                                                (
                                                )

                                            [Add Smokin Wedgie Leg Kit for Flat Bottom Smokers] => Array
                                                (
                                                )

                                            [Add BBQ Bottle Opener] => Array
                                                (
                                                )

                                        )

                                    [uuid] => 38897198-ca77-43de-913c-c2eefe3ee055
                                    [order_source_id] => 214892283
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 205516713
                            [customer_id] => 33773
                            [store_id] => 70642
                            [order_detail_id] => 207590683
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 656.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 4
                            [created_at] => 2017-12-26T21:31:11Z
                            [updated_at] => 2017-12-29T04:30:57Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_shipment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => 100% apple pellets
                            [line_item_sku] => 40100apple
                            [address_kind] => R
                            [recipient_last_name] => basham
                            [recipient_requested_service] => free shipping - no po boxes or apo
                            [gift] => 
                            [prime_order_id] => 205516713
                            [state] => IN
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-26T21:56:21Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 3934
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 3934
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 276833075f862f916ca417ff8ccb9564
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 222100143
                    [tracking_number] => 789121997414
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 1306
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-29T04:30:57Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 205516713
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for jbash@gibsoncounty.net) was previously inserted to the DB.
Existing customer ID: 9951

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(5) "Jerry"
  ["customer_last_name"]=>
  string(6) "Basham"
  ["customer_email"]=>
  string(22) "jbash@gibsoncounty.net"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  NULL
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(26) "230 East Washington Street"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(12) "Oakland City"
    ["address_state"]=>
    string(2) "IN"
    ["address_zip"]=>
    string(5) "47660"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9951"
  ["ordered_time"]=>
  string(19) "2017-12-26 21:56:21"
  ["se_order_id"]=>
  int(205516713)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(5) "Ecwid"
  ["store_order_id"]=>
  string(4) "3934"
  ["order_weight_ounces"]=>
  string(5) "656.0"
  ["store_order_status"]=>
  string(17) "awaiting_shipment"
  ["se_api_response"]=>
  string(4122) "{"id":205516713,"external_order_identifier":"3934","ext_order_reference_id":"3934","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-26T21:56:21Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"52.00","total_excluding_tax":"0.00","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"0.00","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":null,"billing_first_name":"Jerry","billing_last_name":"Basham","billing_address":"230 East Washington Street","billing_address2":null,"billing_city":"Oakland City","billing_state":"IN","billing_country":"US","billing_postal_code":"47660","billing_phone_number":"812-664-3355","billing_email":"jbash@gibsoncounty.net","buyer_email":"jbash@gibsoncounty.net","recipients":[{"company":"","first_name":"Jerry","last_name":"Basham","address":"230 East Washington Street","address2":null,"address3":null,"city":"Oakland City","residential":true,"state":"IN","province":null,"country":"United States","postal_code":"47660","postal_code_plus_4":"1548","phone_number":"812-664-3355","email":"jbash@gibsoncounty.net","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":0,"shipping_method":"Free Shipping - No PO Boxes or APO","items_shipped":0,"ext_shipping_detail_id":null,"line_items":[{"item_name":"100% Apple Pellets","sku":"40100apple","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"656.0","quantity":1,"total_excluding_tax":"52.00","price_excluding_tax":"0.00","unit_price":"52.00","ext_line_item_id":null,"ext_product_id":"82522214","product_options":{"Weight":"40 Pounds (2x20 Pound Bags)","Add Smokin Wedgie Pellet Smoker":[],"Add Handy Camel Bag Clip":[],"Add Gourmet Duck Fat Spray Can(s) Here (7 Ounce)":[],"Add Smokin Wedgie Leg Kit for Flat Bottom Smokers":[],"Add BBQ Bottle Opener":[]},"uuid":"38897198-ca77-43de-913c-c2eefe3ee055","order_source_id":214892283,"gift_message":null}],"original_order":{"id":205516713,"customer_id":33773,"store_id":70642,"order_detail_id":207590683,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"656.0","total_quantity":1,"is_international":false,"usps_shipping_zone":4,"created_at":"2017-12-26T21:31:11Z","updated_at":"2017-12-29T04:30:57Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_shipment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"100% apple pellets","line_item_sku":"40100apple","address_kind":"R","recipient_last_name":"basham","recipient_requested_service":"free shipping - no po boxes or apo","gift":false,"prime_order_id":205516713,"state":"IN","owner_id":37098,"denormalized_ordered_at":"2017-12-26T21:56:21Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"3934","packing_slip_generated":null,"denormalized_ext_order_reference_id":"3934","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"276833075f862f916ca417ff8ccb9564","shipments":[{"id":222100143,"tracking_number":"789121997414","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":1306,"ship_date":"2017-12-28"}],"updated_at":"2017-12-29T04:30:57Z","internal_notes":"","meta_data":null,"prime_order_id":205516713,"is_prime":null,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(222100143)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(5) "656.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(1306)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(12) "789121997414"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7333

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7006"
    ["order_id"]=>
    string(4) "7333"
    ["se_shipment_id"]=>
    string(9) "222100143"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1306"
    ["shipment_weight_ounces"]=>
    string(6) "656.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789121997414"
    ["tracking_status"]=>
    string(9) "DELIVERED"
    ["tracking_status_code"]=>
    string(2) "DL"
    ["tracking_status_description"]=>
    string(9) "Delivered"
    ["estimated_delivery_time"]=>
    string(19) "2017-12-29 00:00:00"
    ["actual_delivery_time"]=>
    string(19) "2017-12-29 15:21:20"
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:18"
  }
}


shipmentDBRows:
array(1) {
  [222100143]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7006"
    ["order_id"]=>
    string(4) "7333"
    ["se_shipment_id"]=>
    string(9) "222100143"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1306"
    ["shipment_weight_ounces"]=>
    string(6) "656.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789121997414"
    ["tracking_status"]=>
    string(9) "DELIVERED"
    ["tracking_status_code"]=>
    string(2) "DL"
    ["tracking_status_description"]=>
    string(9) "Delivered"
    ["estimated_delivery_time"]=>
    string(19) "2017-12-29 00:00:00"
    ["actual_delivery_time"]=>
    string(19) "2017-12-29 15:21:20"
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:18"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(222100143)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(5) "656.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(1306)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789121997414"
  }
}

Shipment info shipping easy shipment ID #222100143

From API:
array(7) {
  ["se_shipment_id"]=>
  int(222100143)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(5) "656.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(1306)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789121997414"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7006"
  ["order_id"]=>
  string(4) "7333"
  ["se_shipment_id"]=>
  string(9) "222100143"
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  string(4) "1306"
  ["shipment_weight_ounces"]=>
  string(6) "656.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789121997414"
  ["tracking_status"]=>
  string(9) "DELIVERED"
  ["tracking_status_code"]=>
  string(2) "DL"
  ["tracking_status_description"]=>
  string(9) "Delivered"
  ["estimated_delivery_time"]=>
  string(19) "2017-12-29 00:00:00"
  ["actual_delivery_time"]=>
  string(19) "2017-12-29 15:21:20"
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:18"
}



Shipment info for shipping easy shipment ID #222100143 is same between both arrays

*** Order info:
Array
(
    [id] => 205804363
    [external_order_identifier] => 624
    [ext_order_reference_id] => 263172513385-2144739453016
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-27T02:32:57Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 48.81
    [total_excluding_tax] => 46.00
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 48.81
    [subtotal_excluding_tax] => 46.00
    [subtotal_tax] => 2.81
    [total_tax] => 2.81
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => 
    [billing_first_name] => devon
    [billing_last_name] => pickup
    [billing_address] => 828 main st
    [billing_address2] => 
    [billing_city] => lykens
    [billing_state] => PA
    [billing_country] => US
    [billing_postal_code] => 17048-1413
    [billing_phone_number] => 570 850 1530
    [billing_email] => pickupdevin@yahoo.com
    [buyer_email] => pickupdevin@yahoo.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => devon
                    [last_name] => pickup
                    [address] => 828 main st
                    [address2] => 
                    [address3] => 
                    [city] => lykens
                    [residential] => 
                    [state] => PA
                    [province] => 
                    [country] => United States
                    [postal_code] => 17048
                    [postal_code_plus_4] => 1413
                    [phone_number] => 570 850 1530
                    [email] => pickupdevin@yahoo.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FedExHomeDelivery
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack 40 lbs 100% Hickory BBQ Grilling Natural Hardwood Smoking Pellets (New)
                                    [sku] => ebay40100hickory
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 656.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 46.00
                                    [unit_price] => 46.00
                                    [ext_line_item_id] => 263172513385
                                    [ext_product_id] => 263172513385
                                    [product_options] => 
                                    [uuid] => 44a64912-eeda-4c31-b939-7eeda9cfc699
                                    [order_source_id] => 215208193
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 205804363
                            [customer_id] => 33773
                            [store_id] => 70645
                            [order_detail_id] => 207883393
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 656.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-27T03:27:31Z
                            [updated_at] => 2017-12-29T04:30:57Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_shipment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack 40 lbs 100% hickory bbq grilling natural hardwood smoking pellets (new)
                            [line_item_sku] => ebay40100hickory
                            [address_kind] => C
                            [recipient_last_name] => pickup
                            [recipient_requested_service] => fedexhomedelivery
                            [gift] => 
                            [prime_order_id] => 205804363
                            [state] => PA
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-27T02:32:57Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 624
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 263172513385-2144739453016
                            [denormalized_alternate_order_id] => 624
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => c7abd3d962624149b18bc3415cae937a
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 222100163
                    [tracking_number] => 789121997160
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 1519
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-29T04:30:57Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 205804363
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for pickupdevin@yahoo.com) was previously inserted to the DB.
Existing customer ID: 9963

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(5) "devon"
  ["customer_last_name"]=>
  string(6) "pickup"
  ["customer_email"]=>
  string(21) "pickupdevin@yahoo.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  NULL
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(11) "828 main st"
    ["address_line_2"]=>
    string(0) ""
    ["address_city"]=>
    string(6) "lykens"
    ["address_state"]=>
    string(2) "PA"
    ["address_zip"]=>
    string(10) "17048-1413"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9963"
  ["ordered_time"]=>
  string(19) "2017-12-27 02:32:57"
  ["se_order_id"]=>
  int(205804363)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(4) "eBay"
  ["store_order_id"]=>
  string(3) "624"
  ["order_weight_ounces"]=>
  string(5) "656.0"
  ["store_order_status"]=>
  string(17) "awaiting_shipment"
  ["se_api_response"]=>
  string(4017) "{"id":205804363,"external_order_identifier":"624","ext_order_reference_id":"263172513385-2144739453016","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-27T02:32:57Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"48.81","total_excluding_tax":"46.00","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"48.81","subtotal_excluding_tax":"46.00","subtotal_tax":"2.81","total_tax":"2.81","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":null,"billing_first_name":"devon","billing_last_name":"pickup","billing_address":"828 main st","billing_address2":"","billing_city":"lykens","billing_state":"PA","billing_country":"US","billing_postal_code":"17048-1413","billing_phone_number":"570 850 1530","billing_email":"pickupdevin@yahoo.com","buyer_email":"pickupdevin@yahoo.com","recipients":[{"company":null,"first_name":"devon","last_name":"pickup","address":"828 main st","address2":null,"address3":null,"city":"lykens","residential":false,"state":"PA","province":null,"country":"United States","postal_code":"17048","postal_code_plus_4":"1413","phone_number":"570 850 1530","email":"pickupdevin@yahoo.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FedExHomeDelivery","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack 40 lbs 100% Hickory BBQ Grilling Natural Hardwood Smoking Pellets (New)","sku":"ebay40100hickory","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"656.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"46.00","unit_price":"46.00","ext_line_item_id":"263172513385","ext_product_id":"263172513385","product_options":null,"uuid":"44a64912-eeda-4c31-b939-7eeda9cfc699","order_source_id":215208193,"gift_message":null}],"original_order":{"id":205804363,"customer_id":33773,"store_id":70645,"order_detail_id":207883393,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"656.0","total_quantity":1,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-27T03:27:31Z","updated_at":"2017-12-29T04:30:57Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_shipment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack 40 lbs 100% hickory bbq grilling natural hardwood smoking pellets (new)","line_item_sku":"ebay40100hickory","address_kind":"C","recipient_last_name":"pickup","recipient_requested_service":"fedexhomedelivery","gift":null,"prime_order_id":205804363,"state":"PA","owner_id":37098,"denormalized_ordered_at":"2017-12-27T02:32:57Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"624","packing_slip_generated":null,"denormalized_ext_order_reference_id":"263172513385-2144739453016","denormalized_alternate_order_id":"624","denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"c7abd3d962624149b18bc3415cae937a","shipments":[{"id":222100163,"tracking_number":"789121997160","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":1519,"ship_date":"2017-12-28"}],"updated_at":"2017-12-29T04:30:57Z","internal_notes":"","meta_data":null,"prime_order_id":205804363,"is_prime":null,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(222100163)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(5) "656.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(1519)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(12) "789121997160"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7348

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7003"
    ["order_id"]=>
    string(4) "7348"
    ["se_shipment_id"]=>
    string(9) "222100163"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1519"
    ["shipment_weight_ounces"]=>
    string(6) "656.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789121997160"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "OD"
    ["tracking_status_description"]=>
    string(29) "On FedEx vehicle for delivery"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-02 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:17"
  }
}


shipmentDBRows:
array(1) {
  [222100163]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7003"
    ["order_id"]=>
    string(4) "7348"
    ["se_shipment_id"]=>
    string(9) "222100163"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1519"
    ["shipment_weight_ounces"]=>
    string(6) "656.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789121997160"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "OD"
    ["tracking_status_description"]=>
    string(29) "On FedEx vehicle for delivery"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-02 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:17"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(222100163)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(5) "656.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(1519)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789121997160"
  }
}

Shipment info shipping easy shipment ID #222100163

From API:
array(7) {
  ["se_shipment_id"]=>
  int(222100163)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(5) "656.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(1519)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789121997160"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7003"
  ["order_id"]=>
  string(4) "7348"
  ["se_shipment_id"]=>
  string(9) "222100163"
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  string(4) "1519"
  ["shipment_weight_ounces"]=>
  string(6) "656.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789121997160"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  string(2) "OD"
  ["tracking_status_description"]=>
  string(29) "On FedEx vehicle for delivery"
  ["estimated_delivery_time"]=>
  string(19) "2018-01-02 00:00:00"
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:17"
}



Shipment info for shipping easy shipment ID #222100163 is same between both arrays

*** Order info:
Array
(
    [id] => 205761823
    [external_order_identifier] => 3936
    [ext_order_reference_id] => 3936
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-27T02:53:03Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 111.00
    [total_excluding_tax] => 0.00
    [discount_amount] => 7.00
    [coupon_discount] => 7.00
    [subtotal_including_tax] => 0.00
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => 
    [billing_first_name] => Greg
    [billing_last_name] => Fulmer
    [billing_address] => 1015 County Road 1595
    [billing_address2] => 
    [billing_city] => Baileyton
    [billing_state] => AL
    [billing_country] => US
    [billing_postal_code] => 35019
    [billing_phone_number] => +12563394336
    [billing_email] => fulmerg@bellsouth.net
    [buyer_email] => fulmerg@bellsouth.net
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Greg
                    [last_name] => Fulmer
                    [address] => 1015 County Road 1595
                    [address2] => 
                    [address3] => 
                    [city] => Baileyton
                    [residential] => 1
                    [state] => AL
                    [province] => 
                    [country] => United States
                    [postal_code] => 35019
                    [postal_code_plus_4] => 9411
                    [phone_number] => +12563394336
                    [email] => fulmerg@bellsouth.net
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 0
                    [shipping_method] => Free Shipping - No PO Boxes or APO
                    [items_shipped] => 0
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Maple-Hickory-Cherry (MHC) - Competition Blend Pellets
                                    [sku] => 40mhc
                                    [bin_picking_number] => 40mhcmaster
                                    [bundled_product] => 
                                    [weight_in_ounces] => 656.0
                                    [quantity] => 2
                                    [total_excluding_tax] => 47.50
                                    [price_excluding_tax] => 0.00
                                    [unit_price] => 47.50
                                    [ext_line_item_id] => 
                                    [ext_product_id] => 82522196
                                    [product_options] => Array
                                        (
                                            [Weight] => 40 Pounds (2x20 Pound Bags)
                                            [Add a Flavor Magnet and never forget what's in your hopper] => Array
                                                (
                                                    [0] => Add Maple-Hickory-Cherry Flavor Label Magnet
                                                )

                                            [Add Smokin Wedgie Pellet Smoker] => Array
                                                (
                                                )

                                            [Add Handy Camel Bag Clip] => Array
                                                (
                                                )

                                            [Add Gourmet Duck Fat Spray Can(s) Here (7 Ounce)] => Array
                                                (
                                                )

                                            [Add Smokin Wedgie Leg Kit for Flat Bottom Smokers] => Array
                                                (
                                                )

                                            [BBQ Bottle Opener] => Array
                                                (
                                                )

                                        )

                                    [uuid] => b44810b8-f3db-4397-a892-217238b58940
                                    [order_source_id] => 215161063
                                    [gift_message] => 
                                )

                            [1] => Array
                                (
                                    [item_name] => Mexican Heat (Red Pepper)
                                    [sku] => 20mex
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 320.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 23.00
                                    [price_excluding_tax] => 0.00
                                    [unit_price] => 23.00
                                    [ext_line_item_id] => 
                                    [ext_product_id] => 94659569
                                    [product_options] => Array
                                        (
                                            [Weight] => 20 Pound Bag
                                            [Add Smokin Wedgie Pellet Smoker] => Array
                                                (
                                                )

                                            [Add Handy Camel Bag Clip] => Array
                                                (
                                                )

                                            [Add Gourmet Duck Fat Spray Can(s) Here (7 Ounce)] => Array
                                                (
                                                )

                                            [Add Smokin Wedgie Leg Kit for Flat Bottom Smokers] => Array
                                                (
                                                )

                                            [BBQ Bottle Opener] => Array
                                                (
                                                )

                                        )

                                    [uuid] => 01e90da5-ffee-47c1-b771-2f6d9e91a413
                                    [order_source_id] => 215161063
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 205761823
                            [customer_id] => 33773
                            [store_id] => 70642
                            [order_detail_id] => 207839973
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 1632.0
                            [total_quantity] => 3
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-27T02:31:17Z
                            [updated_at] => 2017-12-29T04:30:57Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_shipment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => 
                            [line_item_sku] => 
                            [address_kind] => R
                            [recipient_last_name] => fulmer
                            [recipient_requested_service] => free shipping - no po boxes or apo
                            [gift] => 
                            [prime_order_id] => 205761823
                            [state] => AL
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-27T02:53:03Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 3936
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 3936
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 276833075f862f916ca417ff8ccb9564
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 222111933
                    [tracking_number] => 789122241110
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 1519
                    [ship_date] => 2017-12-28
                )

            [1] => Array
                (
                    [id] => 222100273
                    [tracking_number] => 789122202411
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 1854
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-29T04:30:57Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 205761823
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for fulmerg@bellsouth.net) was previously inserted to the DB.
Existing customer ID: 9961

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(4) "Greg"
  ["customer_last_name"]=>
  string(6) "Fulmer"
  ["customer_email"]=>
  string(21) "fulmerg@bellsouth.net"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  NULL
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(21) "1015 County Road 1595"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(9) "Baileyton"
    ["address_state"]=>
    string(2) "AL"
    ["address_zip"]=>
    string(5) "35019"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9961"
  ["ordered_time"]=>
  string(19) "2017-12-27 02:53:03"
  ["se_order_id"]=>
  int(205761823)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(5) "Ecwid"
  ["store_order_id"]=>
  string(4) "3936"
  ["order_weight_ounces"]=>
  string(6) "1632.0"
  ["store_order_status"]=>
  string(17) "awaiting_shipment"
  ["se_api_response"]=>
  string(4994) "{"id":205761823,"external_order_identifier":"3936","ext_order_reference_id":"3936","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-27T02:53:03Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"111.00","total_excluding_tax":"0.00","discount_amount":"7.00","coupon_discount":"7.00","subtotal_including_tax":"0.00","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":null,"billing_first_name":"Greg","billing_last_name":"Fulmer","billing_address":"1015 County Road 1595","billing_address2":null,"billing_city":"Baileyton","billing_state":"AL","billing_country":"US","billing_postal_code":"35019","billing_phone_number":"+12563394336","billing_email":"fulmerg@bellsouth.net","buyer_email":"fulmerg@bellsouth.net","recipients":[{"company":"","first_name":"Greg","last_name":"Fulmer","address":"1015 County Road 1595","address2":null,"address3":null,"city":"Baileyton","residential":true,"state":"AL","province":null,"country":"United States","postal_code":"35019","postal_code_plus_4":"9411","phone_number":"+12563394336","email":"fulmerg@bellsouth.net","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":0,"shipping_method":"Free Shipping - No PO Boxes or APO","items_shipped":0,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Maple-Hickory-Cherry (MHC) - Competition Blend Pellets","sku":"40mhc","bin_picking_number":"40mhcmaster","bundled_product":null,"weight_in_ounces":"656.0","quantity":2,"total_excluding_tax":"47.50","price_excluding_tax":"0.00","unit_price":"47.50","ext_line_item_id":null,"ext_product_id":"82522196","product_options":{"Weight":"40 Pounds (2x20 Pound Bags)","Add a Flavor Magnet and never forget what's in your hopper":["Add Maple-Hickory-Cherry Flavor Label Magnet"],"Add Smokin Wedgie Pellet Smoker":[],"Add Handy Camel Bag Clip":[],"Add Gourmet Duck Fat Spray Can(s) Here (7 Ounce)":[],"Add Smokin Wedgie Leg Kit for Flat Bottom Smokers":[],"BBQ Bottle Opener":[]},"uuid":"b44810b8-f3db-4397-a892-217238b58940","order_source_id":215161063,"gift_message":null},{"item_name":"Mexican Heat (Red Pepper)","sku":"20mex","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"320.0","quantity":1,"total_excluding_tax":"23.00","price_excluding_tax":"0.00","unit_price":"23.00","ext_line_item_id":null,"ext_product_id":"94659569","product_options":{"Weight":"20 Pound Bag","Add Smokin Wedgie Pellet Smoker":[],"Add Handy Camel Bag Clip":[],"Add Gourmet Duck Fat Spray Can(s) Here (7 Ounce)":[],"Add Smokin Wedgie Leg Kit for Flat Bottom Smokers":[],"BBQ Bottle Opener":[]},"uuid":"01e90da5-ffee-47c1-b771-2f6d9e91a413","order_source_id":215161063,"gift_message":null}],"original_order":{"id":205761823,"customer_id":33773,"store_id":70642,"order_detail_id":207839973,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"1632.0","total_quantity":3,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-27T02:31:17Z","updated_at":"2017-12-29T04:30:57Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_shipment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":null,"line_item_sku":null,"address_kind":"R","recipient_last_name":"fulmer","recipient_requested_service":"free shipping - no po boxes or apo","gift":false,"prime_order_id":205761823,"state":"AL","owner_id":37098,"denormalized_ordered_at":"2017-12-27T02:53:03Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"3936","packing_slip_generated":null,"denormalized_ext_order_reference_id":"3936","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"276833075f862f916ca417ff8ccb9564","shipments":[{"id":222111933,"tracking_number":"789122241110","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":1519,"ship_date":"2017-12-28"},{"id":222100273,"tracking_number":"789122202411","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":1854,"ship_date":"2017-12-28"}],"updated_at":"2017-12-29T04:30:57Z","internal_notes":"","meta_data":null,"prime_order_id":205761823,"is_prime":null,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(2) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(222111933)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(6) "1632.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(1519)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(12) "789122241110"
    }
    [1]=>
    array(7) {
      ["se_shipment_id"]=>
      int(222100273)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(6) "1632.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(1854)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(12) "789122202411"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7345

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7010"
    ["order_id"]=>
    string(4) "7345"
    ["se_shipment_id"]=>
    string(9) "222100273"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1854"
    ["shipment_weight_ounces"]=>
    string(7) "1632.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789122202411"
    ["tracking_status"]=>
    string(9) "DELIVERED"
    ["tracking_status_code"]=>
    string(2) "DL"
    ["tracking_status_description"]=>
    string(9) "Delivered"
    ["estimated_delivery_time"]=>
    string(19) "2017-12-29 00:00:00"
    ["actual_delivery_time"]=>
    string(19) "2017-12-29 20:44:48"
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:20"
  }
}


shipmentDBRows:
array(1) {
  [222100273]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7010"
    ["order_id"]=>
    string(4) "7345"
    ["se_shipment_id"]=>
    string(9) "222100273"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1854"
    ["shipment_weight_ounces"]=>
    string(7) "1632.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789122202411"
    ["tracking_status"]=>
    string(9) "DELIVERED"
    ["tracking_status_code"]=>
    string(2) "DL"
    ["tracking_status_description"]=>
    string(9) "Delivered"
    ["estimated_delivery_time"]=>
    string(19) "2017-12-29 00:00:00"
    ["actual_delivery_time"]=>
    string(19) "2017-12-29 20:44:48"
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:20"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(222100273)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(6) "1632.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(1854)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789122202411"
  }
}

Shipment info shipping easy shipment ID #222100273

From API:
array(7) {
  ["se_shipment_id"]=>
  int(222100273)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(6) "1632.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(1854)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789122202411"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7010"
  ["order_id"]=>
  string(4) "7345"
  ["se_shipment_id"]=>
  string(9) "222100273"
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  string(4) "1854"
  ["shipment_weight_ounces"]=>
  string(7) "1632.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789122202411"
  ["tracking_status"]=>
  string(9) "DELIVERED"
  ["tracking_status_code"]=>
  string(2) "DL"
  ["tracking_status_description"]=>
  string(9) "Delivered"
  ["estimated_delivery_time"]=>
  string(19) "2017-12-29 00:00:00"
  ["actual_delivery_time"]=>
  string(19) "2017-12-29 20:44:48"
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:20"
}



Shipment info for shipping easy shipment ID #222100273 is same between both arrays

*** Order info:
Array
(
    [id] => 205069343
    [external_order_identifier] => 3931
    [ext_order_reference_id] => 3931
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-26T14:44:39Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 133.50
    [total_excluding_tax] => 0.00
    [discount_amount] => 7.00
    [coupon_discount] => 7.00
    [subtotal_including_tax] => 0.00
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => 
    [billing_first_name] => Austin
    [billing_last_name] => Vye
    [billing_address] => 1005 Richardson Ct
    [billing_address2] => 
    [billing_city] => CHEYENNE
    [billing_state] => WY
    [billing_country] => US
    [billing_postal_code] => 82001
    [billing_phone_number] => 
    [billing_email] => littlevye@gmail.com
    [buyer_email] => littlevye@gmail.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Austin
                    [last_name] => Vye
                    [address] => 1005 Richardson Ct
                    [address2] => 
                    [address3] => 
                    [city] => CHEYENNE
                    [residential] => 1
                    [state] => WY
                    [province] => 
                    [country] => United States
                    [postal_code] => 82001
                    [postal_code_plus_4] => 2420
                    [phone_number] => +13076316506
                    [email] => littlevye@gmail.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 0
                    [shipping_method] => Free Shipping - No PO Boxes or APO
                    [items_shipped] => 0
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack Labels - Add to your containers or buckets to mark the variety
                                    [sku] => labels
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 0.2
                                    [quantity] => 1
                                    [total_excluding_tax] => 6.50
                                    [price_excluding_tax] => 0.00
                                    [unit_price] => 6.50
                                    [ext_line_item_id] => 
                                    [ext_product_id] => 82338015
                                    [product_options] => Array
                                        (
                                            [Included Label 1 (Label 1-3 are $3)] => Italian Garlic (Garlic)
                                            [Included Label 2 ($0)] => CharBlend Hickory
                                            [Included Label 3 ($0)] => Pecan Blend
                                            [Add Label 4 Below ($1)] => Hickory Blend
                                            [Add Label 5 Below ($1)] => Mesquite Blend
                                            [Add Label 6 Below( ($.75)] => 100% Alder
                                            [Add Label 7 Below ($.75)] => Maple-Oak-Cherry (Timberline)
                                            [Add Label 8 Below ($.75)] => Add Label 8 Below
                                            [Add Label 9 Below ($.75)] => Add Label 9 Below
                                        )

                                    [uuid] => b206be68-642c-4c38-93b2-c6b7cf4166b6
                                    [order_source_id] => 214411923
                                    [gift_message] => 
                                )

                            [1] => Array
                                (
                                    [item_name] => 120 Pound BBQ Pellets Variety Pack (Select 6 20-Pound Varieties)
                                    [sku] => 12020variety
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 1920.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 134.00
                                    [price_excluding_tax] => 0.00
                                    [unit_price] => 134.00
                                    [ext_line_item_id] => 
                                    [ext_product_id] => 88184025
                                    [product_options] => Array
                                        (
                                            [Bag 1 (20#)] => Pecan Blend
                                            [Bag 2 (20#)] => Apple Blend
                                            [Bag 3 (20#)] => CharBlend Hickory
                                            [Bag 4 (20#)] => Mesquite Blend
                                            [Bag 5 (20#)] => 100% Alder
                                            [Bag 6 (20#)] => Italian Garlic (Garlic)
                                            [Add Handy Camel Bag Clip] => Array
                                                (
                                                )

                                            [Add Smokin Wedgie Pellet Smoker(s)] => Array
                                                (
                                                    [0] => Add 1 Smokin Wedgie Pellet Smoker
                                                )

                                            [Add Gourmet Duck Fat Spray Can(s) Here (7 Ounce)] => Do Not Include Duckfat
                                            [Add Smokin Wedgie Leg Kit for Flat Bottom Smokers] => Array
                                                (
                                                )

                                            [Add BBQ Bottle Opener] => Array
                                                (
                                                )

                                        )

                                    [uuid] => 97be444e-11ed-416f-a2ca-8001a3894139
                                    [order_source_id] => 214411923
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 205069343
                            [customer_id] => 33773
                            [store_id] => 70642
                            [order_detail_id] => 207136073
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 1920.2
                            [total_quantity] => 2
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-26T14:31:35Z
                            [updated_at] => 2017-12-29T04:30:57Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_shipment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => 
                            [line_item_sku] => 
                            [address_kind] => R
                            [recipient_last_name] => vye
                            [recipient_requested_service] => free shipping - no po boxes or apo
                            [gift] => 
                            [prime_order_id] => 205069343
                            [state] => WY
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-26T14:44:39Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 3931
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 3931
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 276833075f862f916ca417ff8ccb9564
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 222112963
                    [tracking_number] => 789122305240
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 1596
                    [ship_date] => 2017-12-28
                )

            [1] => Array
                (
                    [id] => 222100253
                    [tracking_number] => 789122202124
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 1596
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-29T04:30:57Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 205069343
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for littlevye@gmail.com) was previously inserted to the DB.
Existing customer ID: 5583

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(6) "Austin"
  ["customer_last_name"]=>
  string(3) "Vye"
  ["customer_email"]=>
  string(19) "littlevye@gmail.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  NULL
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(18) "1005 Richardson Ct"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(8) "CHEYENNE"
    ["address_state"]=>
    string(2) "WY"
    ["address_zip"]=>
    string(5) "82001"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "5583"
  ["ordered_time"]=>
  string(19) "2017-12-26 14:44:39"
  ["se_order_id"]=>
  int(205069343)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(5) "Ecwid"
  ["store_order_id"]=>
  string(4) "3931"
  ["order_weight_ounces"]=>
  string(6) "1920.2"
  ["store_order_status"]=>
  string(17) "awaiting_shipment"
  ["se_api_response"]=>
  string(5323) "{"id":205069343,"external_order_identifier":"3931","ext_order_reference_id":"3931","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-26T14:44:39Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"133.50","total_excluding_tax":"0.00","discount_amount":"7.00","coupon_discount":"7.00","subtotal_including_tax":"0.00","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":null,"billing_first_name":"Austin","billing_last_name":"Vye","billing_address":"1005 Richardson Ct","billing_address2":null,"billing_city":"CHEYENNE","billing_state":"WY","billing_country":"US","billing_postal_code":"82001","billing_phone_number":"","billing_email":"littlevye@gmail.com","buyer_email":"littlevye@gmail.com","recipients":[{"company":"","first_name":"Austin","last_name":"Vye","address":"1005 Richardson Ct","address2":null,"address3":null,"city":"CHEYENNE","residential":true,"state":"WY","province":null,"country":"United States","postal_code":"82001","postal_code_plus_4":"2420","phone_number":"+13076316506","email":"littlevye@gmail.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":0,"shipping_method":"Free Shipping - No PO Boxes or APO","items_shipped":0,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack Labels - Add to your containers or buckets to mark the variety","sku":"labels","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"0.2","quantity":1,"total_excluding_tax":"6.50","price_excluding_tax":"0.00","unit_price":"6.50","ext_line_item_id":null,"ext_product_id":"82338015","product_options":{"Included Label 1 (Label 1-3 are $3)":"Italian Garlic (Garlic)","Included Label 2 ($0)":"CharBlend Hickory","Included Label 3 ($0)":"Pecan Blend","Add Label 4 Below ($1)":"Hickory Blend","Add Label 5 Below ($1)":"Mesquite Blend","Add Label 6 Below( ($.75)":"100% Alder","Add Label 7 Below ($.75)":"Maple-Oak-Cherry (Timberline)","Add Label 8 Below ($.75)":"Add Label 8 Below","Add Label 9 Below ($.75)":"Add Label 9 Below"},"uuid":"b206be68-642c-4c38-93b2-c6b7cf4166b6","order_source_id":214411923,"gift_message":null},{"item_name":"120 Pound BBQ Pellets Variety Pack (Select 6 20-Pound Varieties)","sku":"12020variety","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"1920.0","quantity":1,"total_excluding_tax":"134.00","price_excluding_tax":"0.00","unit_price":"134.00","ext_line_item_id":null,"ext_product_id":"88184025","product_options":{"Bag 1 (20#)":"Pecan Blend","Bag 2 (20#)":"Apple Blend","Bag 3 (20#)":"CharBlend Hickory","Bag 4 (20#)":"Mesquite Blend","Bag 5 (20#)":"100% Alder","Bag 6 (20#)":"Italian Garlic (Garlic)","Add Handy Camel Bag Clip":[],"Add Smokin Wedgie Pellet Smoker(s)":["Add 1 Smokin Wedgie Pellet Smoker"],"Add Gourmet Duck Fat Spray Can(s) Here (7 Ounce)":"Do Not Include Duckfat","Add Smokin Wedgie Leg Kit for Flat Bottom Smokers":[],"Add BBQ Bottle Opener":[]},"uuid":"97be444e-11ed-416f-a2ca-8001a3894139","order_source_id":214411923,"gift_message":null}],"original_order":{"id":205069343,"customer_id":33773,"store_id":70642,"order_detail_id":207136073,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"1920.2","total_quantity":2,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-26T14:31:35Z","updated_at":"2017-12-29T04:30:57Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_shipment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":null,"line_item_sku":null,"address_kind":"R","recipient_last_name":"vye","recipient_requested_service":"free shipping - no po boxes or apo","gift":false,"prime_order_id":205069343,"state":"WY","owner_id":37098,"denormalized_ordered_at":"2017-12-26T14:44:39Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"3931","packing_slip_generated":null,"denormalized_ext_order_reference_id":"3931","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"276833075f862f916ca417ff8ccb9564","shipments":[{"id":222112963,"tracking_number":"789122305240","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":1596,"ship_date":"2017-12-28"},{"id":222100253,"tracking_number":"789122202124","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":1596,"ship_date":"2017-12-28"}],"updated_at":"2017-12-29T04:30:57Z","internal_notes":"","meta_data":null,"prime_order_id":205069343,"is_prime":null,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(2) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(222112963)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(6) "1920.2"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(1596)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(12) "789122305240"
    }
    [1]=>
    array(7) {
      ["se_shipment_id"]=>
      int(222100253)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(6) "1920.2"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(1596)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(12) "789122202124"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7317

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7012"
    ["order_id"]=>
    string(4) "7317"
    ["se_shipment_id"]=>
    string(9) "222100253"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1596"
    ["shipment_weight_ounces"]=>
    string(7) "1920.20"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789122202124"
    ["tracking_status"]=>
    string(9) "DELIVERED"
    ["tracking_status_code"]=>
    string(2) "DL"
    ["tracking_status_description"]=>
    string(9) "Delivered"
    ["estimated_delivery_time"]=>
    string(19) "2017-12-29 00:00:00"
    ["actual_delivery_time"]=>
    string(19) "2017-12-29 21:19:03"
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:19"
  }
}


shipmentDBRows:
array(1) {
  [222100253]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7012"
    ["order_id"]=>
    string(4) "7317"
    ["se_shipment_id"]=>
    string(9) "222100253"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1596"
    ["shipment_weight_ounces"]=>
    string(7) "1920.20"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789122202124"
    ["tracking_status"]=>
    string(9) "DELIVERED"
    ["tracking_status_code"]=>
    string(2) "DL"
    ["tracking_status_description"]=>
    string(9) "Delivered"
    ["estimated_delivery_time"]=>
    string(19) "2017-12-29 00:00:00"
    ["actual_delivery_time"]=>
    string(19) "2017-12-29 21:19:03"
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:19"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(222100253)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(6) "1920.2"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(1596)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789122202124"
  }
}

Shipment info shipping easy shipment ID #222100253

From API:
array(7) {
  ["se_shipment_id"]=>
  int(222100253)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(6) "1920.2"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(1596)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789122202124"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7012"
  ["order_id"]=>
  string(4) "7317"
  ["se_shipment_id"]=>
  string(9) "222100253"
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  string(4) "1596"
  ["shipment_weight_ounces"]=>
  string(7) "1920.20"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789122202124"
  ["tracking_status"]=>
  string(9) "DELIVERED"
  ["tracking_status_code"]=>
  string(2) "DL"
  ["tracking_status_description"]=>
  string(9) "Delivered"
  ["estimated_delivery_time"]=>
  string(19) "2017-12-29 00:00:00"
  ["actual_delivery_time"]=>
  string(19) "2017-12-29 21:19:03"
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:19"
}



Shipment info for shipping easy shipment ID #222100253 is same between both arrays

*** Order info:
Array
(
    [id] => 205457833
    [external_order_identifier] => 3933
    [ext_order_reference_id] => 3933
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-26T21:25:12Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 246.14
    [total_excluding_tax] => 0.00
    [discount_amount] => 7.00
    [coupon_discount] => 7.00
    [subtotal_including_tax] => 0.00
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 14.14
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => 
    [billing_first_name] => Ron
    [billing_last_name] => Martin
    [billing_address] => 500 Powerhouse Drive
    [billing_address2] => 
    [billing_city] => Warren
    [billing_state] => PA
    [billing_country] => US
    [billing_postal_code] => 16365
    [billing_phone_number] => 814-723-5716
    [billing_email] => navbtcret@outlook.com
    [buyer_email] => navbtcret@outlook.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Ron
                    [last_name] => Martin
                    [address] => 324 Crescent Park
                    [address2] => 
                    [address3] => 
                    [city] => Warren
                    [residential] => 1
                    [state] => PA
                    [province] => 
                    [country] => United States
                    [postal_code] => 16365
                    [postal_code_plus_4] => 2223
                    [phone_number] => 814-723-5716
                    [email] => navbtcret@outlook.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 0
                    [shipping_method] => Free Shipping - No PO Boxes or APO
                    [items_shipped] => 0
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => 100% Cherry Pellets
                                    [sku] => 40100cherry
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 656.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 45.00
                                    [price_excluding_tax] => 0.00
                                    [unit_price] => 45.00
                                    [ext_line_item_id] => 
                                    [ext_product_id] => 82522223
                                    [product_options] => Array
                                        (
                                            [Weight] => 40 Pounds (2x20 Pound Bags)
                                            [Add a Flavor Magnet and never forget what's in your hopper] => Array
                                                (
                                                )

                                            [Add Smokin Wedgie Pellet Smoker] => Array
                                                (
                                                )

                                            [Add Handy Camel Bag Clip] => Array
                                                (
                                                )

                                            [Add Gourmet Duck Fat Spray Can(s) Here (7 Ounce)] => Array
                                                (
                                                )

                                            [Add Smokin Wedgie Leg Kit for Flat Bottom Smokers] => Array
                                                (
                                                )

                                            [Add BBQ Bottle Opener] => Array
                                                (
                                                )

                                        )

                                    [uuid] => 4eac96e0-54d1-4b1f-be51-2578042647a8
                                    [order_source_id] => 214828653
                                    [gift_message] => 
                                )

                            [1] => Array
                                (
                                    [item_name] => CharBlend Hickory Pellets
                                    [sku] => 40charhick
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 656.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 45.00
                                    [price_excluding_tax] => 0.00
                                    [unit_price] => 45.00
                                    [ext_line_item_id] => 
                                    [ext_product_id] => 82522247
                                    [product_options] => Array
                                        (
                                            [Weight] => 40 Pounds (2x20 Pound Bags)
                                            [Add Smokin Wedgie Pellet Smoker] => Array
                                                (
                                                )

                                            [Add Handy Camel Bag Clip] => Array
                                                (
                                                )

                                            [Add Gourmet Duck Fat Spray Can(s) Here (7 Ounce)] => Array
                                                (
                                                )

                                            [Add Smokin Wedgie Leg Kit for Flat Bottom Smokers] => Array
                                                (
                                                )

                                            [BBQ Bottle Opener] => Array
                                                (
                                                )

                                        )

                                    [uuid] => c9cf24b6-7a0e-4d35-99ae-0a7d53a1b312
                                    [order_source_id] => 214828653
                                    [gift_message] => 
                                )

                            [2] => Array
                                (
                                    [item_name] => 100% Hickory Pellets
                                    [sku] => 40100hickory
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 656.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 45.00
                                    [price_excluding_tax] => 0.00
                                    [unit_price] => 45.00
                                    [ext_line_item_id] => 
                                    [ext_product_id] => 82522230
                                    [product_options] => Array
                                        (
                                            [Weight] => 40 Pounds (2x20 Pound Bags)
                                            [Add a Flavor Magnet and never forget what's in your hopper] => Array
                                                (
                                                )

                                            [Add Smokin Wedgie Pellet Smoker] => Array
                                                (
                                                )

                                            [Add Handy Camel Bag Clip] => Array
                                                (
                                                )

                                            [Add Gourmet Duck Fat Spray Can(s) Here (7 Ounce)] => Array
                                                (
                                                )

                                            [Add Smokin Wedgie Leg Kit for Flat Bottom Smokers] => Array
                                                (
                                                )

                                            [Add BBQ Bottle Opener] => Array
                                                (
                                                )

                                        )

                                    [uuid] => 41a0c7da-cf14-46fe-9b20-008dd3975d9a
                                    [order_source_id] => 214828653
                                    [gift_message] => 
                                )

                            [3] => Array
                                (
                                    [item_name] => 100% Pecan Pellets
                                    [sku] => 40100pecan
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 656.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 52.00
                                    [price_excluding_tax] => 0.00
                                    [unit_price] => 52.00
                                    [ext_line_item_id] => 
                                    [ext_product_id] => 82522241
                                    [product_options] => Array
                                        (
                                            [Weight] => 40 Pounds (2x20 Pound Bags)
                                            [Add Smokin Wedgie Pellet Smoker] => Array
                                                (
                                                )

                                            [Add  Handy Camel Bag Clip] => Array
                                                (
                                                )

                                            [Add Gourmet Duck Fat Spray Can(s) Here (7 Ounce)] => Array
                                                (
                                                )

                                            [Add Smokin Wedgie Leg Kit for Flat Bottom Smokers] => Array
                                                (
                                                )

                                            [BBQ Bottle Opener] => Array
                                                (
                                                )

                                        )

                                    [uuid] => badf0c8d-f5d9-4e2f-9554-75dca2b3988c
                                    [order_source_id] => 214828653
                                    [gift_message] => 
                                )

                            [4] => Array
                                (
                                    [item_name] => 100% Apple Pellets
                                    [sku] => 40100apple
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 656.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 52.00
                                    [price_excluding_tax] => 0.00
                                    [unit_price] => 52.00
                                    [ext_line_item_id] => 
                                    [ext_product_id] => 82522214
                                    [product_options] => Array
                                        (
                                            [Weight] => 40 Pounds (2x20 Pound Bags)
                                            [Add Smokin Wedgie Pellet Smoker] => Array
                                                (
                                                )

                                            [Add Handy Camel Bag Clip] => Array
                                                (
                                                )

                                            [Add Gourmet Duck Fat Spray Can(s) Here (7 Ounce)] => Array
                                                (
                                                )

                                            [Add Smokin Wedgie Leg Kit for Flat Bottom Smokers] => Array
                                                (
                                                )

                                            [Add BBQ Bottle Opener] => Array
                                                (
                                                )

                                        )

                                    [uuid] => 55783d0f-dbef-4cd7-8eff-7ecbaf79bd3b
                                    [order_source_id] => 214828653
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 205457833
                            [customer_id] => 33773
                            [store_id] => 70642
                            [order_detail_id] => 207530633
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 3200.0
                            [total_quantity] => 5
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-26T20:31:22Z
                            [updated_at] => 2017-12-29T04:30:58Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_shipment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => 
                            [line_item_sku] => 
                            [address_kind] => R
                            [recipient_last_name] => martin
                            [recipient_requested_service] => free shipping - no po boxes or apo
                            [gift] => 
                            [prime_order_id] => 205457833
                            [state] => PA
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-26T21:25:12Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 3933
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 3933
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 276833075f862f916ca417ff8ccb9564
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 222113933
                    [tracking_number] => 789122310630
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 1052
                    [ship_date] => 2017-12-28
                )

            [1] => Array
                (
                    [id] => 222113793
                    [tracking_number] => 789122308618
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 1854
                    [ship_date] => 2017-12-28
                )

            [2] => Array
                (
                    [id] => 222113603
                    [tracking_number] => 789122308607
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 1854
                    [ship_date] => 2017-12-28
                )

            [3] => Array
                (
                    [id] => 222100313
                    [tracking_number] => 789121981827
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 1854
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-29T04:30:58Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 205457833
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for navbtcret@outlook.com) was previously inserted to the DB.
Existing customer ID: 9948

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(3) "Ron"
  ["customer_last_name"]=>
  string(6) "Martin"
  ["customer_email"]=>
  string(21) "navbtcret@outlook.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  NULL
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(20) "500 Powerhouse Drive"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(6) "Warren"
    ["address_state"]=>
    string(2) "PA"
    ["address_zip"]=>
    string(5) "16365"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9948"
  ["ordered_time"]=>
  string(19) "2017-12-26 21:25:12"
  ["se_order_id"]=>
  int(205457833)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(5) "Ecwid"
  ["store_order_id"]=>
  string(4) "3933"
  ["order_weight_ounces"]=>
  string(6) "3200.0"
  ["store_order_status"]=>
  string(17) "awaiting_shipment"
  ["se_api_response"]=>
  string(7190) "{"id":205457833,"external_order_identifier":"3933","ext_order_reference_id":"3933","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-26T21:25:12Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"246.14","total_excluding_tax":"0.00","discount_amount":"7.00","coupon_discount":"7.00","subtotal_including_tax":"0.00","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"14.14","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":null,"billing_first_name":"Ron","billing_last_name":"Martin","billing_address":"500 Powerhouse Drive","billing_address2":null,"billing_city":"Warren","billing_state":"PA","billing_country":"US","billing_postal_code":"16365","billing_phone_number":"814-723-5716","billing_email":"navbtcret@outlook.com","buyer_email":"navbtcret@outlook.com","recipients":[{"company":"","first_name":"Ron","last_name":"Martin","address":"324 Crescent Park","address2":null,"address3":null,"city":"Warren","residential":true,"state":"PA","province":null,"country":"United States","postal_code":"16365","postal_code_plus_4":"2223","phone_number":"814-723-5716","email":"navbtcret@outlook.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":0,"shipping_method":"Free Shipping - No PO Boxes or APO","items_shipped":0,"ext_shipping_detail_id":null,"line_items":[{"item_name":"100% Cherry Pellets","sku":"40100cherry","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"656.0","quantity":1,"total_excluding_tax":"45.00","price_excluding_tax":"0.00","unit_price":"45.00","ext_line_item_id":null,"ext_product_id":"82522223","product_options":{"Weight":"40 Pounds (2x20 Pound Bags)","Add a Flavor Magnet and never forget what's in your hopper":[],"Add Smokin Wedgie Pellet Smoker":[],"Add Handy Camel Bag Clip":[],"Add Gourmet Duck Fat Spray Can(s) Here (7 Ounce)":[],"Add Smokin Wedgie Leg Kit for Flat Bottom Smokers":[],"Add BBQ Bottle Opener":[]},"uuid":"4eac96e0-54d1-4b1f-be51-2578042647a8","order_source_id":214828653,"gift_message":null},{"item_name":"CharBlend Hickory Pellets","sku":"40charhick","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"656.0","quantity":1,"total_excluding_tax":"45.00","price_excluding_tax":"0.00","unit_price":"45.00","ext_line_item_id":null,"ext_product_id":"82522247","product_options":{"Weight":"40 Pounds (2x20 Pound Bags)","Add Smokin Wedgie Pellet Smoker":[],"Add Handy Camel Bag Clip":[],"Add Gourmet Duck Fat Spray Can(s) Here (7 Ounce)":[],"Add Smokin Wedgie Leg Kit for Flat Bottom Smokers":[],"BBQ Bottle Opener":[]},"uuid":"c9cf24b6-7a0e-4d35-99ae-0a7d53a1b312","order_source_id":214828653,"gift_message":null},{"item_name":"100% Hickory Pellets","sku":"40100hickory","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"656.0","quantity":1,"total_excluding_tax":"45.00","price_excluding_tax":"0.00","unit_price":"45.00","ext_line_item_id":null,"ext_product_id":"82522230","product_options":{"Weight":"40 Pounds (2x20 Pound Bags)","Add a Flavor Magnet and never forget what's in your hopper":[],"Add Smokin Wedgie Pellet Smoker":[],"Add Handy Camel Bag Clip":[],"Add Gourmet Duck Fat Spray Can(s) Here (7 Ounce)":[],"Add Smokin Wedgie Leg Kit for Flat Bottom Smokers":[],"Add BBQ Bottle Opener":[]},"uuid":"41a0c7da-cf14-46fe-9b20-008dd3975d9a","order_source_id":214828653,"gift_message":null},{"item_name":"100% Pecan Pellets","sku":"40100pecan","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"656.0","quantity":1,"total_excluding_tax":"52.00","price_excluding_tax":"0.00","unit_price":"52.00","ext_line_item_id":null,"ext_product_id":"82522241","product_options":{"Weight":"40 Pounds (2x20 Pound Bags)","Add Smokin Wedgie Pellet Smoker":[],"Add  Handy Camel Bag Clip":[],"Add Gourmet Duck Fat Spray Can(s) Here (7 Ounce)":[],"Add Smokin Wedgie Leg Kit for Flat Bottom Smokers":[],"BBQ Bottle Opener":[]},"uuid":"badf0c8d-f5d9-4e2f-9554-75dca2b3988c","order_source_id":214828653,"gift_message":null},{"item_name":"100% Apple Pellets","sku":"40100apple","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"656.0","quantity":1,"total_excluding_tax":"52.00","price_excluding_tax":"0.00","unit_price":"52.00","ext_line_item_id":null,"ext_product_id":"82522214","product_options":{"Weight":"40 Pounds (2x20 Pound Bags)","Add Smokin Wedgie Pellet Smoker":[],"Add Handy Camel Bag Clip":[],"Add Gourmet Duck Fat Spray Can(s) Here (7 Ounce)":[],"Add Smokin Wedgie Leg Kit for Flat Bottom Smokers":[],"Add BBQ Bottle Opener":[]},"uuid":"55783d0f-dbef-4cd7-8eff-7ecbaf79bd3b","order_source_id":214828653,"gift_message":null}],"original_order":{"id":205457833,"customer_id":33773,"store_id":70642,"order_detail_id":207530633,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"3200.0","total_quantity":5,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-26T20:31:22Z","updated_at":"2017-12-29T04:30:58Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_shipment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":null,"line_item_sku":null,"address_kind":"R","recipient_last_name":"martin","recipient_requested_service":"free shipping - no po boxes or apo","gift":false,"prime_order_id":205457833,"state":"PA","owner_id":37098,"denormalized_ordered_at":"2017-12-26T21:25:12Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"3933","packing_slip_generated":null,"denormalized_ext_order_reference_id":"3933","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"276833075f862f916ca417ff8ccb9564","shipments":[{"id":222113933,"tracking_number":"789122310630","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":1052,"ship_date":"2017-12-28"},{"id":222113793,"tracking_number":"789122308618","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":1854,"ship_date":"2017-12-28"},{"id":222113603,"tracking_number":"789122308607","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":1854,"ship_date":"2017-12-28"},{"id":222100313,"tracking_number":"789121981827","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":1854,"ship_date":"2017-12-28"}],"updated_at":"2017-12-29T04:30:58Z","internal_notes":"","meta_data":null,"prime_order_id":205457833,"is_prime":null,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(4) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(222113933)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(6) "3200.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(1052)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(12) "789122310630"
    }
    [1]=>
    array(7) {
      ["se_shipment_id"]=>
      int(222113793)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(6) "3200.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(1854)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(12) "789122308618"
    }
    [2]=>
    array(7) {
      ["se_shipment_id"]=>
      int(222113603)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(6) "3200.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(1854)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(12) "789122308607"
    }
    [3]=>
    array(7) {
      ["se_shipment_id"]=>
      int(222100313)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(6) "3200.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(1854)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(12) "789121981827"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7330

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7013"
    ["order_id"]=>
    string(4) "7330"
    ["se_shipment_id"]=>
    string(9) "222100313"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1854"
    ["shipment_weight_ounces"]=>
    string(7) "3200.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789121981827"
    ["tracking_status"]=>
    string(9) "DELIVERED"
    ["tracking_status_code"]=>
    string(2) "DL"
    ["tracking_status_description"]=>
    string(9) "Delivered"
    ["estimated_delivery_time"]=>
    string(19) "2017-12-29 00:00:00"
    ["actual_delivery_time"]=>
    string(19) "2017-12-29 20:56:05"
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:14"
  }
}


shipmentDBRows:
array(1) {
  [222100313]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7013"
    ["order_id"]=>
    string(4) "7330"
    ["se_shipment_id"]=>
    string(9) "222100313"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1854"
    ["shipment_weight_ounces"]=>
    string(7) "3200.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789121981827"
    ["tracking_status"]=>
    string(9) "DELIVERED"
    ["tracking_status_code"]=>
    string(2) "DL"
    ["tracking_status_description"]=>
    string(9) "Delivered"
    ["estimated_delivery_time"]=>
    string(19) "2017-12-29 00:00:00"
    ["actual_delivery_time"]=>
    string(19) "2017-12-29 20:56:05"
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:14"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(222100313)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(6) "3200.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(1854)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789121981827"
  }
}

Shipment info shipping easy shipment ID #222100313

From API:
array(7) {
  ["se_shipment_id"]=>
  int(222100313)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(6) "3200.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(1854)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789121981827"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7013"
  ["order_id"]=>
  string(4) "7330"
  ["se_shipment_id"]=>
  string(9) "222100313"
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  string(4) "1854"
  ["shipment_weight_ounces"]=>
  string(7) "3200.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789121981827"
  ["tracking_status"]=>
  string(9) "DELIVERED"
  ["tracking_status_code"]=>
  string(2) "DL"
  ["tracking_status_description"]=>
  string(9) "Delivered"
  ["estimated_delivery_time"]=>
  string(19) "2017-12-29 00:00:00"
  ["actual_delivery_time"]=>
  string(19) "2017-12-29 20:56:05"
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:14"
}



Shipment info for shipping easy shipment ID #222100313 is same between both arrays

*** Order info:
Array
(
    [id] => 205427703
    [external_order_identifier] => 114-5904512-8619437
    [ext_order_reference_id] => 114-5904512-8619437
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-26T18:41:21Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 13.85
    [total_excluding_tax] => 13.85
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 13.85
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Travis Muhler
    [billing_first_name] => travis
    [billing_last_name] => muhler
    [billing_address] => 371 ROSEBUD RUN
    [billing_address2] => 
    [billing_city] => AYLETT
    [billing_state] => VA
    [billing_country] => US
    [billing_postal_code] => 23009-3141
    [billing_phone_number] => 240-437-8778
    [billing_email] => mphz7nc10g1f9w8@marketplace.amazon.com
    [buyer_email] => mphz7nc10g1f9w8@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Travis
                    [last_name] => Muhler
                    [address] => 371 ROSEBUD RUN
                    [address2] => 
                    [address3] => 
                    [city] => AYLETT
                    [residential] => 1
                    [state] => VA
                    [province] => 
                    [country] => United States
                    [postal_code] => 23009
                    [postal_code_plus_4] => 3141
                    [phone_number] => 240-437-8778
                    [email] => mphz7nc10g1f9w8@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => Standard
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Cornhusker Kitchen's Duck Fat Cooking Oil Spray 7 oz (New)
                                    [sku] => duckfat-1
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 12.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 13.85
                                    [unit_price] => 13.85
                                    [ext_line_item_id] => 09324666424170
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => f6c9829f-d97c-423b-abe7-bf15ed580a41
                                    [order_source_id] => 214795403
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 205427703
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 207500483
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 12.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-26T20:06:50Z
                            [updated_at] => 2017-12-29T04:41:12Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => cornhusker kitchen's duck fat cooking oil spray 7 oz (new)
                            [line_item_sku] => duckfat-1
                            [address_kind] => R
                            [recipient_last_name] => muhler
                            [recipient_requested_service] => standard
                            [gift] => 
                            [prime_order_id] => 205427703
                            [state] => VA
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-26T18:41:21Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 114-5904512-8619437
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 114-5904512-8619437
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 222099553
                    [tracking_number] => 9400110298370314521965
                    [carrier_key] => USPS
                    [carrier_service_key] => First
                    [shipment_cost] => 374
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-29T04:41:12Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 205427703
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for mphz7nc10g1f9w8@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 9945

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(6) "Travis"
  ["customer_last_name"]=>
  string(6) "Muhler"
  ["customer_email"]=>
  string(38) "mphz7nc10g1f9w8@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(13) "Travis Muhler"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(15) "371 ROSEBUD RUN"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(6) "AYLETT"
    ["address_state"]=>
    string(2) "VA"
    ["address_zip"]=>
    string(10) "23009-3141"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9945"
  ["ordered_time"]=>
  string(19) "2017-12-26 18:41:21"
  ["se_order_id"]=>
  int(205427703)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "114-5904512-8619437"
  ["order_weight_ounces"]=>
  string(4) "12.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4019) "{"id":205427703,"external_order_identifier":"114-5904512-8619437","ext_order_reference_id":"114-5904512-8619437","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-26T18:41:21Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"13.85","total_excluding_tax":"13.85","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"13.85","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Travis Muhler","billing_first_name":"travis","billing_last_name":"muhler","billing_address":"371 ROSEBUD RUN","billing_address2":null,"billing_city":"AYLETT","billing_state":"VA","billing_country":"US","billing_postal_code":"23009-3141","billing_phone_number":"240-437-8778","billing_email":"mphz7nc10g1f9w8@marketplace.amazon.com","buyer_email":"mphz7nc10g1f9w8@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Travis","last_name":"Muhler","address":"371 ROSEBUD RUN","address2":null,"address3":null,"city":"AYLETT","residential":true,"state":"VA","province":null,"country":"United States","postal_code":"23009","postal_code_plus_4":"3141","phone_number":"240-437-8778","email":"mphz7nc10g1f9w8@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"Standard","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Cornhusker Kitchen's Duck Fat Cooking Oil Spray 7 oz (New)","sku":"duckfat-1","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"12.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"13.85","unit_price":"13.85","ext_line_item_id":"09324666424170","ext_product_id":null,"product_options":null,"uuid":"f6c9829f-d97c-423b-abe7-bf15ed580a41","order_source_id":214795403,"gift_message":null}],"original_order":{"id":205427703,"customer_id":33773,"store_id":70647,"order_detail_id":207500483,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"12.0","total_quantity":1,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-26T20:06:50Z","updated_at":"2017-12-29T04:41:12Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"cornhusker kitchen's duck fat cooking oil spray 7 oz (new)","line_item_sku":"duckfat-1","address_kind":"R","recipient_last_name":"muhler","recipient_requested_service":"standard","gift":null,"prime_order_id":205427703,"state":"VA","owner_id":37098,"denormalized_ordered_at":"2017-12-26T18:41:21Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"114-5904512-8619437","packing_slip_generated":null,"denormalized_ext_order_reference_id":"114-5904512-8619437","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":222099553,"tracking_number":"9400110298370314521965","carrier_key":"USPS","carrier_service_key":"First","shipment_cost":374,"ship_date":"2017-12-28"}],"updated_at":"2017-12-29T04:41:12Z","internal_notes":"","meta_data":null,"prime_order_id":205427703,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(222099553)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(4) "12.0"
      ["carrier_service_key"]=>
      string(5) "First"
      ["shipment_cost"]=>
      int(374)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(22) "9400110298370314521965"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7327

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "6985"
    ["order_id"]=>
    string(4) "7327"
    ["se_shipment_id"]=>
    string(9) "222099553"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(5) "First"
    ["shipment_cost"]=>
    string(3) "374"
    ["shipment_weight_ounces"]=>
    string(5) "12.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9400110298370314521965"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(45) "Arrived at USPS Regional Destination Facility"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:36"
  }
}


shipmentDBRows:
array(1) {
  [222099553]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "6985"
    ["order_id"]=>
    string(4) "7327"
    ["se_shipment_id"]=>
    string(9) "222099553"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(5) "First"
    ["shipment_cost"]=>
    string(3) "374"
    ["shipment_weight_ounces"]=>
    string(5) "12.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9400110298370314521965"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(45) "Arrived at USPS Regional Destination Facility"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:36"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(222099553)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(4) "12.0"
    ["carrier_service_key"]=>
    string(5) "First"
    ["shipment_cost"]=>
    int(374)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9400110298370314521965"
  }
}

Shipment info shipping easy shipment ID #222099553

From API:
array(7) {
  ["se_shipment_id"]=>
  int(222099553)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(4) "12.0"
  ["carrier_service_key"]=>
  string(5) "First"
  ["shipment_cost"]=>
  int(374)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9400110298370314521965"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "6985"
  ["order_id"]=>
  string(4) "7327"
  ["se_shipment_id"]=>
  string(9) "222099553"
  ["carrier_key"]=>
  string(4) "USPS"
  ["carrier_service_key"]=>
  string(5) "First"
  ["shipment_cost"]=>
  string(3) "374"
  ["shipment_weight_ounces"]=>
  string(5) "12.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9400110298370314521965"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  string(45) "Arrived at USPS Regional Destination Facility"
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:36"
}



Shipment info for shipping easy shipment ID #222099553 is same between both arrays

*** Order info:
Array
(
    [id] => 205692833
    [external_order_identifier] => 114-5102560-5510657
    [ext_order_reference_id] => 114-5102560-5510657
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-26T23:56:21Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 19.99
    [total_excluding_tax] => 19.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 19.99
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Julio Robaina
    [billing_first_name] => Raiza
    [billing_last_name] => Villacis-Robaina
    [billing_address] => 550 ENCLAVE CIR W
    [billing_address2] => 
    [billing_city] => PEMBROKE PINES
    [billing_state] => FL
    [billing_country] => US
    [billing_postal_code] => 33027-1200
    [billing_phone_number] => 3053459238
    [billing_email] => kf5qxtv790gryhm@marketplace.amazon.com
    [buyer_email] => kf5qxtv790gryhm@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Julio
                    [last_name] => Robaina
                    [address] => 550 ENCLAVE CIR W
                    [address2] => 
                    [address3] => 
                    [city] => PEMBROKE PINES
                    [residential] => 1
                    [state] => FL
                    [province] => 
                    [country] => United States
                    [postal_code] => 33027
                    [postal_code_plus_4] => 1200
                    [phone_number] => 3053459238
                    [email] => kf5qxtv790gryhm@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => Standard
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => World's Best Fire Starter - Wood Stove, Pellet Stove, BBQ (New)
                                    [sku] => firestarter1fbb
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 12.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 19.99
                                    [unit_price] => 19.99
                                    [ext_line_item_id] => 52857049152586
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 2ed613af-cae2-44a3-a9c5-0575a11eb2e9
                                    [order_source_id] => 215084843
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 205692833
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 207768793
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 12.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 7
                            [created_at] => 2017-12-27T01:06:47Z
                            [updated_at] => 2017-12-29T04:41:12Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => world's best fire starter - wood stove, pellet stove, bbq (new)
                            [line_item_sku] => firestarter1fbb
                            [address_kind] => R
                            [recipient_last_name] => robaina
                            [recipient_requested_service] => standard
                            [gift] => 
                            [prime_order_id] => 205692833
                            [state] => FL
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-26T23:56:21Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 114-5102560-5510657
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 114-5102560-5510657
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 222099563
                    [tracking_number] => 9400110298370314521927
                    [carrier_key] => USPS
                    [carrier_service_key] => First
                    [shipment_cost] => 374
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-29T04:41:12Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 205692833
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for kf5qxtv790gryhm@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 9958

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(5) "Julio"
  ["customer_last_name"]=>
  string(7) "Robaina"
  ["customer_email"]=>
  string(38) "kf5qxtv790gryhm@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(13) "Julio Robaina"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(17) "550 ENCLAVE CIR W"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(14) "PEMBROKE PINES"
    ["address_state"]=>
    string(2) "FL"
    ["address_zip"]=>
    string(10) "33027-1200"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9958"
  ["ordered_time"]=>
  string(19) "2017-12-26 23:56:21"
  ["se_order_id"]=>
  int(205692833)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "114-5102560-5510657"
  ["order_weight_ounces"]=>
  string(4) "12.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4067) "{"id":205692833,"external_order_identifier":"114-5102560-5510657","ext_order_reference_id":"114-5102560-5510657","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-26T23:56:21Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"19.99","total_excluding_tax":"19.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"19.99","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Julio Robaina","billing_first_name":"Raiza","billing_last_name":"Villacis-Robaina","billing_address":"550 ENCLAVE CIR W","billing_address2":null,"billing_city":"PEMBROKE PINES","billing_state":"FL","billing_country":"US","billing_postal_code":"33027-1200","billing_phone_number":"3053459238","billing_email":"kf5qxtv790gryhm@marketplace.amazon.com","buyer_email":"kf5qxtv790gryhm@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Julio","last_name":"Robaina","address":"550 ENCLAVE CIR W","address2":null,"address3":null,"city":"PEMBROKE PINES","residential":true,"state":"FL","province":null,"country":"United States","postal_code":"33027","postal_code_plus_4":"1200","phone_number":"3053459238","email":"kf5qxtv790gryhm@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"Standard","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"World's Best Fire Starter - Wood Stove, Pellet Stove, BBQ (New)","sku":"firestarter1fbb","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"12.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"19.99","unit_price":"19.99","ext_line_item_id":"52857049152586","ext_product_id":null,"product_options":null,"uuid":"2ed613af-cae2-44a3-a9c5-0575a11eb2e9","order_source_id":215084843,"gift_message":null}],"original_order":{"id":205692833,"customer_id":33773,"store_id":70647,"order_detail_id":207768793,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"12.0","total_quantity":1,"is_international":false,"usps_shipping_zone":7,"created_at":"2017-12-27T01:06:47Z","updated_at":"2017-12-29T04:41:12Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"world's best fire starter - wood stove, pellet stove, bbq (new)","line_item_sku":"firestarter1fbb","address_kind":"R","recipient_last_name":"robaina","recipient_requested_service":"standard","gift":null,"prime_order_id":205692833,"state":"FL","owner_id":37098,"denormalized_ordered_at":"2017-12-26T23:56:21Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"114-5102560-5510657","packing_slip_generated":null,"denormalized_ext_order_reference_id":"114-5102560-5510657","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":222099563,"tracking_number":"9400110298370314521927","carrier_key":"USPS","carrier_service_key":"First","shipment_cost":374,"ship_date":"2017-12-28"}],"updated_at":"2017-12-29T04:41:12Z","internal_notes":"","meta_data":null,"prime_order_id":205692833,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(222099563)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(4) "12.0"
      ["carrier_service_key"]=>
      string(5) "First"
      ["shipment_cost"]=>
      int(374)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(22) "9400110298370314521927"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7342

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "6983"
    ["order_id"]=>
    string(4) "7342"
    ["se_shipment_id"]=>
    string(9) "222099563"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(5) "First"
    ["shipment_cost"]=>
    string(3) "374"
    ["shipment_weight_ounces"]=>
    string(5) "12.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9400110298370314521927"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(14) "Arrived at Hub"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:35"
  }
}


shipmentDBRows:
array(1) {
  [222099563]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "6983"
    ["order_id"]=>
    string(4) "7342"
    ["se_shipment_id"]=>
    string(9) "222099563"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(5) "First"
    ["shipment_cost"]=>
    string(3) "374"
    ["shipment_weight_ounces"]=>
    string(5) "12.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9400110298370314521927"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(14) "Arrived at Hub"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:35"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(222099563)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(4) "12.0"
    ["carrier_service_key"]=>
    string(5) "First"
    ["shipment_cost"]=>
    int(374)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9400110298370314521927"
  }
}

Shipment info shipping easy shipment ID #222099563

From API:
array(7) {
  ["se_shipment_id"]=>
  int(222099563)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(4) "12.0"
  ["carrier_service_key"]=>
  string(5) "First"
  ["shipment_cost"]=>
  int(374)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9400110298370314521927"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "6983"
  ["order_id"]=>
  string(4) "7342"
  ["se_shipment_id"]=>
  string(9) "222099563"
  ["carrier_key"]=>
  string(4) "USPS"
  ["carrier_service_key"]=>
  string(5) "First"
  ["shipment_cost"]=>
  string(3) "374"
  ["shipment_weight_ounces"]=>
  string(5) "12.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9400110298370314521927"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  string(14) "Arrived at Hub"
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:35"
}



Shipment info for shipping easy shipment ID #222099563 is same between both arrays

*** Order info:
Array
(
    [id] => 205007453
    [external_order_identifier] => 112-1352668-0907442
    [ext_order_reference_id] => 112-1352668-0907442
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-26T10:56:18Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 13.85
    [total_excluding_tax] => 13.85
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 13.85
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => William Ray
    [billing_first_name] => shireen
    [billing_last_name] => RAY
    [billing_address] => 3919 S 74TH WEST AVE
    [billing_address2] => 
    [billing_city] => TULSA
    [billing_state] => OK
    [billing_country] => US
    [billing_postal_code] => 74107-4855
    [billing_phone_number] => 918-408-6717
    [billing_email] => chkt1g645bj04zv@marketplace.amazon.com
    [buyer_email] => chkt1g645bj04zv@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => William
                    [last_name] => Ray
                    [address] => 3919 S 74TH WEST AVE
                    [address2] => 
                    [address3] => 
                    [city] => TULSA
                    [residential] => 1
                    [state] => OK
                    [province] => 
                    [country] => United States
                    [postal_code] => 74107
                    [postal_code_plus_4] => 4855
                    [phone_number] => 918-408-6717
                    [email] => chkt1g645bj04zv@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => Standard
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Cornhusker Kitchen's Duck Fat Cooking Oil Spray 7 oz (New)
                                    [sku] => duckfat-1
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 12.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 13.85
                                    [unit_price] => 13.85
                                    [ext_line_item_id] => 53540974986426
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 9da18321-01a8-456c-8d83-82fe2865162b
                                    [order_source_id] => 214345393
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 205007453
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 207073993
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 12.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-26T12:06:43Z
                            [updated_at] => 2017-12-29T04:41:12Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => cornhusker kitchen's duck fat cooking oil spray 7 oz (new)
                            [line_item_sku] => duckfat-1
                            [address_kind] => R
                            [recipient_last_name] => ray
                            [recipient_requested_service] => standard
                            [gift] => 
                            [prime_order_id] => 205007453
                            [state] => OK
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-26T10:56:18Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 112-1352668-0907442
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 112-1352668-0907442
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 222099583
                    [tracking_number] => 9400110298370314521934
                    [carrier_key] => USPS
                    [carrier_service_key] => First
                    [shipment_cost] => 374
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-29T04:41:12Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 205007453
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for chkt1g645bj04zv@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 9935

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(7) "William"
  ["customer_last_name"]=>
  string(3) "Ray"
  ["customer_email"]=>
  string(38) "chkt1g645bj04zv@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(11) "William Ray"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(20) "3919 S 74TH WEST AVE"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(5) "TULSA"
    ["address_state"]=>
    string(2) "OK"
    ["address_zip"]=>
    string(10) "74107-4855"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9935"
  ["ordered_time"]=>
  string(19) "2017-12-26 10:56:18"
  ["se_order_id"]=>
  int(205007453)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "112-1352668-0907442"
  ["order_weight_ounces"]=>
  string(4) "12.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4018) "{"id":205007453,"external_order_identifier":"112-1352668-0907442","ext_order_reference_id":"112-1352668-0907442","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-26T10:56:18Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"13.85","total_excluding_tax":"13.85","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"13.85","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"William Ray","billing_first_name":"shireen","billing_last_name":"RAY","billing_address":"3919 S 74TH WEST AVE","billing_address2":null,"billing_city":"TULSA","billing_state":"OK","billing_country":"US","billing_postal_code":"74107-4855","billing_phone_number":"918-408-6717","billing_email":"chkt1g645bj04zv@marketplace.amazon.com","buyer_email":"chkt1g645bj04zv@marketplace.amazon.com","recipients":[{"company":null,"first_name":"William","last_name":"Ray","address":"3919 S 74TH WEST AVE","address2":null,"address3":null,"city":"TULSA","residential":true,"state":"OK","province":null,"country":"United States","postal_code":"74107","postal_code_plus_4":"4855","phone_number":"918-408-6717","email":"chkt1g645bj04zv@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"Standard","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Cornhusker Kitchen's Duck Fat Cooking Oil Spray 7 oz (New)","sku":"duckfat-1","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"12.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"13.85","unit_price":"13.85","ext_line_item_id":"53540974986426","ext_product_id":null,"product_options":null,"uuid":"9da18321-01a8-456c-8d83-82fe2865162b","order_source_id":214345393,"gift_message":null}],"original_order":{"id":205007453,"customer_id":33773,"store_id":70647,"order_detail_id":207073993,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"12.0","total_quantity":1,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-26T12:06:43Z","updated_at":"2017-12-29T04:41:12Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"cornhusker kitchen's duck fat cooking oil spray 7 oz (new)","line_item_sku":"duckfat-1","address_kind":"R","recipient_last_name":"ray","recipient_requested_service":"standard","gift":null,"prime_order_id":205007453,"state":"OK","owner_id":37098,"denormalized_ordered_at":"2017-12-26T10:56:18Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"112-1352668-0907442","packing_slip_generated":null,"denormalized_ext_order_reference_id":"112-1352668-0907442","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":222099583,"tracking_number":"9400110298370314521934","carrier_key":"USPS","carrier_service_key":"First","shipment_cost":374,"ship_date":"2017-12-28"}],"updated_at":"2017-12-29T04:41:12Z","internal_notes":"","meta_data":null,"prime_order_id":205007453,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(222099583)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(4) "12.0"
      ["carrier_service_key"]=>
      string(5) "First"
      ["shipment_cost"]=>
      int(374)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(22) "9400110298370314521934"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7314

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "6981"
    ["order_id"]=>
    string(4) "7314"
    ["se_shipment_id"]=>
    string(9) "222099583"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(5) "First"
    ["shipment_cost"]=>
    string(3) "374"
    ["shipment_weight_ounces"]=>
    string(5) "12.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9400110298370314521934"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(25) "In Transit to Destination"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:35"
  }
}


shipmentDBRows:
array(1) {
  [222099583]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "6981"
    ["order_id"]=>
    string(4) "7314"
    ["se_shipment_id"]=>
    string(9) "222099583"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(5) "First"
    ["shipment_cost"]=>
    string(3) "374"
    ["shipment_weight_ounces"]=>
    string(5) "12.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9400110298370314521934"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(25) "In Transit to Destination"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:35"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(222099583)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(4) "12.0"
    ["carrier_service_key"]=>
    string(5) "First"
    ["shipment_cost"]=>
    int(374)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9400110298370314521934"
  }
}

Shipment info shipping easy shipment ID #222099583

From API:
array(7) {
  ["se_shipment_id"]=>
  int(222099583)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(4) "12.0"
  ["carrier_service_key"]=>
  string(5) "First"
  ["shipment_cost"]=>
  int(374)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9400110298370314521934"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "6981"
  ["order_id"]=>
  string(4) "7314"
  ["se_shipment_id"]=>
  string(9) "222099583"
  ["carrier_key"]=>
  string(4) "USPS"
  ["carrier_service_key"]=>
  string(5) "First"
  ["shipment_cost"]=>
  string(3) "374"
  ["shipment_weight_ounces"]=>
  string(5) "12.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9400110298370314521934"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  string(25) "In Transit to Destination"
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:35"
}



Shipment info for shipping easy shipment ID #222099583 is same between both arrays

*** Order info:
Array
(
    [id] => 205299693
    [external_order_identifier] => 114-1737237-3484216
    [ext_order_reference_id] => 114-1737237-3484216
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-26T16:44:18Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 29.99
    [total_excluding_tax] => 29.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 29.99
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Perry Pollock
    [billing_first_name] => Perry
    [billing_last_name] => Pollock
    [billing_address] => 2102 SW 52ND TER
    [billing_address2] => 
    [billing_city] => CAPE CORAL
    [billing_state] => FL
    [billing_country] => US
    [billing_postal_code] => 33914-6856
    [billing_phone_number] => 239-841-9608
    [billing_email] => yctxn4k7stgdqsk@marketplace.amazon.com
    [buyer_email] => yctxn4k7stgdqsk@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Perry
                    [last_name] => Pollock
                    [address] => 2102 SW 52ND TER
                    [address2] => 
                    [address3] => 
                    [city] => CAPE CORAL
                    [residential] => 1
                    [state] => FL
                    [province] => 
                    [country] => United States
                    [postal_code] => 33914
                    [postal_code_plus_4] => 6856
                    [phone_number] => 239-841-9608
                    [email] => yctxn4k7stgdqsk@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Pri (New)
                                    [sku] => 1poundvariety
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 112.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 29.99
                                    [unit_price] => 29.99
                                    [ext_line_item_id] => 14206313507850
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 0b2592fc-99ce-4e03-ad1a-fefc404f59a0
                                    [order_source_id] => 214659133
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 205299693
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 207368983
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 112.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 6
                            [created_at] => 2017-12-26T18:07:11Z
                            [updated_at] => 2017-12-29T04:41:12Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped pri (new)
                            [line_item_sku] => 1poundvariety
                            [address_kind] => R
                            [recipient_last_name] => pollock
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 205299693
                            [state] => FL
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-26T16:44:18Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 114-1737237-3484216
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 114-1737237-3484216
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 222099653
                    [tracking_number] => 9405510298370314522033
                    [carrier_key] => USPS
                    [carrier_service_key] => Priority
                    [shipment_cost] => 919
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-29T04:41:12Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 205299693
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for yctxn4k7stgdqsk@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 9943

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(5) "Perry"
  ["customer_last_name"]=>
  string(7) "Pollock"
  ["customer_email"]=>
  string(38) "yctxn4k7stgdqsk@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(13) "Perry Pollock"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(16) "2102 SW 52ND TER"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(10) "CAPE CORAL"
    ["address_state"]=>
    string(2) "FL"
    ["address_zip"]=>
    string(10) "33914-6856"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9943"
  ["ordered_time"]=>
  string(19) "2017-12-26 16:44:18"
  ["se_order_id"]=>
  int(205299693)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "114-1737237-3484216"
  ["order_weight_ounces"]=>
  string(5) "112.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4245) "{"id":205299693,"external_order_identifier":"114-1737237-3484216","ext_order_reference_id":"114-1737237-3484216","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-26T16:44:18Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"29.99","total_excluding_tax":"29.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"29.99","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Perry Pollock","billing_first_name":"Perry","billing_last_name":"Pollock","billing_address":"2102 SW 52ND TER","billing_address2":null,"billing_city":"CAPE CORAL","billing_state":"FL","billing_country":"US","billing_postal_code":"33914-6856","billing_phone_number":"239-841-9608","billing_email":"yctxn4k7stgdqsk@marketplace.amazon.com","buyer_email":"yctxn4k7stgdqsk@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Perry","last_name":"Pollock","address":"2102 SW 52ND TER","address2":null,"address3":null,"city":"CAPE CORAL","residential":true,"state":"FL","province":null,"country":"United States","postal_code":"33914","postal_code_plus_4":"6856","phone_number":"239-841-9608","email":"yctxn4k7stgdqsk@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Pri (New)","sku":"1poundvariety","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"112.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"29.99","unit_price":"29.99","ext_line_item_id":"14206313507850","ext_product_id":null,"product_options":null,"uuid":"0b2592fc-99ce-4e03-ad1a-fefc404f59a0","order_source_id":214659133,"gift_message":null}],"original_order":{"id":205299693,"customer_id":33773,"store_id":70647,"order_detail_id":207368983,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"112.0","total_quantity":1,"is_international":false,"usps_shipping_zone":6,"created_at":"2017-12-26T18:07:11Z","updated_at":"2017-12-29T04:41:12Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped pri (new)","line_item_sku":"1poundvariety","address_kind":"R","recipient_last_name":"pollock","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":205299693,"state":"FL","owner_id":37098,"denormalized_ordered_at":"2017-12-26T16:44:18Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"114-1737237-3484216","packing_slip_generated":null,"denormalized_ext_order_reference_id":"114-1737237-3484216","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":222099653,"tracking_number":"9405510298370314522033","carrier_key":"USPS","carrier_service_key":"Priority","shipment_cost":919,"ship_date":"2017-12-28"}],"updated_at":"2017-12-29T04:41:12Z","internal_notes":"","meta_data":null,"prime_order_id":205299693,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(222099653)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(5) "112.0"
      ["carrier_service_key"]=>
      string(8) "Priority"
      ["shipment_cost"]=>
      int(919)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(22) "9405510298370314522033"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7325

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "6986"
    ["order_id"]=>
    string(4) "7325"
    ["se_shipment_id"]=>
    string(9) "222099653"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(3) "919"
    ["shipment_weight_ounces"]=>
    string(6) "112.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370314522033"
    ["tracking_status"]=>
    string(9) "DELIVERED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(27) "Delivered, Front Door/Porch"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    string(19) "2017-12-30 14:51:00"
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:53"
  }
}


shipmentDBRows:
array(1) {
  [222099653]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "6986"
    ["order_id"]=>
    string(4) "7325"
    ["se_shipment_id"]=>
    string(9) "222099653"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(3) "919"
    ["shipment_weight_ounces"]=>
    string(6) "112.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370314522033"
    ["tracking_status"]=>
    string(9) "DELIVERED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(27) "Delivered, Front Door/Porch"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    string(19) "2017-12-30 14:51:00"
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:53"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(222099653)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(5) "112.0"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    int(919)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370314522033"
  }
}

Shipment info shipping easy shipment ID #222099653

From API:
array(7) {
  ["se_shipment_id"]=>
  int(222099653)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(5) "112.0"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  int(919)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9405510298370314522033"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "6986"
  ["order_id"]=>
  string(4) "7325"
  ["se_shipment_id"]=>
  string(9) "222099653"
  ["carrier_key"]=>
  string(4) "USPS"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  string(3) "919"
  ["shipment_weight_ounces"]=>
  string(6) "112.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9405510298370314522033"
  ["tracking_status"]=>
  string(9) "DELIVERED"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  string(27) "Delivered, Front Door/Porch"
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  string(19) "2017-12-30 14:51:00"
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:53"
}



Shipment info for shipping easy shipment ID #222099653 is same between both arrays

*** Order info:
Array
(
    [id] => 205487893
    [external_order_identifier] => 112-3670276-4392210
    [ext_order_reference_id] => 112-3670276-4392210
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-26T20:27:32Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 29.99
    [total_excluding_tax] => 29.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 29.99
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Cody Sutton
    [billing_first_name] => Cheri
    [billing_last_name] => Sutton
    [billing_address] => 401 N H ST
    [billing_address2] => 
    [billing_city] => YALE
    [billing_state] => OK
    [billing_country] => US
    [billing_postal_code] => 74085-4029
    [billing_phone_number] => 5805715789
    [billing_email] => td50qgmmfpfl8vh@marketplace.amazon.com
    [buyer_email] => td50qgmmfpfl8vh@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Cody
                    [last_name] => Sutton
                    [address] => 401 N H ST
                    [address2] => 
                    [address3] => 
                    [city] => YALE
                    [residential] => 1
                    [state] => OK
                    [province] => 
                    [country] => United States
                    [postal_code] => 74085
                    [postal_code_plus_4] => 4029
                    [phone_number] => 5805715789
                    [email] => td50qgmmfpfl8vh@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Priority Mail if Qty 1 (New)
                                    [sku] => 1poundvariety
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 112.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 29.99
                                    [unit_price] => 29.99
                                    [ext_line_item_id] => 67065877139066
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => f29633bb-b90b-424c-ba83-25d3a3e9b97d
                                    [order_source_id] => 214860713
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 205487893
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 207561053
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 112.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-26T21:06:51Z
                            [updated_at] => 2017-12-29T04:41:12Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped priority mail if qty 1 (new)
                            [line_item_sku] => 1poundvariety
                            [address_kind] => R
                            [recipient_last_name] => sutton
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 205487893
                            [state] => OK
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-26T20:27:32Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 112-3670276-4392210
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 112-3670276-4392210
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 222099663
                    [tracking_number] => 9405510298370314521999
                    [carrier_key] => USPS
                    [carrier_service_key] => Priority
                    [shipment_cost] => 815
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-29T04:41:12Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 205487893
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for td50qgmmfpfl8vh@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 9950

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(4) "Cody"
  ["customer_last_name"]=>
  string(6) "Sutton"
  ["customer_email"]=>
  string(38) "td50qgmmfpfl8vh@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(11) "Cody Sutton"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(10) "401 N H ST"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(4) "YALE"
    ["address_state"]=>
    string(2) "OK"
    ["address_zip"]=>
    string(10) "74085-4029"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9950"
  ["ordered_time"]=>
  string(19) "2017-12-26 20:27:32"
  ["se_order_id"]=>
  int(205487893)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "112-3670276-4392210"
  ["order_weight_ounces"]=>
  string(5) "112.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4249) "{"id":205487893,"external_order_identifier":"112-3670276-4392210","ext_order_reference_id":"112-3670276-4392210","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-26T20:27:32Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"29.99","total_excluding_tax":"29.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"29.99","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Cody Sutton","billing_first_name":"Cheri","billing_last_name":"Sutton","billing_address":"401 N H ST","billing_address2":null,"billing_city":"YALE","billing_state":"OK","billing_country":"US","billing_postal_code":"74085-4029","billing_phone_number":"5805715789","billing_email":"td50qgmmfpfl8vh@marketplace.amazon.com","buyer_email":"td50qgmmfpfl8vh@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Cody","last_name":"Sutton","address":"401 N H ST","address2":null,"address3":null,"city":"YALE","residential":true,"state":"OK","province":null,"country":"United States","postal_code":"74085","postal_code_plus_4":"4029","phone_number":"5805715789","email":"td50qgmmfpfl8vh@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Priority Mail if Qty 1 (New)","sku":"1poundvariety","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"112.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"29.99","unit_price":"29.99","ext_line_item_id":"67065877139066","ext_product_id":null,"product_options":null,"uuid":"f29633bb-b90b-424c-ba83-25d3a3e9b97d","order_source_id":214860713,"gift_message":null}],"original_order":{"id":205487893,"customer_id":33773,"store_id":70647,"order_detail_id":207561053,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"112.0","total_quantity":1,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-26T21:06:51Z","updated_at":"2017-12-29T04:41:12Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped priority mail if qty 1 (new)","line_item_sku":"1poundvariety","address_kind":"R","recipient_last_name":"sutton","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":205487893,"state":"OK","owner_id":37098,"denormalized_ordered_at":"2017-12-26T20:27:32Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"112-3670276-4392210","packing_slip_generated":null,"denormalized_ext_order_reference_id":"112-3670276-4392210","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":222099663,"tracking_number":"9405510298370314521999","carrier_key":"USPS","carrier_service_key":"Priority","shipment_cost":815,"ship_date":"2017-12-28"}],"updated_at":"2017-12-29T04:41:12Z","internal_notes":"","meta_data":null,"prime_order_id":205487893,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(222099663)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(5) "112.0"
      ["carrier_service_key"]=>
      string(8) "Priority"
      ["shipment_cost"]=>
      int(815)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(22) "9405510298370314521999"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7332

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "6989"
    ["order_id"]=>
    string(4) "7332"
    ["se_shipment_id"]=>
    string(9) "222099663"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(3) "815"
    ["shipment_weight_ounces"]=>
    string(6) "112.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370314521999"
    ["tracking_status"]=>
    string(9) "DELIVERED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(27) "Delivered, Front Door/Porch"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    string(19) "2017-12-30 11:54:00"
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:52"
  }
}


shipmentDBRows:
array(1) {
  [222099663]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "6989"
    ["order_id"]=>
    string(4) "7332"
    ["se_shipment_id"]=>
    string(9) "222099663"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(3) "815"
    ["shipment_weight_ounces"]=>
    string(6) "112.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370314521999"
    ["tracking_status"]=>
    string(9) "DELIVERED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(27) "Delivered, Front Door/Porch"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    string(19) "2017-12-30 11:54:00"
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:52"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(222099663)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(5) "112.0"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    int(815)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370314521999"
  }
}

Shipment info shipping easy shipment ID #222099663

From API:
array(7) {
  ["se_shipment_id"]=>
  int(222099663)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(5) "112.0"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  int(815)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9405510298370314521999"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "6989"
  ["order_id"]=>
  string(4) "7332"
  ["se_shipment_id"]=>
  string(9) "222099663"
  ["carrier_key"]=>
  string(4) "USPS"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  string(3) "815"
  ["shipment_weight_ounces"]=>
  string(6) "112.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9405510298370314521999"
  ["tracking_status"]=>
  string(9) "DELIVERED"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  string(27) "Delivered, Front Door/Porch"
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  string(19) "2017-12-30 11:54:00"
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:52"
}



Shipment info for shipping easy shipment ID #222099663 is same between both arrays

*** Order info:
Array
(
    [id] => 205832443
    [external_order_identifier] => 111-1938563-4521002
    [ext_order_reference_id] => 111-1938563-4521002
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-27T03:12:28Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 29.99
    [total_excluding_tax] => 29.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 29.99
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => steve sample
    [billing_first_name] => steven
    [billing_last_name] => d
    [billing_address] => 1023 CHERRY LN
    [billing_address2] => 
    [billing_city] => WEST MEMPHIS
    [billing_state] => AR
    [billing_country] => US
    [billing_postal_code] => 72301-2457
    [billing_phone_number] => 9013361729
    [billing_email] => v39dp7c55zyg3ss@marketplace.amazon.com
    [buyer_email] => v39dp7c55zyg3ss@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => steve
                    [last_name] => sample
                    [address] => 1023 CHERRY LN
                    [address2] => 
                    [address3] => 
                    [city] => WEST MEMPHIS
                    [residential] => 1
                    [state] => AR
                    [province] => 
                    [country] => United States
                    [postal_code] => 72301
                    [postal_code_plus_4] => 2457
                    [phone_number] => 9013361729
                    [email] => v39dp7c55zyg3ss@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Pri (New)
                                    [sku] => 1poundvariety
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 112.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 29.99
                                    [unit_price] => 29.99
                                    [ext_line_item_id] => 68325734140442
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 3be939d9-f251-4434-82ad-88ba5a249a49
                                    [order_source_id] => 215239563
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 205832443
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 207913003
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 112.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-27T04:07:39Z
                            [updated_at] => 2017-12-29T04:41:12Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped pri (new)
                            [line_item_sku] => 1poundvariety
                            [address_kind] => R
                            [recipient_last_name] => sample
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 205832443
                            [state] => AR
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-27T03:12:28Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 111-1938563-4521002
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 111-1938563-4521002
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 222099673
                    [tracking_number] => 9405510298370314522019
                    [carrier_key] => USPS
                    [carrier_service_key] => Priority
                    [shipment_cost] => 815
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-29T04:41:12Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 205832443
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for v39dp7c55zyg3ss@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 9964

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(5) "steve"
  ["customer_last_name"]=>
  string(6) "sample"
  ["customer_email"]=>
  string(38) "v39dp7c55zyg3ss@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(12) "steve sample"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(14) "1023 CHERRY LN"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(12) "WEST MEMPHIS"
    ["address_state"]=>
    string(2) "AR"
    ["address_zip"]=>
    string(10) "72301-2457"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9964"
  ["ordered_time"]=>
  string(19) "2017-12-27 03:12:28"
  ["se_order_id"]=>
  int(205832443)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "111-1938563-4521002"
  ["order_weight_ounces"]=>
  string(5) "112.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4233) "{"id":205832443,"external_order_identifier":"111-1938563-4521002","ext_order_reference_id":"111-1938563-4521002","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-27T03:12:28Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"29.99","total_excluding_tax":"29.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"29.99","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"steve sample","billing_first_name":"steven","billing_last_name":"d","billing_address":"1023 CHERRY LN","billing_address2":null,"billing_city":"WEST MEMPHIS","billing_state":"AR","billing_country":"US","billing_postal_code":"72301-2457","billing_phone_number":"9013361729","billing_email":"v39dp7c55zyg3ss@marketplace.amazon.com","buyer_email":"v39dp7c55zyg3ss@marketplace.amazon.com","recipients":[{"company":null,"first_name":"steve","last_name":"sample","address":"1023 CHERRY LN","address2":null,"address3":null,"city":"WEST MEMPHIS","residential":true,"state":"AR","province":null,"country":"United States","postal_code":"72301","postal_code_plus_4":"2457","phone_number":"9013361729","email":"v39dp7c55zyg3ss@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Pri (New)","sku":"1poundvariety","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"112.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"29.99","unit_price":"29.99","ext_line_item_id":"68325734140442","ext_product_id":null,"product_options":null,"uuid":"3be939d9-f251-4434-82ad-88ba5a249a49","order_source_id":215239563,"gift_message":null}],"original_order":{"id":205832443,"customer_id":33773,"store_id":70647,"order_detail_id":207913003,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"112.0","total_quantity":1,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-27T04:07:39Z","updated_at":"2017-12-29T04:41:12Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped pri (new)","line_item_sku":"1poundvariety","address_kind":"R","recipient_last_name":"sample","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":205832443,"state":"AR","owner_id":37098,"denormalized_ordered_at":"2017-12-27T03:12:28Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"111-1938563-4521002","packing_slip_generated":null,"denormalized_ext_order_reference_id":"111-1938563-4521002","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":222099673,"tracking_number":"9405510298370314522019","carrier_key":"USPS","carrier_service_key":"Priority","shipment_cost":815,"ship_date":"2017-12-28"}],"updated_at":"2017-12-29T04:41:12Z","internal_notes":"","meta_data":null,"prime_order_id":205832443,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(222099673)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(5) "112.0"
      ["carrier_service_key"]=>
      string(8) "Priority"
      ["shipment_cost"]=>
      int(815)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(22) "9405510298370314522019"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7350

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "6988"
    ["order_id"]=>
    string(4) "7350"
    ["se_shipment_id"]=>
    string(9) "222099673"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(3) "815"
    ["shipment_weight_ounces"]=>
    string(6) "112.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370314522019"
    ["tracking_status"]=>
    string(9) "DELIVERED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(27) "Delivered, Front Door/Porch"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    string(19) "2017-12-30 10:41:00"
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:53"
  }
}


shipmentDBRows:
array(1) {
  [222099673]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "6988"
    ["order_id"]=>
    string(4) "7350"
    ["se_shipment_id"]=>
    string(9) "222099673"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(3) "815"
    ["shipment_weight_ounces"]=>
    string(6) "112.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370314522019"
    ["tracking_status"]=>
    string(9) "DELIVERED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(27) "Delivered, Front Door/Porch"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    string(19) "2017-12-30 10:41:00"
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:53"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(222099673)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(5) "112.0"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    int(815)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370314522019"
  }
}

Shipment info shipping easy shipment ID #222099673

From API:
array(7) {
  ["se_shipment_id"]=>
  int(222099673)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(5) "112.0"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  int(815)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9405510298370314522019"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "6988"
  ["order_id"]=>
  string(4) "7350"
  ["se_shipment_id"]=>
  string(9) "222099673"
  ["carrier_key"]=>
  string(4) "USPS"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  string(3) "815"
  ["shipment_weight_ounces"]=>
  string(6) "112.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9405510298370314522019"
  ["tracking_status"]=>
  string(9) "DELIVERED"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  string(27) "Delivered, Front Door/Porch"
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  string(19) "2017-12-30 10:41:00"
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:53"
}



Shipment info for shipping easy shipment ID #222099673 is same between both arrays

*** Order info:
Array
(
    [id] => 205093063
    [external_order_identifier] => 111-4989004-6510622
    [ext_order_reference_id] => 111-4989004-6510622
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-26T14:00:47Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 29.99
    [total_excluding_tax] => 29.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 29.99
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Anthony DaCunha
    [billing_first_name] => Anthony
    [billing_last_name] => DaCunha
    [billing_address] => 400 EMERSON AVE
    [billing_address2] => 
    [billing_city] => HAMPSTEAD
    [billing_state] => NH
    [billing_country] => US
    [billing_postal_code] => 03841-2223
    [billing_phone_number] => 9788091286
    [billing_email] => xfsg1xtnb3wtv1z@marketplace.amazon.com
    [buyer_email] => xfsg1xtnb3wtv1z@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Anthony
                    [last_name] => DaCunha
                    [address] => 400 EMERSON AVE
                    [address2] => 
                    [address3] => 
                    [city] => HAMPSTEAD
                    [residential] => 1
                    [state] => NH
                    [province] => 
                    [country] => United States
                    [postal_code] => 03841
                    [postal_code_plus_4] => 2223
                    [phone_number] => 9788091286
                    [email] => xfsg1xtnb3wtv1z@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Priority Mail if Qty 1 (New)
                                    [sku] => 1poundvariety
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 112.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 29.99
                                    [unit_price] => 29.99
                                    [ext_line_item_id] => 55940193837858
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 12af5434-912d-4c3b-844b-b7fb1f152e84
                                    [order_source_id] => 214438623
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 205093063
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 207159873
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 112.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-26T15:06:58Z
                            [updated_at] => 2017-12-29T04:41:12Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped priority mail if qty 1 (new)
                            [line_item_sku] => 1poundvariety
                            [address_kind] => R
                            [recipient_last_name] => dacunha
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 205093063
                            [state] => NH
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-26T14:00:47Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 111-4989004-6510622
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 111-4989004-6510622
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 222099683
                    [tracking_number] => 9405510298370314522040
                    [carrier_key] => USPS
                    [carrier_service_key] => Priority
                    [shipment_cost] => 815
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-29T04:41:12Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 205093063
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for xfsg1xtnb3wtv1z@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 9938

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(7) "Anthony"
  ["customer_last_name"]=>
  string(7) "DaCunha"
  ["customer_email"]=>
  string(38) "xfsg1xtnb3wtv1z@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(15) "Anthony DaCunha"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(15) "400 EMERSON AVE"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(9) "HAMPSTEAD"
    ["address_state"]=>
    string(2) "NH"
    ["address_zip"]=>
    string(10) "03841-2223"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9938"
  ["ordered_time"]=>
  string(19) "2017-12-26 14:00:47"
  ["se_order_id"]=>
  int(205093063)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "111-4989004-6510622"
  ["order_weight_ounces"]=>
  string(5) "112.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4281) "{"id":205093063,"external_order_identifier":"111-4989004-6510622","ext_order_reference_id":"111-4989004-6510622","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-26T14:00:47Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"29.99","total_excluding_tax":"29.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"29.99","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Anthony DaCunha","billing_first_name":"Anthony","billing_last_name":"DaCunha","billing_address":"400 EMERSON AVE","billing_address2":null,"billing_city":"HAMPSTEAD","billing_state":"NH","billing_country":"US","billing_postal_code":"03841-2223","billing_phone_number":"9788091286","billing_email":"xfsg1xtnb3wtv1z@marketplace.amazon.com","buyer_email":"xfsg1xtnb3wtv1z@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Anthony","last_name":"DaCunha","address":"400 EMERSON AVE","address2":null,"address3":null,"city":"HAMPSTEAD","residential":true,"state":"NH","province":null,"country":"United States","postal_code":"03841","postal_code_plus_4":"2223","phone_number":"9788091286","email":"xfsg1xtnb3wtv1z@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Priority Mail if Qty 1 (New)","sku":"1poundvariety","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"112.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"29.99","unit_price":"29.99","ext_line_item_id":"55940193837858","ext_product_id":null,"product_options":null,"uuid":"12af5434-912d-4c3b-844b-b7fb1f152e84","order_source_id":214438623,"gift_message":null}],"original_order":{"id":205093063,"customer_id":33773,"store_id":70647,"order_detail_id":207159873,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"112.0","total_quantity":1,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-26T15:06:58Z","updated_at":"2017-12-29T04:41:12Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped priority mail if qty 1 (new)","line_item_sku":"1poundvariety","address_kind":"R","recipient_last_name":"dacunha","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":205093063,"state":"NH","owner_id":37098,"denormalized_ordered_at":"2017-12-26T14:00:47Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"111-4989004-6510622","packing_slip_generated":null,"denormalized_ext_order_reference_id":"111-4989004-6510622","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":222099683,"tracking_number":"9405510298370314522040","carrier_key":"USPS","carrier_service_key":"Priority","shipment_cost":815,"ship_date":"2017-12-28"}],"updated_at":"2017-12-29T04:41:12Z","internal_notes":"","meta_data":null,"prime_order_id":205093063,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(222099683)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(5) "112.0"
      ["carrier_service_key"]=>
      string(8) "Priority"
      ["shipment_cost"]=>
      int(815)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(22) "9405510298370314522040"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7318

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "6992"
    ["order_id"]=>
    string(4) "7318"
    ["se_shipment_id"]=>
    string(9) "222099683"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(3) "815"
    ["shipment_weight_ounces"]=>
    string(6) "112.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370314522040"
    ["tracking_status"]=>
    string(9) "DELIVERED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(24) "Delivered, In/At Mailbox"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    string(19) "2017-12-30 16:09:00"
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:53"
  }
}


shipmentDBRows:
array(1) {
  [222099683]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "6992"
    ["order_id"]=>
    string(4) "7318"
    ["se_shipment_id"]=>
    string(9) "222099683"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(3) "815"
    ["shipment_weight_ounces"]=>
    string(6) "112.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370314522040"
    ["tracking_status"]=>
    string(9) "DELIVERED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(24) "Delivered, In/At Mailbox"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    string(19) "2017-12-30 16:09:00"
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:53"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(222099683)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(5) "112.0"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    int(815)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370314522040"
  }
}

Shipment info shipping easy shipment ID #222099683

From API:
array(7) {
  ["se_shipment_id"]=>
  int(222099683)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(5) "112.0"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  int(815)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9405510298370314522040"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "6992"
  ["order_id"]=>
  string(4) "7318"
  ["se_shipment_id"]=>
  string(9) "222099683"
  ["carrier_key"]=>
  string(4) "USPS"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  string(3) "815"
  ["shipment_weight_ounces"]=>
  string(6) "112.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9405510298370314522040"
  ["tracking_status"]=>
  string(9) "DELIVERED"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  string(24) "Delivered, In/At Mailbox"
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  string(19) "2017-12-30 16:09:00"
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:53"
}



Shipment info for shipping easy shipment ID #222099683 is same between both arrays

*** Order info:
Array
(
    [id] => 205886463
    [external_order_identifier] => 113-1277917-0381015
    [ext_order_reference_id] => 113-1277917-0381015
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-27T04:39:53Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 29.99
    [total_excluding_tax] => 29.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 29.99
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Tommy Montoya
    [billing_first_name] => Tommy
    [billing_last_name] => 
    [billing_address] => 2052 AVENIDA DE MONTOYA
    [billing_address2] => 
    [billing_city] => SANTA FE
    [billing_state] => NM
    [billing_country] => US
    [billing_postal_code] => 87507-3299
    [billing_phone_number] => 505-471-1930
    [billing_email] => wkbhnvjnk9c30r4@marketplace.amazon.com
    [buyer_email] => wkbhnvjnk9c30r4@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Tommy
                    [last_name] => Montoya
                    [address] => 2052 AVENIDA DE MONTOYA
                    [address2] => 
                    [address3] => 
                    [city] => SANTA FE
                    [residential] => 1
                    [state] => NM
                    [province] => 
                    [country] => United States
                    [postal_code] => 87507
                    [postal_code_plus_4] => 3299
                    [phone_number] => 505-471-1930
                    [email] => wkbhnvjnk9c30r4@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Priority Mail if Qty 1 (New)
                                    [sku] => 1poundvariety
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 112.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 29.99
                                    [unit_price] => 29.99
                                    [ext_line_item_id] => 66261810875666
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => bcd49b32-422b-4aa5-a3b6-7552834714a0
                                    [order_source_id] => 215301303
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 205886463
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 207968783
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 112.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 6
                            [created_at] => 2017-12-27T05:35:41Z
                            [updated_at] => 2017-12-29T04:41:12Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped priority mail if qty 1 (new)
                            [line_item_sku] => 1poundvariety
                            [address_kind] => R
                            [recipient_last_name] => montoya
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 205886463
                            [state] => NM
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-27T04:39:53Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 113-1277917-0381015
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 113-1277917-0381015
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 222099693
                    [tracking_number] => 9405510298370314522026
                    [carrier_key] => USPS
                    [carrier_service_key] => Priority
                    [shipment_cost] => 919
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-29T04:41:12Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 205886463
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for wkbhnvjnk9c30r4@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 9966

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(5) "Tommy"
  ["customer_last_name"]=>
  string(7) "Montoya"
  ["customer_email"]=>
  string(38) "wkbhnvjnk9c30r4@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(13) "Tommy Montoya"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(23) "2052 AVENIDA DE MONTOYA"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(8) "SANTA FE"
    ["address_state"]=>
    string(2) "NM"
    ["address_zip"]=>
    string(10) "87507-3299"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9966"
  ["ordered_time"]=>
  string(19) "2017-12-27 04:39:53"
  ["se_order_id"]=>
  int(205886463)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "113-1277917-0381015"
  ["order_weight_ounces"]=>
  string(5) "112.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4288) "{"id":205886463,"external_order_identifier":"113-1277917-0381015","ext_order_reference_id":"113-1277917-0381015","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-27T04:39:53Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"29.99","total_excluding_tax":"29.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"29.99","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Tommy Montoya","billing_first_name":"Tommy","billing_last_name":null,"billing_address":"2052 AVENIDA DE MONTOYA","billing_address2":null,"billing_city":"SANTA FE","billing_state":"NM","billing_country":"US","billing_postal_code":"87507-3299","billing_phone_number":"505-471-1930","billing_email":"wkbhnvjnk9c30r4@marketplace.amazon.com","buyer_email":"wkbhnvjnk9c30r4@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Tommy","last_name":"Montoya","address":"2052 AVENIDA DE MONTOYA","address2":null,"address3":null,"city":"SANTA FE","residential":true,"state":"NM","province":null,"country":"United States","postal_code":"87507","postal_code_plus_4":"3299","phone_number":"505-471-1930","email":"wkbhnvjnk9c30r4@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Priority Mail if Qty 1 (New)","sku":"1poundvariety","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"112.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"29.99","unit_price":"29.99","ext_line_item_id":"66261810875666","ext_product_id":null,"product_options":null,"uuid":"bcd49b32-422b-4aa5-a3b6-7552834714a0","order_source_id":215301303,"gift_message":null}],"original_order":{"id":205886463,"customer_id":33773,"store_id":70647,"order_detail_id":207968783,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"112.0","total_quantity":1,"is_international":false,"usps_shipping_zone":6,"created_at":"2017-12-27T05:35:41Z","updated_at":"2017-12-29T04:41:12Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped priority mail if qty 1 (new)","line_item_sku":"1poundvariety","address_kind":"R","recipient_last_name":"montoya","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":205886463,"state":"NM","owner_id":37098,"denormalized_ordered_at":"2017-12-27T04:39:53Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"113-1277917-0381015","packing_slip_generated":null,"denormalized_ext_order_reference_id":"113-1277917-0381015","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":222099693,"tracking_number":"9405510298370314522026","carrier_key":"USPS","carrier_service_key":"Priority","shipment_cost":919,"ship_date":"2017-12-28"}],"updated_at":"2017-12-29T04:41:12Z","internal_notes":"","meta_data":null,"prime_order_id":205886463,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(222099693)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(5) "112.0"
      ["carrier_service_key"]=>
      string(8) "Priority"
      ["shipment_cost"]=>
      int(919)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(22) "9405510298370314522026"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7353

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "6991"
    ["order_id"]=>
    string(4) "7353"
    ["se_shipment_id"]=>
    string(9) "222099693"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(3) "919"
    ["shipment_weight_ounces"]=>
    string(6) "112.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370314522026"
    ["tracking_status"]=>
    string(9) "DELIVERED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(24) "Delivered, Parcel Locker"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    string(19) "2017-12-30 15:59:00"
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:53"
  }
}


shipmentDBRows:
array(1) {
  [222099693]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "6991"
    ["order_id"]=>
    string(4) "7353"
    ["se_shipment_id"]=>
    string(9) "222099693"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(3) "919"
    ["shipment_weight_ounces"]=>
    string(6) "112.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370314522026"
    ["tracking_status"]=>
    string(9) "DELIVERED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(24) "Delivered, Parcel Locker"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    string(19) "2017-12-30 15:59:00"
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:53"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(222099693)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(5) "112.0"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    int(919)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370314522026"
  }
}

Shipment info shipping easy shipment ID #222099693

From API:
array(7) {
  ["se_shipment_id"]=>
  int(222099693)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(5) "112.0"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  int(919)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9405510298370314522026"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "6991"
  ["order_id"]=>
  string(4) "7353"
  ["se_shipment_id"]=>
  string(9) "222099693"
  ["carrier_key"]=>
  string(4) "USPS"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  string(3) "919"
  ["shipment_weight_ounces"]=>
  string(6) "112.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9405510298370314522026"
  ["tracking_status"]=>
  string(9) "DELIVERED"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  string(24) "Delivered, Parcel Locker"
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  string(19) "2017-12-30 15:59:00"
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:53"
}



Shipment info for shipping easy shipment ID #222099693 is same between both arrays

*** Order info:
Array
(
    [id] => 205643993
    [external_order_identifier] => 111-2583040-7278629
    [ext_order_reference_id] => 111-2583040-7278629
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-26T23:16:19Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 32.16
    [total_excluding_tax] => 29.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 32.16
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 2.17
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Taylor Mackey
    [billing_first_name] => Taylor
    [billing_last_name] => 
    [billing_address] => 2857 MCCOURTNEY RD
    [billing_address2] => 
    [billing_city] => LINCOLN
    [billing_state] => CA
    [billing_country] => US
    [billing_postal_code] => 95648-9779
    [billing_phone_number] => 9162516350
    [billing_email] => 5c8qn0tfcnr7y9x@marketplace.amazon.com
    [buyer_email] => 5c8qn0tfcnr7y9x@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Taylor
                    [last_name] => Mackey
                    [address] => 2857 MCCOURTNEY RD
                    [address2] => 
                    [address3] => 
                    [city] => LINCOLN
                    [residential] => 1
                    [state] => CA
                    [province] => 
                    [country] => United States
                    [postal_code] => 95648
                    [postal_code_plus_4] => 9779
                    [phone_number] => 9162516350
                    [email] => 5c8qn0tfcnr7y9x@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Priority Mail if Qty 1 (New)
                                    [sku] => 1poundvariety
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 112.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 29.99
                                    [unit_price] => 29.99
                                    [ext_line_item_id] => 17941399941858
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => cef77a0f-59ea-4ede-bee1-5539332e29aa
                                    [order_source_id] => 215031183
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 205643993
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 207719633
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 112.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 7
                            [created_at] => 2017-12-27T00:06:40Z
                            [updated_at] => 2017-12-29T04:41:12Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped priority mail if qty 1 (new)
                            [line_item_sku] => 1poundvariety
                            [address_kind] => R
                            [recipient_last_name] => mackey
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 205643993
                            [state] => CA
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-26T23:16:19Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 111-2583040-7278629
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 111-2583040-7278629
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 222099703
                    [tracking_number] => 9405510298370314522057
                    [carrier_key] => USPS
                    [carrier_service_key] => Priority
                    [shipment_cost] => 999
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-29T04:41:12Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 205643993
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for 5c8qn0tfcnr7y9x@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 9956

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(6) "Taylor"
  ["customer_last_name"]=>
  string(6) "Mackey"
  ["customer_email"]=>
  string(38) "5c8qn0tfcnr7y9x@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(13) "Taylor Mackey"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(18) "2857 MCCOURTNEY RD"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(7) "LINCOLN"
    ["address_state"]=>
    string(2) "CA"
    ["address_zip"]=>
    string(10) "95648-9779"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9956"
  ["ordered_time"]=>
  string(19) "2017-12-26 23:16:19"
  ["se_order_id"]=>
  int(205643993)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "111-2583040-7278629"
  ["order_weight_ounces"]=>
  string(5) "112.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4272) "{"id":205643993,"external_order_identifier":"111-2583040-7278629","ext_order_reference_id":"111-2583040-7278629","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-26T23:16:19Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"32.16","total_excluding_tax":"29.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"32.16","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"2.17","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Taylor Mackey","billing_first_name":"Taylor","billing_last_name":null,"billing_address":"2857 MCCOURTNEY RD","billing_address2":null,"billing_city":"LINCOLN","billing_state":"CA","billing_country":"US","billing_postal_code":"95648-9779","billing_phone_number":"9162516350","billing_email":"5c8qn0tfcnr7y9x@marketplace.amazon.com","buyer_email":"5c8qn0tfcnr7y9x@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Taylor","last_name":"Mackey","address":"2857 MCCOURTNEY RD","address2":null,"address3":null,"city":"LINCOLN","residential":true,"state":"CA","province":null,"country":"United States","postal_code":"95648","postal_code_plus_4":"9779","phone_number":"9162516350","email":"5c8qn0tfcnr7y9x@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Priority Mail if Qty 1 (New)","sku":"1poundvariety","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"112.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"29.99","unit_price":"29.99","ext_line_item_id":"17941399941858","ext_product_id":null,"product_options":null,"uuid":"cef77a0f-59ea-4ede-bee1-5539332e29aa","order_source_id":215031183,"gift_message":null}],"original_order":{"id":205643993,"customer_id":33773,"store_id":70647,"order_detail_id":207719633,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"112.0","total_quantity":1,"is_international":false,"usps_shipping_zone":7,"created_at":"2017-12-27T00:06:40Z","updated_at":"2017-12-29T04:41:12Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped priority mail if qty 1 (new)","line_item_sku":"1poundvariety","address_kind":"R","recipient_last_name":"mackey","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":205643993,"state":"CA","owner_id":37098,"denormalized_ordered_at":"2017-12-26T23:16:19Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"111-2583040-7278629","packing_slip_generated":null,"denormalized_ext_order_reference_id":"111-2583040-7278629","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":222099703,"tracking_number":"9405510298370314522057","carrier_key":"USPS","carrier_service_key":"Priority","shipment_cost":999,"ship_date":"2017-12-28"}],"updated_at":"2017-12-29T04:41:12Z","internal_notes":"","meta_data":null,"prime_order_id":205643993,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(222099703)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(5) "112.0"
      ["carrier_service_key"]=>
      string(8) "Priority"
      ["shipment_cost"]=>
      int(999)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(22) "9405510298370314522057"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7339

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "6987"
    ["order_id"]=>
    string(4) "7339"
    ["se_shipment_id"]=>
    string(9) "222099703"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(3) "999"
    ["shipment_weight_ounces"]=>
    string(6) "112.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370314522057"
    ["tracking_status"]=>
    string(9) "DELIVERED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(46) "Delivered, Garage or Other Location at Address"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    string(19) "2017-12-30 16:48:00"
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:54"
  }
}


shipmentDBRows:
array(1) {
  [222099703]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "6987"
    ["order_id"]=>
    string(4) "7339"
    ["se_shipment_id"]=>
    string(9) "222099703"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(3) "999"
    ["shipment_weight_ounces"]=>
    string(6) "112.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370314522057"
    ["tracking_status"]=>
    string(9) "DELIVERED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(46) "Delivered, Garage or Other Location at Address"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    string(19) "2017-12-30 16:48:00"
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:54"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(222099703)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(5) "112.0"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    int(999)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370314522057"
  }
}

Shipment info shipping easy shipment ID #222099703

From API:
array(7) {
  ["se_shipment_id"]=>
  int(222099703)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(5) "112.0"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  int(999)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9405510298370314522057"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "6987"
  ["order_id"]=>
  string(4) "7339"
  ["se_shipment_id"]=>
  string(9) "222099703"
  ["carrier_key"]=>
  string(4) "USPS"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  string(3) "999"
  ["shipment_weight_ounces"]=>
  string(6) "112.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9405510298370314522057"
  ["tracking_status"]=>
  string(9) "DELIVERED"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  string(46) "Delivered, Garage or Other Location at Address"
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  string(19) "2017-12-30 16:48:00"
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:54"
}



Shipment info for shipping easy shipment ID #222099703 is same between both arrays

*** Order info:
Array
(
    [id] => 205299633
    [external_order_identifier] => 113-7705885-2635446
    [ext_order_reference_id] => 113-7705885-2635446
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-26T16:41:46Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 34.99
    [total_excluding_tax] => 34.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 34.99
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Terry A. Hurford
    [billing_first_name] => Terry
    [billing_last_name] => A.
    [billing_address] => 9701 E BURNETT ST
    [billing_address2] => 
    [billing_city] => TUCSON
    [billing_state] => AZ
    [billing_country] => US
    [billing_postal_code] => 85730-4427
    [billing_phone_number] => 520-296-9768
    [billing_email] => 6yd4fx0qw7hlz8p@marketplace.amazon.com
    [buyer_email] => 6yd4fx0qw7hlz8p@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Terry
                    [last_name] => A. Hurford
                    [address] => 9701 E BURNETT ST
                    [address2] => 
                    [address3] => 
                    [city] => TUCSON
                    [residential] => 1
                    [state] => AZ
                    [province] => 
                    [country] => United States
                    [postal_code] => 85730
                    [postal_code_plus_4] => 4427
                    [phone_number] => 520-296-9768
                    [email] => 6yd4fx0qw7hlz8p@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Smokin Wedgie Pellet Smoker (Stainless Steel) with Lumber Jack BBQ Smoker Pellets Assortment - 9 Pounds - Pick 3-Pound Packs (See Description for Flavors) - Shipped Priority Mail if Qty 1 (New)
                                    [sku] => sw-9lb-assort-9lb
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 144.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 34.99
                                    [unit_price] => 34.99
                                    [ext_line_item_id] => 06736966737578
                                    [ext_product_id] => 
                                    [product_options] => Array
                                        (
                                            [Select Bag # 1] => 
                                            [Color (Select Bag # 1)] => 
                                            [Font (Select Bag # 1)] => 
                                            [Select Bag # 2] => 
                                            [Color (Select Bag # 2)] => 
                                            [Font (Select Bag # 2)] => 
                                            [Select Bag # 3] => 
                                            [Color (Select Bag # 3)] => 
                                            [Font (Select Bag # 3)] => 
                                            [2nd Wedgie] => 
                                            [Color (2nd Wedgie)] => 
                                            [Font (2nd Wedgie)] => 
                                            [Wedgie Feet] => 
                                            [Color (Wedgie Feet)] => 
                                            [Font (Wedgie Feet)] => 
                                            [Duck Fat] => 
                                            [Color (Duck Fat)] => 
                                            [Font (Duck Fat)] => 
                                        )

                                    [uuid] => 4e61ad9f-a34d-43aa-bae0-dde66943f306
                                    [order_source_id] => 214659033
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 205299633
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 207368893
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 144.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 6
                            [created_at] => 2017-12-26T18:07:10Z
                            [updated_at] => 2017-12-29T04:41:12Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => smokin wedgie pellet smoker (stainless steel) with lumber jack bbq smoker pellets assortment - 9 pounds - pick 3-pound packs (see description for flavors) - shipped priority mail if qty 1 (new)
                            [line_item_sku] => sw-9lb-assort-9lb
                            [address_kind] => R
                            [recipient_last_name] => a. hurford
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 205299633
                            [state] => AZ
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-26T16:41:46Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 113-7705885-2635446
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 113-7705885-2635446
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 222099893
                    [tracking_number] => 9405510298370314523641
                    [carrier_key] => USPS
                    [carrier_service_key] => Priority
                    [shipment_cost] => 1205
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-29T04:41:12Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 205299633
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
            [0] => custom order
        )

)
sdsdsdArray
This record (for 6yd4fx0qw7hlz8p@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 9942

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(5) "Terry"
  ["customer_last_name"]=>
  string(10) "A. Hurford"
  ["customer_email"]=>
  string(38) "6yd4fx0qw7hlz8p@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(16) "Terry A. Hurford"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(17) "9701 E BURNETT ST"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(6) "TUCSON"
    ["address_state"]=>
    string(2) "AZ"
    ["address_zip"]=>
    string(10) "85730-4427"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9942"
  ["ordered_time"]=>
  string(19) "2017-12-26 16:41:46"
  ["se_order_id"]=>
  int(205299633)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "113-7705885-2635446"
  ["order_weight_ounces"]=>
  string(5) "144.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4784) "{"id":205299633,"external_order_identifier":"113-7705885-2635446","ext_order_reference_id":"113-7705885-2635446","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-26T16:41:46Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"34.99","total_excluding_tax":"34.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"34.99","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Terry A. Hurford","billing_first_name":"Terry","billing_last_name":"A.","billing_address":"9701 E BURNETT ST","billing_address2":null,"billing_city":"TUCSON","billing_state":"AZ","billing_country":"US","billing_postal_code":"85730-4427","billing_phone_number":"520-296-9768","billing_email":"6yd4fx0qw7hlz8p@marketplace.amazon.com","buyer_email":"6yd4fx0qw7hlz8p@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Terry","last_name":"A. Hurford","address":"9701 E BURNETT ST","address2":null,"address3":null,"city":"TUCSON","residential":true,"state":"AZ","province":null,"country":"United States","postal_code":"85730","postal_code_plus_4":"4427","phone_number":"520-296-9768","email":"6yd4fx0qw7hlz8p@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Smokin Wedgie Pellet Smoker (Stainless Steel) with Lumber Jack BBQ Smoker Pellets Assortment - 9 Pounds - Pick 3-Pound Packs (See Description for Flavors) - Shipped Priority Mail if Qty 1 (New)","sku":"sw-9lb-assort-9lb","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"144.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"34.99","unit_price":"34.99","ext_line_item_id":"06736966737578","ext_product_id":null,"product_options":{"Select Bag # 1":null,"Color (Select Bag # 1)":null,"Font (Select Bag # 1)":null,"Select Bag # 2":null,"Color (Select Bag # 2)":null,"Font (Select Bag # 2)":null,"Select Bag # 3":null,"Color (Select Bag # 3)":null,"Font (Select Bag # 3)":null,"2nd Wedgie":null,"Color (2nd Wedgie)":null,"Font (2nd Wedgie)":null,"Wedgie Feet":null,"Color (Wedgie Feet)":null,"Font (Wedgie Feet)":null,"Duck Fat":null,"Color (Duck Fat)":null,"Font (Duck Fat)":null},"uuid":"4e61ad9f-a34d-43aa-bae0-dde66943f306","order_source_id":214659033,"gift_message":null}],"original_order":{"id":205299633,"customer_id":33773,"store_id":70647,"order_detail_id":207368893,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"144.0","total_quantity":1,"is_international":false,"usps_shipping_zone":6,"created_at":"2017-12-26T18:07:10Z","updated_at":"2017-12-29T04:41:12Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"smokin wedgie pellet smoker (stainless steel) with lumber jack bbq smoker pellets assortment - 9 pounds - pick 3-pound packs (see description for flavors) - shipped priority mail if qty 1 (new)","line_item_sku":"sw-9lb-assort-9lb","address_kind":"R","recipient_last_name":"a. hurford","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":205299633,"state":"AZ","owner_id":37098,"denormalized_ordered_at":"2017-12-26T16:41:46Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"113-7705885-2635446","packing_slip_generated":null,"denormalized_ext_order_reference_id":"113-7705885-2635446","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":222099893,"tracking_number":"9405510298370314523641","carrier_key":"USPS","carrier_service_key":"Priority","shipment_cost":1205,"ship_date":"2017-12-28"}],"updated_at":"2017-12-29T04:41:12Z","internal_notes":"","meta_data":null,"prime_order_id":205299633,"is_prime":false,"split_from_order_id":null,"tags":["custom order"]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(222099893)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(5) "144.0"
      ["carrier_service_key"]=>
      string(8) "Priority"
      ["shipment_cost"]=>
      int(1205)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(22) "9405510298370314523641"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7324

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "6998"
    ["order_id"]=>
    string(4) "7324"
    ["se_shipment_id"]=>
    string(9) "222099893"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(4) "1205"
    ["shipment_weight_ounces"]=>
    string(6) "144.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370314523641"
    ["tracking_status"]=>
    string(9) "DELIVERED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(46) "Delivered, Garage or Other Location at Address"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    string(19) "2017-12-30 12:36:00"
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:55"
  }
}


shipmentDBRows:
array(1) {
  [222099893]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "6998"
    ["order_id"]=>
    string(4) "7324"
    ["se_shipment_id"]=>
    string(9) "222099893"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(4) "1205"
    ["shipment_weight_ounces"]=>
    string(6) "144.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370314523641"
    ["tracking_status"]=>
    string(9) "DELIVERED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(46) "Delivered, Garage or Other Location at Address"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    string(19) "2017-12-30 12:36:00"
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:55"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(222099893)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(5) "144.0"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    int(1205)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370314523641"
  }
}

Shipment info shipping easy shipment ID #222099893

From API:
array(7) {
  ["se_shipment_id"]=>
  int(222099893)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(5) "144.0"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  int(1205)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9405510298370314523641"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "6998"
  ["order_id"]=>
  string(4) "7324"
  ["se_shipment_id"]=>
  string(9) "222099893"
  ["carrier_key"]=>
  string(4) "USPS"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  string(4) "1205"
  ["shipment_weight_ounces"]=>
  string(6) "144.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9405510298370314523641"
  ["tracking_status"]=>
  string(9) "DELIVERED"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  string(46) "Delivered, Garage or Other Location at Address"
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  string(19) "2017-12-30 12:36:00"
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:55"
}



Shipment info for shipping easy shipment ID #222099893 is same between both arrays

*** Order info:
Array
(
    [id] => 205787943
    [external_order_identifier] => 111-2593902-6261855
    [ext_order_reference_id] => 111-2593902-6261855
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-27T02:23:26Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 21.98
    [total_excluding_tax] => 20.49
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 21.98
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 1.49
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Corey Charfauros
    [billing_first_name] => Corey
    [billing_last_name] => Charfauros
    [billing_address] => 7560 EUCALYPTUS HL
    [billing_address2] => 
    [billing_city] => LA MESA
    [billing_state] => CA
    [billing_country] => US
    [billing_postal_code] => 91942-8819
    [billing_phone_number] => 6194159393
    [billing_email] => yd0wbc24016yccs@marketplace.amazon.com
    [buyer_email] => yd0wbc24016yccs@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Corey
                    [last_name] => Charfauros
                    [address] => 7560 EUCALYPTUS HL
                    [address2] => 
                    [address3] => 
                    [city] => LA MESA
                    [residential] => 1
                    [state] => CA
                    [province] => 
                    [country] => United States
                    [postal_code] => 91942
                    [postal_code_plus_4] => 8819
                    [phone_number] => 6194159393
                    [email] => yd0wbc24016yccs@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack Grilling Pellets Oak Hickory Cherry OHC Blend (New)
                                    [sku] => 20ohccomp3
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 336.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 20.49
                                    [unit_price] => 20.49
                                    [ext_line_item_id] => 12861121359530
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 2281a4ea-1e77-409b-91ad-0056a57257cc
                                    [order_source_id] => 215189993
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 205787943
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 207866373
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 336.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 7
                            [created_at] => 2017-12-27T03:07:57Z
                            [updated_at] => 2017-12-29T04:41:12Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack grilling pellets oak hickory cherry ohc blend (new)
                            [line_item_sku] => 20ohccomp3
                            [address_kind] => R
                            [recipient_last_name] => charfauros
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 205787943
                            [state] => CA
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-27T02:23:26Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 111-2593902-6261855
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 111-2593902-6261855
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 222100023
                    [tracking_number] => 789121979687
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 1102
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-29T04:41:12Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 205787943
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for yd0wbc24016yccs@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 6467

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(5) "Corey"
  ["customer_last_name"]=>
  string(10) "Charfauros"
  ["customer_email"]=>
  string(38) "yd0wbc24016yccs@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(16) "Corey Charfauros"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(18) "7560 EUCALYPTUS HL"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(7) "LA MESA"
    ["address_state"]=>
    string(2) "CA"
    ["address_zip"]=>
    string(10) "91942-8819"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "6467"
  ["ordered_time"]=>
  string(19) "2017-12-27 02:23:26"
  ["se_order_id"]=>
  int(205787943)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "111-2593902-6261855"
  ["order_weight_ounces"]=>
  string(5) "336.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4055) "{"id":205787943,"external_order_identifier":"111-2593902-6261855","ext_order_reference_id":"111-2593902-6261855","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-27T02:23:26Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"21.98","total_excluding_tax":"20.49","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"21.98","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"1.49","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Corey Charfauros","billing_first_name":"Corey","billing_last_name":"Charfauros","billing_address":"7560 EUCALYPTUS HL","billing_address2":null,"billing_city":"LA MESA","billing_state":"CA","billing_country":"US","billing_postal_code":"91942-8819","billing_phone_number":"6194159393","billing_email":"yd0wbc24016yccs@marketplace.amazon.com","buyer_email":"yd0wbc24016yccs@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Corey","last_name":"Charfauros","address":"7560 EUCALYPTUS HL","address2":null,"address3":null,"city":"LA MESA","residential":true,"state":"CA","province":null,"country":"United States","postal_code":"91942","postal_code_plus_4":"8819","phone_number":"6194159393","email":"yd0wbc24016yccs@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack Grilling Pellets Oak Hickory Cherry OHC Blend (New)","sku":"20ohccomp3","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"336.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"20.49","unit_price":"20.49","ext_line_item_id":"12861121359530","ext_product_id":null,"product_options":null,"uuid":"2281a4ea-1e77-409b-91ad-0056a57257cc","order_source_id":215189993,"gift_message":null}],"original_order":{"id":205787943,"customer_id":33773,"store_id":70647,"order_detail_id":207866373,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"336.0","total_quantity":1,"is_international":false,"usps_shipping_zone":7,"created_at":"2017-12-27T03:07:57Z","updated_at":"2017-12-29T04:41:12Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack grilling pellets oak hickory cherry ohc blend (new)","line_item_sku":"20ohccomp3","address_kind":"R","recipient_last_name":"charfauros","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":205787943,"state":"CA","owner_id":37098,"denormalized_ordered_at":"2017-12-27T02:23:26Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"111-2593902-6261855","packing_slip_generated":null,"denormalized_ext_order_reference_id":"111-2593902-6261855","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":222100023,"tracking_number":"789121979687","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":1102,"ship_date":"2017-12-28"}],"updated_at":"2017-12-29T04:41:12Z","internal_notes":"","meta_data":null,"prime_order_id":205787943,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(222100023)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(5) "336.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(1102)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(12) "789121979687"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7346

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "6997"
    ["order_id"]=>
    string(4) "7346"
    ["se_shipment_id"]=>
    string(9) "222100023"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1102"
    ["shipment_weight_ounces"]=>
    string(6) "336.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789121979687"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "IT"
    ["tracking_status_description"]=>
    string(10) "In transit"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-03 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:13"
  }
}


shipmentDBRows:
array(1) {
  [222100023]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "6997"
    ["order_id"]=>
    string(4) "7346"
    ["se_shipment_id"]=>
    string(9) "222100023"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1102"
    ["shipment_weight_ounces"]=>
    string(6) "336.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789121979687"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "IT"
    ["tracking_status_description"]=>
    string(10) "In transit"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-03 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:13"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(222100023)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(5) "336.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(1102)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789121979687"
  }
}

Shipment info shipping easy shipment ID #222100023

From API:
array(7) {
  ["se_shipment_id"]=>
  int(222100023)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(5) "336.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(1102)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789121979687"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "6997"
  ["order_id"]=>
  string(4) "7346"
  ["se_shipment_id"]=>
  string(9) "222100023"
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  string(4) "1102"
  ["shipment_weight_ounces"]=>
  string(6) "336.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789121979687"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  string(2) "IT"
  ["tracking_status_description"]=>
  string(10) "In transit"
  ["estimated_delivery_time"]=>
  string(19) "2018-01-03 00:00:00"
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:13"
}



Shipment info for shipping easy shipment ID #222100023 is same between both arrays

*** Order info:
Array
(
    [id] => 205692943
    [external_order_identifier] => 114-0111246-0065047
    [ext_order_reference_id] => 114-0111246-0065047
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-27T00:05:03Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 19.73
    [total_excluding_tax] => 18.40
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 19.73
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 1.33
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Brandon Yakush
    [billing_first_name] => Brandon
    [billing_last_name] => A
    [billing_address] => 783 OXEN ST
    [billing_address2] => 
    [billing_city] => PASO ROBLES
    [billing_state] => CA
    [billing_country] => US
    [billing_postal_code] => 93446-4655
    [billing_phone_number] => 9092403478
    [billing_email] => yzgj7yvy9g07s00@marketplace.amazon.com
    [buyer_email] => yzgj7yvy9g07s00@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Brandon
                    [last_name] => Yakush
                    [address] => 783 OXEN ST
                    [address2] => 
                    [address3] => 
                    [city] => PASO ROBLES
                    [residential] => 1
                    [state] => CA
                    [province] => 
                    [country] => United States
                    [postal_code] => 93446
                    [postal_code_plus_4] => 4655
                    [phone_number] => 9092403478
                    [email] => yzgj7yvy9g07s00@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack 100% Hardwood Grilling Smoker Pellets, 100% Maple, 20 LB (New)
                                    [sku] => 20Maple100Comp
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 336.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 18.40
                                    [unit_price] => 18.40
                                    [ext_line_item_id] => 42587363368098
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 0f98cea5-ae07-4c01-992d-c79acb40dc02
                                    [order_source_id] => 215085033
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 205692943
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 207768963
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 336.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 7
                            [created_at] => 2017-12-27T01:06:48Z
                            [updated_at] => 2017-12-29T04:41:12Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack 100% hardwood grilling smoker pellets, 100% maple, 20 lb (new)
                            [line_item_sku] => 20maple100comp
                            [address_kind] => R
                            [recipient_last_name] => yakush
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 205692943
                            [state] => CA
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-27T00:05:03Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 114-0111246-0065047
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 114-0111246-0065047
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 222100033
                    [tracking_number] => 9405510298370314523467
                    [carrier_key] => USPS
                    [carrier_service_key] => Priority
                    [shipment_cost] => 1655
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-29T04:41:12Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 205692943
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for yzgj7yvy9g07s00@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 9959

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(7) "Brandon"
  ["customer_last_name"]=>
  string(6) "Yakush"
  ["customer_email"]=>
  string(38) "yzgj7yvy9g07s00@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(14) "Brandon Yakush"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(11) "783 OXEN ST"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(11) "PASO ROBLES"
    ["address_state"]=>
    string(2) "CA"
    ["address_zip"]=>
    string(10) "93446-4655"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9959"
  ["ordered_time"]=>
  string(19) "2017-12-27 00:05:03"
  ["se_order_id"]=>
  int(205692943)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "114-0111246-0065047"
  ["order_weight_ounces"]=>
  string(5) "336.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4069) "{"id":205692943,"external_order_identifier":"114-0111246-0065047","ext_order_reference_id":"114-0111246-0065047","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-27T00:05:03Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"19.73","total_excluding_tax":"18.40","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"19.73","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"1.33","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Brandon Yakush","billing_first_name":"Brandon","billing_last_name":"A","billing_address":"783 OXEN ST","billing_address2":null,"billing_city":"PASO ROBLES","billing_state":"CA","billing_country":"US","billing_postal_code":"93446-4655","billing_phone_number":"9092403478","billing_email":"yzgj7yvy9g07s00@marketplace.amazon.com","buyer_email":"yzgj7yvy9g07s00@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Brandon","last_name":"Yakush","address":"783 OXEN ST","address2":null,"address3":null,"city":"PASO ROBLES","residential":true,"state":"CA","province":null,"country":"United States","postal_code":"93446","postal_code_plus_4":"4655","phone_number":"9092403478","email":"yzgj7yvy9g07s00@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack 100% Hardwood Grilling Smoker Pellets, 100% Maple, 20 LB (New)","sku":"20Maple100Comp","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"336.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"18.40","unit_price":"18.40","ext_line_item_id":"42587363368098","ext_product_id":null,"product_options":null,"uuid":"0f98cea5-ae07-4c01-992d-c79acb40dc02","order_source_id":215085033,"gift_message":null}],"original_order":{"id":205692943,"customer_id":33773,"store_id":70647,"order_detail_id":207768963,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"336.0","total_quantity":1,"is_international":false,"usps_shipping_zone":7,"created_at":"2017-12-27T01:06:48Z","updated_at":"2017-12-29T04:41:12Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack 100% hardwood grilling smoker pellets, 100% maple, 20 lb (new)","line_item_sku":"20maple100comp","address_kind":"R","recipient_last_name":"yakush","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":205692943,"state":"CA","owner_id":37098,"denormalized_ordered_at":"2017-12-27T00:05:03Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"114-0111246-0065047","packing_slip_generated":null,"denormalized_ext_order_reference_id":"114-0111246-0065047","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":222100033,"tracking_number":"9405510298370314523467","carrier_key":"USPS","carrier_service_key":"Priority","shipment_cost":1655,"ship_date":"2017-12-28"}],"updated_at":"2017-12-29T04:41:12Z","internal_notes":"","meta_data":null,"prime_order_id":205692943,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(222100033)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(5) "336.0"
      ["carrier_service_key"]=>
      string(8) "Priority"
      ["shipment_cost"]=>
      int(1655)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(22) "9405510298370314523467"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7343

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "6996"
    ["order_id"]=>
    string(4) "7343"
    ["se_shipment_id"]=>
    string(9) "222100033"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(4) "1655"
    ["shipment_weight_ounces"]=>
    string(6) "336.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370314523467"
    ["tracking_status"]=>
    string(9) "DELIVERED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(27) "Delivered, Front Door/Porch"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    string(19) "2017-12-30 15:40:00"
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:55"
  }
}


shipmentDBRows:
array(1) {
  [222100033]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "6996"
    ["order_id"]=>
    string(4) "7343"
    ["se_shipment_id"]=>
    string(9) "222100033"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(4) "1655"
    ["shipment_weight_ounces"]=>
    string(6) "336.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370314523467"
    ["tracking_status"]=>
    string(9) "DELIVERED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(27) "Delivered, Front Door/Porch"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    string(19) "2017-12-30 15:40:00"
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:55"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(222100033)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(5) "336.0"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    int(1655)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370314523467"
  }
}

Shipment info shipping easy shipment ID #222100033

From API:
array(7) {
  ["se_shipment_id"]=>
  int(222100033)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(5) "336.0"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  int(1655)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9405510298370314523467"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "6996"
  ["order_id"]=>
  string(4) "7343"
  ["se_shipment_id"]=>
  string(9) "222100033"
  ["carrier_key"]=>
  string(4) "USPS"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  string(4) "1655"
  ["shipment_weight_ounces"]=>
  string(6) "336.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9405510298370314523467"
  ["tracking_status"]=>
  string(9) "DELIVERED"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  string(27) "Delivered, Front Door/Porch"
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  string(19) "2017-12-30 15:40:00"
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:55"
}



Shipment info for shipping easy shipment ID #222100033 is same between both arrays

*** Order info:
Array
(
    [id] => 205643913
    [external_order_identifier] => 111-0763846-6321828
    [ext_order_reference_id] => 111-0763846-6321828
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-26T21:42:20Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 19.73
    [total_excluding_tax] => 18.40
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 19.73
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 1.33
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Brett
    [billing_first_name] => B
    [billing_last_name] => 
    [billing_address] => BARKER
    [billing_address2] => 1134 PAUL AVE
    [billing_city] => CLOVIS
    [billing_state] => CA
    [billing_country] => US
    [billing_postal_code] => 93612-0429
    [billing_phone_number] => 5599403070
    [billing_email] => h3x5dy1v0p2h2v0@marketplace.amazon.com
    [buyer_email] => h3x5dy1v0p2h2v0@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Brett
                    [last_name] => 
                    [address] => BARKER
                    [address2] => 1134 PAUL AVE
                    [address3] => 
                    [city] => CLOVIS
                    [residential] => 1
                    [state] => CA
                    [province] => 
                    [country] => United States
                    [postal_code] => 93612
                    [postal_code_plus_4] => 0429
                    [phone_number] => 5599403070
                    [email] => h3x5dy1v0p2h2v0@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack 100-Percent Hickory Wood BBQ Grilling Pellets, 20-Pound Bag (New)
                                    [sku] => 20hick100Comp1
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 336.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 18.40
                                    [unit_price] => 18.40
                                    [ext_line_item_id] => 29179531137842
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => dfcd3b21-bfd4-43cd-b1ea-82ae6250d835
                                    [order_source_id] => 215031063
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 205643913
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 207719523
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 336.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 7
                            [created_at] => 2017-12-27T00:06:39Z
                            [updated_at] => 2017-12-29T04:41:12Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack 100-percent hickory wood bbq grilling pellets, 20-pound bag (new)
                            [line_item_sku] => 20hick100comp1
                            [address_kind] => R
                            [recipient_last_name] => 
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 205643913
                            [state] => CA
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-26T21:42:20Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 111-0763846-6321828
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 111-0763846-6321828
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 222100043
                    [tracking_number] => 789121961045
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 1102
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-29T04:41:12Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 205643913
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for h3x5dy1v0p2h2v0@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 9955

Delivery address already in our DB. Data:
array(14) {
  ["address_id"]=>
  string(5) "13589"
  ["customer_id"]=>
  string(4) "9955"
  ["address_type"]=>
  string(8) "delivery"
  ["order_id"]=>
  NULL
  ["address_line_1"]=>
  string(6) "BARKER"
  ["address_line_2"]=>
  string(13) "1134 PAUL AVE"
  ["address_city"]=>
  string(6) "CLOVIS"
  ["address_state"]=>
  string(2) "CA"
  ["address_zip"]=>
  string(5) "93612"
  ["address_country"]=>
  string(13) "United States"
  ["accessorial"]=>
  NULL
  ["county_tag"]=>
  string(16) "CA-Fresno County"
  ["created_time"]=>
  string(19) "2017-12-26 21:54:09"
  ["active"]=>
  string(1) "1"
}


parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9955"
  ["ordered_time"]=>
  string(19) "2017-12-26 21:42:20"
  ["se_order_id"]=>
  int(205643913)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "111-0763846-6321828"
  ["order_weight_ounces"]=>
  string(5) "336.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4044) "{"id":205643913,"external_order_identifier":"111-0763846-6321828","ext_order_reference_id":"111-0763846-6321828","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-26T21:42:20Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"19.73","total_excluding_tax":"18.40","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"19.73","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"1.33","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Brett","billing_first_name":"B","billing_last_name":null,"billing_address":"BARKER","billing_address2":"1134 PAUL AVE","billing_city":"CLOVIS","billing_state":"CA","billing_country":"US","billing_postal_code":"93612-0429","billing_phone_number":"5599403070","billing_email":"h3x5dy1v0p2h2v0@marketplace.amazon.com","buyer_email":"h3x5dy1v0p2h2v0@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Brett","last_name":"","address":"BARKER","address2":"1134 PAUL AVE","address3":null,"city":"CLOVIS","residential":true,"state":"CA","province":null,"country":"United States","postal_code":"93612","postal_code_plus_4":"0429","phone_number":"5599403070","email":"h3x5dy1v0p2h2v0@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack 100-Percent Hickory Wood BBQ Grilling Pellets, 20-Pound Bag (New)","sku":"20hick100Comp1","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"336.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"18.40","unit_price":"18.40","ext_line_item_id":"29179531137842","ext_product_id":null,"product_options":null,"uuid":"dfcd3b21-bfd4-43cd-b1ea-82ae6250d835","order_source_id":215031063,"gift_message":null}],"original_order":{"id":205643913,"customer_id":33773,"store_id":70647,"order_detail_id":207719523,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"336.0","total_quantity":1,"is_international":false,"usps_shipping_zone":7,"created_at":"2017-12-27T00:06:39Z","updated_at":"2017-12-29T04:41:12Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack 100-percent hickory wood bbq grilling pellets, 20-pound bag (new)","line_item_sku":"20hick100comp1","address_kind":"R","recipient_last_name":"","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":205643913,"state":"CA","owner_id":37098,"denormalized_ordered_at":"2017-12-26T21:42:20Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"111-0763846-6321828","packing_slip_generated":null,"denormalized_ext_order_reference_id":"111-0763846-6321828","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":222100043,"tracking_number":"789121961045","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":1102,"ship_date":"2017-12-28"}],"updated_at":"2017-12-29T04:41:12Z","internal_notes":"","meta_data":null,"prime_order_id":205643913,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(222100043)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(5) "336.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(1102)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(12) "789121961045"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7338

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "6995"
    ["order_id"]=>
    string(4) "7338"
    ["se_shipment_id"]=>
    string(9) "222100043"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1102"
    ["shipment_weight_ounces"]=>
    string(6) "336.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789121961045"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "IT"
    ["tracking_status_description"]=>
    string(10) "In transit"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-03 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:13"
  }
}


shipmentDBRows:
array(1) {
  [222100043]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "6995"
    ["order_id"]=>
    string(4) "7338"
    ["se_shipment_id"]=>
    string(9) "222100043"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1102"
    ["shipment_weight_ounces"]=>
    string(6) "336.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789121961045"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "IT"
    ["tracking_status_description"]=>
    string(10) "In transit"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-03 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:13"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(222100043)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(5) "336.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(1102)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789121961045"
  }
}

Shipment info shipping easy shipment ID #222100043

From API:
array(7) {
  ["se_shipment_id"]=>
  int(222100043)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(5) "336.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(1102)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789121961045"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "6995"
  ["order_id"]=>
  string(4) "7338"
  ["se_shipment_id"]=>
  string(9) "222100043"
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  string(4) "1102"
  ["shipment_weight_ounces"]=>
  string(6) "336.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789121961045"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  string(2) "IT"
  ["tracking_status_description"]=>
  string(10) "In transit"
  ["estimated_delivery_time"]=>
  string(19) "2018-01-03 00:00:00"
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:13"
}



Shipment info for shipping easy shipment ID #222100043 is same between both arrays

*** Order info:
Array
(
    [id] => 205487783
    [external_order_identifier] => 111-7207571-7656215
    [ext_order_reference_id] => 111-7207571-7656215
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-26T20:07:05Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 19.73
    [total_excluding_tax] => 18.40
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 19.73
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 1.33
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Ron Quaid
    [billing_first_name] => Ronald
    [billing_last_name] => R
    [billing_address] => 41913 AUBERRY RD
    [billing_address2] => 
    [billing_city] => AUBERRY
    [billing_state] => CA
    [billing_country] => US
    [billing_postal_code] => 93602-9783
    [billing_phone_number] => 559-855-2823
    [billing_email] => ys76gv0k8z74n6y@marketplace.amazon.com
    [buyer_email] => ys76gv0k8z74n6y@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Ron
                    [last_name] => Quaid
                    [address] => 41913 AUBERRY RD
                    [address2] => 
                    [address3] => 
                    [city] => AUBERRY
                    [residential] => 1
                    [state] => CA
                    [province] => 
                    [country] => United States
                    [postal_code] => 93602
                    [postal_code_plus_4] => 9783
                    [phone_number] => 559-855-2823
                    [email] => ys76gv0k8z74n6y@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack 100-Percent Hickory Wood BBQ Grilling Pellets, 20-Pound Bag (New)
                                    [sku] => 20hick100Comp
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 336.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 18.40
                                    [unit_price] => 18.40
                                    [ext_line_item_id] => 03397354060242
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => f86c7d13-8860-4704-96a7-d86a872d6190
                                    [order_source_id] => 214860573
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 205487783
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 207560923
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 336.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 7
                            [created_at] => 2017-12-26T21:06:50Z
                            [updated_at] => 2017-12-29T04:41:12Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack 100-percent hickory wood bbq grilling pellets, 20-pound bag (new)
                            [line_item_sku] => 20hick100comp
                            [address_kind] => R
                            [recipient_last_name] => quaid
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 205487783
                            [state] => CA
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-26T20:07:05Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 111-7207571-7656215
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 111-7207571-7656215
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 222100053
                    [tracking_number] => 9405510298370314522620
                    [carrier_key] => USPS
                    [carrier_service_key] => Priority
                    [shipment_cost] => 1655
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-29T04:41:12Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 205487783
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for ys76gv0k8z74n6y@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 9949

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(3) "Ron"
  ["customer_last_name"]=>
  string(5) "Quaid"
  ["customer_email"]=>
  string(38) "ys76gv0k8z74n6y@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(9) "Ron Quaid"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(16) "41913 AUBERRY RD"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(7) "AUBERRY"
    ["address_state"]=>
    string(2) "CA"
    ["address_zip"]=>
    string(10) "93602-9783"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9949"
  ["ordered_time"]=>
  string(19) "2017-12-26 20:07:05"
  ["se_order_id"]=>
  int(205487783)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "111-7207571-7656215"
  ["order_weight_ounces"]=>
  string(5) "336.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4067) "{"id":205487783,"external_order_identifier":"111-7207571-7656215","ext_order_reference_id":"111-7207571-7656215","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-26T20:07:05Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"19.73","total_excluding_tax":"18.40","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"19.73","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"1.33","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Ron Quaid","billing_first_name":"Ronald","billing_last_name":"R","billing_address":"41913 AUBERRY RD","billing_address2":null,"billing_city":"AUBERRY","billing_state":"CA","billing_country":"US","billing_postal_code":"93602-9783","billing_phone_number":"559-855-2823","billing_email":"ys76gv0k8z74n6y@marketplace.amazon.com","buyer_email":"ys76gv0k8z74n6y@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Ron","last_name":"Quaid","address":"41913 AUBERRY RD","address2":null,"address3":null,"city":"AUBERRY","residential":true,"state":"CA","province":null,"country":"United States","postal_code":"93602","postal_code_plus_4":"9783","phone_number":"559-855-2823","email":"ys76gv0k8z74n6y@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack 100-Percent Hickory Wood BBQ Grilling Pellets, 20-Pound Bag (New)","sku":"20hick100Comp","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"336.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"18.40","unit_price":"18.40","ext_line_item_id":"03397354060242","ext_product_id":null,"product_options":null,"uuid":"f86c7d13-8860-4704-96a7-d86a872d6190","order_source_id":214860573,"gift_message":null}],"original_order":{"id":205487783,"customer_id":33773,"store_id":70647,"order_detail_id":207560923,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"336.0","total_quantity":1,"is_international":false,"usps_shipping_zone":7,"created_at":"2017-12-26T21:06:50Z","updated_at":"2017-12-29T04:41:12Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack 100-percent hickory wood bbq grilling pellets, 20-pound bag (new)","line_item_sku":"20hick100comp","address_kind":"R","recipient_last_name":"quaid","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":205487783,"state":"CA","owner_id":37098,"denormalized_ordered_at":"2017-12-26T20:07:05Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"111-7207571-7656215","packing_slip_generated":null,"denormalized_ext_order_reference_id":"111-7207571-7656215","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":222100053,"tracking_number":"9405510298370314522620","carrier_key":"USPS","carrier_service_key":"Priority","shipment_cost":1655,"ship_date":"2017-12-28"}],"updated_at":"2017-12-29T04:41:12Z","internal_notes":"","meta_data":null,"prime_order_id":205487783,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(222100053)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(5) "336.0"
      ["carrier_service_key"]=>
      string(8) "Priority"
      ["shipment_cost"]=>
      int(1655)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(22) "9405510298370314522620"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7331

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "6994"
    ["order_id"]=>
    string(4) "7331"
    ["se_shipment_id"]=>
    string(9) "222100053"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(4) "1655"
    ["shipment_weight_ounces"]=>
    string(6) "336.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370314522620"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(25) "In Transit to Destination"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2017-12-29 07:38:19"
  }
}


shipmentDBRows:
array(1) {
  [222100053]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "6994"
    ["order_id"]=>
    string(4) "7331"
    ["se_shipment_id"]=>
    string(9) "222100053"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(4) "1655"
    ["shipment_weight_ounces"]=>
    string(6) "336.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370314522620"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(25) "In Transit to Destination"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2017-12-29 07:38:19"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(222100053)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(5) "336.0"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    int(1655)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(22) "9405510298370314522620"
  }
}

Shipment info shipping easy shipment ID #222100053

From API:
array(7) {
  ["se_shipment_id"]=>
  int(222100053)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(5) "336.0"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  int(1655)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9405510298370314522620"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "6994"
  ["order_id"]=>
  string(4) "7331"
  ["se_shipment_id"]=>
  string(9) "222100053"
  ["carrier_key"]=>
  string(4) "USPS"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  string(4) "1655"
  ["shipment_weight_ounces"]=>
  string(6) "336.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(22) "9405510298370314522620"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  string(25) "In Transit to Destination"
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2017-12-29 07:38:19"
}



Shipment info for shipping easy shipment ID #222100053 is same between both arrays

*** Order info:
Array
(
    [id] => 205048773
    [external_order_identifier] => 111-5967462-3641022
    [ext_order_reference_id] => 111-5967462-3641022
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-26T12:48:59Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 18.22
    [total_excluding_tax] => 18.22
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 18.22
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => scott hastings
    [billing_first_name] => scott
    [billing_last_name] => hastings
    [billing_address] => 5640 nw beechwood dr
    [billing_address2] => 
    [billing_city] => lawton
    [billing_state] => OK
    [billing_country] => US
    [billing_postal_code] => 73505
    [billing_phone_number] => 580 678-2484
    [billing_email] => 7n2r9s5qy1nymyq@marketplace.amazon.com
    [buyer_email] => 7n2r9s5qy1nymyq@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => scott
                    [last_name] => hastings
                    [address] => 5640 nw beechwood dr
                    [address2] => 
                    [address3] => 
                    [city] => lawton
                    [residential] => 1
                    [state] => OK
                    [province] => 
                    [country] => United States
                    [postal_code] => 73505
                    [postal_code_plus_4] => 2902
                    [phone_number] => 580 678-2484
                    [email] => 7n2r9s5qy1nymyq@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack 100% Hardwood Grilling Smoker Pellets, 100% Cherry, 20 LB (New)
                                    [sku] => 20cherry100
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 336.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 18.22
                                    [unit_price] => 18.22
                                    [ext_line_item_id] => 55181822387538
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 97cefb3f-6c0b-4c86-b75f-7c4664e4def1
                                    [order_source_id] => 214388343
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 205048773
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 207115473
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 336.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-26T14:06:53Z
                            [updated_at] => 2017-12-29T04:41:12Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack 100% hardwood grilling smoker pellets, 100% cherry, 20 lb (new)
                            [line_item_sku] => 20cherry100
                            [address_kind] => R
                            [recipient_last_name] => hastings
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 205048773
                            [state] => OK
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-26T12:48:59Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 111-5967462-3641022
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 111-5967462-3641022
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 222100073
                    [tracking_number] => 789121988578
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 750
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-29T04:41:12Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 205048773
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for 7n2r9s5qy1nymyq@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 9937

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(5) "scott"
  ["customer_last_name"]=>
  string(8) "hastings"
  ["customer_email"]=>
  string(38) "7n2r9s5qy1nymyq@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(14) "scott hastings"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(20) "5640 nw beechwood dr"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(6) "lawton"
    ["address_state"]=>
    string(2) "OK"
    ["address_zip"]=>
    string(5) "73505"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9937"
  ["ordered_time"]=>
  string(19) "2017-12-26 12:48:59"
  ["se_order_id"]=>
  int(205048773)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "111-5967462-3641022"
  ["order_weight_ounces"]=>
  string(5) "336.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4073) "{"id":205048773,"external_order_identifier":"111-5967462-3641022","ext_order_reference_id":"111-5967462-3641022","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-26T12:48:59Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"18.22","total_excluding_tax":"18.22","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"18.22","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"scott hastings","billing_first_name":"scott","billing_last_name":"hastings","billing_address":"5640 nw beechwood dr","billing_address2":null,"billing_city":"lawton","billing_state":"OK","billing_country":"US","billing_postal_code":"73505","billing_phone_number":"580 678-2484","billing_email":"7n2r9s5qy1nymyq@marketplace.amazon.com","buyer_email":"7n2r9s5qy1nymyq@marketplace.amazon.com","recipients":[{"company":null,"first_name":"scott","last_name":"hastings","address":"5640 nw beechwood dr","address2":null,"address3":null,"city":"lawton","residential":true,"state":"OK","province":null,"country":"United States","postal_code":"73505","postal_code_plus_4":"2902","phone_number":"580 678-2484","email":"7n2r9s5qy1nymyq@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack 100% Hardwood Grilling Smoker Pellets, 100% Cherry, 20 LB (New)","sku":"20cherry100","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"336.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"18.22","unit_price":"18.22","ext_line_item_id":"55181822387538","ext_product_id":null,"product_options":null,"uuid":"97cefb3f-6c0b-4c86-b75f-7c4664e4def1","order_source_id":214388343,"gift_message":null}],"original_order":{"id":205048773,"customer_id":33773,"store_id":70647,"order_detail_id":207115473,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"336.0","total_quantity":1,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-26T14:06:53Z","updated_at":"2017-12-29T04:41:12Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack 100% hardwood grilling smoker pellets, 100% cherry, 20 lb (new)","line_item_sku":"20cherry100","address_kind":"R","recipient_last_name":"hastings","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":205048773,"state":"OK","owner_id":37098,"denormalized_ordered_at":"2017-12-26T12:48:59Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"111-5967462-3641022","packing_slip_generated":null,"denormalized_ext_order_reference_id":"111-5967462-3641022","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":222100073,"tracking_number":"789121988578","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":750,"ship_date":"2017-12-28"}],"updated_at":"2017-12-29T04:41:12Z","internal_notes":"","meta_data":null,"prime_order_id":205048773,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(222100073)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(5) "336.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(750)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(12) "789121988578"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7316

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "6999"
    ["order_id"]=>
    string(4) "7316"
    ["se_shipment_id"]=>
    string(9) "222100073"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(3) "750"
    ["shipment_weight_ounces"]=>
    string(6) "336.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789121988578"
    ["tracking_status"]=>
    string(9) "DELIVERED"
    ["tracking_status_code"]=>
    string(2) "DL"
    ["tracking_status_description"]=>
    string(9) "Delivered"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-02 00:00:00"
    ["actual_delivery_time"]=>
    string(19) "2017-12-30 21:22:00"
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:15"
  }
}


shipmentDBRows:
array(1) {
  [222100073]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "6999"
    ["order_id"]=>
    string(4) "7316"
    ["se_shipment_id"]=>
    string(9) "222100073"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(3) "750"
    ["shipment_weight_ounces"]=>
    string(6) "336.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789121988578"
    ["tracking_status"]=>
    string(9) "DELIVERED"
    ["tracking_status_code"]=>
    string(2) "DL"
    ["tracking_status_description"]=>
    string(9) "Delivered"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-02 00:00:00"
    ["actual_delivery_time"]=>
    string(19) "2017-12-30 21:22:00"
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:15"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(222100073)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(5) "336.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(750)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789121988578"
  }
}

Shipment info shipping easy shipment ID #222100073

From API:
array(7) {
  ["se_shipment_id"]=>
  int(222100073)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(5) "336.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(750)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789121988578"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "6999"
  ["order_id"]=>
  string(4) "7316"
  ["se_shipment_id"]=>
  string(9) "222100073"
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  string(3) "750"
  ["shipment_weight_ounces"]=>
  string(6) "336.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789121988578"
  ["tracking_status"]=>
  string(9) "DELIVERED"
  ["tracking_status_code"]=>
  string(2) "DL"
  ["tracking_status_description"]=>
  string(9) "Delivered"
  ["estimated_delivery_time"]=>
  string(19) "2018-01-02 00:00:00"
  ["actual_delivery_time"]=>
  string(19) "2017-12-30 21:22:00"
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:15"
}



Shipment info for shipping easy shipment ID #222100073 is same between both arrays

*** Order info:
Array
(
    [id] => 205546203
    [external_order_identifier] => 113-6574026-3142622
    [ext_order_reference_id] => 113-6574026-3142622
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-26T21:07:46Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 18.40
    [total_excluding_tax] => 18.40
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 18.40
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Rahn Erdman
    [billing_first_name] => rahn
    [billing_last_name] => erdman
    [billing_address] => 347 SLUTTER VALLEY RD
    [billing_address2] => 
    [billing_city] => DORNSIFE
    [billing_state] => PA
    [billing_country] => US
    [billing_postal_code] => 17823-7213
    [billing_phone_number] => 570 850 6658
    [billing_email] => bdsjj6kgf7wrczm@marketplace.amazon.com
    [buyer_email] => bdsjj6kgf7wrczm@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Rahn
                    [last_name] => Erdman
                    [address] => 347 SLUTTER VALLEY RD
                    [address2] => 
                    [address3] => 
                    [city] => DORNSIFE
                    [residential] => 1
                    [state] => PA
                    [province] => 
                    [country] => United States
                    [postal_code] => 17823
                    [postal_code_plus_4] => 7213
                    [phone_number] => 570 850 6658
                    [email] => bdsjj6kgf7wrczm@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack 100-Percent Hickory Wood BBQ Grilling Pellets, 20-Pound Bag (New)
                                    [sku] => 20hick100Comp1
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 336.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 18.40
                                    [unit_price] => 18.40
                                    [ext_line_item_id] => 64069852862570
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 44f84bfb-f017-4236-9392-4eb00a32d26c
                                    [order_source_id] => 214922763
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 205546203
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 207620813
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 336.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-26T22:06:41Z
                            [updated_at] => 2017-12-29T04:41:12Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack 100-percent hickory wood bbq grilling pellets, 20-pound bag (new)
                            [line_item_sku] => 20hick100comp1
                            [address_kind] => R
                            [recipient_last_name] => erdman
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 205546203
                            [state] => PA
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-26T21:07:46Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 113-6574026-3142622
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 113-6574026-3142622
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 222100083
                    [tracking_number] => 789121988751
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 1008
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-29T04:41:12Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 205546203
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for bdsjj6kgf7wrczm@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 9952

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(4) "Rahn"
  ["customer_last_name"]=>
  string(6) "Erdman"
  ["customer_email"]=>
  string(38) "bdsjj6kgf7wrczm@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(11) "Rahn Erdman"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(21) "347 SLUTTER VALLEY RD"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(8) "DORNSIFE"
    ["address_state"]=>
    string(2) "PA"
    ["address_zip"]=>
    string(10) "17823-7213"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9952"
  ["ordered_time"]=>
  string(19) "2017-12-26 21:07:46"
  ["se_order_id"]=>
  int(205546203)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "113-6574026-3142622"
  ["order_weight_ounces"]=>
  string(5) "336.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4084) "{"id":205546203,"external_order_identifier":"113-6574026-3142622","ext_order_reference_id":"113-6574026-3142622","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-26T21:07:46Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"18.40","total_excluding_tax":"18.40","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"18.40","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Rahn Erdman","billing_first_name":"rahn","billing_last_name":"erdman","billing_address":"347 SLUTTER VALLEY RD","billing_address2":null,"billing_city":"DORNSIFE","billing_state":"PA","billing_country":"US","billing_postal_code":"17823-7213","billing_phone_number":"570 850 6658","billing_email":"bdsjj6kgf7wrczm@marketplace.amazon.com","buyer_email":"bdsjj6kgf7wrczm@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Rahn","last_name":"Erdman","address":"347 SLUTTER VALLEY RD","address2":null,"address3":null,"city":"DORNSIFE","residential":true,"state":"PA","province":null,"country":"United States","postal_code":"17823","postal_code_plus_4":"7213","phone_number":"570 850 6658","email":"bdsjj6kgf7wrczm@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack 100-Percent Hickory Wood BBQ Grilling Pellets, 20-Pound Bag (New)","sku":"20hick100Comp1","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"336.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"18.40","unit_price":"18.40","ext_line_item_id":"64069852862570","ext_product_id":null,"product_options":null,"uuid":"44f84bfb-f017-4236-9392-4eb00a32d26c","order_source_id":214922763,"gift_message":null}],"original_order":{"id":205546203,"customer_id":33773,"store_id":70647,"order_detail_id":207620813,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"336.0","total_quantity":1,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-26T22:06:41Z","updated_at":"2017-12-29T04:41:12Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack 100-percent hickory wood bbq grilling pellets, 20-pound bag (new)","line_item_sku":"20hick100comp1","address_kind":"R","recipient_last_name":"erdman","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":205546203,"state":"PA","owner_id":37098,"denormalized_ordered_at":"2017-12-26T21:07:46Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"113-6574026-3142622","packing_slip_generated":null,"denormalized_ext_order_reference_id":"113-6574026-3142622","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":222100083,"tracking_number":"789121988751","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":1008,"ship_date":"2017-12-28"}],"updated_at":"2017-12-29T04:41:12Z","internal_notes":"","meta_data":null,"prime_order_id":205546203,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(222100083)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(5) "336.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(1008)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(12) "789121988751"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7334

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7001"
    ["order_id"]=>
    string(4) "7334"
    ["se_shipment_id"]=>
    string(9) "222100083"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1008"
    ["shipment_weight_ounces"]=>
    string(6) "336.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789121988751"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "OD"
    ["tracking_status_description"]=>
    string(29) "On FedEx vehicle for delivery"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-02 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:16"
  }
}


shipmentDBRows:
array(1) {
  [222100083]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7001"
    ["order_id"]=>
    string(4) "7334"
    ["se_shipment_id"]=>
    string(9) "222100083"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1008"
    ["shipment_weight_ounces"]=>
    string(6) "336.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789121988751"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "OD"
    ["tracking_status_description"]=>
    string(29) "On FedEx vehicle for delivery"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-02 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:16"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(222100083)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(5) "336.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(1008)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789121988751"
  }
}

Shipment info shipping easy shipment ID #222100083

From API:
array(7) {
  ["se_shipment_id"]=>
  int(222100083)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(5) "336.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(1008)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789121988751"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7001"
  ["order_id"]=>
  string(4) "7334"
  ["se_shipment_id"]=>
  string(9) "222100083"
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  string(4) "1008"
  ["shipment_weight_ounces"]=>
  string(6) "336.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789121988751"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  string(2) "OD"
  ["tracking_status_description"]=>
  string(29) "On FedEx vehicle for delivery"
  ["estimated_delivery_time"]=>
  string(19) "2018-01-02 00:00:00"
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:16"
}



Shipment info for shipping easy shipment ID #222100083 is same between both arrays

*** Order info:
Array
(
    [id] => 205546443
    [external_order_identifier] => 114-5170071-0373867
    [ext_order_reference_id] => 114-5170071-0373867
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-26T21:30:51Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 18.22
    [total_excluding_tax] => 18.22
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 18.22
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Johanna Tomlin
    [billing_first_name] => Johanna
    [billing_last_name] => Tomlin
    [billing_address] => 8088 S QUINCE CIR
    [billing_address2] => 
    [billing_city] => CENTENNIAL
    [billing_state] => CO
    [billing_country] => US
    [billing_postal_code] => 80112-3238
    [billing_phone_number] => 7203202330
    [billing_email] => fh8zbgprrx59pd9@marketplace.amazon.com
    [buyer_email] => fh8zbgprrx59pd9@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Johanna
                    [last_name] => Tomlin
                    [address] => 8088 S QUINCE CIR
                    [address2] => 
                    [address3] => 
                    [city] => CENTENNIAL
                    [residential] => 1
                    [state] => CO
                    [province] => 
                    [country] => United States
                    [postal_code] => 80112
                    [postal_code_plus_4] => 3238
                    [phone_number] => 7203202330
                    [email] => fh8zbgprrx59pd9@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack 100% Hardwood Grilling Smoker Pellets, 100% Cherry, 20 LB (New)
                                    [sku] => 20cherry100
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 336.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 18.22
                                    [unit_price] => 18.22
                                    [ext_line_item_id] => 43563906895458
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => ce0ff6a0-32bb-4aab-98ed-cf0565f1e8e9
                                    [order_source_id] => 214923023
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 205546443
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 207621063
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 336.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-26T22:06:44Z
                            [updated_at] => 2017-12-29T04:41:12Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack 100% hardwood grilling smoker pellets, 100% cherry, 20 lb (new)
                            [line_item_sku] => 20cherry100
                            [address_kind] => R
                            [recipient_last_name] => tomlin
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 205546443
                            [state] => CO
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-26T21:30:51Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 114-5170071-0373867
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 114-5170071-0373867
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 222100093
                    [tracking_number] => 789121988041
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 750
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-29T04:41:12Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 205546443
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for fh8zbgprrx59pd9@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 9954

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(7) "Johanna"
  ["customer_last_name"]=>
  string(6) "Tomlin"
  ["customer_email"]=>
  string(38) "fh8zbgprrx59pd9@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(14) "Johanna Tomlin"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(17) "8088 S QUINCE CIR"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(10) "CENTENNIAL"
    ["address_state"]=>
    string(2) "CO"
    ["address_zip"]=>
    string(10) "80112-3238"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9954"
  ["ordered_time"]=>
  string(19) "2017-12-26 21:30:51"
  ["se_order_id"]=>
  int(205546443)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "114-5170071-0373867"
  ["order_weight_ounces"]=>
  string(5) "336.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4074) "{"id":205546443,"external_order_identifier":"114-5170071-0373867","ext_order_reference_id":"114-5170071-0373867","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-26T21:30:51Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"18.22","total_excluding_tax":"18.22","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"18.22","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Johanna Tomlin","billing_first_name":"Johanna","billing_last_name":"Tomlin","billing_address":"8088 S QUINCE CIR","billing_address2":null,"billing_city":"CENTENNIAL","billing_state":"CO","billing_country":"US","billing_postal_code":"80112-3238","billing_phone_number":"7203202330","billing_email":"fh8zbgprrx59pd9@marketplace.amazon.com","buyer_email":"fh8zbgprrx59pd9@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Johanna","last_name":"Tomlin","address":"8088 S QUINCE CIR","address2":null,"address3":null,"city":"CENTENNIAL","residential":true,"state":"CO","province":null,"country":"United States","postal_code":"80112","postal_code_plus_4":"3238","phone_number":"7203202330","email":"fh8zbgprrx59pd9@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack 100% Hardwood Grilling Smoker Pellets, 100% Cherry, 20 LB (New)","sku":"20cherry100","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"336.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"18.22","unit_price":"18.22","ext_line_item_id":"43563906895458","ext_product_id":null,"product_options":null,"uuid":"ce0ff6a0-32bb-4aab-98ed-cf0565f1e8e9","order_source_id":214923023,"gift_message":null}],"original_order":{"id":205546443,"customer_id":33773,"store_id":70647,"order_detail_id":207621063,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"336.0","total_quantity":1,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-26T22:06:44Z","updated_at":"2017-12-29T04:41:12Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack 100% hardwood grilling smoker pellets, 100% cherry, 20 lb (new)","line_item_sku":"20cherry100","address_kind":"R","recipient_last_name":"tomlin","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":205546443,"state":"CO","owner_id":37098,"denormalized_ordered_at":"2017-12-26T21:30:51Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"114-5170071-0373867","packing_slip_generated":null,"denormalized_ext_order_reference_id":"114-5170071-0373867","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":222100093,"tracking_number":"789121988041","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":750,"ship_date":"2017-12-28"}],"updated_at":"2017-12-29T04:41:12Z","internal_notes":"","meta_data":null,"prime_order_id":205546443,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(222100093)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(5) "336.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(750)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(12) "789121988041"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7337

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7002"
    ["order_id"]=>
    string(4) "7337"
    ["se_shipment_id"]=>
    string(9) "222100093"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(3) "750"
    ["shipment_weight_ounces"]=>
    string(6) "336.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789121988041"
    ["tracking_status"]=>
    string(9) "DELIVERED"
    ["tracking_status_code"]=>
    string(2) "DL"
    ["tracking_status_description"]=>
    string(9) "Delivered"
    ["estimated_delivery_time"]=>
    string(19) "2017-12-29 00:00:00"
    ["actual_delivery_time"]=>
    string(19) "2017-12-29 21:58:54"
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:14"
  }
}


shipmentDBRows:
array(1) {
  [222100093]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7002"
    ["order_id"]=>
    string(4) "7337"
    ["se_shipment_id"]=>
    string(9) "222100093"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(3) "750"
    ["shipment_weight_ounces"]=>
    string(6) "336.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789121988041"
    ["tracking_status"]=>
    string(9) "DELIVERED"
    ["tracking_status_code"]=>
    string(2) "DL"
    ["tracking_status_description"]=>
    string(9) "Delivered"
    ["estimated_delivery_time"]=>
    string(19) "2017-12-29 00:00:00"
    ["actual_delivery_time"]=>
    string(19) "2017-12-29 21:58:54"
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:14"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(222100093)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(5) "336.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(750)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789121988041"
  }
}

Shipment info shipping easy shipment ID #222100093

From API:
array(7) {
  ["se_shipment_id"]=>
  int(222100093)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(5) "336.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(750)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789121988041"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7002"
  ["order_id"]=>
  string(4) "7337"
  ["se_shipment_id"]=>
  string(9) "222100093"
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  string(3) "750"
  ["shipment_weight_ounces"]=>
  string(6) "336.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789121988041"
  ["tracking_status"]=>
  string(9) "DELIVERED"
  ["tracking_status_code"]=>
  string(2) "DL"
  ["tracking_status_description"]=>
  string(9) "Delivered"
  ["estimated_delivery_time"]=>
  string(19) "2017-12-29 00:00:00"
  ["actual_delivery_time"]=>
  string(19) "2017-12-29 21:58:54"
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:14"
}



Shipment info for shipping easy shipment ID #222100093 is same between both arrays

*** Order info:
Array
(
    [id] => 205737263
    [external_order_identifier] => 111-5445525-3618602
    [ext_order_reference_id] => 111-5445525-3618602
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-27T01:28:21Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 26.81
    [total_excluding_tax] => 25.00
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 26.81
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 1.81
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Janelle L Nuzum
    [billing_first_name] => Janelle
    [billing_last_name] => Reynolds
    [billing_address] => 316 E MAIN ST
    [billing_address2] => 
    [billing_city] => LOGAN
    [billing_state] => OH
    [billing_country] => US
    [billing_postal_code] => 43138-1308
    [billing_phone_number] => 740-974-1682
    [billing_email] => c1y9ydbdyfrxv64@marketplace.amazon.com
    [buyer_email] => c1y9ydbdyfrxv64@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Janelle
                    [last_name] => L Nuzum
                    [address] => 316 E MAIN ST
                    [address2] => 
                    [address3] => 
                    [city] => LOGAN
                    [residential] => 1
                    [state] => OH
                    [province] => 
                    [country] => United States
                    [postal_code] => 43138
                    [postal_code_plus_4] => 1308
                    [phone_number] => 740-974-1682
                    [email] => c1y9ydbdyfrxv64@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack 20-pounds BBQ Grilling wood pellets (Charblend Hickory (Hickory and Charcoal)) (New)
                                    [sku] => 20poundljcharhick
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 336.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 25.00
                                    [unit_price] => 25.00
                                    [ext_line_item_id] => 64458107979834
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 3880f07d-ceb7-4c91-9cc7-ee5a3581fc2b
                                    [order_source_id] => 215133983
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 205737263
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 207815393
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 336.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 4
                            [created_at] => 2017-12-27T02:07:42Z
                            [updated_at] => 2017-12-29T04:41:12Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack 20-pounds bbq grilling wood pellets (charblend hickory (hickory and charcoal)) (new)
                            [line_item_sku] => 20poundljcharhick
                            [address_kind] => R
                            [recipient_last_name] => l nuzum
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 205737263
                            [state] => OH
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-27T01:28:21Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 111-5445525-3618602
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 111-5445525-3618602
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 222100103
                    [tracking_number] => 789121988122
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 951
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-29T04:41:12Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 205737263
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for c1y9ydbdyfrxv64@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 9960

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(7) "Janelle"
  ["customer_last_name"]=>
  string(7) "L Nuzum"
  ["customer_email"]=>
  string(38) "c1y9ydbdyfrxv64@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(15) "Janelle L Nuzum"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(13) "316 E MAIN ST"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(5) "LOGAN"
    ["address_state"]=>
    string(2) "OH"
    ["address_zip"]=>
    string(10) "43138-1308"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9960"
  ["ordered_time"]=>
  string(19) "2017-12-27 01:28:21"
  ["se_order_id"]=>
  int(205737263)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "111-5445525-3618602"
  ["order_weight_ounces"]=>
  string(5) "336.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4119) "{"id":205737263,"external_order_identifier":"111-5445525-3618602","ext_order_reference_id":"111-5445525-3618602","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-27T01:28:21Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"26.81","total_excluding_tax":"25.00","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"26.81","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"1.81","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Janelle L Nuzum","billing_first_name":"Janelle","billing_last_name":"Reynolds","billing_address":"316 E MAIN ST","billing_address2":null,"billing_city":"LOGAN","billing_state":"OH","billing_country":"US","billing_postal_code":"43138-1308","billing_phone_number":"740-974-1682","billing_email":"c1y9ydbdyfrxv64@marketplace.amazon.com","buyer_email":"c1y9ydbdyfrxv64@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Janelle","last_name":"L Nuzum","address":"316 E MAIN ST","address2":null,"address3":null,"city":"LOGAN","residential":true,"state":"OH","province":null,"country":"United States","postal_code":"43138","postal_code_plus_4":"1308","phone_number":"740-974-1682","email":"c1y9ydbdyfrxv64@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack 20-pounds BBQ Grilling wood pellets (Charblend Hickory (Hickory and Charcoal)) (New)","sku":"20poundljcharhick","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"336.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"25.00","unit_price":"25.00","ext_line_item_id":"64458107979834","ext_product_id":null,"product_options":null,"uuid":"3880f07d-ceb7-4c91-9cc7-ee5a3581fc2b","order_source_id":215133983,"gift_message":null}],"original_order":{"id":205737263,"customer_id":33773,"store_id":70647,"order_detail_id":207815393,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"336.0","total_quantity":1,"is_international":false,"usps_shipping_zone":4,"created_at":"2017-12-27T02:07:42Z","updated_at":"2017-12-29T04:41:12Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack 20-pounds bbq grilling wood pellets (charblend hickory (hickory and charcoal)) (new)","line_item_sku":"20poundljcharhick","address_kind":"R","recipient_last_name":"l nuzum","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":205737263,"state":"OH","owner_id":37098,"denormalized_ordered_at":"2017-12-27T01:28:21Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"111-5445525-3618602","packing_slip_generated":null,"denormalized_ext_order_reference_id":"111-5445525-3618602","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":222100103,"tracking_number":"789121988122","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":951,"ship_date":"2017-12-28"}],"updated_at":"2017-12-29T04:41:12Z","internal_notes":"","meta_data":null,"prime_order_id":205737263,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(222100103)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(5) "336.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(951)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(12) "789121988122"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7344

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7000"
    ["order_id"]=>
    string(4) "7344"
    ["se_shipment_id"]=>
    string(9) "222100103"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(3) "951"
    ["shipment_weight_ounces"]=>
    string(6) "336.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789121988122"
    ["tracking_status"]=>
    string(9) "DELIVERED"
    ["tracking_status_code"]=>
    string(2) "DL"
    ["tracking_status_description"]=>
    string(9) "Delivered"
    ["estimated_delivery_time"]=>
    string(19) "2017-12-29 00:00:00"
    ["actual_delivery_time"]=>
    string(19) "2017-12-29 18:37:58"
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:15"
  }
}


shipmentDBRows:
array(1) {
  [222100103]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7000"
    ["order_id"]=>
    string(4) "7344"
    ["se_shipment_id"]=>
    string(9) "222100103"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(3) "951"
    ["shipment_weight_ounces"]=>
    string(6) "336.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789121988122"
    ["tracking_status"]=>
    string(9) "DELIVERED"
    ["tracking_status_code"]=>
    string(2) "DL"
    ["tracking_status_description"]=>
    string(9) "Delivered"
    ["estimated_delivery_time"]=>
    string(19) "2017-12-29 00:00:00"
    ["actual_delivery_time"]=>
    string(19) "2017-12-29 18:37:58"
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:15"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(222100103)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(5) "336.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(951)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789121988122"
  }
}

Shipment info shipping easy shipment ID #222100103

From API:
array(7) {
  ["se_shipment_id"]=>
  int(222100103)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(5) "336.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(951)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789121988122"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7000"
  ["order_id"]=>
  string(4) "7344"
  ["se_shipment_id"]=>
  string(9) "222100103"
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  string(3) "951"
  ["shipment_weight_ounces"]=>
  string(6) "336.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789121988122"
  ["tracking_status"]=>
  string(9) "DELIVERED"
  ["tracking_status_code"]=>
  string(2) "DL"
  ["tracking_status_description"]=>
  string(9) "Delivered"
  ["estimated_delivery_time"]=>
  string(19) "2017-12-29 00:00:00"
  ["actual_delivery_time"]=>
  string(19) "2017-12-29 18:37:58"
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:15"
}



Shipment info for shipping easy shipment ID #222100103 is same between both arrays

*** Order info:
Array
(
    [id] => 205093113
    [external_order_identifier] => 112-4814912-5135426
    [ext_order_reference_id] => 112-4814912-5135426
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-26T14:04:02Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 36.80
    [total_excluding_tax] => 36.80
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 36.80
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Andrew J Patch
    [billing_first_name] => Andrew
    [billing_last_name] => J
    [billing_address] => 12701 Maryvale Ct
    [billing_address2] => 
    [billing_city] => Ellicott City
    [billing_state] => Maryland
    [billing_country] => US
    [billing_postal_code] => 21042
    [billing_phone_number] => 703-521-6231
    [billing_email] => ftsbmcvt9ckxncy@marketplace.amazon.com
    [buyer_email] => ftsbmcvt9ckxncy@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Andrew
                    [last_name] => J Patch
                    [address] => 12701 Maryvale Ct
                    [address2] => 
                    [address3] => 
                    [city] => Ellicott City
                    [residential] => 1
                    [state] => MD
                    [province] => 
                    [country] => United States
                    [postal_code] => 21042
                    [postal_code_plus_4] => 1269
                    [phone_number] => 703-521-6231
                    [email] => ftsbmcvt9ckxncy@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack 100-Percent Hickory Wood BBQ Grilling Pellets, 20-Pound Bag (New)
                                    [sku] => 20hick100Comp1
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 336.0
                                    [quantity] => 2
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 18.40
                                    [unit_price] => 18.40
                                    [ext_line_item_id] => 42559850391538
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 40e11ea1-b9f9-408a-bd17-a90a5c0f39df
                                    [order_source_id] => 214438713
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 205093113
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 207159933
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 672.0
                            [total_quantity] => 2
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-26T15:06:59Z
                            [updated_at] => 2017-12-29T04:41:12Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack 100-percent hickory wood bbq grilling pellets, 20-pound bag (new)
                            [line_item_sku] => 20hick100comp1
                            [address_kind] => R
                            [recipient_last_name] => j patch
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 205093113
                            [state] => MD
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-26T14:04:02Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 112-4814912-5135426
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 112-4814912-5135426
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 222100123
                    [tracking_number] => 789121997491
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 1261
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-29T04:41:12Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 205093113
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for ftsbmcvt9ckxncy@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 9939

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(6) "Andrew"
  ["customer_last_name"]=>
  string(7) "J Patch"
  ["customer_email"]=>
  string(38) "ftsbmcvt9ckxncy@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(14) "Andrew J Patch"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(17) "12701 Maryvale Ct"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(13) "Ellicott City"
    ["address_state"]=>
    string(8) "Maryland"
    ["address_zip"]=>
    string(5) "21042"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9939"
  ["ordered_time"]=>
  string(19) "2017-12-26 14:04:02"
  ["se_order_id"]=>
  int(205093113)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "112-4814912-5135426"
  ["order_weight_ounces"]=>
  string(5) "672.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4091) "{"id":205093113,"external_order_identifier":"112-4814912-5135426","ext_order_reference_id":"112-4814912-5135426","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-26T14:04:02Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"36.80","total_excluding_tax":"36.80","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"36.80","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Andrew J Patch","billing_first_name":"Andrew","billing_last_name":"J","billing_address":"12701 Maryvale Ct","billing_address2":null,"billing_city":"Ellicott City","billing_state":"Maryland","billing_country":"US","billing_postal_code":"21042","billing_phone_number":"703-521-6231","billing_email":"ftsbmcvt9ckxncy@marketplace.amazon.com","buyer_email":"ftsbmcvt9ckxncy@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Andrew","last_name":"J Patch","address":"12701 Maryvale Ct","address2":null,"address3":null,"city":"Ellicott City","residential":true,"state":"MD","province":null,"country":"United States","postal_code":"21042","postal_code_plus_4":"1269","phone_number":"703-521-6231","email":"ftsbmcvt9ckxncy@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack 100-Percent Hickory Wood BBQ Grilling Pellets, 20-Pound Bag (New)","sku":"20hick100Comp1","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"336.0","quantity":2,"total_excluding_tax":"0.00","price_excluding_tax":"18.40","unit_price":"18.40","ext_line_item_id":"42559850391538","ext_product_id":null,"product_options":null,"uuid":"40e11ea1-b9f9-408a-bd17-a90a5c0f39df","order_source_id":214438713,"gift_message":null}],"original_order":{"id":205093113,"customer_id":33773,"store_id":70647,"order_detail_id":207159933,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"672.0","total_quantity":2,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-26T15:06:59Z","updated_at":"2017-12-29T04:41:12Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack 100-percent hickory wood bbq grilling pellets, 20-pound bag (new)","line_item_sku":"20hick100comp1","address_kind":"R","recipient_last_name":"j patch","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":205093113,"state":"MD","owner_id":37098,"denormalized_ordered_at":"2017-12-26T14:04:02Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"112-4814912-5135426","packing_slip_generated":null,"denormalized_ext_order_reference_id":"112-4814912-5135426","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":222100123,"tracking_number":"789121997491","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":1261,"ship_date":"2017-12-28"}],"updated_at":"2017-12-29T04:41:12Z","internal_notes":"","meta_data":null,"prime_order_id":205093113,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(222100123)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(5) "672.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(1261)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(12) "789121997491"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7319

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7007"
    ["order_id"]=>
    string(4) "7319"
    ["se_shipment_id"]=>
    string(9) "222100123"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1261"
    ["shipment_weight_ounces"]=>
    string(6) "672.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789121997491"
    ["tracking_status"]=>
    string(9) "DELIVERED"
    ["tracking_status_code"]=>
    string(2) "DL"
    ["tracking_status_description"]=>
    string(9) "Delivered"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-02 00:00:00"
    ["actual_delivery_time"]=>
    string(19) "2017-12-30 16:02:26"
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:19"
  }
}


shipmentDBRows:
array(1) {
  [222100123]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7007"
    ["order_id"]=>
    string(4) "7319"
    ["se_shipment_id"]=>
    string(9) "222100123"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1261"
    ["shipment_weight_ounces"]=>
    string(6) "672.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789121997491"
    ["tracking_status"]=>
    string(9) "DELIVERED"
    ["tracking_status_code"]=>
    string(2) "DL"
    ["tracking_status_description"]=>
    string(9) "Delivered"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-02 00:00:00"
    ["actual_delivery_time"]=>
    string(19) "2017-12-30 16:02:26"
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:19"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(222100123)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(5) "672.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(1261)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789121997491"
  }
}

Shipment info shipping easy shipment ID #222100123

From API:
array(7) {
  ["se_shipment_id"]=>
  int(222100123)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(5) "672.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(1261)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789121997491"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7007"
  ["order_id"]=>
  string(4) "7319"
  ["se_shipment_id"]=>
  string(9) "222100123"
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  string(4) "1261"
  ["shipment_weight_ounces"]=>
  string(6) "672.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789121997491"
  ["tracking_status"]=>
  string(9) "DELIVERED"
  ["tracking_status_code"]=>
  string(2) "DL"
  ["tracking_status_description"]=>
  string(9) "Delivered"
  ["estimated_delivery_time"]=>
  string(19) "2018-01-02 00:00:00"
  ["actual_delivery_time"]=>
  string(19) "2017-12-30 16:02:26"
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:19"
}



Shipment info for shipping easy shipment ID #222100123 is same between both arrays

*** Order info:
Array
(
    [id] => 205227733
    [external_order_identifier] => 112-0416628-7812218
    [ext_order_reference_id] => 112-0416628-7812218
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-26T15:44:21Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 33.00
    [total_excluding_tax] => 33.00
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 33.00
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Mark Murray
    [billing_first_name] => Mark
    [billing_last_name] => Murray
    [billing_address] => 227 Harvest Ridge Drive
    [billing_address2] => 
    [billing_city] => Rockwall
    [billing_state] => TX
    [billing_country] => US
    [billing_postal_code] => 75032
    [billing_phone_number] => 214-448-7932
    [billing_email] => gc478sv3ld634mx@marketplace.amazon.com
    [buyer_email] => gc478sv3ld634mx@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Mark
                    [last_name] => Murray
                    [address] => 227 Harvest Ridge Drive
                    [address2] => 
                    [address3] => 
                    [city] => Rockwall
                    [residential] => 1
                    [state] => TX
                    [province] => 
                    [country] => United States
                    [postal_code] => 75032
                    [postal_code_plus_4] => 7400
                    [phone_number] => 214-448-7932
                    [email] => gc478sv3ld634mx@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack 100 Percent Hickory BBQ Grilling Pellets 40 LB Bag (New)
                                    [sku] => 40hick100comp3
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 656.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 33.00
                                    [unit_price] => 33.00
                                    [ext_line_item_id] => 69014293561858
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 9db6655d-5412-4aef-9477-516923f6047b
                                    [order_source_id] => 214582573
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 205227733
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 207294803
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 656.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-26T17:06:41Z
                            [updated_at] => 2017-12-29T04:41:12Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack 100 percent hickory bbq grilling pellets 40 lb bag (new)
                            [line_item_sku] => 40hick100comp3
                            [address_kind] => R
                            [recipient_last_name] => murray
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 205227733
                            [state] => TX
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-26T15:44:21Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 112-0416628-7812218
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 112-0416628-7812218
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 222100153
                    [tracking_number] => 789121997425
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 1261
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-29T04:41:12Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 205227733
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for gc478sv3ld634mx@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 7799

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(4) "Mark"
  ["customer_last_name"]=>
  string(6) "Murray"
  ["customer_email"]=>
  string(38) "gc478sv3ld634mx@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(11) "Mark Murray"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(23) "227 Harvest Ridge Drive"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(8) "Rockwall"
    ["address_state"]=>
    string(2) "TX"
    ["address_zip"]=>
    string(5) "75032"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "7799"
  ["ordered_time"]=>
  string(19) "2017-12-26 15:44:21"
  ["se_order_id"]=>
  int(205227733)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "112-0416628-7812218"
  ["order_weight_ounces"]=>
  string(5) "656.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4065) "{"id":205227733,"external_order_identifier":"112-0416628-7812218","ext_order_reference_id":"112-0416628-7812218","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-26T15:44:21Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"33.00","total_excluding_tax":"33.00","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"33.00","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Mark Murray","billing_first_name":"Mark","billing_last_name":"Murray","billing_address":"227 Harvest Ridge Drive","billing_address2":null,"billing_city":"Rockwall","billing_state":"TX","billing_country":"US","billing_postal_code":"75032","billing_phone_number":"214-448-7932","billing_email":"gc478sv3ld634mx@marketplace.amazon.com","buyer_email":"gc478sv3ld634mx@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Mark","last_name":"Murray","address":"227 Harvest Ridge Drive","address2":null,"address3":null,"city":"Rockwall","residential":true,"state":"TX","province":null,"country":"United States","postal_code":"75032","postal_code_plus_4":"7400","phone_number":"214-448-7932","email":"gc478sv3ld634mx@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack 100 Percent Hickory BBQ Grilling Pellets 40 LB Bag (New)","sku":"40hick100comp3","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"656.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"33.00","unit_price":"33.00","ext_line_item_id":"69014293561858","ext_product_id":null,"product_options":null,"uuid":"9db6655d-5412-4aef-9477-516923f6047b","order_source_id":214582573,"gift_message":null}],"original_order":{"id":205227733,"customer_id":33773,"store_id":70647,"order_detail_id":207294803,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"656.0","total_quantity":1,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-26T17:06:41Z","updated_at":"2017-12-29T04:41:12Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack 100 percent hickory bbq grilling pellets 40 lb bag (new)","line_item_sku":"40hick100comp3","address_kind":"R","recipient_last_name":"murray","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":205227733,"state":"TX","owner_id":37098,"denormalized_ordered_at":"2017-12-26T15:44:21Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"112-0416628-7812218","packing_slip_generated":null,"denormalized_ext_order_reference_id":"112-0416628-7812218","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":222100153,"tracking_number":"789121997425","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":1261,"ship_date":"2017-12-28"}],"updated_at":"2017-12-29T04:41:12Z","internal_notes":"","meta_data":null,"prime_order_id":205227733,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(222100153)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(5) "656.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(1261)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(12) "789121997425"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7322

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7009"
    ["order_id"]=>
    string(4) "7322"
    ["se_shipment_id"]=>
    string(9) "222100153"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1261"
    ["shipment_weight_ounces"]=>
    string(6) "656.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789121997425"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "OD"
    ["tracking_status_description"]=>
    string(29) "On FedEx vehicle for delivery"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-02 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:18"
  }
}


shipmentDBRows:
array(1) {
  [222100153]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7009"
    ["order_id"]=>
    string(4) "7322"
    ["se_shipment_id"]=>
    string(9) "222100153"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1261"
    ["shipment_weight_ounces"]=>
    string(6) "656.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789121997425"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "OD"
    ["tracking_status_description"]=>
    string(29) "On FedEx vehicle for delivery"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-02 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:18"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(222100153)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(5) "656.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(1261)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789121997425"
  }
}

Shipment info shipping easy shipment ID #222100153

From API:
array(7) {
  ["se_shipment_id"]=>
  int(222100153)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(5) "656.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(1261)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789121997425"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7009"
  ["order_id"]=>
  string(4) "7322"
  ["se_shipment_id"]=>
  string(9) "222100153"
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  string(4) "1261"
  ["shipment_weight_ounces"]=>
  string(6) "656.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789121997425"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  string(2) "OD"
  ["tracking_status_description"]=>
  string(29) "On FedEx vehicle for delivery"
  ["estimated_delivery_time"]=>
  string(19) "2018-01-02 00:00:00"
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:18"
}



Shipment info for shipping easy shipment ID #222100153 is same between both arrays

*** Order info:
Array
(
    [id] => 205899373
    [external_order_identifier] => 112-6068597-2686627
    [ext_order_reference_id] => 112-6068597-2686627
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-27T05:13:21Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 37.00
    [total_excluding_tax] => 37.00
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 37.00
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Brian R Tardiff
    [billing_first_name] => Brian
    [billing_last_name] => Tardiff
    [billing_address] => 4025 CAMPANIA STRADA
    [billing_address2] => 
    [billing_city] => SPRING HILL
    [billing_state] => TN
    [billing_country] => US
    [billing_postal_code] => 37174-6272
    [billing_phone_number] => 615-476-9275
    [billing_email] => 3lgwgbns1x1r55s@marketplace.amazon.com
    [buyer_email] => 3lgwgbns1x1r55s@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Brian
                    [last_name] => R Tardiff
                    [address] => 4025 CAMPANIA STRADA
                    [address2] => 
                    [address3] => 
                    [city] => SPRING HILL
                    [residential] => 1
                    [state] => TN
                    [province] => 
                    [country] => United States
                    [postal_code] => 37174
                    [postal_code_plus_4] => 6272
                    [phone_number] => 615-476-9275
                    [email] => 3lgwgbns1x1r55s@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack 20-pounds BBQ Grilling wood pellets (Oak-Hickory-Cherry Supreme Blend) (New)
                                    [sku] => 20poundljohc
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 336.0
                                    [quantity] => 2
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 18.50
                                    [unit_price] => 18.50
                                    [ext_line_item_id] => 61725447195546
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 02aef43e-e203-4f47-bc8b-0e798edcc740
                                    [order_source_id] => 215316143
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 205899373
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 207982803
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 672.0
                            [total_quantity] => 2
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-27T06:07:18Z
                            [updated_at] => 2017-12-29T04:41:12Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack 20-pounds bbq grilling wood pellets (oak-hickory-cherry supreme blend) (new)
                            [line_item_sku] => 20poundljohc
                            [address_kind] => R
                            [recipient_last_name] => r tardiff
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 205899373
                            [state] => TN
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-27T05:13:21Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 112-6068597-2686627
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 112-6068597-2686627
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 222100183
                    [tracking_number] => 789121997480
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 1519
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-29T04:41:12Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 205899373
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for 3lgwgbns1x1r55s@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 8284

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(5) "Brian"
  ["customer_last_name"]=>
  string(9) "R Tardiff"
  ["customer_email"]=>
  string(38) "3lgwgbns1x1r55s@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(15) "Brian R Tardiff"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(20) "4025 CAMPANIA STRADA"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(11) "SPRING HILL"
    ["address_state"]=>
    string(2) "TN"
    ["address_zip"]=>
    string(10) "37174-6272"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "8284"
  ["ordered_time"]=>
  string(19) "2017-12-27 05:13:21"
  ["se_order_id"]=>
  int(205899373)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "112-6068597-2686627"
  ["order_weight_ounces"]=>
  string(5) "672.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4119) "{"id":205899373,"external_order_identifier":"112-6068597-2686627","ext_order_reference_id":"112-6068597-2686627","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-27T05:13:21Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"37.00","total_excluding_tax":"37.00","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"37.00","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Brian R Tardiff","billing_first_name":"Brian","billing_last_name":"Tardiff","billing_address":"4025 CAMPANIA STRADA","billing_address2":null,"billing_city":"SPRING HILL","billing_state":"TN","billing_country":"US","billing_postal_code":"37174-6272","billing_phone_number":"615-476-9275","billing_email":"3lgwgbns1x1r55s@marketplace.amazon.com","buyer_email":"3lgwgbns1x1r55s@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Brian","last_name":"R Tardiff","address":"4025 CAMPANIA STRADA","address2":null,"address3":null,"city":"SPRING HILL","residential":true,"state":"TN","province":null,"country":"United States","postal_code":"37174","postal_code_plus_4":"6272","phone_number":"615-476-9275","email":"3lgwgbns1x1r55s@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack 20-pounds BBQ Grilling wood pellets (Oak-Hickory-Cherry Supreme Blend) (New)","sku":"20poundljohc","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"336.0","quantity":2,"total_excluding_tax":"0.00","price_excluding_tax":"18.50","unit_price":"18.50","ext_line_item_id":"61725447195546","ext_product_id":null,"product_options":null,"uuid":"02aef43e-e203-4f47-bc8b-0e798edcc740","order_source_id":215316143,"gift_message":null}],"original_order":{"id":205899373,"customer_id":33773,"store_id":70647,"order_detail_id":207982803,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"672.0","total_quantity":2,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-27T06:07:18Z","updated_at":"2017-12-29T04:41:12Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack 20-pounds bbq grilling wood pellets (oak-hickory-cherry supreme blend) (new)","line_item_sku":"20poundljohc","address_kind":"R","recipient_last_name":"r tardiff","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":205899373,"state":"TN","owner_id":37098,"denormalized_ordered_at":"2017-12-27T05:13:21Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"112-6068597-2686627","packing_slip_generated":null,"denormalized_ext_order_reference_id":"112-6068597-2686627","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":222100183,"tracking_number":"789121997480","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":1519,"ship_date":"2017-12-28"}],"updated_at":"2017-12-29T04:41:12Z","internal_notes":"","meta_data":null,"prime_order_id":205899373,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(222100183)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(5) "672.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(1519)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(12) "789121997480"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7354

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7005"
    ["order_id"]=>
    string(4) "7354"
    ["se_shipment_id"]=>
    string(9) "222100183"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1519"
    ["shipment_weight_ounces"]=>
    string(6) "672.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789121997480"
    ["tracking_status"]=>
    string(9) "DELIVERED"
    ["tracking_status_code"]=>
    string(2) "DL"
    ["tracking_status_description"]=>
    string(9) "Delivered"
    ["estimated_delivery_time"]=>
    string(19) "2017-12-29 00:00:00"
    ["actual_delivery_time"]=>
    string(19) "2017-12-29 17:35:47"
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:18"
  }
}


shipmentDBRows:
array(1) {
  [222100183]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7005"
    ["order_id"]=>
    string(4) "7354"
    ["se_shipment_id"]=>
    string(9) "222100183"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1519"
    ["shipment_weight_ounces"]=>
    string(6) "672.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789121997480"
    ["tracking_status"]=>
    string(9) "DELIVERED"
    ["tracking_status_code"]=>
    string(2) "DL"
    ["tracking_status_description"]=>
    string(9) "Delivered"
    ["estimated_delivery_time"]=>
    string(19) "2017-12-29 00:00:00"
    ["actual_delivery_time"]=>
    string(19) "2017-12-29 17:35:47"
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:18"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(222100183)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(5) "672.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(1519)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789121997480"
  }
}

Shipment info shipping easy shipment ID #222100183

From API:
array(7) {
  ["se_shipment_id"]=>
  int(222100183)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(5) "672.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(1519)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789121997480"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7005"
  ["order_id"]=>
  string(4) "7354"
  ["se_shipment_id"]=>
  string(9) "222100183"
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  string(4) "1519"
  ["shipment_weight_ounces"]=>
  string(6) "672.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789121997480"
  ["tracking_status"]=>
  string(9) "DELIVERED"
  ["tracking_status_code"]=>
  string(2) "DL"
  ["tracking_status_description"]=>
  string(9) "Delivered"
  ["estimated_delivery_time"]=>
  string(19) "2017-12-29 00:00:00"
  ["actual_delivery_time"]=>
  string(19) "2017-12-29 17:35:47"
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:18"
}



Shipment info for shipping easy shipment ID #222100183 is same between both arrays

*** Order info:
Array
(
    [id] => 205787973
    [external_order_identifier] => 112-2360895-3745808
    [ext_order_reference_id] => 112-2360895-3745808
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-27T02:38:29Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 68.64
    [total_excluding_tax] => 64.00
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 68.64
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 4.64
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => stephen george
    [billing_first_name] => stephen
    [billing_last_name] => george
    [billing_address] => 129 SAN MARINO AVE
    [billing_address2] => 
    [billing_city] => VALLEJO
    [billing_state] => CA
    [billing_country] => US
    [billing_postal_code] => 94589-2651
    [billing_phone_number] => 9257687236
    [billing_email] => 9hnqh4c34csf89k@marketplace.amazon.com
    [buyer_email] => 9hnqh4c34csf89k@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => stephen
                    [last_name] => george
                    [address] => 129 SAN MARINO AVE
                    [address2] => 
                    [address3] => 
                    [city] => VALLEJO
                    [residential] => 1
                    [state] => CA
                    [province] => 
                    [country] => United States
                    [postal_code] => 94589
                    [postal_code_plus_4] => 2651
                    [phone_number] => 9257687236
                    [email] => 9hnqh4c34csf89k@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack BBQ 60 Pounds Pellet Assortment (Pick 3 x 20 Pound Bags) See Description for Flavors (New)
                                    [sku] => sw-20lb-assort-20lb
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 976.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 64.00
                                    [unit_price] => 64.00
                                    [ext_line_item_id] => 35319562988994
                                    [ext_product_id] => 
                                    [product_options] => Array
                                        (
                                            [Select Bag # 1] => 
                                            [Color (Select Bag # 1)] => 
                                            [Font (Select Bag # 1)] => 
                                            [Select Bag # 2] => 
                                            [Color (Select Bag # 2)] => 
                                            [Font (Select Bag # 2)] => 
                                            [Select Bag # 3] => 
                                            [Color (Select Bag # 3)] => 
                                            [Font (Select Bag # 3)] => 
                                            [Wedgie] => 
                                            [Color (Wedgie)] => 
                                            [Font (Wedgie)] => 
                                            [Wedgie Feet] => 
                                            [Color (Wedgie Feet)] => 
                                            [Font (Wedgie Feet)] => 
                                            [Duck Fat] => 
                                            [Color (Duck Fat)] => 
                                            [Font (Duck Fat)] => 
                                        )

                                    [uuid] => 0415ed5f-564f-45d1-b953-a85df75ef455
                                    [order_source_id] => 215190053
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 205787973
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 207866413
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 976.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 7
                            [created_at] => 2017-12-27T03:07:58Z
                            [updated_at] => 2017-12-29T04:41:12Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack bbq 60 pounds pellet assortment (pick 3 x 20 pound bags) see description for flavors (new)
                            [line_item_sku] => sw-20lb-assort-20lb
                            [address_kind] => R
                            [recipient_last_name] => george
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 205787973
                            [state] => CA
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-27T02:38:29Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 112-2360895-3745808
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 112-2360895-3745808
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 222100213
                    [tracking_number] => 789122382054
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 2260
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-29T04:41:12Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 205787973
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for 9hnqh4c34csf89k@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 9962

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(7) "stephen"
  ["customer_last_name"]=>
  string(6) "george"
  ["customer_email"]=>
  string(38) "9hnqh4c34csf89k@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(14) "stephen george"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(18) "129 SAN MARINO AVE"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(7) "VALLEJO"
    ["address_state"]=>
    string(2) "CA"
    ["address_zip"]=>
    string(10) "94589-2651"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9962"
  ["ordered_time"]=>
  string(19) "2017-12-27 02:38:29"
  ["se_order_id"]=>
  int(205787973)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "112-2360895-3745808"
  ["order_weight_ounces"]=>
  string(5) "976.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4573) "{"id":205787973,"external_order_identifier":"112-2360895-3745808","ext_order_reference_id":"112-2360895-3745808","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-27T02:38:29Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"68.64","total_excluding_tax":"64.00","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"68.64","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"4.64","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"stephen george","billing_first_name":"stephen","billing_last_name":"george","billing_address":"129 SAN MARINO AVE","billing_address2":null,"billing_city":"VALLEJO","billing_state":"CA","billing_country":"US","billing_postal_code":"94589-2651","billing_phone_number":"9257687236","billing_email":"9hnqh4c34csf89k@marketplace.amazon.com","buyer_email":"9hnqh4c34csf89k@marketplace.amazon.com","recipients":[{"company":null,"first_name":"stephen","last_name":"george","address":"129 SAN MARINO AVE","address2":null,"address3":null,"city":"VALLEJO","residential":true,"state":"CA","province":null,"country":"United States","postal_code":"94589","postal_code_plus_4":"2651","phone_number":"9257687236","email":"9hnqh4c34csf89k@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack BBQ 60 Pounds Pellet Assortment (Pick 3 x 20 Pound Bags) See Description for Flavors (New)","sku":"sw-20lb-assort-20lb","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"976.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"64.00","unit_price":"64.00","ext_line_item_id":"35319562988994","ext_product_id":null,"product_options":{"Select Bag # 1":null,"Color (Select Bag # 1)":null,"Font (Select Bag # 1)":null,"Select Bag # 2":null,"Color (Select Bag # 2)":null,"Font (Select Bag # 2)":null,"Select Bag # 3":null,"Color (Select Bag # 3)":null,"Font (Select Bag # 3)":null,"Wedgie":null,"Color (Wedgie)":null,"Font (Wedgie)":null,"Wedgie Feet":null,"Color (Wedgie Feet)":null,"Font (Wedgie Feet)":null,"Duck Fat":null,"Color (Duck Fat)":null,"Font (Duck Fat)":null},"uuid":"0415ed5f-564f-45d1-b953-a85df75ef455","order_source_id":215190053,"gift_message":null}],"original_order":{"id":205787973,"customer_id":33773,"store_id":70647,"order_detail_id":207866413,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"976.0","total_quantity":1,"is_international":false,"usps_shipping_zone":7,"created_at":"2017-12-27T03:07:58Z","updated_at":"2017-12-29T04:41:12Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack bbq 60 pounds pellet assortment (pick 3 x 20 pound bags) see description for flavors (new)","line_item_sku":"sw-20lb-assort-20lb","address_kind":"R","recipient_last_name":"george","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":205787973,"state":"CA","owner_id":37098,"denormalized_ordered_at":"2017-12-27T02:38:29Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"112-2360895-3745808","packing_slip_generated":null,"denormalized_ext_order_reference_id":"112-2360895-3745808","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":222100213,"tracking_number":"789122382054","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":2260,"ship_date":"2017-12-28"}],"updated_at":"2017-12-29T04:41:12Z","internal_notes":"","meta_data":null,"prime_order_id":205787973,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(222100213)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(5) "976.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(2260)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(12) "789122382054"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7347

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7014"
    ["order_id"]=>
    string(4) "7347"
    ["se_shipment_id"]=>
    string(9) "222100213"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "2260"
    ["shipment_weight_ounces"]=>
    string(6) "976.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789122382054"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "IT"
    ["tracking_status_description"]=>
    string(10) "In transit"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-03 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:21"
  }
}


shipmentDBRows:
array(1) {
  [222100213]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7014"
    ["order_id"]=>
    string(4) "7347"
    ["se_shipment_id"]=>
    string(9) "222100213"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "2260"
    ["shipment_weight_ounces"]=>
    string(6) "976.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789122382054"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "IT"
    ["tracking_status_description"]=>
    string(10) "In transit"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-03 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:21"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(222100213)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(5) "976.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(2260)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789122382054"
  }
}

Shipment info shipping easy shipment ID #222100213

From API:
array(7) {
  ["se_shipment_id"]=>
  int(222100213)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(5) "976.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(2260)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789122382054"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7014"
  ["order_id"]=>
  string(4) "7347"
  ["se_shipment_id"]=>
  string(9) "222100213"
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  string(4) "2260"
  ["shipment_weight_ounces"]=>
  string(6) "976.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789122382054"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  string(2) "IT"
  ["tracking_status_description"]=>
  string(10) "In transit"
  ["estimated_delivery_time"]=>
  string(19) "2018-01-03 00:00:00"
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:21"
}



Shipment info for shipping easy shipment ID #222100213 is same between both arrays

*** Order info:
Array
(
    [id] => 205870093
    [external_order_identifier] => 113-5117234-4713804
    [ext_order_reference_id] => 113-5117234-4713804
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-27T04:30:12Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 62.00
    [total_excluding_tax] => 62.00
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 62.00
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Alex Ortega
    [billing_first_name] => Linda
    [billing_last_name] => Ortega
    [billing_address] => 7603 GLOUCESTER AVE
    [billing_address2] => 
    [billing_city] => NORFOLK
    [billing_state] => VA
    [billing_country] => US
    [billing_postal_code] => 23505-2315
    [billing_phone_number] => 3474009841
    [billing_email] => 3hg3bk2g3t94pfy@marketplace.amazon.com
    [buyer_email] => 3hg3bk2g3t94pfy@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Alex
                    [last_name] => Ortega
                    [address] => 7603 GLOUCESTER AVE
                    [address2] => 
                    [address3] => 
                    [city] => NORFOLK
                    [residential] => 1
                    [state] => VA
                    [province] => 
                    [country] => United States
                    [postal_code] => 23505
                    [postal_code_plus_4] => 2315
                    [phone_number] => 3474009841
                    [email] => 3hg3bk2g3t94pfy@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack BBQ 60 Pounds Pellet Assortment (Pick 3 x 20 Pound Bags) See Description for Flavors (New)
                                    [sku] => sw-20lb-assort-20lb
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 976.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 62.00
                                    [unit_price] => 62.00
                                    [ext_line_item_id] => 69139496173906
                                    [ext_product_id] => 
                                    [product_options] => Array
                                        (
                                            [Select Bag # 1] => 
                                            [Color (Select Bag # 1)] => 
                                            [Font (Select Bag # 1)] => 
                                            [Select Bag # 2] => 
                                            [Color (Select Bag # 2)] => 
                                            [Font (Select Bag # 2)] => 
                                            [Select Bag # 3] => 
                                            [Color (Select Bag # 3)] => 
                                            [Font (Select Bag # 3)] => 
                                            [Wedgie] => 
                                            [Color (Wedgie)] => 
                                            [Font (Wedgie)] => 
                                            [Wedgie Feet] => 
                                            [Color (Wedgie Feet)] => 
                                            [Font (Wedgie Feet)] => 
                                            [Duck Fat] => 
                                            [Color (Duck Fat)] => 
                                            [Font (Duck Fat)] => 
                                        )

                                    [uuid] => dcb6e807-cb65-4829-967b-69d2ed47b6c1
                                    [order_source_id] => 215282453
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 205870093
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 207951303
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 976.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-27T05:07:29Z
                            [updated_at] => 2017-12-29T04:41:12Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack bbq 60 pounds pellet assortment (pick 3 x 20 pound bags) see description for flavors (new)
                            [line_item_sku] => sw-20lb-assort-20lb
                            [address_kind] => R
                            [recipient_last_name] => ortega
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 205870093
                            [state] => VA
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-27T04:30:12Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 113-5117234-4713804
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 113-5117234-4713804
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 222100223
                    [tracking_number] => 789122382065
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 1596
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-29T04:41:12Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 205870093
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for 3hg3bk2g3t94pfy@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 9967

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(4) "Alex"
  ["customer_last_name"]=>
  string(6) "Ortega"
  ["customer_email"]=>
  string(38) "3hg3bk2g3t94pfy@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(11) "Alex Ortega"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(19) "7603 GLOUCESTER AVE"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(7) "NORFOLK"
    ["address_state"]=>
    string(2) "VA"
    ["address_zip"]=>
    string(10) "23505-2315"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9967"
  ["ordered_time"]=>
  string(19) "2017-12-27 04:30:12"
  ["se_order_id"]=>
  int(205870093)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "113-5117234-4713804"
  ["order_weight_ounces"]=>
  string(5) "976.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4567) "{"id":205870093,"external_order_identifier":"113-5117234-4713804","ext_order_reference_id":"113-5117234-4713804","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-27T04:30:12Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"62.00","total_excluding_tax":"62.00","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"62.00","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Alex Ortega","billing_first_name":"Linda","billing_last_name":"Ortega","billing_address":"7603 GLOUCESTER AVE","billing_address2":null,"billing_city":"NORFOLK","billing_state":"VA","billing_country":"US","billing_postal_code":"23505-2315","billing_phone_number":"3474009841","billing_email":"3hg3bk2g3t94pfy@marketplace.amazon.com","buyer_email":"3hg3bk2g3t94pfy@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Alex","last_name":"Ortega","address":"7603 GLOUCESTER AVE","address2":null,"address3":null,"city":"NORFOLK","residential":true,"state":"VA","province":null,"country":"United States","postal_code":"23505","postal_code_plus_4":"2315","phone_number":"3474009841","email":"3hg3bk2g3t94pfy@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack BBQ 60 Pounds Pellet Assortment (Pick 3 x 20 Pound Bags) See Description for Flavors (New)","sku":"sw-20lb-assort-20lb","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"976.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"62.00","unit_price":"62.00","ext_line_item_id":"69139496173906","ext_product_id":null,"product_options":{"Select Bag # 1":null,"Color (Select Bag # 1)":null,"Font (Select Bag # 1)":null,"Select Bag # 2":null,"Color (Select Bag # 2)":null,"Font (Select Bag # 2)":null,"Select Bag # 3":null,"Color (Select Bag # 3)":null,"Font (Select Bag # 3)":null,"Wedgie":null,"Color (Wedgie)":null,"Font (Wedgie)":null,"Wedgie Feet":null,"Color (Wedgie Feet)":null,"Font (Wedgie Feet)":null,"Duck Fat":null,"Color (Duck Fat)":null,"Font (Duck Fat)":null},"uuid":"dcb6e807-cb65-4829-967b-69d2ed47b6c1","order_source_id":215282453,"gift_message":null}],"original_order":{"id":205870093,"customer_id":33773,"store_id":70647,"order_detail_id":207951303,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"976.0","total_quantity":1,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-27T05:07:29Z","updated_at":"2017-12-29T04:41:12Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack bbq 60 pounds pellet assortment (pick 3 x 20 pound bags) see description for flavors (new)","line_item_sku":"sw-20lb-assort-20lb","address_kind":"R","recipient_last_name":"ortega","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":205870093,"state":"VA","owner_id":37098,"denormalized_ordered_at":"2017-12-27T04:30:12Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"113-5117234-4713804","packing_slip_generated":null,"denormalized_ext_order_reference_id":"113-5117234-4713804","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":222100223,"tracking_number":"789122382065","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":1596,"ship_date":"2017-12-28"}],"updated_at":"2017-12-29T04:41:12Z","internal_notes":"","meta_data":null,"prime_order_id":205870093,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(222100223)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(5) "976.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(1596)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(12) "789122382065"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7356

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7015"
    ["order_id"]=>
    string(4) "7356"
    ["se_shipment_id"]=>
    string(9) "222100223"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1596"
    ["shipment_weight_ounces"]=>
    string(6) "976.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789122382065"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "OD"
    ["tracking_status_description"]=>
    string(29) "On FedEx vehicle for delivery"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-02 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:21"
  }
}


shipmentDBRows:
array(1) {
  [222100223]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7015"
    ["order_id"]=>
    string(4) "7356"
    ["se_shipment_id"]=>
    string(9) "222100223"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1596"
    ["shipment_weight_ounces"]=>
    string(6) "976.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789122382065"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "OD"
    ["tracking_status_description"]=>
    string(29) "On FedEx vehicle for delivery"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-02 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:21"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(222100223)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(5) "976.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(1596)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789122382065"
  }
}

Shipment info shipping easy shipment ID #222100223

From API:
array(7) {
  ["se_shipment_id"]=>
  int(222100223)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(5) "976.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(1596)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789122382065"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7015"
  ["order_id"]=>
  string(4) "7356"
  ["se_shipment_id"]=>
  string(9) "222100223"
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  string(4) "1596"
  ["shipment_weight_ounces"]=>
  string(6) "976.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789122382065"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  string(2) "OD"
  ["tracking_status_description"]=>
  string(29) "On FedEx vehicle for delivery"
  ["estimated_delivery_time"]=>
  string(19) "2018-01-02 00:00:00"
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:21"
}



Shipment info for shipping easy shipment ID #222100223 is same between both arrays

*** Order info:
Array
(
    [id] => 205427743
    [external_order_identifier] => 112-5765568-8674623
    [ext_order_reference_id] => 112-5765568-8674623
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-26T19:17:05Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 110.00
    [total_excluding_tax] => 110.00
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 110.00
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Don Sullivan
    [billing_first_name] => Donald
    [billing_last_name] => E
    [billing_address] => 1721 WATER WAY RD
    [billing_address2] => 
    [billing_city] => GREENVILLE
    [billing_state] => NC
    [billing_country] => US
    [billing_postal_code] => 27834-4404
    [billing_phone_number] => 252-531-6049
    [billing_email] => dk5wwf3vq9tq97m@marketplace.amazon.com
    [buyer_email] => dk5wwf3vq9tq97m@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Don
                    [last_name] => Sullivan
                    [address] => 1721 WATER WAY RD
                    [address2] => 
                    [address3] => 
                    [city] => GREENVILLE
                    [residential] => 
                    [state] => NC
                    [province] => 
                    [country] => United States
                    [postal_code] => 27834
                    [postal_code_plus_4] => 4404
                    [phone_number] => 252-531-6049
                    [email] => dk5wwf3vq9tq97m@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => 120 Pound Lumber Jack BBQ Smoker Pellets Variety Pack - Pick 6 x 20-Pound Bags (See Description for Flavors) (New)
                                    [sku] => 12020variety
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 1920.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 110.00
                                    [unit_price] => 110.00
                                    [ext_line_item_id] => 01917249639682
                                    [ext_product_id] => 
                                    [product_options] => Array
                                        (
                                            [Select Bag # 1] => 
                                            [Color (Select Bag # 1)] => 
                                            [Font (Select Bag # 1)] => 
                                            [Select Bag # 2] => 
                                            [Color (Select Bag # 2)] => 
                                            [Font (Select Bag # 2)] => 
                                            [Select Bag # 3] => 
                                            [Color (Select Bag # 3)] => 
                                            [Font (Select Bag # 3)] => 
                                            [Select Bag # 4] => 
                                            [Color (Select Bag # 4)] => 
                                            [Font (Select Bag # 4)] => 
                                            [Select Bag # 5] => 
                                            [Color (Select Bag # 5)] => 
                                            [Font (Select Bag # 5)] => 
                                            [Select Bag # 6] => 
                                            [Color (Select Bag # 6)] => 
                                            [Font (Select Bag # 6)] => 
                                            [Select Wedgie] => 
                                            [Color (Select Wedgie)] => 
                                            [Font (Select Wedgie)] => 
                                            [Wedgie Feet] => 
                                            [Color (Wedgie Feet)] => 
                                            [Font (Wedgie Feet)] => 
                                            [Duck Fat] => 
                                            [Color (Duck Fat)] => 
                                            [Font (Duck Fat)] => 
                                        )

                                    [uuid] => 41d97a6d-d8c9-4d47-b8f0-81be9359f9b6
                                    [order_source_id] => 214795433
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 205427743
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 207500513
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 1920.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-26T20:06:52Z
                            [updated_at] => 2017-12-29T04:41:12Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => 120 pound lumber jack bbq smoker pellets variety pack - pick 6 x 20-pound bags (see description for flavors) (new)
                            [line_item_sku] => 12020variety
                            [address_kind] => C
                            [recipient_last_name] => sullivan
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 205427743
                            [state] => NC
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-26T19:17:05Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 112-5765568-8674623
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 112-5765568-8674623
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 222112223
                    [tracking_number] => 789122263880
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 1596
                    [ship_date] => 2017-12-28
                )

            [1] => Array
                (
                    [id] => 222100263
                    [tracking_number] => 789122202503
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 1596
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-29T04:41:12Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 205427743
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for dk5wwf3vq9tq97m@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 9947

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(3) "Don"
  ["customer_last_name"]=>
  string(8) "Sullivan"
  ["customer_email"]=>
  string(38) "dk5wwf3vq9tq97m@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(12) "Don Sullivan"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(17) "1721 WATER WAY RD"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(10) "GREENVILLE"
    ["address_state"]=>
    string(2) "NC"
    ["address_zip"]=>
    string(10) "27834-4404"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "9947"
  ["ordered_time"]=>
  string(19) "2017-12-26 19:17:05"
  ["se_order_id"]=>
  int(205427743)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "112-5765568-8674623"
  ["order_weight_ounces"]=>
  string(6) "1920.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(5010) "{"id":205427743,"external_order_identifier":"112-5765568-8674623","ext_order_reference_id":"112-5765568-8674623","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-26T19:17:05Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"110.00","total_excluding_tax":"110.00","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"110.00","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Don Sullivan","billing_first_name":"Donald","billing_last_name":"E","billing_address":"1721 WATER WAY RD","billing_address2":null,"billing_city":"GREENVILLE","billing_state":"NC","billing_country":"US","billing_postal_code":"27834-4404","billing_phone_number":"252-531-6049","billing_email":"dk5wwf3vq9tq97m@marketplace.amazon.com","buyer_email":"dk5wwf3vq9tq97m@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Don","last_name":"Sullivan","address":"1721 WATER WAY RD","address2":null,"address3":null,"city":"GREENVILLE","residential":false,"state":"NC","province":null,"country":"United States","postal_code":"27834","postal_code_plus_4":"4404","phone_number":"252-531-6049","email":"dk5wwf3vq9tq97m@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"120 Pound Lumber Jack BBQ Smoker Pellets Variety Pack - Pick 6 x 20-Pound Bags (See Description for Flavors) (New)","sku":"12020variety","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"1920.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"110.00","unit_price":"110.00","ext_line_item_id":"01917249639682","ext_product_id":null,"product_options":{"Select Bag # 1":null,"Color (Select Bag # 1)":null,"Font (Select Bag # 1)":null,"Select Bag # 2":null,"Color (Select Bag # 2)":null,"Font (Select Bag # 2)":null,"Select Bag # 3":null,"Color (Select Bag # 3)":null,"Font (Select Bag # 3)":null,"Select Bag # 4":null,"Color (Select Bag # 4)":null,"Font (Select Bag # 4)":null,"Select Bag # 5":null,"Color (Select Bag # 5)":null,"Font (Select Bag # 5)":null,"Select Bag # 6":null,"Color (Select Bag # 6)":null,"Font (Select Bag # 6)":null,"Select Wedgie":null,"Color (Select Wedgie)":null,"Font (Select Wedgie)":null,"Wedgie Feet":null,"Color (Wedgie Feet)":null,"Font (Wedgie Feet)":null,"Duck Fat":null,"Color (Duck Fat)":null,"Font (Duck Fat)":null},"uuid":"41d97a6d-d8c9-4d47-b8f0-81be9359f9b6","order_source_id":214795433,"gift_message":null}],"original_order":{"id":205427743,"customer_id":33773,"store_id":70647,"order_detail_id":207500513,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"1920.0","total_quantity":1,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-26T20:06:52Z","updated_at":"2017-12-29T04:41:12Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"120 pound lumber jack bbq smoker pellets variety pack - pick 6 x 20-pound bags (see description for flavors) (new)","line_item_sku":"12020variety","address_kind":"C","recipient_last_name":"sullivan","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":205427743,"state":"NC","owner_id":37098,"denormalized_ordered_at":"2017-12-26T19:17:05Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"112-5765568-8674623","packing_slip_generated":null,"denormalized_ext_order_reference_id":"112-5765568-8674623","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":222112223,"tracking_number":"789122263880","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":1596,"ship_date":"2017-12-28"},{"id":222100263,"tracking_number":"789122202503","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":1596,"ship_date":"2017-12-28"}],"updated_at":"2017-12-29T04:41:12Z","internal_notes":"","meta_data":null,"prime_order_id":205427743,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(2) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(222112223)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(6) "1920.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(1596)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(12) "789122263880"
    }
    [1]=>
    array(7) {
      ["se_shipment_id"]=>
      int(222100263)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(6) "1920.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(1596)
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(12) "789122202503"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7329

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7011"
    ["order_id"]=>
    string(4) "7329"
    ["se_shipment_id"]=>
    string(9) "222100263"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1596"
    ["shipment_weight_ounces"]=>
    string(7) "1920.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789122202503"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "OD"
    ["tracking_status_description"]=>
    string(29) "On FedEx vehicle for delivery"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-02 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:20"
  }
}


shipmentDBRows:
array(1) {
  [222100263]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7011"
    ["order_id"]=>
    string(4) "7329"
    ["se_shipment_id"]=>
    string(9) "222100263"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1596"
    ["shipment_weight_ounces"]=>
    string(7) "1920.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789122202503"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "OD"
    ["tracking_status_description"]=>
    string(29) "On FedEx vehicle for delivery"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-02 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:20"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(222100263)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(6) "1920.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(1596)
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(12) "789122202503"
  }
}

Shipment info shipping easy shipment ID #222100263

From API:
array(7) {
  ["se_shipment_id"]=>
  int(222100263)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(6) "1920.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(1596)
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789122202503"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7011"
  ["order_id"]=>
  string(4) "7329"
  ["se_shipment_id"]=>
  string(9) "222100263"
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  string(4) "1596"
  ["shipment_weight_ounces"]=>
  string(7) "1920.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(12) "789122202503"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  string(2) "OD"
  ["tracking_status_description"]=>
  string(29) "On FedEx vehicle for delivery"
  ["estimated_delivery_time"]=>
  string(19) "2018-01-02 00:00:00"
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:20"
}



Shipment info for shipping easy shipment ID #222100263 is same between both arrays

*** Order info:
Array
(
    [id] => 207833743
    [external_order_identifier] => 111-4541345-5969811
    [ext_order_reference_id] => 111-4541345-5969811
    [owner_id] => 
    [sales_channel] => 
    [fulfillment_channel] => fulfillment_by_amazon
    [ordered_at] => 2017-12-28T11:22:15Z
    [order_status] => drop_shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 19.99
    [total_excluding_tax] => 19.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 19.99
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Michael Mayes
    [billing_first_name] => Michael
    [billing_last_name] => Mayes
    [billing_address] => 301 NE 102ND ST
    [billing_address2] => 
    [billing_city] => OKLAHOMA CITY
    [billing_state] => OK
    [billing_country] => US
    [billing_postal_code] => 73114-6228
    [billing_phone_number] => 
    [billing_email] => ztplgrldx4s3541@marketplace.amazon.com
    [buyer_email] => ztplgrldx4s3541@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Michael
                    [last_name] => Mayes
                    [address] => 301 NE 102ND ST
                    [address2] => 
                    [address3] => 
                    [city] => OKLAHOMA CITY
                    [residential] => 1
                    [state] => OK
                    [province] => 
                    [country] => United States
                    [postal_code] => 73114
                    [postal_code_plus_4] => 6228
                    [phone_number] => 
                    [email] => ztplgrldx4s3541@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => SecondDay
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Smokin Wedgies - Stainless Steel
                                    [sku] => smoking wedgie
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 0.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 19.99
                                    [unit_price] => 19.99
                                    [ext_line_item_id] => 55260004969274
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 243945d9-ea40-473a-9941-95f004eae07f
                                    [order_source_id] => 217424053
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 207833743
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 209952763
                            [workflow_state] => drop_shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 0.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-29T05:07:39Z
                            [updated_at] => 2017-12-29T05:07:40Z
                            [ext_shipment_confirmation_id] => 0
                            [store_order_status] => external_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 
                            [internal_notes] => 
                            [line_item_name] => smokin wedgies - stainless steel
                            [line_item_sku] => smoking wedgie
                            [address_kind] => R
                            [recipient_last_name] => mayes
                            [recipient_requested_service] => secondday
                            [gift] => 
                            [prime_order_id] => 207833743
                            [state] => OK
                            [owner_id] => 
                            [denormalized_ordered_at] => 2017-12-28T11:22:15Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 111-4541345-5969811
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 111-4541345-5969811
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 224501393
                    [tracking_number] => 
                    [carrier_key] => 
                    [carrier_service_key] => 
                    [shipment_cost] => 
                    [ship_date] => 2017-12-28
                )

        )

    [updated_at] => 2017-12-29T05:07:40Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 207833743
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for ztplgrldx4s3541@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 10003

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(7) "Michael"
  ["customer_last_name"]=>
  string(5) "Mayes"
  ["customer_email"]=>
  string(38) "ztplgrldx4s3541@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(13) "Michael Mayes"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(15) "301 NE 102ND ST"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(13) "OKLAHOMA CITY"
    ["address_state"]=>
    string(2) "OK"
    ["address_zip"]=>
    string(10) "73114-6228"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10003"
  ["ordered_time"]=>
  string(19) "2017-12-28 11:22:15"
  ["se_order_id"]=>
  int(207833743)
  ["se_order_status"]=>
  string(12) "drop_shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "111-4541345-5969811"
  ["order_weight_ounces"]=>
  string(3) "0.0"
  ["store_order_status"]=>
  string(20) "external_fulfillment"
  ["se_api_response"]=>
  string(3971) "{"id":207833743,"external_order_identifier":"111-4541345-5969811","ext_order_reference_id":"111-4541345-5969811","owner_id":null,"sales_channel":null,"fulfillment_channel":"fulfillment_by_amazon","ordered_at":"2017-12-28T11:22:15Z","order_status":"drop_shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"19.99","total_excluding_tax":"19.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"19.99","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Michael Mayes","billing_first_name":"Michael","billing_last_name":"Mayes","billing_address":"301 NE 102ND ST","billing_address2":null,"billing_city":"OKLAHOMA CITY","billing_state":"OK","billing_country":"US","billing_postal_code":"73114-6228","billing_phone_number":null,"billing_email":"ztplgrldx4s3541@marketplace.amazon.com","buyer_email":"ztplgrldx4s3541@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Michael","last_name":"Mayes","address":"301 NE 102ND ST","address2":null,"address3":null,"city":"OKLAHOMA CITY","residential":true,"state":"OK","province":null,"country":"United States","postal_code":"73114","postal_code_plus_4":"6228","phone_number":null,"email":"ztplgrldx4s3541@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"SecondDay","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Smokin Wedgies - Stainless Steel","sku":"smoking wedgie","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"0.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"19.99","unit_price":"19.99","ext_line_item_id":"55260004969274","ext_product_id":null,"product_options":null,"uuid":"243945d9-ea40-473a-9941-95f004eae07f","order_source_id":217424053,"gift_message":null}],"original_order":{"id":207833743,"customer_id":33773,"store_id":70647,"order_detail_id":209952763,"workflow_state":"drop_shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"0.0","total_quantity":1,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-29T05:07:39Z","updated_at":"2017-12-29T05:07:40Z","ext_shipment_confirmation_id":0,"store_order_status":"external_fulfillment","drop_ship_tracking_number":null,"category_id":null,"internal_notes":"","line_item_name":"smokin wedgies - stainless steel","line_item_sku":"smoking wedgie","address_kind":"R","recipient_last_name":"mayes","recipient_requested_service":"secondday","gift":null,"prime_order_id":207833743,"state":"OK","owner_id":null,"denormalized_ordered_at":"2017-12-28T11:22:15Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"111-4541345-5969811","packing_slip_generated":null,"denormalized_ext_order_reference_id":"111-4541345-5969811","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":224501393,"tracking_number":null,"carrier_key":null,"carrier_service_key":null,"shipment_cost":null,"ship_date":"2017-12-28"}],"updated_at":"2017-12-29T05:07:40Z","internal_notes":"","meta_data":null,"prime_order_id":207833743,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(224501393)
      ["carrier_key"]=>
      string(7) "SPEEDEE"
      ["shipment_weight_ounces"]=>
      string(3) "0.0"
      ["carrier_service_key"]=>
      NULL
      ["shipment_cost"]=>
      NULL
      ["ship_date"]=>
      string(10) "2017-12-28"
      ["tracking_number"]=>
      string(0) ""
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7400

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7059"
    ["order_id"]=>
    string(4) "7400"
    ["se_shipment_id"]=>
    string(9) "224501393"
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["shipment_weight_ounces"]=>
    string(4) "0.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(0) ""
    ["tracking_status"]=>
    string(9) "UNSHIPPED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    NULL
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2017-12-29 07:37:26"
  }
}


shipmentDBRows:
array(1) {
  [224501393]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7059"
    ["order_id"]=>
    string(4) "7400"
    ["se_shipment_id"]=>
    string(9) "224501393"
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["shipment_weight_ounces"]=>
    string(4) "0.00"
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(0) ""
    ["tracking_status"]=>
    string(9) "UNSHIPPED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    NULL
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2017-12-29 07:37:26"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(224501393)
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["shipment_weight_ounces"]=>
    string(3) "0.0"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["ship_date"]=>
    string(10) "2017-12-28"
    ["tracking_number"]=>
    string(0) ""
  }
}

Shipment info shipping easy shipment ID #224501393

From API:
array(7) {
  ["se_shipment_id"]=>
  int(224501393)
  ["carrier_key"]=>
  string(7) "SPEEDEE"
  ["shipment_weight_ounces"]=>
  string(3) "0.0"
  ["carrier_service_key"]=>
  NULL
  ["shipment_cost"]=>
  NULL
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(0) ""
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7059"
  ["order_id"]=>
  string(4) "7400"
  ["se_shipment_id"]=>
  string(9) "224501393"
  ["carrier_key"]=>
  string(7) "SPEEDEE"
  ["carrier_service_key"]=>
  NULL
  ["shipment_cost"]=>
  NULL
  ["shipment_weight_ounces"]=>
  string(4) "0.00"
  ["ship_date"]=>
  string(10) "2017-12-28"
  ["tracking_number"]=>
  string(0) ""
  ["tracking_status"]=>
  string(9) "UNSHIPPED"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  NULL
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2017-12-29 07:37:26"
}



Shipment info for shipping easy shipment ID #224501393 is same between both arrays

*** Order info:
Array
(
    [id] => 207678923
    [external_order_identifier] => 3941
    [ext_order_reference_id] => 3941
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-29T02:23:03Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 36.00
    [total_excluding_tax] => 0.00
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 0.00
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => 
    [billing_first_name] => Stuart
    [billing_last_name] => Keenan
    [billing_address] => 51 K Hampshire Dr
    [billing_address2] => 
    [billing_city] => Nashua
    [billing_state] => NH
    [billing_country] => US
    [billing_postal_code] => 03063
    [billing_phone_number] => 9126560859
    [billing_email] => stu@stukeenan.com
    [buyer_email] => stu@stukeenan.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Michael
                    [last_name] => Keenan
                    [address] => 354 Peregrine Pl
                    [address2] => 
                    [address3] => 
                    [city] => Louisa
                    [residential] => 1
                    [state] => VA
                    [province] => 
                    [country] => United States
                    [postal_code] => 23093
                    [postal_code_plus_4] => 2555
                    [phone_number] => 9126560859
                    [email] => stu@stukeenan.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 0
                    [shipping_method] => Free Shipping - No PO Boxes or APO
                    [items_shipped] => 0
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack 1 Pound Variety Pack (7 varieties) - Free Shipping
                                    [sku] => 1poundvariety
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 112.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 36.00
                                    [price_excluding_tax] => 0.00
                                    [unit_price] => 36.00
                                    [ext_line_item_id] => 
                                    [ext_product_id] => 69201136
                                    [product_options] => Array
                                        (
                                            [Add Smokin Wedgie] => Array
                                                (
                                                )

                                            [Add Optional 8th Flavor Sample] => Paris Bordeaux (Rosemary)
                                            [Add Optional 9th Flavor Sample] => Italian Garlic Spice
                                            [Add Gourmet Duck Fat Spray Cans Here] => Array
                                                (
                                                )

                                            [Add Smokin Wedgie Leg Kit for Flat Bottom Smokers] => Array
                                                (
                                                )

                                        )

                                    [uuid] => 93478a37-c47b-4438-b763-31bbcac099c1
                                    [order_source_id] => 217252083
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 207678923
                            [customer_id] => 33773
                            [store_id] => 70642
                            [order_detail_id] => 209793023
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 144.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-29T01:31:22Z
                            [updated_at] => 2017-12-29T08:29:10Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_shipment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack 1 pound variety pack (7 varieties) - free shipping
                            [line_item_sku] => 1poundvariety
                            [address_kind] => R
                            [recipient_last_name] => keenan
                            [recipient_requested_service] => free shipping - no po boxes or apo
                            [gift] => 
                            [prime_order_id] => 207678923
                            [state] => VA
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-29T02:23:03Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 3941
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 3941
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 276833075f862f916ca417ff8ccb9564
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 224535993
                    [tracking_number] => 9405510298370317331281
                    [carrier_key] => USPS
                    [carrier_service_key] => Priority
                    [shipment_cost] => 1095
                    [ship_date] => 2017-12-29
                )

        )

    [updated_at] => 2017-12-29T08:29:10Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 207678923
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for stu@stukeenan.com) was previously inserted to the DB.
Existing customer ID: 10004

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(7) "Michael"
  ["customer_last_name"]=>
  string(6) "Keenan"
  ["customer_email"]=>
  string(17) "stu@stukeenan.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  NULL
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(17) "51 K Hampshire Dr"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(6) "Nashua"
    ["address_state"]=>
    string(2) "NH"
    ["address_zip"]=>
    string(5) "03063"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10004"
  ["ordered_time"]=>
  string(19) "2017-12-29 02:23:03"
  ["se_order_id"]=>
  int(207678923)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(5) "Ecwid"
  ["store_order_id"]=>
  string(4) "3941"
  ["order_weight_ounces"]=>
  string(5) "144.0"
  ["store_order_status"]=>
  string(17) "awaiting_shipment"
  ["se_api_response"]=>
  string(4169) "{"id":207678923,"external_order_identifier":"3941","ext_order_reference_id":"3941","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-29T02:23:03Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"36.00","total_excluding_tax":"0.00","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"0.00","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":null,"billing_first_name":"Stuart","billing_last_name":"Keenan","billing_address":"51 K Hampshire Dr","billing_address2":null,"billing_city":"Nashua","billing_state":"NH","billing_country":"US","billing_postal_code":"03063","billing_phone_number":"9126560859","billing_email":"stu@stukeenan.com","buyer_email":"stu@stukeenan.com","recipients":[{"company":"","first_name":"Michael","last_name":"Keenan","address":"354 Peregrine Pl","address2":null,"address3":null,"city":"Louisa","residential":true,"state":"VA","province":null,"country":"United States","postal_code":"23093","postal_code_plus_4":"2555","phone_number":"9126560859","email":"stu@stukeenan.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":0,"shipping_method":"Free Shipping - No PO Boxes or APO","items_shipped":0,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack 1 Pound Variety Pack (7 varieties) - Free Shipping","sku":"1poundvariety","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"112.0","quantity":1,"total_excluding_tax":"36.00","price_excluding_tax":"0.00","unit_price":"36.00","ext_line_item_id":null,"ext_product_id":"69201136","product_options":{"Add Smokin Wedgie":[],"Add Optional 8th Flavor Sample":"Paris Bordeaux (Rosemary)","Add Optional 9th Flavor Sample":"Italian Garlic Spice","Add Gourmet Duck Fat Spray Cans Here":[],"Add Smokin Wedgie Leg Kit for Flat Bottom Smokers":[]},"uuid":"93478a37-c47b-4438-b763-31bbcac099c1","order_source_id":217252083,"gift_message":null}],"original_order":{"id":207678923,"customer_id":33773,"store_id":70642,"order_detail_id":209793023,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"144.0","total_quantity":1,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-29T01:31:22Z","updated_at":"2017-12-29T08:29:10Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_shipment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack 1 pound variety pack (7 varieties) - free shipping","line_item_sku":"1poundvariety","address_kind":"R","recipient_last_name":"keenan","recipient_requested_service":"free shipping - no po boxes or apo","gift":false,"prime_order_id":207678923,"state":"VA","owner_id":37098,"denormalized_ordered_at":"2017-12-29T02:23:03Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"3941","packing_slip_generated":null,"denormalized_ext_order_reference_id":"3941","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"276833075f862f916ca417ff8ccb9564","shipments":[{"id":224535993,"tracking_number":"9405510298370317331281","carrier_key":"USPS","carrier_service_key":"Priority","shipment_cost":1095,"ship_date":"2017-12-29"}],"updated_at":"2017-12-29T08:29:10Z","internal_notes":"","meta_data":null,"prime_order_id":207678923,"is_prime":null,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(224535993)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(5) "144.0"
      ["carrier_service_key"]=>
      string(8) "Priority"
      ["shipment_cost"]=>
      int(1095)
      ["ship_date"]=>
      string(10) "2017-12-29"
      ["tracking_number"]=>
      string(22) "9405510298370317331281"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7401

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7060"
    ["order_id"]=>
    string(4) "7401"
    ["se_shipment_id"]=>
    string(9) "224535993"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(4) "1095"
    ["shipment_weight_ounces"]=>
    string(6) "144.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(22) "9405510298370317331281"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(45) "Arrived at USPS Regional Destination Facility"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:58"
  }
}


shipmentDBRows:
array(1) {
  [224535993]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7060"
    ["order_id"]=>
    string(4) "7401"
    ["se_shipment_id"]=>
    string(9) "224535993"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(4) "1095"
    ["shipment_weight_ounces"]=>
    string(6) "144.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(22) "9405510298370317331281"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(45) "Arrived at USPS Regional Destination Facility"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:58"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(224535993)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(5) "144.0"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    int(1095)
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(22) "9405510298370317331281"
  }
}

Shipment info shipping easy shipment ID #224535993

From API:
array(7) {
  ["se_shipment_id"]=>
  int(224535993)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(5) "144.0"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  int(1095)
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(22) "9405510298370317331281"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7060"
  ["order_id"]=>
  string(4) "7401"
  ["se_shipment_id"]=>
  string(9) "224535993"
  ["carrier_key"]=>
  string(4) "USPS"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  string(4) "1095"
  ["shipment_weight_ounces"]=>
  string(6) "144.00"
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(22) "9405510298370317331281"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  string(45) "Arrived at USPS Regional Destination Facility"
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:58"
}



Shipment info for shipping easy shipment ID #224535993 is same between both arrays

*** Order info:
Array
(
    [id] => 207411733
    [external_order_identifier] => 3940
    [ext_order_reference_id] => 3940
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-28T21:18:11Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 24.62
    [total_excluding_tax] => 0.00
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 0.00
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 1.63
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => 
    [billing_first_name] => David
    [billing_last_name] => Peter
    [billing_address] => 155 N Tecumseh Trail
    [billing_address2] => 
    [billing_city] => Tiffin
    [billing_state] => OH
    [billing_country] => US
    [billing_postal_code] => 44883
    [billing_phone_number] => 7722159683
    [billing_email] => d_peter@bellsouth.net
    [buyer_email] => d_peter@bellsouth.net
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => David
                    [last_name] => Peter
                    [address] => 155 N Tecumseh Trail
                    [address2] => 
                    [address3] => 
                    [city] => Tiffin
                    [residential] => 1
                    [state] => OH
                    [province] => 
                    [country] => United States
                    [postal_code] => 44883
                    [postal_code_plus_4] => 3460
                    [phone_number] => 7722159683
                    [email] => d_peter@bellsouth.net
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 0
                    [shipping_method] => Free Shipping - No PO Boxes or APO
                    [items_shipped] => 0
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Gourmet Duck Fat Spray 2 Cans (7 Ounce Each) - Free Shipping
                                    [sku] => duckfat2
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 12.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 22.99
                                    [price_excluding_tax] => 0.00
                                    [unit_price] => 22.99
                                    [ext_line_item_id] => 
                                    [ext_product_id] => 80234821
                                    [product_options] => 
                                    [uuid] => f123de55-ab73-48a3-9581-936706cb4df0
                                    [order_source_id] => 216962073
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 207411733
                            [customer_id] => 33773
                            [store_id] => 70642
                            [order_detail_id] => 209520303
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 12.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 4
                            [created_at] => 2017-12-28T20:32:04Z
                            [updated_at] => 2017-12-29T08:53:19Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_shipment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => gourmet duck fat spray 2 cans (7 ounce each) - free shipping
                            [line_item_sku] => duckfat2
                            [address_kind] => R
                            [recipient_last_name] => peter
                            [recipient_requested_service] => free shipping - no po boxes or apo
                            [gift] => 
                            [prime_order_id] => 207411733
                            [state] => OH
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-28T21:18:11Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 3940
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 3940
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 276833075f862f916ca417ff8ccb9564
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 224535973
                    [tracking_number] => 9405510298370317331991
                    [carrier_key] => USPS
                    [carrier_service_key] => Priority
                    [shipment_cost] => 575
                    [ship_date] => 2017-12-29
                )

        )

    [updated_at] => 2017-12-29T08:53:19Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 207411733
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for d_peter@bellsouth.net) was previously inserted to the DB.
Existing customer ID: 10005

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(5) "David"
  ["customer_last_name"]=>
  string(5) "Peter"
  ["customer_email"]=>
  string(21) "d_peter@bellsouth.net"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  NULL
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(20) "155 N Tecumseh Trail"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(6) "Tiffin"
    ["address_state"]=>
    string(2) "OH"
    ["address_zip"]=>
    string(5) "44883"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10005"
  ["ordered_time"]=>
  string(19) "2017-12-28 21:18:11"
  ["se_order_id"]=>
  int(207411733)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(5) "Ecwid"
  ["store_order_id"]=>
  string(4) "3940"
  ["order_weight_ounces"]=>
  string(4) "12.0"
  ["store_order_status"]=>
  string(17) "awaiting_shipment"
  ["se_api_response"]=>
  string(3931) "{"id":207411733,"external_order_identifier":"3940","ext_order_reference_id":"3940","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-28T21:18:11Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"24.62","total_excluding_tax":"0.00","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"0.00","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"1.63","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":null,"billing_first_name":"David","billing_last_name":"Peter","billing_address":"155 N Tecumseh Trail","billing_address2":null,"billing_city":"Tiffin","billing_state":"OH","billing_country":"US","billing_postal_code":"44883","billing_phone_number":"7722159683","billing_email":"d_peter@bellsouth.net","buyer_email":"d_peter@bellsouth.net","recipients":[{"company":"","first_name":"David","last_name":"Peter","address":"155 N Tecumseh Trail","address2":null,"address3":null,"city":"Tiffin","residential":true,"state":"OH","province":null,"country":"United States","postal_code":"44883","postal_code_plus_4":"3460","phone_number":"7722159683","email":"d_peter@bellsouth.net","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":0,"shipping_method":"Free Shipping - No PO Boxes or APO","items_shipped":0,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Gourmet Duck Fat Spray 2 Cans (7 Ounce Each) - Free Shipping","sku":"duckfat2","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"12.0","quantity":1,"total_excluding_tax":"22.99","price_excluding_tax":"0.00","unit_price":"22.99","ext_line_item_id":null,"ext_product_id":"80234821","product_options":null,"uuid":"f123de55-ab73-48a3-9581-936706cb4df0","order_source_id":216962073,"gift_message":null}],"original_order":{"id":207411733,"customer_id":33773,"store_id":70642,"order_detail_id":209520303,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"12.0","total_quantity":1,"is_international":false,"usps_shipping_zone":4,"created_at":"2017-12-28T20:32:04Z","updated_at":"2017-12-29T08:53:19Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_shipment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"gourmet duck fat spray 2 cans (7 ounce each) - free shipping","line_item_sku":"duckfat2","address_kind":"R","recipient_last_name":"peter","recipient_requested_service":"free shipping - no po boxes or apo","gift":false,"prime_order_id":207411733,"state":"OH","owner_id":37098,"denormalized_ordered_at":"2017-12-28T21:18:11Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"3940","packing_slip_generated":null,"denormalized_ext_order_reference_id":"3940","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"276833075f862f916ca417ff8ccb9564","shipments":[{"id":224535973,"tracking_number":"9405510298370317331991","carrier_key":"USPS","carrier_service_key":"Priority","shipment_cost":575,"ship_date":"2017-12-29"}],"updated_at":"2017-12-29T08:53:19Z","internal_notes":"","meta_data":null,"prime_order_id":207411733,"is_prime":null,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(224535973)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(4) "12.0"
      ["carrier_service_key"]=>
      string(8) "Priority"
      ["shipment_cost"]=>
      int(575)
      ["ship_date"]=>
      string(10) "2017-12-29"
      ["tracking_number"]=>
      string(22) "9405510298370317331991"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7402

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7061"
    ["order_id"]=>
    string(4) "7402"
    ["se_shipment_id"]=>
    string(9) "224535973"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(3) "575"
    ["shipment_weight_ounces"]=>
    string(5) "12.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(22) "9405510298370317331991"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(14) "Arrived at Hub"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:58"
  }
}


shipmentDBRows:
array(1) {
  [224535973]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7061"
    ["order_id"]=>
    string(4) "7402"
    ["se_shipment_id"]=>
    string(9) "224535973"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(3) "575"
    ["shipment_weight_ounces"]=>
    string(5) "12.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(22) "9405510298370317331991"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(14) "Arrived at Hub"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:58"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(224535973)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(4) "12.0"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    int(575)
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(22) "9405510298370317331991"
  }
}

Shipment info shipping easy shipment ID #224535973

From API:
array(7) {
  ["se_shipment_id"]=>
  int(224535973)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(4) "12.0"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  int(575)
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(22) "9405510298370317331991"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7061"
  ["order_id"]=>
  string(4) "7402"
  ["se_shipment_id"]=>
  string(9) "224535973"
  ["carrier_key"]=>
  string(4) "USPS"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  string(3) "575"
  ["shipment_weight_ounces"]=>
  string(5) "12.00"
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(22) "9405510298370317331991"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  string(14) "Arrived at Hub"
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:58"
}



Shipment info for shipping easy shipment ID #224535973 is same between both arrays

*** Order info:
Array
(
    [id] => 207088473
    [external_order_identifier] => 4581157072702
    [ext_order_reference_id] => 4581157072702
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-28T15:10:12Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 25.00
    [total_excluding_tax] => 25.00
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 25.00
    [subtotal_excluding_tax] => 25.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => 
    [billing_first_name] => 
    [billing_last_name] => 
    [billing_address] => 
    [billing_address2] => 
    [billing_city] => 
    [billing_state] => 
    [billing_country] => 
    [billing_postal_code] => 
    [billing_phone_number] => 
    [billing_email] => F75CBA07D5B94CBC9E9702C9C7E25C99@relay.walmart.com
    [buyer_email] => F75CBA07D5B94CBC9E9702C9C7E25C99@relay.walmart.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Ken
                    [last_name] => Grantham
                    [address] => 1011 Ernest Williams Rd.
                    [address2] => 
                    [address3] => 
                    [city] => Roseboro
                    [residential] => 1
                    [state] => NC
                    [province] => 
                    [country] => United States
                    [postal_code] => 28382
                    [postal_code_plus_4] => 8501
                    [phone_number] => 9109901341
                    [email] => F75CBA07D5B94CBC9E9702C9C7E25C99@relay.walmart.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => Value
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack 100% Oak BBQ Grilling Pellets
                                    [sku] => 20100oak
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 320.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 25.00
                                    [price_excluding_tax] => 25.00
                                    [unit_price] => 25.00
                                    [ext_line_item_id] => 1
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => ac6388f0-4a18-4d4f-afdc-90fff4c007e1
                                    [order_source_id] => 216689113
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 207088473
                            [customer_id] => 33773
                            [store_id] => 537580
                            [order_detail_id] => 209194123
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 320.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-28T15:29:11Z
                            [updated_at] => 2017-12-29T08:56:06Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_shipment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack 100% oak bbq grilling pellets
                            [line_item_sku] => 20100oak
                            [address_kind] => R
                            [recipient_last_name] => grantham
                            [recipient_requested_service] => value
                            [gift] => 
                            [prime_order_id] => 207088473
                            [state] => NC
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-28T15:10:12Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 4581157072702
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 4581157072702
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 8d8626ca858f2fdea525637cd6a0816f
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 224536113
                    [tracking_number] => 789153254900
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 1052
                    [ship_date] => 2017-12-29
                )

        )

    [updated_at] => 2017-12-29T08:56:06Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 207088473
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for F75CBA07D5B94CBC9E9702C9C7E25C99@relay.walmart.com) was previously inserted to the DB.
Existing customer ID: 10006

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(3) "Ken"
  ["customer_last_name"]=>
  string(8) "Grantham"
  ["customer_email"]=>
  string(50) "F75CBA07D5B94CBC9E9702C9C7E25C99@relay.walmart.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  NULL
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    NULL
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    NULL
    ["address_state"]=>
    NULL
    ["address_zip"]=>
    NULL
    ["address_country"]=>
    NULL
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10006"
  ["ordered_time"]=>
  string(19) "2017-12-28 15:10:12"
  ["se_order_id"]=>
  int(207088473)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(7) "WalMart"
  ["store_order_id"]=>
  string(13) "4581157072702"
  ["order_weight_ounces"]=>
  string(5) "320.0"
  ["store_order_status"]=>
  string(17) "awaiting_shipment"
  ["se_api_response"]=>
  string(3932) "{"id":207088473,"external_order_identifier":"4581157072702","ext_order_reference_id":"4581157072702","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-28T15:10:12Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"25.00","total_excluding_tax":"25.00","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"25.00","subtotal_excluding_tax":"25.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":null,"billing_first_name":null,"billing_last_name":null,"billing_address":null,"billing_address2":null,"billing_city":null,"billing_state":null,"billing_country":null,"billing_postal_code":null,"billing_phone_number":null,"billing_email":"F75CBA07D5B94CBC9E9702C9C7E25C99@relay.walmart.com","buyer_email":"F75CBA07D5B94CBC9E9702C9C7E25C99@relay.walmart.com","recipients":[{"company":null,"first_name":"Ken","last_name":"Grantham","address":"1011 Ernest Williams Rd.","address2":null,"address3":null,"city":"Roseboro","residential":true,"state":"NC","province":null,"country":"United States","postal_code":"28382","postal_code_plus_4":"8501","phone_number":"9109901341","email":"F75CBA07D5B94CBC9E9702C9C7E25C99@relay.walmart.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"Value","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack 100% Oak BBQ Grilling Pellets","sku":"20100oak","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"320.0","quantity":1,"total_excluding_tax":"25.00","price_excluding_tax":"25.00","unit_price":"25.00","ext_line_item_id":"1","ext_product_id":null,"product_options":null,"uuid":"ac6388f0-4a18-4d4f-afdc-90fff4c007e1","order_source_id":216689113,"gift_message":null}],"original_order":{"id":207088473,"customer_id":33773,"store_id":537580,"order_detail_id":209194123,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"320.0","total_quantity":1,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-28T15:29:11Z","updated_at":"2017-12-29T08:56:06Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_shipment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack 100% oak bbq grilling pellets","line_item_sku":"20100oak","address_kind":"R","recipient_last_name":"grantham","recipient_requested_service":"value","gift":null,"prime_order_id":207088473,"state":"NC","owner_id":37098,"denormalized_ordered_at":"2017-12-28T15:10:12Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"4581157072702","packing_slip_generated":null,"denormalized_ext_order_reference_id":"4581157072702","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"8d8626ca858f2fdea525637cd6a0816f","shipments":[{"id":224536113,"tracking_number":"789153254900","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":1052,"ship_date":"2017-12-29"}],"updated_at":"2017-12-29T08:56:06Z","internal_notes":"","meta_data":null,"prime_order_id":207088473,"is_prime":null,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(224536113)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(5) "320.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(1052)
      ["ship_date"]=>
      string(10) "2017-12-29"
      ["tracking_number"]=>
      string(12) "789153254900"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7403

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7062"
    ["order_id"]=>
    string(4) "7403"
    ["se_shipment_id"]=>
    string(9) "224536113"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1052"
    ["shipment_weight_ounces"]=>
    string(6) "320.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(12) "789153254900"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "IT"
    ["tracking_status_description"]=>
    string(10) "In transit"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-04 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:30"
  }
}


shipmentDBRows:
array(1) {
  [224536113]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7062"
    ["order_id"]=>
    string(4) "7403"
    ["se_shipment_id"]=>
    string(9) "224536113"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1052"
    ["shipment_weight_ounces"]=>
    string(6) "320.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(12) "789153254900"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "IT"
    ["tracking_status_description"]=>
    string(10) "In transit"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-04 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:30"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(224536113)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(5) "320.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(1052)
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(12) "789153254900"
  }
}

Shipment info shipping easy shipment ID #224536113

From API:
array(7) {
  ["se_shipment_id"]=>
  int(224536113)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(5) "320.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(1052)
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(12) "789153254900"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7062"
  ["order_id"]=>
  string(4) "7403"
  ["se_shipment_id"]=>
  string(9) "224536113"
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  string(4) "1052"
  ["shipment_weight_ounces"]=>
  string(6) "320.00"
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(12) "789153254900"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  string(2) "IT"
  ["tracking_status_description"]=>
  string(10) "In transit"
  ["estimated_delivery_time"]=>
  string(19) "2018-01-04 00:00:00"
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:30"
}



Shipment info for shipping easy shipment ID #224536113 is same between both arrays

*** Order info:
Array
(
    [id] => 207611823
    [external_order_identifier] => 114-7146180-1076240
    [ext_order_reference_id] => 114-7146180-1076240
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-28T23:21:34Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 29.99
    [total_excluding_tax] => 29.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 29.99
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Christine walters
    [billing_first_name] => Christine
    [billing_last_name] => Walters
    [billing_address] => 25855 S GREENCASTLE DR
    [billing_address2] => 
    [billing_city] => SUN LAKES
    [billing_state] => AZ
    [billing_country] => US
    [billing_postal_code] => 85248-6817
    [billing_phone_number] => 14802233251
    [billing_email] => bb7rxmtctrjzgg5@marketplace.amazon.com
    [buyer_email] => bb7rxmtctrjzgg5@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Christine
                    [last_name] => walters
                    [address] => 25855 S GREENCASTLE DR
                    [address2] => 
                    [address3] => 
                    [city] => SUN LAKES
                    [residential] => 1
                    [state] => AZ
                    [province] => 
                    [country] => United States
                    [postal_code] => 85248
                    [postal_code_plus_4] => 6817
                    [phone_number] => 14802233251
                    [email] => bb7rxmtctrjzgg5@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Priority Mail if Qty 1 (New)
                                    [sku] => 1poundvariety
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 112.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 29.99
                                    [unit_price] => 29.99
                                    [ext_line_item_id] => 35101931123434
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 961b0e58-2d2d-4864-8f49-4f35581a968f
                                    [order_source_id] => 217177303
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 207611823
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 209724073
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 112.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 6
                            [created_at] => 2017-12-29T00:06:56Z
                            [updated_at] => 2017-12-29T09:11:03Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped priority mail if qty 1 (new)
                            [line_item_sku] => 1poundvariety
                            [address_kind] => R
                            [recipient_last_name] => walters
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 207611823
                            [state] => AZ
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-28T23:21:34Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 114-7146180-1076240
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 114-7146180-1076240
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 224535813
                    [tracking_number] => 9405510298370317332080
                    [carrier_key] => USPS
                    [carrier_service_key] => Priority
                    [shipment_cost] => 919
                    [ship_date] => 2017-12-29
                )

        )

    [updated_at] => 2017-12-29T09:11:03Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 207611823
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for bb7rxmtctrjzgg5@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 10007

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(9) "Christine"
  ["customer_last_name"]=>
  string(7) "walters"
  ["customer_email"]=>
  string(38) "bb7rxmtctrjzgg5@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(17) "Christine walters"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(22) "25855 S GREENCASTLE DR"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(9) "SUN LAKES"
    ["address_state"]=>
    string(2) "AZ"
    ["address_zip"]=>
    string(10) "85248-6817"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10007"
  ["ordered_time"]=>
  string(19) "2017-12-28 23:21:34"
  ["se_order_id"]=>
  int(207611823)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "114-7146180-1076240"
  ["order_weight_ounces"]=>
  string(5) "112.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4303) "{"id":207611823,"external_order_identifier":"114-7146180-1076240","ext_order_reference_id":"114-7146180-1076240","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-28T23:21:34Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"29.99","total_excluding_tax":"29.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"29.99","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Christine walters","billing_first_name":"Christine","billing_last_name":"Walters","billing_address":"25855 S GREENCASTLE DR","billing_address2":null,"billing_city":"SUN LAKES","billing_state":"AZ","billing_country":"US","billing_postal_code":"85248-6817","billing_phone_number":"14802233251","billing_email":"bb7rxmtctrjzgg5@marketplace.amazon.com","buyer_email":"bb7rxmtctrjzgg5@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Christine","last_name":"walters","address":"25855 S GREENCASTLE DR","address2":null,"address3":null,"city":"SUN LAKES","residential":true,"state":"AZ","province":null,"country":"United States","postal_code":"85248","postal_code_plus_4":"6817","phone_number":"14802233251","email":"bb7rxmtctrjzgg5@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Priority Mail if Qty 1 (New)","sku":"1poundvariety","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"112.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"29.99","unit_price":"29.99","ext_line_item_id":"35101931123434","ext_product_id":null,"product_options":null,"uuid":"961b0e58-2d2d-4864-8f49-4f35581a968f","order_source_id":217177303,"gift_message":null}],"original_order":{"id":207611823,"customer_id":33773,"store_id":70647,"order_detail_id":209724073,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"112.0","total_quantity":1,"is_international":false,"usps_shipping_zone":6,"created_at":"2017-12-29T00:06:56Z","updated_at":"2017-12-29T09:11:03Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped priority mail if qty 1 (new)","line_item_sku":"1poundvariety","address_kind":"R","recipient_last_name":"walters","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":207611823,"state":"AZ","owner_id":37098,"denormalized_ordered_at":"2017-12-28T23:21:34Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"114-7146180-1076240","packing_slip_generated":null,"denormalized_ext_order_reference_id":"114-7146180-1076240","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":224535813,"tracking_number":"9405510298370317332080","carrier_key":"USPS","carrier_service_key":"Priority","shipment_cost":919,"ship_date":"2017-12-29"}],"updated_at":"2017-12-29T09:11:03Z","internal_notes":"","meta_data":null,"prime_order_id":207611823,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(224535813)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(5) "112.0"
      ["carrier_service_key"]=>
      string(8) "Priority"
      ["shipment_cost"]=>
      int(919)
      ["ship_date"]=>
      string(10) "2017-12-29"
      ["tracking_number"]=>
      string(22) "9405510298370317332080"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7404

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7063"
    ["order_id"]=>
    string(4) "7404"
    ["se_shipment_id"]=>
    string(9) "224535813"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(3) "919"
    ["shipment_weight_ounces"]=>
    string(6) "112.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(22) "9405510298370317332080"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(45) "Arrived at USPS Regional Destination Facility"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:59"
  }
}


shipmentDBRows:
array(1) {
  [224535813]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7063"
    ["order_id"]=>
    string(4) "7404"
    ["se_shipment_id"]=>
    string(9) "224535813"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(3) "919"
    ["shipment_weight_ounces"]=>
    string(6) "112.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(22) "9405510298370317332080"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(45) "Arrived at USPS Regional Destination Facility"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:59"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(224535813)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(5) "112.0"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    int(919)
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(22) "9405510298370317332080"
  }
}

Shipment info shipping easy shipment ID #224535813

From API:
array(7) {
  ["se_shipment_id"]=>
  int(224535813)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(5) "112.0"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  int(919)
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(22) "9405510298370317332080"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7063"
  ["order_id"]=>
  string(4) "7404"
  ["se_shipment_id"]=>
  string(9) "224535813"
  ["carrier_key"]=>
  string(4) "USPS"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  string(3) "919"
  ["shipment_weight_ounces"]=>
  string(6) "112.00"
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(22) "9405510298370317332080"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  string(45) "Arrived at USPS Regional Destination Facility"
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:59"
}



Shipment info for shipping easy shipment ID #224535813 is same between both arrays

*** Order info:
Array
(
    [id] => 206989553
    [external_order_identifier] => 112-2661719-8603408
    [ext_order_reference_id] => 112-2661719-8603408
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-28T12:11:17Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 29.99
    [total_excluding_tax] => 29.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 29.99
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Lory Carman
    [billing_first_name] => Lory
    [billing_last_name] => Carman
    [billing_address] => 233 STATE ROUTE 94 S
    [billing_address2] => 
    [billing_city] => WARWICK
    [billing_state] => NY
    [billing_country] => US
    [billing_postal_code] => 10990-3322
    [billing_phone_number] => 8453248032
    [billing_email] => y21mt7gnh2131yy@marketplace.amazon.com
    [buyer_email] => y21mt7gnh2131yy@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Lory
                    [last_name] => Carman
                    [address] => 233 STATE ROUTE 94 S
                    [address2] => 
                    [address3] => 
                    [city] => WARWICK
                    [residential] => 1
                    [state] => NY
                    [province] => 
                    [country] => United States
                    [postal_code] => 10990
                    [postal_code_plus_4] => 3322
                    [phone_number] => 8453248032
                    [email] => y21mt7gnh2131yy@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Priority Mail if Qty 1 (New)
                                    [sku] => 1poundvariety
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 112.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 29.99
                                    [unit_price] => 29.99
                                    [ext_line_item_id] => 14913492548354
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => c04d4a24-2b09-46bd-9dfc-c4d560ce2bb3
                                    [order_source_id] => 216512513
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 206989553
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 209093763
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 112.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-28T13:06:13Z
                            [updated_at] => 2017-12-29T09:11:03Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped priority mail if qty 1 (new)
                            [line_item_sku] => 1poundvariety
                            [address_kind] => R
                            [recipient_last_name] => carman
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 206989553
                            [state] => NY
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-28T12:11:17Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 112-2661719-8603408
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 112-2661719-8603408
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 224535823
                    [tracking_number] => 9405510298370317332103
                    [carrier_key] => USPS
                    [carrier_service_key] => Priority
                    [shipment_cost] => 815
                    [ship_date] => 2017-12-29
                )

        )

    [updated_at] => 2017-12-29T09:11:03Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 206989553
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for y21mt7gnh2131yy@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 10008

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(4) "Lory"
  ["customer_last_name"]=>
  string(6) "Carman"
  ["customer_email"]=>
  string(38) "y21mt7gnh2131yy@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(11) "Lory Carman"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(20) "233 STATE ROUTE 94 S"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(7) "WARWICK"
    ["address_state"]=>
    string(2) "NY"
    ["address_zip"]=>
    string(10) "10990-3322"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10008"
  ["ordered_time"]=>
  string(19) "2017-12-28 12:11:17"
  ["se_order_id"]=>
  int(206989553)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "112-2661719-8603408"
  ["order_weight_ounces"]=>
  string(5) "112.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4274) "{"id":206989553,"external_order_identifier":"112-2661719-8603408","ext_order_reference_id":"112-2661719-8603408","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-28T12:11:17Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"29.99","total_excluding_tax":"29.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"29.99","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Lory Carman","billing_first_name":"Lory","billing_last_name":"Carman","billing_address":"233 STATE ROUTE 94 S","billing_address2":null,"billing_city":"WARWICK","billing_state":"NY","billing_country":"US","billing_postal_code":"10990-3322","billing_phone_number":"8453248032","billing_email":"y21mt7gnh2131yy@marketplace.amazon.com","buyer_email":"y21mt7gnh2131yy@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Lory","last_name":"Carman","address":"233 STATE ROUTE 94 S","address2":null,"address3":null,"city":"WARWICK","residential":true,"state":"NY","province":null,"country":"United States","postal_code":"10990","postal_code_plus_4":"3322","phone_number":"8453248032","email":"y21mt7gnh2131yy@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Priority Mail if Qty 1 (New)","sku":"1poundvariety","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"112.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"29.99","unit_price":"29.99","ext_line_item_id":"14913492548354","ext_product_id":null,"product_options":null,"uuid":"c04d4a24-2b09-46bd-9dfc-c4d560ce2bb3","order_source_id":216512513,"gift_message":null}],"original_order":{"id":206989553,"customer_id":33773,"store_id":70647,"order_detail_id":209093763,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"112.0","total_quantity":1,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-28T13:06:13Z","updated_at":"2017-12-29T09:11:03Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped priority mail if qty 1 (new)","line_item_sku":"1poundvariety","address_kind":"R","recipient_last_name":"carman","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":206989553,"state":"NY","owner_id":37098,"denormalized_ordered_at":"2017-12-28T12:11:17Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"112-2661719-8603408","packing_slip_generated":null,"denormalized_ext_order_reference_id":"112-2661719-8603408","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":224535823,"tracking_number":"9405510298370317332103","carrier_key":"USPS","carrier_service_key":"Priority","shipment_cost":815,"ship_date":"2017-12-29"}],"updated_at":"2017-12-29T09:11:03Z","internal_notes":"","meta_data":null,"prime_order_id":206989553,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(224535823)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(5) "112.0"
      ["carrier_service_key"]=>
      string(8) "Priority"
      ["shipment_cost"]=>
      int(815)
      ["ship_date"]=>
      string(10) "2017-12-29"
      ["tracking_number"]=>
      string(22) "9405510298370317332103"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7405

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7064"
    ["order_id"]=>
    string(4) "7405"
    ["se_shipment_id"]=>
    string(9) "224535823"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(3) "815"
    ["shipment_weight_ounces"]=>
    string(6) "112.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(22) "9405510298370317332103"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(45) "Arrived at USPS Regional Destination Facility"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:59"
  }
}


shipmentDBRows:
array(1) {
  [224535823]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7064"
    ["order_id"]=>
    string(4) "7405"
    ["se_shipment_id"]=>
    string(9) "224535823"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(3) "815"
    ["shipment_weight_ounces"]=>
    string(6) "112.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(22) "9405510298370317332103"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(45) "Arrived at USPS Regional Destination Facility"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:59"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(224535823)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(5) "112.0"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    int(815)
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(22) "9405510298370317332103"
  }
}

Shipment info shipping easy shipment ID #224535823

From API:
array(7) {
  ["se_shipment_id"]=>
  int(224535823)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(5) "112.0"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  int(815)
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(22) "9405510298370317332103"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7064"
  ["order_id"]=>
  string(4) "7405"
  ["se_shipment_id"]=>
  string(9) "224535823"
  ["carrier_key"]=>
  string(4) "USPS"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  string(3) "815"
  ["shipment_weight_ounces"]=>
  string(6) "112.00"
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(22) "9405510298370317332103"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  string(45) "Arrived at USPS Regional Destination Facility"
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:59"
}



Shipment info for shipping easy shipment ID #224535823 is same between both arrays

*** Order info:
Array
(
    [id] => 207192853
    [external_order_identifier] => 113-5849711-1097013
    [ext_order_reference_id] => 113-5849711-1097013
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-28T16:27:42Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 29.99
    [total_excluding_tax] => 29.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 29.99
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Shane Kozen
    [billing_first_name] => Shane
    [billing_last_name] => Kozen
    [billing_address] => 510 6TH ALY APT 4
    [billing_address2] => 
    [billing_city] => MONTOURSVILLE
    [billing_state] => PA
    [billing_country] => US
    [billing_postal_code] => 17754-1349
    [billing_phone_number] => 5704946027
    [billing_email] => 9j80tc3r3bdqygj@marketplace.amazon.com
    [buyer_email] => 9j80tc3r3bdqygj@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Shane
                    [last_name] => Kozen
                    [address] => 510 6TH ALY APT 4
                    [address2] => 
                    [address3] => 
                    [city] => MONTOURSVILLE
                    [residential] => 1
                    [state] => PA
                    [province] => 
                    [country] => United States
                    [postal_code] => 17754
                    [postal_code_plus_4] => 1349
                    [phone_number] => 5704946027
                    [email] => 9j80tc3r3bdqygj@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Priority Mail if Qty 1 (New)
                                    [sku] => 1poundvariety
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 112.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 29.99
                                    [unit_price] => 29.99
                                    [ext_line_item_id] => 56628893829906
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => db143ce9-ba50-451d-b29d-b93273a72456
                                    [order_source_id] => 216727033
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 207192853
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 209299463
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 112.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-28T17:06:41Z
                            [updated_at] => 2017-12-29T09:11:03Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped priority mail if qty 1 (new)
                            [line_item_sku] => 1poundvariety
                            [address_kind] => R
                            [recipient_last_name] => kozen
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 207192853
                            [state] => PA
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-28T16:27:42Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 113-5849711-1097013
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 113-5849711-1097013
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 224535833
                    [tracking_number] => 9405510298370317332127
                    [carrier_key] => USPS
                    [carrier_service_key] => Priority
                    [shipment_cost] => 815
                    [ship_date] => 2017-12-29
                )

        )

    [updated_at] => 2017-12-29T09:11:03Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 207192853
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for 9j80tc3r3bdqygj@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 10009

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(5) "Shane"
  ["customer_last_name"]=>
  string(5) "Kozen"
  ["customer_email"]=>
  string(38) "9j80tc3r3bdqygj@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(11) "Shane Kozen"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(17) "510 6TH ALY APT 4"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(13) "MONTOURSVILLE"
    ["address_state"]=>
    string(2) "PA"
    ["address_zip"]=>
    string(10) "17754-1349"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10009"
  ["ordered_time"]=>
  string(19) "2017-12-28 16:27:42"
  ["se_order_id"]=>
  int(207192853)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "113-5849711-1097013"
  ["order_weight_ounces"]=>
  string(5) "112.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4279) "{"id":207192853,"external_order_identifier":"113-5849711-1097013","ext_order_reference_id":"113-5849711-1097013","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-28T16:27:42Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"29.99","total_excluding_tax":"29.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"29.99","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Shane Kozen","billing_first_name":"Shane","billing_last_name":"Kozen","billing_address":"510 6TH ALY APT 4","billing_address2":null,"billing_city":"MONTOURSVILLE","billing_state":"PA","billing_country":"US","billing_postal_code":"17754-1349","billing_phone_number":"5704946027","billing_email":"9j80tc3r3bdqygj@marketplace.amazon.com","buyer_email":"9j80tc3r3bdqygj@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Shane","last_name":"Kozen","address":"510 6TH ALY APT 4","address2":null,"address3":null,"city":"MONTOURSVILLE","residential":true,"state":"PA","province":null,"country":"United States","postal_code":"17754","postal_code_plus_4":"1349","phone_number":"5704946027","email":"9j80tc3r3bdqygj@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Priority Mail if Qty 1 (New)","sku":"1poundvariety","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"112.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"29.99","unit_price":"29.99","ext_line_item_id":"56628893829906","ext_product_id":null,"product_options":null,"uuid":"db143ce9-ba50-451d-b29d-b93273a72456","order_source_id":216727033,"gift_message":null}],"original_order":{"id":207192853,"customer_id":33773,"store_id":70647,"order_detail_id":209299463,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"112.0","total_quantity":1,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-28T17:06:41Z","updated_at":"2017-12-29T09:11:03Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped priority mail if qty 1 (new)","line_item_sku":"1poundvariety","address_kind":"R","recipient_last_name":"kozen","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":207192853,"state":"PA","owner_id":37098,"denormalized_ordered_at":"2017-12-28T16:27:42Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"113-5849711-1097013","packing_slip_generated":null,"denormalized_ext_order_reference_id":"113-5849711-1097013","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":224535833,"tracking_number":"9405510298370317332127","carrier_key":"USPS","carrier_service_key":"Priority","shipment_cost":815,"ship_date":"2017-12-29"}],"updated_at":"2017-12-29T09:11:03Z","internal_notes":"","meta_data":null,"prime_order_id":207192853,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(224535833)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(5) "112.0"
      ["carrier_service_key"]=>
      string(8) "Priority"
      ["shipment_cost"]=>
      int(815)
      ["ship_date"]=>
      string(10) "2017-12-29"
      ["tracking_number"]=>
      string(22) "9405510298370317332127"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7406

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7065"
    ["order_id"]=>
    string(4) "7406"
    ["se_shipment_id"]=>
    string(9) "224535833"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(3) "815"
    ["shipment_weight_ounces"]=>
    string(6) "112.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(22) "9405510298370317332127"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(43) "Departed USPS Regional Destination Facility"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:34:00"
  }
}


shipmentDBRows:
array(1) {
  [224535833]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7065"
    ["order_id"]=>
    string(4) "7406"
    ["se_shipment_id"]=>
    string(9) "224535833"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(3) "815"
    ["shipment_weight_ounces"]=>
    string(6) "112.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(22) "9405510298370317332127"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(43) "Departed USPS Regional Destination Facility"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:34:00"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(224535833)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(5) "112.0"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    int(815)
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(22) "9405510298370317332127"
  }
}

Shipment info shipping easy shipment ID #224535833

From API:
array(7) {
  ["se_shipment_id"]=>
  int(224535833)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(5) "112.0"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  int(815)
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(22) "9405510298370317332127"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7065"
  ["order_id"]=>
  string(4) "7406"
  ["se_shipment_id"]=>
  string(9) "224535833"
  ["carrier_key"]=>
  string(4) "USPS"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  string(3) "815"
  ["shipment_weight_ounces"]=>
  string(6) "112.00"
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(22) "9405510298370317332127"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  string(43) "Departed USPS Regional Destination Facility"
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:34:00"
}



Shipment info for shipping easy shipment ID #224535833 is same between both arrays

*** Order info:
Array
(
    [id] => 207448693
    [external_order_identifier] => 114-2249865-4270631
    [ext_order_reference_id] => 114-2249865-4270631
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-28T20:26:34Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 29.99
    [total_excluding_tax] => 29.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 29.99
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Lance Johnson
    [billing_first_name] => Larry
    [billing_last_name] => Johnson
    [billing_address] => 713 STARLITE DR
    [billing_address2] => 
    [billing_city] => CLOVIS
    [billing_state] => NM
    [billing_country] => US
    [billing_postal_code] => 88101-4064
    [billing_phone_number] => 505-330-8898
    [billing_email] => crbyn1c5yqkyh3q@marketplace.amazon.com
    [buyer_email] => crbyn1c5yqkyh3q@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Lance
                    [last_name] => Johnson
                    [address] => 713 STARLITE DR
                    [address2] => 
                    [address3] => 
                    [city] => CLOVIS
                    [residential] => 1
                    [state] => NM
                    [province] => 
                    [country] => United States
                    [postal_code] => 88101
                    [postal_code_plus_4] => 4064
                    [phone_number] => 505-330-8898
                    [email] => crbyn1c5yqkyh3q@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Priority Mail if Qty 1 (New)
                                    [sku] => 1poundvariety
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 112.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 29.99
                                    [unit_price] => 29.99
                                    [ext_line_item_id] => 44827387337258
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => f8f30a40-5d40-4622-8718-2140cc5af029
                                    [order_source_id] => 217000733
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 207448693
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 209557573
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 112.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-28T21:07:27Z
                            [updated_at] => 2017-12-29T09:11:03Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped priority mail if qty 1 (new)
                            [line_item_sku] => 1poundvariety
                            [address_kind] => R
                            [recipient_last_name] => johnson
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 207448693
                            [state] => NM
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-28T20:26:34Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 114-2249865-4270631
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 114-2249865-4270631
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 224535843
                    [tracking_number] => 9405510298370317332134
                    [carrier_key] => USPS
                    [carrier_service_key] => Priority
                    [shipment_cost] => 815
                    [ship_date] => 2017-12-29
                )

        )

    [updated_at] => 2017-12-29T09:11:03Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 207448693
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for crbyn1c5yqkyh3q@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 10010

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(5) "Lance"
  ["customer_last_name"]=>
  string(7) "Johnson"
  ["customer_email"]=>
  string(38) "crbyn1c5yqkyh3q@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(13) "Lance Johnson"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(15) "713 STARLITE DR"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(6) "CLOVIS"
    ["address_state"]=>
    string(2) "NM"
    ["address_zip"]=>
    string(10) "88101-4064"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10010"
  ["ordered_time"]=>
  string(19) "2017-12-28 20:26:34"
  ["se_order_id"]=>
  int(207448693)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "114-2249865-4270631"
  ["order_weight_ounces"]=>
  string(5) "112.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4273) "{"id":207448693,"external_order_identifier":"114-2249865-4270631","ext_order_reference_id":"114-2249865-4270631","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-28T20:26:34Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"29.99","total_excluding_tax":"29.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"29.99","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Lance Johnson","billing_first_name":"Larry","billing_last_name":"Johnson","billing_address":"713 STARLITE DR","billing_address2":null,"billing_city":"CLOVIS","billing_state":"NM","billing_country":"US","billing_postal_code":"88101-4064","billing_phone_number":"505-330-8898","billing_email":"crbyn1c5yqkyh3q@marketplace.amazon.com","buyer_email":"crbyn1c5yqkyh3q@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Lance","last_name":"Johnson","address":"713 STARLITE DR","address2":null,"address3":null,"city":"CLOVIS","residential":true,"state":"NM","province":null,"country":"United States","postal_code":"88101","postal_code_plus_4":"4064","phone_number":"505-330-8898","email":"crbyn1c5yqkyh3q@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Priority Mail if Qty 1 (New)","sku":"1poundvariety","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"112.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"29.99","unit_price":"29.99","ext_line_item_id":"44827387337258","ext_product_id":null,"product_options":null,"uuid":"f8f30a40-5d40-4622-8718-2140cc5af029","order_source_id":217000733,"gift_message":null}],"original_order":{"id":207448693,"customer_id":33773,"store_id":70647,"order_detail_id":209557573,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"112.0","total_quantity":1,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-28T21:07:27Z","updated_at":"2017-12-29T09:11:03Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped priority mail if qty 1 (new)","line_item_sku":"1poundvariety","address_kind":"R","recipient_last_name":"johnson","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":207448693,"state":"NM","owner_id":37098,"denormalized_ordered_at":"2017-12-28T20:26:34Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"114-2249865-4270631","packing_slip_generated":null,"denormalized_ext_order_reference_id":"114-2249865-4270631","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":224535843,"tracking_number":"9405510298370317332134","carrier_key":"USPS","carrier_service_key":"Priority","shipment_cost":815,"ship_date":"2017-12-29"}],"updated_at":"2017-12-29T09:11:03Z","internal_notes":"","meta_data":null,"prime_order_id":207448693,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(224535843)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(5) "112.0"
      ["carrier_service_key"]=>
      string(8) "Priority"
      ["shipment_cost"]=>
      int(815)
      ["ship_date"]=>
      string(10) "2017-12-29"
      ["tracking_number"]=>
      string(22) "9405510298370317332134"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7407

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7066"
    ["order_id"]=>
    string(4) "7407"
    ["se_shipment_id"]=>
    string(9) "224535843"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(3) "815"
    ["shipment_weight_ounces"]=>
    string(6) "112.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(22) "9405510298370317332134"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(45) "Arrived at USPS Regional Destination Facility"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:34:00"
  }
}


shipmentDBRows:
array(1) {
  [224535843]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7066"
    ["order_id"]=>
    string(4) "7407"
    ["se_shipment_id"]=>
    string(9) "224535843"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(3) "815"
    ["shipment_weight_ounces"]=>
    string(6) "112.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(22) "9405510298370317332134"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(45) "Arrived at USPS Regional Destination Facility"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:34:00"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(224535843)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(5) "112.0"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    int(815)
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(22) "9405510298370317332134"
  }
}

Shipment info shipping easy shipment ID #224535843

From API:
array(7) {
  ["se_shipment_id"]=>
  int(224535843)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(5) "112.0"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  int(815)
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(22) "9405510298370317332134"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7066"
  ["order_id"]=>
  string(4) "7407"
  ["se_shipment_id"]=>
  string(9) "224535843"
  ["carrier_key"]=>
  string(4) "USPS"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  string(3) "815"
  ["shipment_weight_ounces"]=>
  string(6) "112.00"
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(22) "9405510298370317332134"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  string(45) "Arrived at USPS Regional Destination Facility"
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:34:00"
}



Shipment info for shipping easy shipment ID #224535843 is same between both arrays

*** Order info:
Array
(
    [id] => 207611693
    [external_order_identifier] => 111-3722317-9204259
    [ext_order_reference_id] => 111-3722317-9204259
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-28T23:08:25Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 29.99
    [total_excluding_tax] => 29.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 29.99
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Clifford J Lopez
    [billing_first_name] => clifford
    [billing_last_name] => lopez
    [billing_address] => 306 W ROUNDUP RD
    [billing_address2] => 
    [billing_city] => PAYSON
    [billing_state] => AZ
    [billing_country] => US
    [billing_postal_code] => 85541-3157
    [billing_phone_number] => 9289785053
    [billing_email] => 38cqcm5gh1n4cp2@marketplace.amazon.com
    [buyer_email] => 38cqcm5gh1n4cp2@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Clifford
                    [last_name] => J Lopez
                    [address] => 306 W ROUNDUP RD
                    [address2] => 
                    [address3] => 
                    [city] => PAYSON
                    [residential] => 1
                    [state] => AZ
                    [province] => 
                    [country] => United States
                    [postal_code] => 85541
                    [postal_code_plus_4] => 3157
                    [phone_number] => 9289785053
                    [email] => 38cqcm5gh1n4cp2@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Priority Mail if Qty 1 (New)
                                    [sku] => 1poundvariety
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 112.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 29.99
                                    [unit_price] => 29.99
                                    [ext_line_item_id] => 12482638222610
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => cdce0210-a21d-45ce-b796-0ac8791e00d6
                                    [order_source_id] => 217177163
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 207611693
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 209723943
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 112.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 6
                            [created_at] => 2017-12-29T00:06:54Z
                            [updated_at] => 2017-12-29T09:11:03Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped priority mail if qty 1 (new)
                            [line_item_sku] => 1poundvariety
                            [address_kind] => R
                            [recipient_last_name] => j lopez
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 207611693
                            [state] => AZ
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-28T23:08:25Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 111-3722317-9204259
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 111-3722317-9204259
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 224535853
                    [tracking_number] => 9405510298370317332097
                    [carrier_key] => USPS
                    [carrier_service_key] => Priority
                    [shipment_cost] => 919
                    [ship_date] => 2017-12-29
                )

        )

    [updated_at] => 2017-12-29T09:11:03Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 207611693
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for 38cqcm5gh1n4cp2@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 10011

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(8) "Clifford"
  ["customer_last_name"]=>
  string(7) "J Lopez"
  ["customer_email"]=>
  string(38) "38cqcm5gh1n4cp2@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(16) "Clifford J Lopez"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(16) "306 W ROUNDUP RD"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(6) "PAYSON"
    ["address_state"]=>
    string(2) "AZ"
    ["address_zip"]=>
    string(10) "85541-3157"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10011"
  ["ordered_time"]=>
  string(19) "2017-12-28 23:08:25"
  ["se_order_id"]=>
  int(207611693)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "111-3722317-9204259"
  ["order_weight_ounces"]=>
  string(5) "112.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4278) "{"id":207611693,"external_order_identifier":"111-3722317-9204259","ext_order_reference_id":"111-3722317-9204259","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-28T23:08:25Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"29.99","total_excluding_tax":"29.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"29.99","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Clifford J Lopez","billing_first_name":"clifford","billing_last_name":"lopez","billing_address":"306 W ROUNDUP RD","billing_address2":null,"billing_city":"PAYSON","billing_state":"AZ","billing_country":"US","billing_postal_code":"85541-3157","billing_phone_number":"9289785053","billing_email":"38cqcm5gh1n4cp2@marketplace.amazon.com","buyer_email":"38cqcm5gh1n4cp2@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Clifford","last_name":"J Lopez","address":"306 W ROUNDUP RD","address2":null,"address3":null,"city":"PAYSON","residential":true,"state":"AZ","province":null,"country":"United States","postal_code":"85541","postal_code_plus_4":"3157","phone_number":"9289785053","email":"38cqcm5gh1n4cp2@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Priority Mail if Qty 1 (New)","sku":"1poundvariety","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"112.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"29.99","unit_price":"29.99","ext_line_item_id":"12482638222610","ext_product_id":null,"product_options":null,"uuid":"cdce0210-a21d-45ce-b796-0ac8791e00d6","order_source_id":217177163,"gift_message":null}],"original_order":{"id":207611693,"customer_id":33773,"store_id":70647,"order_detail_id":209723943,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"112.0","total_quantity":1,"is_international":false,"usps_shipping_zone":6,"created_at":"2017-12-29T00:06:54Z","updated_at":"2017-12-29T09:11:03Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped priority mail if qty 1 (new)","line_item_sku":"1poundvariety","address_kind":"R","recipient_last_name":"j lopez","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":207611693,"state":"AZ","owner_id":37098,"denormalized_ordered_at":"2017-12-28T23:08:25Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"111-3722317-9204259","packing_slip_generated":null,"denormalized_ext_order_reference_id":"111-3722317-9204259","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":224535853,"tracking_number":"9405510298370317332097","carrier_key":"USPS","carrier_service_key":"Priority","shipment_cost":919,"ship_date":"2017-12-29"}],"updated_at":"2017-12-29T09:11:03Z","internal_notes":"","meta_data":null,"prime_order_id":207611693,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(224535853)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(5) "112.0"
      ["carrier_service_key"]=>
      string(8) "Priority"
      ["shipment_cost"]=>
      int(919)
      ["ship_date"]=>
      string(10) "2017-12-29"
      ["tracking_number"]=>
      string(22) "9405510298370317332097"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7408

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7067"
    ["order_id"]=>
    string(4) "7408"
    ["se_shipment_id"]=>
    string(9) "224535853"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(3) "919"
    ["shipment_weight_ounces"]=>
    string(6) "112.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(22) "9405510298370317332097"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(25) "In Transit to Destination"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:59"
  }
}


shipmentDBRows:
array(1) {
  [224535853]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7067"
    ["order_id"]=>
    string(4) "7408"
    ["se_shipment_id"]=>
    string(9) "224535853"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(3) "919"
    ["shipment_weight_ounces"]=>
    string(6) "112.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(22) "9405510298370317332097"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(25) "In Transit to Destination"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:59"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(224535853)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(5) "112.0"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    int(919)
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(22) "9405510298370317332097"
  }
}

Shipment info shipping easy shipment ID #224535853

From API:
array(7) {
  ["se_shipment_id"]=>
  int(224535853)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(5) "112.0"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  int(919)
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(22) "9405510298370317332097"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7067"
  ["order_id"]=>
  string(4) "7408"
  ["se_shipment_id"]=>
  string(9) "224535853"
  ["carrier_key"]=>
  string(4) "USPS"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  string(3) "919"
  ["shipment_weight_ounces"]=>
  string(6) "112.00"
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(22) "9405510298370317332097"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  string(25) "In Transit to Destination"
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:59"
}



Shipment info for shipping easy shipment ID #224535853 is same between both arrays

*** Order info:
Array
(
    [id] => 207251553
    [external_order_identifier] => 113-3023420-4125019
    [ext_order_reference_id] => 113-3023420-4125019
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-28T17:19:54Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 31.94
    [total_excluding_tax] => 29.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 31.94
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 1.95
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Derek Fry
    [billing_first_name] => Derek
    [billing_last_name] => Fry
    [billing_address] => 4577 CODY BROOK DR
    [billing_address2] => 
    [billing_city] => HAMILTON
    [billing_state] => OH
    [billing_country] => US
    [billing_postal_code] => 45011-6442
    [billing_phone_number] => 5138940751
    [billing_email] => df3hwcg8419v3b2@marketplace.amazon.com
    [buyer_email] => df3hwcg8419v3b2@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Derek
                    [last_name] => Fry
                    [address] => 4577 CODY BROOK DR
                    [address2] => 
                    [address3] => 
                    [city] => HAMILTON
                    [residential] => 
                    [state] => OH
                    [province] => 
                    [country] => United States
                    [postal_code] => 45011
                    [postal_code_plus_4] => 6442
                    [phone_number] => 5138940751
                    [email] => df3hwcg8419v3b2@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Pri (New)
                                    [sku] => 1poundvariety
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 112.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 29.99
                                    [unit_price] => 29.99
                                    [ext_line_item_id] => 60088280359914
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 87ce8658-355e-4ff3-a209-f1e9e7c6e61f
                                    [order_source_id] => 216790453
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 207251553
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 209359283
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 112.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 4
                            [created_at] => 2017-12-28T18:06:52Z
                            [updated_at] => 2017-12-29T09:11:03Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped pri (new)
                            [line_item_sku] => 1poundvariety
                            [address_kind] => F
                            [recipient_last_name] => fry
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 207251553
                            [state] => OH
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-28T17:19:54Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 113-3023420-4125019
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 113-3023420-4125019
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 224535863
                    [tracking_number] => 9405510298370317332110
                    [carrier_key] => USPS
                    [carrier_service_key] => Priority
                    [shipment_cost] => 683
                    [ship_date] => 2017-12-29
                )

        )

    [updated_at] => 2017-12-29T09:11:03Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 207251553
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for df3hwcg8419v3b2@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 10012

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(5) "Derek"
  ["customer_last_name"]=>
  string(3) "Fry"
  ["customer_email"]=>
  string(38) "df3hwcg8419v3b2@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(9) "Derek Fry"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(18) "4577 CODY BROOK DR"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(8) "HAMILTON"
    ["address_state"]=>
    string(2) "OH"
    ["address_zip"]=>
    string(10) "45011-6442"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10012"
  ["ordered_time"]=>
  string(19) "2017-12-28 17:19:54"
  ["se_order_id"]=>
  int(207251553)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "113-3023420-4125019"
  ["order_weight_ounces"]=>
  string(5) "112.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4225) "{"id":207251553,"external_order_identifier":"113-3023420-4125019","ext_order_reference_id":"113-3023420-4125019","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-28T17:19:54Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"31.94","total_excluding_tax":"29.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"31.94","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"1.95","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Derek Fry","billing_first_name":"Derek","billing_last_name":"Fry","billing_address":"4577 CODY BROOK DR","billing_address2":null,"billing_city":"HAMILTON","billing_state":"OH","billing_country":"US","billing_postal_code":"45011-6442","billing_phone_number":"5138940751","billing_email":"df3hwcg8419v3b2@marketplace.amazon.com","buyer_email":"df3hwcg8419v3b2@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Derek","last_name":"Fry","address":"4577 CODY BROOK DR","address2":null,"address3":null,"city":"HAMILTON","residential":null,"state":"OH","province":null,"country":"United States","postal_code":"45011","postal_code_plus_4":"6442","phone_number":"5138940751","email":"df3hwcg8419v3b2@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Pri (New)","sku":"1poundvariety","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"112.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"29.99","unit_price":"29.99","ext_line_item_id":"60088280359914","ext_product_id":null,"product_options":null,"uuid":"87ce8658-355e-4ff3-a209-f1e9e7c6e61f","order_source_id":216790453,"gift_message":null}],"original_order":{"id":207251553,"customer_id":33773,"store_id":70647,"order_detail_id":209359283,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"112.0","total_quantity":1,"is_international":false,"usps_shipping_zone":4,"created_at":"2017-12-28T18:06:52Z","updated_at":"2017-12-29T09:11:03Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped pri (new)","line_item_sku":"1poundvariety","address_kind":"F","recipient_last_name":"fry","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":207251553,"state":"OH","owner_id":37098,"denormalized_ordered_at":"2017-12-28T17:19:54Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"113-3023420-4125019","packing_slip_generated":null,"denormalized_ext_order_reference_id":"113-3023420-4125019","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":224535863,"tracking_number":"9405510298370317332110","carrier_key":"USPS","carrier_service_key":"Priority","shipment_cost":683,"ship_date":"2017-12-29"}],"updated_at":"2017-12-29T09:11:03Z","internal_notes":"","meta_data":null,"prime_order_id":207251553,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(224535863)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(5) "112.0"
      ["carrier_service_key"]=>
      string(8) "Priority"
      ["shipment_cost"]=>
      int(683)
      ["ship_date"]=>
      string(10) "2017-12-29"
      ["tracking_number"]=>
      string(22) "9405510298370317332110"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7409

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7068"
    ["order_id"]=>
    string(4) "7409"
    ["se_shipment_id"]=>
    string(9) "224535863"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(3) "683"
    ["shipment_weight_ounces"]=>
    string(6) "112.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(22) "9405510298370317332110"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(14) "Arrived at Hub"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:59"
  }
}


shipmentDBRows:
array(1) {
  [224535863]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7068"
    ["order_id"]=>
    string(4) "7409"
    ["se_shipment_id"]=>
    string(9) "224535863"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(3) "683"
    ["shipment_weight_ounces"]=>
    string(6) "112.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(22) "9405510298370317332110"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(14) "Arrived at Hub"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:59"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(224535863)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(5) "112.0"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    int(683)
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(22) "9405510298370317332110"
  }
}

Shipment info shipping easy shipment ID #224535863

From API:
array(7) {
  ["se_shipment_id"]=>
  int(224535863)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(5) "112.0"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  int(683)
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(22) "9405510298370317332110"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7068"
  ["order_id"]=>
  string(4) "7409"
  ["se_shipment_id"]=>
  string(9) "224535863"
  ["carrier_key"]=>
  string(4) "USPS"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  string(3) "683"
  ["shipment_weight_ounces"]=>
  string(6) "112.00"
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(22) "9405510298370317332110"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  string(14) "Arrived at Hub"
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:59"
}



Shipment info for shipping easy shipment ID #224535863 is same between both arrays

*** Order info:
Array
(
    [id] => 207655203
    [external_order_identifier] => 114-1999654-1935448
    [ext_order_reference_id] => 114-1999654-1935448
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-29T00:13:45Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 24.95
    [total_excluding_tax] => 24.95
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 24.95
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Marilyn R. Matherne
    [billing_first_name] => Marilyn
    [billing_last_name] => Matherne
    [billing_address] => 25010 HUDSON KNOLL DR
    [billing_address2] => 
    [billing_city] => PORTER
    [billing_state] => TX
    [billing_country] => US
    [billing_postal_code] => 77365-9000
    [billing_phone_number] => 7138579136
    [billing_email] => cjw9vwhg93df2vy@marketplace.amazon.com
    [buyer_email] => cjw9vwhg93df2vy@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Marilyn
                    [last_name] => R. Matherne
                    [address] => 25010 HUDSON KNOLL DR
                    [address2] => 
                    [address3] => 
                    [city] => PORTER
                    [residential] => 1
                    [state] => TX
                    [province] => 
                    [country] => United States
                    [postal_code] => 77365
                    [postal_code_plus_4] => 9000
                    [phone_number] => 7138579136
                    [email] => cjw9vwhg93df2vy@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack BBQ Smoker Pellets Assortment - 9 Pounds - Pick 3-Pound Packs (See Description for Flavors) (New)
                                    [sku] => lj-assort-9lb
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 144.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 24.95
                                    [unit_price] => 24.95
                                    [ext_line_item_id] => 31116053136378
                                    [ext_product_id] => 
                                    [product_options] => Array
                                        (
                                            [Select Bag # 1] => 
                                            [Color (Select Bag # 1)] => 
                                            [Font (Select Bag # 1)] => 
                                            [Select Bag # 2] => 
                                            [Color (Select Bag # 2)] => 
                                            [Font (Select Bag # 2)] => 
                                            [Select Bag # 3] => 
                                            [Color (Select Bag # 3)] => 
                                            [Font (Select Bag # 3)] => 
                                            [Add Smokin Wedgie] => 
                                            [Color (Add Smokin Wedgie)] => 
                                            [Font (Add Smokin Wedgie)] => 
                                            [Add Wedgie Legs] => 
                                            [Color (Add Wedgie Legs)] => 
                                            [Font (Add Wedgie Legs)] => 
                                            [Duck Fat] => 
                                            [Color (Duck Fat)] => 
                                            [Font (Duck Fat)] => 
                                        )

                                    [uuid] => e6072d2a-8bde-40a9-93f8-94ca36d6e4bc
                                    [order_source_id] => 217225833
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 207655203
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 209768023
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 144.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 6
                            [created_at] => 2017-12-29T01:06:52Z
                            [updated_at] => 2017-12-29T09:11:03Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack bbq smoker pellets assortment - 9 pounds - pick 3-pound packs (see description for flavors) (new)
                            [line_item_sku] => lj-assort-9lb
                            [address_kind] => R
                            [recipient_last_name] => r. matherne
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 207655203
                            [state] => TX
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-29T00:13:45Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 114-1999654-1935448
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 114-1999654-1935448
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 224535963
                    [tracking_number] => 9405510298370317332066
                    [carrier_key] => USPS
                    [carrier_service_key] => Priority
                    [shipment_cost] => 1205
                    [ship_date] => 2017-12-29
                )

        )

    [updated_at] => 2017-12-29T09:11:03Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 207655203
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for cjw9vwhg93df2vy@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 10013

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(7) "Marilyn"
  ["customer_last_name"]=>
  string(11) "R. Matherne"
  ["customer_email"]=>
  string(38) "cjw9vwhg93df2vy@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(19) "Marilyn R. Matherne"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(21) "25010 HUDSON KNOLL DR"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(6) "PORTER"
    ["address_state"]=>
    string(2) "TX"
    ["address_zip"]=>
    string(10) "77365-9000"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10013"
  ["ordered_time"]=>
  string(19) "2017-12-29 00:13:45"
  ["se_order_id"]=>
  int(207655203)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "114-1999654-1935448"
  ["order_weight_ounces"]=>
  string(5) "144.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4646) "{"id":207655203,"external_order_identifier":"114-1999654-1935448","ext_order_reference_id":"114-1999654-1935448","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-29T00:13:45Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"24.95","total_excluding_tax":"24.95","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"24.95","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Marilyn R. Matherne","billing_first_name":"Marilyn","billing_last_name":"Matherne","billing_address":"25010 HUDSON KNOLL DR","billing_address2":null,"billing_city":"PORTER","billing_state":"TX","billing_country":"US","billing_postal_code":"77365-9000","billing_phone_number":"7138579136","billing_email":"cjw9vwhg93df2vy@marketplace.amazon.com","buyer_email":"cjw9vwhg93df2vy@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Marilyn","last_name":"R. Matherne","address":"25010 HUDSON KNOLL DR","address2":null,"address3":null,"city":"PORTER","residential":true,"state":"TX","province":null,"country":"United States","postal_code":"77365","postal_code_plus_4":"9000","phone_number":"7138579136","email":"cjw9vwhg93df2vy@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack BBQ Smoker Pellets Assortment - 9 Pounds - Pick 3-Pound Packs (See Description for Flavors) (New)","sku":"lj-assort-9lb","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"144.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"24.95","unit_price":"24.95","ext_line_item_id":"31116053136378","ext_product_id":null,"product_options":{"Select Bag # 1":null,"Color (Select Bag # 1)":null,"Font (Select Bag # 1)":null,"Select Bag # 2":null,"Color (Select Bag # 2)":null,"Font (Select Bag # 2)":null,"Select Bag # 3":null,"Color (Select Bag # 3)":null,"Font (Select Bag # 3)":null,"Add Smokin Wedgie":null,"Color (Add Smokin Wedgie)":null,"Font (Add Smokin Wedgie)":null,"Add Wedgie Legs":null,"Color (Add Wedgie Legs)":null,"Font (Add Wedgie Legs)":null,"Duck Fat":null,"Color (Duck Fat)":null,"Font (Duck Fat)":null},"uuid":"e6072d2a-8bde-40a9-93f8-94ca36d6e4bc","order_source_id":217225833,"gift_message":null}],"original_order":{"id":207655203,"customer_id":33773,"store_id":70647,"order_detail_id":209768023,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"144.0","total_quantity":1,"is_international":false,"usps_shipping_zone":6,"created_at":"2017-12-29T01:06:52Z","updated_at":"2017-12-29T09:11:03Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack bbq smoker pellets assortment - 9 pounds - pick 3-pound packs (see description for flavors) (new)","line_item_sku":"lj-assort-9lb","address_kind":"R","recipient_last_name":"r. matherne","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":207655203,"state":"TX","owner_id":37098,"denormalized_ordered_at":"2017-12-29T00:13:45Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"114-1999654-1935448","packing_slip_generated":null,"denormalized_ext_order_reference_id":"114-1999654-1935448","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":224535963,"tracking_number":"9405510298370317332066","carrier_key":"USPS","carrier_service_key":"Priority","shipment_cost":1205,"ship_date":"2017-12-29"}],"updated_at":"2017-12-29T09:11:03Z","internal_notes":"","meta_data":null,"prime_order_id":207655203,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(224535963)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(5) "144.0"
      ["carrier_service_key"]=>
      string(8) "Priority"
      ["shipment_cost"]=>
      int(1205)
      ["ship_date"]=>
      string(10) "2017-12-29"
      ["tracking_number"]=>
      string(22) "9405510298370317332066"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7410

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7069"
    ["order_id"]=>
    string(4) "7410"
    ["se_shipment_id"]=>
    string(9) "224535963"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(4) "1205"
    ["shipment_weight_ounces"]=>
    string(6) "144.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(22) "9405510298370317332066"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(45) "Arrived at USPS Regional Destination Facility"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:58"
  }
}


shipmentDBRows:
array(1) {
  [224535963]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7069"
    ["order_id"]=>
    string(4) "7410"
    ["se_shipment_id"]=>
    string(9) "224535963"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(4) "1205"
    ["shipment_weight_ounces"]=>
    string(6) "144.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(22) "9405510298370317332066"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(45) "Arrived at USPS Regional Destination Facility"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:58"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(224535963)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(5) "144.0"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    int(1205)
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(22) "9405510298370317332066"
  }
}

Shipment info shipping easy shipment ID #224535963

From API:
array(7) {
  ["se_shipment_id"]=>
  int(224535963)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(5) "144.0"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  int(1205)
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(22) "9405510298370317332066"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7069"
  ["order_id"]=>
  string(4) "7410"
  ["se_shipment_id"]=>
  string(9) "224535963"
  ["carrier_key"]=>
  string(4) "USPS"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  string(4) "1205"
  ["shipment_weight_ounces"]=>
  string(6) "144.00"
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(22) "9405510298370317332066"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  string(45) "Arrived at USPS Regional Destination Facility"
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:58"
}



Shipment info for shipping easy shipment ID #224535963 is same between both arrays

*** Order info:
Array
(
    [id] => 207699893
    [external_order_identifier] => 114-7788712-4883412
    [ext_order_reference_id] => 114-7788712-4883412
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-29T01:13:17Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 19.99
    [total_excluding_tax] => 19.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 19.99
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Katie Blahowicz
    [billing_first_name] => Katie
    [billing_last_name] => Blahowicz
    [billing_address] => 28 BIRDSONG TER
    [billing_address2] => 
    [billing_city] => SPENCERPORT
    [billing_state] => NY
    [billing_country] => US
    [billing_postal_code] => 14559-1466
    [billing_phone_number] => 585-746-7235
    [billing_email] => 1vl0f0rg66lw9jd@marketplace.amazon.com
    [buyer_email] => 1vl0f0rg66lw9jd@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Katie
                    [last_name] => Blahowicz
                    [address] => 28 BIRDSONG TER
                    [address2] => 
                    [address3] => 
                    [city] => SPENCERPORT
                    [residential] => 1
                    [state] => NY
                    [province] => 
                    [country] => United States
                    [postal_code] => 14559
                    [postal_code_plus_4] => 1466
                    [phone_number] => 585-746-7235
                    [email] => 1vl0f0rg66lw9jd@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => Standard
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => World's Best Fire Starter - Wood Stove, Pellet Stove, BBQ (New)
                                    [sku] => firestarter1fbb
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 12.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 19.99
                                    [unit_price] => 19.99
                                    [ext_line_item_id] => 25796691197866
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 24354b3f-f4bb-4d38-af43-248683ed2d43
                                    [order_source_id] => 217275213
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 207699893
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 209815753
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 12.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-29T02:07:24Z
                            [updated_at] => 2017-12-29T09:11:03Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => world's best fire starter - wood stove, pellet stove, bbq (new)
                            [line_item_sku] => firestarter1fbb
                            [address_kind] => R
                            [recipient_last_name] => blahowicz
                            [recipient_requested_service] => standard
                            [gift] => 
                            [prime_order_id] => 207699893
                            [state] => NY
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-29T01:13:17Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 114-7788712-4883412
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 114-7788712-4883412
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 224536003
                    [tracking_number] => 9400110298370317332032
                    [carrier_key] => USPS
                    [carrier_service_key] => First
                    [shipment_cost] => 374
                    [ship_date] => 2017-12-29
                )

        )

    [updated_at] => 2017-12-29T09:11:03Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 207699893
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for 1vl0f0rg66lw9jd@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 10014

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(5) "Katie"
  ["customer_last_name"]=>
  string(9) "Blahowicz"
  ["customer_email"]=>
  string(38) "1vl0f0rg66lw9jd@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(15) "Katie Blahowicz"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(15) "28 BIRDSONG TER"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(11) "SPENCERPORT"
    ["address_state"]=>
    string(2) "NY"
    ["address_zip"]=>
    string(10) "14559-1466"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10014"
  ["ordered_time"]=>
  string(19) "2017-12-29 01:13:17"
  ["se_order_id"]=>
  int(207699893)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "114-7788712-4883412"
  ["order_weight_ounces"]=>
  string(4) "12.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4060) "{"id":207699893,"external_order_identifier":"114-7788712-4883412","ext_order_reference_id":"114-7788712-4883412","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-29T01:13:17Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"19.99","total_excluding_tax":"19.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"19.99","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Katie Blahowicz","billing_first_name":"Katie","billing_last_name":"Blahowicz","billing_address":"28 BIRDSONG TER","billing_address2":null,"billing_city":"SPENCERPORT","billing_state":"NY","billing_country":"US","billing_postal_code":"14559-1466","billing_phone_number":"585-746-7235","billing_email":"1vl0f0rg66lw9jd@marketplace.amazon.com","buyer_email":"1vl0f0rg66lw9jd@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Katie","last_name":"Blahowicz","address":"28 BIRDSONG TER","address2":null,"address3":null,"city":"SPENCERPORT","residential":true,"state":"NY","province":null,"country":"United States","postal_code":"14559","postal_code_plus_4":"1466","phone_number":"585-746-7235","email":"1vl0f0rg66lw9jd@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"Standard","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"World's Best Fire Starter - Wood Stove, Pellet Stove, BBQ (New)","sku":"firestarter1fbb","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"12.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"19.99","unit_price":"19.99","ext_line_item_id":"25796691197866","ext_product_id":null,"product_options":null,"uuid":"24354b3f-f4bb-4d38-af43-248683ed2d43","order_source_id":217275213,"gift_message":null}],"original_order":{"id":207699893,"customer_id":33773,"store_id":70647,"order_detail_id":209815753,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"12.0","total_quantity":1,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-29T02:07:24Z","updated_at":"2017-12-29T09:11:03Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"world's best fire starter - wood stove, pellet stove, bbq (new)","line_item_sku":"firestarter1fbb","address_kind":"R","recipient_last_name":"blahowicz","recipient_requested_service":"standard","gift":null,"prime_order_id":207699893,"state":"NY","owner_id":37098,"denormalized_ordered_at":"2017-12-29T01:13:17Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"114-7788712-4883412","packing_slip_generated":null,"denormalized_ext_order_reference_id":"114-7788712-4883412","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":224536003,"tracking_number":"9400110298370317332032","carrier_key":"USPS","carrier_service_key":"First","shipment_cost":374,"ship_date":"2017-12-29"}],"updated_at":"2017-12-29T09:11:03Z","internal_notes":"","meta_data":null,"prime_order_id":207699893,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(224536003)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(4) "12.0"
      ["carrier_service_key"]=>
      string(5) "First"
      ["shipment_cost"]=>
      int(374)
      ["ship_date"]=>
      string(10) "2017-12-29"
      ["tracking_number"]=>
      string(22) "9400110298370317332032"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7411

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7070"
    ["order_id"]=>
    string(4) "7411"
    ["se_shipment_id"]=>
    string(9) "224536003"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(5) "First"
    ["shipment_cost"]=>
    string(3) "374"
    ["shipment_weight_ounces"]=>
    string(5) "12.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(22) "9400110298370317332032"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(14) "Arrived at Hub"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:37"
  }
}


shipmentDBRows:
array(1) {
  [224536003]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7070"
    ["order_id"]=>
    string(4) "7411"
    ["se_shipment_id"]=>
    string(9) "224536003"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(5) "First"
    ["shipment_cost"]=>
    string(3) "374"
    ["shipment_weight_ounces"]=>
    string(5) "12.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(22) "9400110298370317332032"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(14) "Arrived at Hub"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:37"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(224536003)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(4) "12.0"
    ["carrier_service_key"]=>
    string(5) "First"
    ["shipment_cost"]=>
    int(374)
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(22) "9400110298370317332032"
  }
}

Shipment info shipping easy shipment ID #224536003

From API:
array(7) {
  ["se_shipment_id"]=>
  int(224536003)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(4) "12.0"
  ["carrier_service_key"]=>
  string(5) "First"
  ["shipment_cost"]=>
  int(374)
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(22) "9400110298370317332032"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7070"
  ["order_id"]=>
  string(4) "7411"
  ["se_shipment_id"]=>
  string(9) "224536003"
  ["carrier_key"]=>
  string(4) "USPS"
  ["carrier_service_key"]=>
  string(5) "First"
  ["shipment_cost"]=>
  string(3) "374"
  ["shipment_weight_ounces"]=>
  string(5) "12.00"
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(22) "9400110298370317332032"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  string(14) "Arrived at Hub"
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:37"
}



Shipment info for shipping easy shipment ID #224536003 is same between both arrays

*** Order info:
Array
(
    [id] => 207790743
    [external_order_identifier] => 112-4763833-3426609
    [ext_order_reference_id] => 112-4763833-3426609
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-29T02:35:39Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 17.99
    [total_excluding_tax] => 17.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 17.99
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => John Cooper
    [billing_first_name] => John
    [billing_last_name] => Cooper
    [billing_address] => 5501 Stone Cliff Ct
    [billing_address2] => 
    [billing_city] => McKinney
    [billing_state] => TX
    [billing_country] => US
    [billing_postal_code] => 75071-5568
    [billing_phone_number] => 214-507-4828
    [billing_email] => jwsjxwzz4txjz6d@marketplace.amazon.com
    [buyer_email] => jwsjxwzz4txjz6d@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => John
                    [last_name] => Cooper
                    [address] => 5501 Stone Cliff Ct
                    [address2] => 
                    [address3] => 
                    [city] => McKinney
                    [residential] => 1
                    [state] => TX
                    [province] => 
                    [country] => United States
                    [postal_code] => 75071
                    [postal_code_plus_4] => 5568
                    [phone_number] => 214-507-4828
                    [email] => jwsjxwzz4txjz6d@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack BBQ Pellets 10# Box (Standard Varieties) ( Maple-Hickory-Cherry Blend (1/3 Maple, 1/3 Hickory, 1/3 Cherry) - Blend MHC Competition) (New)
                                    [sku] => E3-1G88-EST4
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 160.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 17.99
                                    [unit_price] => 17.99
                                    [ext_line_item_id] => 57630186884090
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 4ccd122a-8bb5-479c-b6ae-d2f7c4a9e4f3
                                    [order_source_id] => 217376243
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 207790743
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 209909093
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 160.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-29T04:07:21Z
                            [updated_at] => 2017-12-29T09:11:03Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack bbq pellets 10# box (standard varieties) ( maple-hickory-cherry blend (1/3 maple, 1/3 hickory, 1/3 cherry) - blend mhc competition) (new)
                            [line_item_sku] => e3-1g88-est4
                            [address_kind] => R
                            [recipient_last_name] => cooper
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 207790743
                            [state] => TX
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-29T02:35:39Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 112-4763833-3426609
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 112-4763833-3426609
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 224536013
                    [tracking_number] => 9405510298370317332011
                    [carrier_key] => USPS
                    [carrier_service_key] => Priority
                    [shipment_cost] => 1095
                    [ship_date] => 2017-12-29
                )

        )

    [updated_at] => 2017-12-29T09:11:03Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 207790743
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for jwsjxwzz4txjz6d@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 10015

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(4) "John"
  ["customer_last_name"]=>
  string(6) "Cooper"
  ["customer_email"]=>
  string(38) "jwsjxwzz4txjz6d@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(11) "John Cooper"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(19) "5501 Stone Cliff Ct"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(8) "McKinney"
    ["address_state"]=>
    string(2) "TX"
    ["address_zip"]=>
    string(10) "75071-5568"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10015"
  ["ordered_time"]=>
  string(19) "2017-12-29 02:35:39"
  ["se_order_id"]=>
  int(207790743)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "112-4763833-3426609"
  ["order_weight_ounces"]=>
  string(5) "160.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4231) "{"id":207790743,"external_order_identifier":"112-4763833-3426609","ext_order_reference_id":"112-4763833-3426609","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-29T02:35:39Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"17.99","total_excluding_tax":"17.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"17.99","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"John Cooper","billing_first_name":"John","billing_last_name":"Cooper","billing_address":"5501 Stone Cliff Ct","billing_address2":null,"billing_city":"McKinney","billing_state":"TX","billing_country":"US","billing_postal_code":"75071-5568","billing_phone_number":"214-507-4828","billing_email":"jwsjxwzz4txjz6d@marketplace.amazon.com","buyer_email":"jwsjxwzz4txjz6d@marketplace.amazon.com","recipients":[{"company":null,"first_name":"John","last_name":"Cooper","address":"5501 Stone Cliff Ct","address2":null,"address3":null,"city":"McKinney","residential":true,"state":"TX","province":null,"country":"United States","postal_code":"75071","postal_code_plus_4":"5568","phone_number":"214-507-4828","email":"jwsjxwzz4txjz6d@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack BBQ Pellets 10# Box (Standard Varieties) ( Maple-Hickory-Cherry Blend (1\/3 Maple, 1\/3 Hickory, 1\/3 Cherry) - Blend MHC Competition) (New)","sku":"E3-1G88-EST4","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"160.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"17.99","unit_price":"17.99","ext_line_item_id":"57630186884090","ext_product_id":null,"product_options":null,"uuid":"4ccd122a-8bb5-479c-b6ae-d2f7c4a9e4f3","order_source_id":217376243,"gift_message":null}],"original_order":{"id":207790743,"customer_id":33773,"store_id":70647,"order_detail_id":209909093,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"160.0","total_quantity":1,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-29T04:07:21Z","updated_at":"2017-12-29T09:11:03Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack bbq pellets 10# box (standard varieties) ( maple-hickory-cherry blend (1\/3 maple, 1\/3 hickory, 1\/3 cherry) - blend mhc competition) (new)","line_item_sku":"e3-1g88-est4","address_kind":"R","recipient_last_name":"cooper","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":207790743,"state":"TX","owner_id":37098,"denormalized_ordered_at":"2017-12-29T02:35:39Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"112-4763833-3426609","packing_slip_generated":null,"denormalized_ext_order_reference_id":"112-4763833-3426609","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":224536013,"tracking_number":"9405510298370317332011","carrier_key":"USPS","carrier_service_key":"Priority","shipment_cost":1095,"ship_date":"2017-12-29"}],"updated_at":"2017-12-29T09:11:03Z","internal_notes":"","meta_data":null,"prime_order_id":207790743,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(224536013)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(5) "160.0"
      ["carrier_service_key"]=>
      string(8) "Priority"
      ["shipment_cost"]=>
      int(1095)
      ["ship_date"]=>
      string(10) "2017-12-29"
      ["tracking_number"]=>
      string(22) "9405510298370317332011"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7412

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7071"
    ["order_id"]=>
    string(4) "7412"
    ["se_shipment_id"]=>
    string(9) "224536013"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(4) "1095"
    ["shipment_weight_ounces"]=>
    string(6) "160.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(22) "9405510298370317332011"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(25) "In Transit to Destination"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:58"
  }
}


shipmentDBRows:
array(1) {
  [224536013]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7071"
    ["order_id"]=>
    string(4) "7412"
    ["se_shipment_id"]=>
    string(9) "224536013"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    string(4) "1095"
    ["shipment_weight_ounces"]=>
    string(6) "160.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(22) "9405510298370317332011"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(25) "In Transit to Destination"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:58"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(224536013)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(5) "160.0"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    int(1095)
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(22) "9405510298370317332011"
  }
}

Shipment info shipping easy shipment ID #224536013

From API:
array(7) {
  ["se_shipment_id"]=>
  int(224536013)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(5) "160.0"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  int(1095)
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(22) "9405510298370317332011"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7071"
  ["order_id"]=>
  string(4) "7412"
  ["se_shipment_id"]=>
  string(9) "224536013"
  ["carrier_key"]=>
  string(4) "USPS"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  string(4) "1095"
  ["shipment_weight_ounces"]=>
  string(6) "160.00"
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(22) "9405510298370317332011"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  string(25) "In Transit to Destination"
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:58"
}



Shipment info for shipping easy shipment ID #224536013 is same between both arrays

*** Order info:
Array
(
    [id] => 207128183
    [external_order_identifier] => 114-0408039-8445856
    [ext_order_reference_id] => 114-0408039-8445856
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-28T15:21:02Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 21.44
    [total_excluding_tax] => 19.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 21.44
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 1.45
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Brian Riley
    [billing_first_name] => Brian
    [billing_last_name] => D.
    [billing_address] => 22 CECILIA CT
    [billing_address2] => 
    [billing_city] => TIBURON
    [billing_state] => CA
    [billing_country] => US
    [billing_postal_code] => 94920-2189
    [billing_phone_number] => 415 272 4807
    [billing_email] => vmttt6f4gc9v9s9@marketplace.amazon.com
    [buyer_email] => vmttt6f4gc9v9s9@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Brian
                    [last_name] => Riley
                    [address] => 22 CECILIA CT
                    [address2] => 
                    [address3] => 
                    [city] => TIBURON
                    [residential] => 1
                    [state] => CA
                    [province] => 
                    [country] => United States
                    [postal_code] => 94920
                    [postal_code_plus_4] => 2189
                    [phone_number] => 415 272 4807
                    [email] => vmttt6f4gc9v9s9@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => Standard
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => World's Best Fire Starter - Wood Stove, Pellet Stove, BBQ (New)
                                    [sku] => firestarter1fbb
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 12.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 19.99
                                    [unit_price] => 19.99
                                    [ext_line_item_id] => 11073621669754
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 1c579165-0bf0-4de0-96b1-f342224625b0
                                    [order_source_id] => 216658593
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 207128183
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 209234583
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 12.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 7
                            [created_at] => 2017-12-28T16:06:44Z
                            [updated_at] => 2017-12-29T09:11:03Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => world's best fire starter - wood stove, pellet stove, bbq (new)
                            [line_item_sku] => firestarter1fbb
                            [address_kind] => R
                            [recipient_last_name] => riley
                            [recipient_requested_service] => standard
                            [gift] => 
                            [prime_order_id] => 207128183
                            [state] => CA
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-28T15:21:02Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 114-0408039-8445856
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 114-0408039-8445856
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 224536023
                    [tracking_number] => 9400110298370317332025
                    [carrier_key] => USPS
                    [carrier_service_key] => First
                    [shipment_cost] => 374
                    [ship_date] => 2017-12-29
                )

        )

    [updated_at] => 2017-12-29T09:11:03Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 207128183
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for vmttt6f4gc9v9s9@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 10016

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(5) "Brian"
  ["customer_last_name"]=>
  string(5) "Riley"
  ["customer_email"]=>
  string(38) "vmttt6f4gc9v9s9@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(11) "Brian Riley"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(13) "22 CECILIA CT"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(7) "TIBURON"
    ["address_state"]=>
    string(2) "CA"
    ["address_zip"]=>
    string(10) "94920-2189"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10016"
  ["ordered_time"]=>
  string(19) "2017-12-28 15:21:02"
  ["se_order_id"]=>
  int(207128183)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "114-0408039-8445856"
  ["order_weight_ounces"]=>
  string(4) "12.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4029) "{"id":207128183,"external_order_identifier":"114-0408039-8445856","ext_order_reference_id":"114-0408039-8445856","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-28T15:21:02Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"21.44","total_excluding_tax":"19.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"21.44","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"1.45","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Brian Riley","billing_first_name":"Brian","billing_last_name":"D.","billing_address":"22 CECILIA CT","billing_address2":null,"billing_city":"TIBURON","billing_state":"CA","billing_country":"US","billing_postal_code":"94920-2189","billing_phone_number":"415 272 4807","billing_email":"vmttt6f4gc9v9s9@marketplace.amazon.com","buyer_email":"vmttt6f4gc9v9s9@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Brian","last_name":"Riley","address":"22 CECILIA CT","address2":null,"address3":null,"city":"TIBURON","residential":true,"state":"CA","province":null,"country":"United States","postal_code":"94920","postal_code_plus_4":"2189","phone_number":"415 272 4807","email":"vmttt6f4gc9v9s9@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"Standard","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"World's Best Fire Starter - Wood Stove, Pellet Stove, BBQ (New)","sku":"firestarter1fbb","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"12.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"19.99","unit_price":"19.99","ext_line_item_id":"11073621669754","ext_product_id":null,"product_options":null,"uuid":"1c579165-0bf0-4de0-96b1-f342224625b0","order_source_id":216658593,"gift_message":null}],"original_order":{"id":207128183,"customer_id":33773,"store_id":70647,"order_detail_id":209234583,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"12.0","total_quantity":1,"is_international":false,"usps_shipping_zone":7,"created_at":"2017-12-28T16:06:44Z","updated_at":"2017-12-29T09:11:03Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"world's best fire starter - wood stove, pellet stove, bbq (new)","line_item_sku":"firestarter1fbb","address_kind":"R","recipient_last_name":"riley","recipient_requested_service":"standard","gift":null,"prime_order_id":207128183,"state":"CA","owner_id":37098,"denormalized_ordered_at":"2017-12-28T15:21:02Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"114-0408039-8445856","packing_slip_generated":null,"denormalized_ext_order_reference_id":"114-0408039-8445856","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":224536023,"tracking_number":"9400110298370317332025","carrier_key":"USPS","carrier_service_key":"First","shipment_cost":374,"ship_date":"2017-12-29"}],"updated_at":"2017-12-29T09:11:03Z","internal_notes":"","meta_data":null,"prime_order_id":207128183,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(224536023)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(4) "12.0"
      ["carrier_service_key"]=>
      string(5) "First"
      ["shipment_cost"]=>
      int(374)
      ["ship_date"]=>
      string(10) "2017-12-29"
      ["tracking_number"]=>
      string(22) "9400110298370317332025"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7413

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7072"
    ["order_id"]=>
    string(4) "7413"
    ["se_shipment_id"]=>
    string(9) "224536023"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(5) "First"
    ["shipment_cost"]=>
    string(3) "374"
    ["shipment_weight_ounces"]=>
    string(5) "12.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(22) "9400110298370317332025"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(24) "Arrived at USPS Facility"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:37"
  }
}


shipmentDBRows:
array(1) {
  [224536023]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7072"
    ["order_id"]=>
    string(4) "7413"
    ["se_shipment_id"]=>
    string(9) "224536023"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(5) "First"
    ["shipment_cost"]=>
    string(3) "374"
    ["shipment_weight_ounces"]=>
    string(5) "12.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(22) "9400110298370317332025"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(24) "Arrived at USPS Facility"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:37"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(224536023)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(4) "12.0"
    ["carrier_service_key"]=>
    string(5) "First"
    ["shipment_cost"]=>
    int(374)
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(22) "9400110298370317332025"
  }
}

Shipment info shipping easy shipment ID #224536023

From API:
array(7) {
  ["se_shipment_id"]=>
  int(224536023)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(4) "12.0"
  ["carrier_service_key"]=>
  string(5) "First"
  ["shipment_cost"]=>
  int(374)
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(22) "9400110298370317332025"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7072"
  ["order_id"]=>
  string(4) "7413"
  ["se_shipment_id"]=>
  string(9) "224536023"
  ["carrier_key"]=>
  string(4) "USPS"
  ["carrier_service_key"]=>
  string(5) "First"
  ["shipment_cost"]=>
  string(3) "374"
  ["shipment_weight_ounces"]=>
  string(5) "12.00"
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(22) "9400110298370317332025"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  string(24) "Arrived at USPS Facility"
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:37"
}



Shipment info for shipping easy shipment ID #224536023 is same between both arrays

*** Order info:
Array
(
    [id] => 207890383
    [external_order_identifier] => 112-6511155-6715443
    [ext_order_reference_id] => 112-6511155-6715443
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-29T06:07:59Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 18.40
    [total_excluding_tax] => 18.40
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 18.40
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Trey Whitehead
    [billing_first_name] => Trey
    [billing_last_name] => Whitehead
    [billing_address] => 42441 US HIGHWAY 96 S
    [billing_address2] => BOX 1241
    [billing_city] => BUNA
    [billing_state] => TX
    [billing_country] => US
    [billing_postal_code] => 77612-3029
    [billing_phone_number] => 409-276-1624
    [billing_email] => b6y0c3vsmm225q2@marketplace.amazon.com
    [buyer_email] => b6y0c3vsmm225q2@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Trey
                    [last_name] => Whitehead
                    [address] => 42441 US HIGHWAY 96 S
                    [address2] => BOX 1241
                    [address3] => 
                    [city] => BUNA
                    [residential] => 
                    [state] => TX
                    [province] => 
                    [country] => United States
                    [postal_code] => 77612
                    [postal_code_plus_4] => 
                    [phone_number] => 409-276-1624
                    [email] => b6y0c3vsmm225q2@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack 100-Percent Hickory Wood BBQ Grilling Pellets, 20-Pound Bag (New)
                                    [sku] => 20hick100Comp1
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 336.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 18.40
                                    [unit_price] => 18.40
                                    [ext_line_item_id] => 68326781557538
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => ec018398-92be-456e-bfcc-80d61dc6f14d
                                    [order_source_id] => 217488723
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 207890383
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 210012703
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 336.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 6
                            [created_at] => 2017-12-29T07:07:00Z
                            [updated_at] => 2017-12-29T09:11:03Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack 100-percent hickory wood bbq grilling pellets, 20-pound bag (new)
                            [line_item_sku] => 20hick100comp1
                            [address_kind] => F
                            [recipient_last_name] => whitehead
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 207890383
                            [state] => TX
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-29T06:07:59Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 112-6511155-6715443
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 112-6511155-6715443
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 224536053
                    [tracking_number] => 789153213186
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 1166
                    [ship_date] => 2017-12-29
                )

        )

    [updated_at] => 2017-12-29T09:11:03Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 207890383
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for b6y0c3vsmm225q2@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 10017

Delivery address already in our DB. Data:
array(14) {
  ["address_id"]=>
  string(5) "13653"
  ["customer_id"]=>
  string(5) "10017"
  ["address_type"]=>
  string(8) "delivery"
  ["order_id"]=>
  NULL
  ["address_line_1"]=>
  string(21) "42441 US HIGHWAY 96 S"
  ["address_line_2"]=>
  string(8) "BOX 1241"
  ["address_city"]=>
  string(4) "BUNA"
  ["address_state"]=>
  string(2) "TX"
  ["address_zip"]=>
  string(5) "77612"
  ["address_country"]=>
  string(13) "United States"
  ["accessorial"]=>
  NULL
  ["county_tag"]=>
  string(16) "TX-Jasper County"
  ["created_time"]=>
  string(19) "2018-01-01 00:32:44"
  ["active"]=>
  string(1) "1"
}


parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10017"
  ["ordered_time"]=>
  string(19) "2017-12-29 06:07:59"
  ["se_order_id"]=>
  int(207890383)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "112-6511155-6715443"
  ["order_weight_ounces"]=>
  string(5) "336.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4098) "{"id":207890383,"external_order_identifier":"112-6511155-6715443","ext_order_reference_id":"112-6511155-6715443","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-29T06:07:59Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"18.40","total_excluding_tax":"18.40","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"18.40","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Trey Whitehead","billing_first_name":"Trey","billing_last_name":"Whitehead","billing_address":"42441 US HIGHWAY 96 S","billing_address2":"BOX 1241","billing_city":"BUNA","billing_state":"TX","billing_country":"US","billing_postal_code":"77612-3029","billing_phone_number":"409-276-1624","billing_email":"b6y0c3vsmm225q2@marketplace.amazon.com","buyer_email":"b6y0c3vsmm225q2@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Trey","last_name":"Whitehead","address":"42441 US HIGHWAY 96 S","address2":"BOX 1241","address3":null,"city":"BUNA","residential":null,"state":"TX","province":null,"country":"United States","postal_code":"77612","postal_code_plus_4":null,"phone_number":"409-276-1624","email":"b6y0c3vsmm225q2@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack 100-Percent Hickory Wood BBQ Grilling Pellets, 20-Pound Bag (New)","sku":"20hick100Comp1","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"336.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"18.40","unit_price":"18.40","ext_line_item_id":"68326781557538","ext_product_id":null,"product_options":null,"uuid":"ec018398-92be-456e-bfcc-80d61dc6f14d","order_source_id":217488723,"gift_message":null}],"original_order":{"id":207890383,"customer_id":33773,"store_id":70647,"order_detail_id":210012703,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"336.0","total_quantity":1,"is_international":false,"usps_shipping_zone":6,"created_at":"2017-12-29T07:07:00Z","updated_at":"2017-12-29T09:11:03Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack 100-percent hickory wood bbq grilling pellets, 20-pound bag (new)","line_item_sku":"20hick100comp1","address_kind":"F","recipient_last_name":"whitehead","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":207890383,"state":"TX","owner_id":37098,"denormalized_ordered_at":"2017-12-29T06:07:59Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"112-6511155-6715443","packing_slip_generated":null,"denormalized_ext_order_reference_id":"112-6511155-6715443","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":224536053,"tracking_number":"789153213186","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":1166,"ship_date":"2017-12-29"}],"updated_at":"2017-12-29T09:11:03Z","internal_notes":"","meta_data":null,"prime_order_id":207890383,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(224536053)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(5) "336.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(1166)
      ["ship_date"]=>
      string(10) "2017-12-29"
      ["tracking_number"]=>
      string(12) "789153213186"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7414

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7073"
    ["order_id"]=>
    string(4) "7414"
    ["se_shipment_id"]=>
    string(9) "224536053"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1166"
    ["shipment_weight_ounces"]=>
    string(6) "336.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(12) "789153213186"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "AR"
    ["tracking_status_description"]=>
    string(25) "Arrived at FedEx location"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-04 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:27"
  }
}


shipmentDBRows:
array(1) {
  [224536053]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7073"
    ["order_id"]=>
    string(4) "7414"
    ["se_shipment_id"]=>
    string(9) "224536053"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1166"
    ["shipment_weight_ounces"]=>
    string(6) "336.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(12) "789153213186"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "AR"
    ["tracking_status_description"]=>
    string(25) "Arrived at FedEx location"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-04 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:27"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(224536053)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(5) "336.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(1166)
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(12) "789153213186"
  }
}

Shipment info shipping easy shipment ID #224536053

From API:
array(7) {
  ["se_shipment_id"]=>
  int(224536053)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(5) "336.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(1166)
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(12) "789153213186"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7073"
  ["order_id"]=>
  string(4) "7414"
  ["se_shipment_id"]=>
  string(9) "224536053"
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  string(4) "1166"
  ["shipment_weight_ounces"]=>
  string(6) "336.00"
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(12) "789153213186"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  string(2) "AR"
  ["tracking_status_description"]=>
  string(25) "Arrived at FedEx location"
  ["estimated_delivery_time"]=>
  string(19) "2018-01-04 00:00:00"
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:27"
}



Shipment info for shipping easy shipment ID #224536053 is same between both arrays

*** Order info:
Array
(
    [id] => 207448773
    [external_order_identifier] => 112-5252436-0225002
    [ext_order_reference_id] => 112-5252436-0225002
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-28T20:25:34Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 19.73
    [total_excluding_tax] => 18.40
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 19.73
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 1.33
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Barry Pozek
    [billing_first_name] => Barry
    [billing_last_name] => Pozek
    [billing_address] => 108 PELLEGRINO CT
    [billing_address2] => 
    [billing_city] => LINCOLN
    [billing_state] => CA
    [billing_country] => US
    [billing_postal_code] => 95648-2978
    [billing_phone_number] => 5305264966
    [billing_email] => lcrdbclxqnlrvg1@marketplace.amazon.com
    [buyer_email] => lcrdbclxqnlrvg1@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Barry
                    [last_name] => Pozek
                    [address] => 108 PELLEGRINO CT
                    [address2] => 
                    [address3] => 
                    [city] => LINCOLN
                    [residential] => 1
                    [state] => CA
                    [province] => 
                    [country] => United States
                    [postal_code] => 95648
                    [postal_code_plus_4] => 2978
                    [phone_number] => 5305264966
                    [email] => lcrdbclxqnlrvg1@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack 100% Hardwood Grilling Smoker Pellets, 100% Maple, 20 LB (New)
                                    [sku] => 20Maple100Comp
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 336.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 18.40
                                    [unit_price] => 18.40
                                    [ext_line_item_id] => 61505049787978
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 81dbc0fd-f7ce-46b3-8349-1eb17664f501
                                    [order_source_id] => 217000813
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 207448773
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 209557653
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 336.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 7
                            [created_at] => 2017-12-28T21:07:28Z
                            [updated_at] => 2017-12-29T09:11:03Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack 100% hardwood grilling smoker pellets, 100% maple, 20 lb (new)
                            [line_item_sku] => 20maple100comp
                            [address_kind] => R
                            [recipient_last_name] => pozek
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 207448773
                            [state] => CA
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-28T20:25:34Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 112-5252436-0225002
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 112-5252436-0225002
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 224536063
                    [tracking_number] => 789153239006
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 1102
                    [ship_date] => 2017-12-29
                )

        )

    [updated_at] => 2017-12-29T09:11:03Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 207448773
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for lcrdbclxqnlrvg1@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 10018

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(5) "Barry"
  ["customer_last_name"]=>
  string(5) "Pozek"
  ["customer_email"]=>
  string(38) "lcrdbclxqnlrvg1@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(11) "Barry Pozek"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(17) "108 PELLEGRINO CT"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(7) "LINCOLN"
    ["address_state"]=>
    string(2) "CA"
    ["address_zip"]=>
    string(10) "95648-2978"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10018"
  ["ordered_time"]=>
  string(19) "2017-12-28 20:25:34"
  ["se_order_id"]=>
  int(207448773)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "112-5252436-0225002"
  ["order_weight_ounces"]=>
  string(5) "336.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4063) "{"id":207448773,"external_order_identifier":"112-5252436-0225002","ext_order_reference_id":"112-5252436-0225002","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-28T20:25:34Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"19.73","total_excluding_tax":"18.40","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"19.73","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"1.33","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Barry Pozek","billing_first_name":"Barry","billing_last_name":"Pozek","billing_address":"108 PELLEGRINO CT","billing_address2":null,"billing_city":"LINCOLN","billing_state":"CA","billing_country":"US","billing_postal_code":"95648-2978","billing_phone_number":"5305264966","billing_email":"lcrdbclxqnlrvg1@marketplace.amazon.com","buyer_email":"lcrdbclxqnlrvg1@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Barry","last_name":"Pozek","address":"108 PELLEGRINO CT","address2":null,"address3":null,"city":"LINCOLN","residential":true,"state":"CA","province":null,"country":"United States","postal_code":"95648","postal_code_plus_4":"2978","phone_number":"5305264966","email":"lcrdbclxqnlrvg1@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack 100% Hardwood Grilling Smoker Pellets, 100% Maple, 20 LB (New)","sku":"20Maple100Comp","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"336.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"18.40","unit_price":"18.40","ext_line_item_id":"61505049787978","ext_product_id":null,"product_options":null,"uuid":"81dbc0fd-f7ce-46b3-8349-1eb17664f501","order_source_id":217000813,"gift_message":null}],"original_order":{"id":207448773,"customer_id":33773,"store_id":70647,"order_detail_id":209557653,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"336.0","total_quantity":1,"is_international":false,"usps_shipping_zone":7,"created_at":"2017-12-28T21:07:28Z","updated_at":"2017-12-29T09:11:03Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack 100% hardwood grilling smoker pellets, 100% maple, 20 lb (new)","line_item_sku":"20maple100comp","address_kind":"R","recipient_last_name":"pozek","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":207448773,"state":"CA","owner_id":37098,"denormalized_ordered_at":"2017-12-28T20:25:34Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"112-5252436-0225002","packing_slip_generated":null,"denormalized_ext_order_reference_id":"112-5252436-0225002","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":224536063,"tracking_number":"789153239006","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":1102,"ship_date":"2017-12-29"}],"updated_at":"2017-12-29T09:11:03Z","internal_notes":"","meta_data":null,"prime_order_id":207448773,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(224536063)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(5) "336.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(1102)
      ["ship_date"]=>
      string(10) "2017-12-29"
      ["tracking_number"]=>
      string(12) "789153239006"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7415

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7074"
    ["order_id"]=>
    string(4) "7415"
    ["se_shipment_id"]=>
    string(9) "224536063"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1102"
    ["shipment_weight_ounces"]=>
    string(6) "336.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(12) "789153239006"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "IT"
    ["tracking_status_description"]=>
    string(10) "In transit"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-05 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:27"
  }
}


shipmentDBRows:
array(1) {
  [224536063]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7074"
    ["order_id"]=>
    string(4) "7415"
    ["se_shipment_id"]=>
    string(9) "224536063"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1102"
    ["shipment_weight_ounces"]=>
    string(6) "336.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(12) "789153239006"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "IT"
    ["tracking_status_description"]=>
    string(10) "In transit"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-05 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:27"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(224536063)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(5) "336.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(1102)
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(12) "789153239006"
  }
}

Shipment info shipping easy shipment ID #224536063

From API:
array(7) {
  ["se_shipment_id"]=>
  int(224536063)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(5) "336.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(1102)
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(12) "789153239006"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7074"
  ["order_id"]=>
  string(4) "7415"
  ["se_shipment_id"]=>
  string(9) "224536063"
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  string(4) "1102"
  ["shipment_weight_ounces"]=>
  string(6) "336.00"
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(12) "789153239006"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  string(2) "IT"
  ["tracking_status_description"]=>
  string(10) "In transit"
  ["estimated_delivery_time"]=>
  string(19) "2018-01-05 00:00:00"
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:27"
}



Shipment info for shipping easy shipment ID #224536063 is same between both arrays

*** Order info:
Array
(
    [id] => 207448823
    [external_order_identifier] => 112-6672240-6035450
    [ext_order_reference_id] => 112-6672240-6035450
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-28T20:34:06Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 19.69
    [total_excluding_tax] => 18.40
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 19.69
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 1.29
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Reita Gaston
    [billing_first_name] => Reita
    [billing_last_name] => Gaston
    [billing_address] => 5660 TROUT CREEK DR
    [billing_address2] => 
    [billing_city] => DOUGLASVILLE
    [billing_state] => GA
    [billing_country] => US
    [billing_postal_code] => 30135-5524
    [billing_phone_number] => 7702317916
    [billing_email] => 33n8fnbggy99j00@marketplace.amazon.com
    [buyer_email] => 33n8fnbggy99j00@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Reita
                    [last_name] => Gaston
                    [address] => 5660 TROUT CREEK DR
                    [address2] => 
                    [address3] => 
                    [city] => DOUGLASVILLE
                    [residential] => 1
                    [state] => GA
                    [province] => 
                    [country] => United States
                    [postal_code] => 30135
                    [postal_code_plus_4] => 5524
                    [phone_number] => 7702317916
                    [email] => 33n8fnbggy99j00@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack 100-Percent Hickory Wood BBQ Grilling Pellets, 20-Pound Bag (New)
                                    [sku] => 20hick100Comp1
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 336.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 18.40
                                    [unit_price] => 18.40
                                    [ext_line_item_id] => 05784867586026
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 41755fb8-ac9c-4665-981f-fdadaa9b1b60
                                    [order_source_id] => 217000883
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 207448823
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 209557693
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 336.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-28T21:07:29Z
                            [updated_at] => 2017-12-29T09:11:03Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack 100-percent hickory wood bbq grilling pellets, 20-pound bag (new)
                            [line_item_sku] => 20hick100comp1
                            [address_kind] => R
                            [recipient_last_name] => gaston
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 207448823
                            [state] => GA
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-28T20:34:06Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 112-6672240-6035450
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 112-6672240-6035450
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 224536123
                    [tracking_number] => 789153254234
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 750
                    [ship_date] => 2017-12-29
                )

        )

    [updated_at] => 2017-12-29T09:11:03Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 207448823
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for 33n8fnbggy99j00@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 5739

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(5) "Reita"
  ["customer_last_name"]=>
  string(6) "Gaston"
  ["customer_email"]=>
  string(38) "33n8fnbggy99j00@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(12) "Reita Gaston"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(19) "5660 TROUT CREEK DR"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(12) "DOUGLASVILLE"
    ["address_state"]=>
    string(2) "GA"
    ["address_zip"]=>
    string(10) "30135-5524"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "5739"
  ["ordered_time"]=>
  string(19) "2017-12-28 20:34:06"
  ["se_order_id"]=>
  int(207448823)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "112-6672240-6035450"
  ["order_weight_ounces"]=>
  string(5) "336.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4086) "{"id":207448823,"external_order_identifier":"112-6672240-6035450","ext_order_reference_id":"112-6672240-6035450","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-28T20:34:06Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"19.69","total_excluding_tax":"18.40","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"19.69","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"1.29","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Reita Gaston","billing_first_name":"Reita","billing_last_name":"Gaston","billing_address":"5660 TROUT CREEK DR","billing_address2":null,"billing_city":"DOUGLASVILLE","billing_state":"GA","billing_country":"US","billing_postal_code":"30135-5524","billing_phone_number":"7702317916","billing_email":"33n8fnbggy99j00@marketplace.amazon.com","buyer_email":"33n8fnbggy99j00@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Reita","last_name":"Gaston","address":"5660 TROUT CREEK DR","address2":null,"address3":null,"city":"DOUGLASVILLE","residential":true,"state":"GA","province":null,"country":"United States","postal_code":"30135","postal_code_plus_4":"5524","phone_number":"7702317916","email":"33n8fnbggy99j00@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack 100-Percent Hickory Wood BBQ Grilling Pellets, 20-Pound Bag (New)","sku":"20hick100Comp1","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"336.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"18.40","unit_price":"18.40","ext_line_item_id":"05784867586026","ext_product_id":null,"product_options":null,"uuid":"41755fb8-ac9c-4665-981f-fdadaa9b1b60","order_source_id":217000883,"gift_message":null}],"original_order":{"id":207448823,"customer_id":33773,"store_id":70647,"order_detail_id":209557693,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"336.0","total_quantity":1,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-28T21:07:29Z","updated_at":"2017-12-29T09:11:03Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack 100-percent hickory wood bbq grilling pellets, 20-pound bag (new)","line_item_sku":"20hick100comp1","address_kind":"R","recipient_last_name":"gaston","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":207448823,"state":"GA","owner_id":37098,"denormalized_ordered_at":"2017-12-28T20:34:06Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"112-6672240-6035450","packing_slip_generated":null,"denormalized_ext_order_reference_id":"112-6672240-6035450","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":224536123,"tracking_number":"789153254234","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":750,"ship_date":"2017-12-29"}],"updated_at":"2017-12-29T09:11:03Z","internal_notes":"","meta_data":null,"prime_order_id":207448823,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(224536123)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(5) "336.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(750)
      ["ship_date"]=>
      string(10) "2017-12-29"
      ["tracking_number"]=>
      string(12) "789153254234"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7416

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7075"
    ["order_id"]=>
    string(4) "7416"
    ["se_shipment_id"]=>
    string(9) "224536123"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(3) "750"
    ["shipment_weight_ounces"]=>
    string(6) "336.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(12) "789153254234"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "IT"
    ["tracking_status_description"]=>
    string(10) "In transit"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-04 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:28"
  }
}


shipmentDBRows:
array(1) {
  [224536123]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7075"
    ["order_id"]=>
    string(4) "7416"
    ["se_shipment_id"]=>
    string(9) "224536123"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(3) "750"
    ["shipment_weight_ounces"]=>
    string(6) "336.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(12) "789153254234"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "IT"
    ["tracking_status_description"]=>
    string(10) "In transit"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-04 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:28"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(224536123)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(5) "336.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(750)
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(12) "789153254234"
  }
}

Shipment info shipping easy shipment ID #224536123

From API:
array(7) {
  ["se_shipment_id"]=>
  int(224536123)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(5) "336.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(750)
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(12) "789153254234"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7075"
  ["order_id"]=>
  string(4) "7416"
  ["se_shipment_id"]=>
  string(9) "224536123"
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  string(3) "750"
  ["shipment_weight_ounces"]=>
  string(6) "336.00"
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(12) "789153254234"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  string(2) "IT"
  ["tracking_status_description"]=>
  string(10) "In transit"
  ["estimated_delivery_time"]=>
  string(19) "2018-01-04 00:00:00"
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:28"
}



Shipment info for shipping easy shipment ID #224536123 is same between both arrays

*** Order info:
Array
(
    [id] => 207611783
    [external_order_identifier] => 112-0378099-5786623
    [ext_order_reference_id] => 112-0378099-5786623
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-28T23:11:54Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 18.22
    [total_excluding_tax] => 18.22
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 18.22
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Broderick Lide
    [billing_first_name] => Broderick
    [billing_last_name] => Lide
    [billing_address] => 10 Corriedale Ct
    [billing_address2] => 
    [billing_city] => Owings Mills
    [billing_state] => MD
    [billing_country] => US
    [billing_postal_code] => 21117-1262
    [billing_phone_number] => 410-236-0931
    [billing_email] => xjdx2h5pct1bwx7@marketplace.amazon.com
    [buyer_email] => xjdx2h5pct1bwx7@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Broderick
                    [last_name] => Lide
                    [address] => 10 Corriedale Ct
                    [address2] => 
                    [address3] => 
                    [city] => Owings Mills
                    [residential] => 1
                    [state] => MD
                    [province] => 
                    [country] => United States
                    [postal_code] => 21117
                    [postal_code_plus_4] => 1262
                    [phone_number] => 410-236-0931
                    [email] => xjdx2h5pct1bwx7@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack 100% Hardwood Grilling Smoker Pellets, 100% Cherry, 20 LB (New)
                                    [sku] => 20cherry100
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 336.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 18.22
                                    [unit_price] => 18.22
                                    [ext_line_item_id] => 03401817923130
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 2310c503-f57c-498b-80ca-52d0b8e8a740
                                    [order_source_id] => 217177253
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 207611783
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 209724033
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 336.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-29T00:06:55Z
                            [updated_at] => 2017-12-29T09:11:03Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack 100% hardwood grilling smoker pellets, 100% cherry, 20 lb (new)
                            [line_item_sku] => 20cherry100
                            [address_kind] => R
                            [recipient_last_name] => lide
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 207611783
                            [state] => MD
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-28T23:11:54Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 112-0378099-5786623
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 112-0378099-5786623
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 224536133
                    [tracking_number] => 789153254999
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 750
                    [ship_date] => 2017-12-29
                )

        )

    [updated_at] => 2017-12-29T09:11:03Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 207611783
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for xjdx2h5pct1bwx7@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 10019

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(9) "Broderick"
  ["customer_last_name"]=>
  string(4) "Lide"
  ["customer_email"]=>
  string(38) "xjdx2h5pct1bwx7@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(14) "Broderick Lide"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(16) "10 Corriedale Ct"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(12) "Owings Mills"
    ["address_state"]=>
    string(2) "MD"
    ["address_zip"]=>
    string(10) "21117-1262"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10019"
  ["ordered_time"]=>
  string(19) "2017-12-28 23:11:54"
  ["se_order_id"]=>
  int(207611783)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "112-0378099-5786623"
  ["order_weight_ounces"]=>
  string(5) "336.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4078) "{"id":207611783,"external_order_identifier":"112-0378099-5786623","ext_order_reference_id":"112-0378099-5786623","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-28T23:11:54Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"18.22","total_excluding_tax":"18.22","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"18.22","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Broderick Lide","billing_first_name":"Broderick","billing_last_name":"Lide","billing_address":"10 Corriedale Ct","billing_address2":null,"billing_city":"Owings Mills","billing_state":"MD","billing_country":"US","billing_postal_code":"21117-1262","billing_phone_number":"410-236-0931","billing_email":"xjdx2h5pct1bwx7@marketplace.amazon.com","buyer_email":"xjdx2h5pct1bwx7@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Broderick","last_name":"Lide","address":"10 Corriedale Ct","address2":null,"address3":null,"city":"Owings Mills","residential":true,"state":"MD","province":null,"country":"United States","postal_code":"21117","postal_code_plus_4":"1262","phone_number":"410-236-0931","email":"xjdx2h5pct1bwx7@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack 100% Hardwood Grilling Smoker Pellets, 100% Cherry, 20 LB (New)","sku":"20cherry100","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"336.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"18.22","unit_price":"18.22","ext_line_item_id":"03401817923130","ext_product_id":null,"product_options":null,"uuid":"2310c503-f57c-498b-80ca-52d0b8e8a740","order_source_id":217177253,"gift_message":null}],"original_order":{"id":207611783,"customer_id":33773,"store_id":70647,"order_detail_id":209724033,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"336.0","total_quantity":1,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-29T00:06:55Z","updated_at":"2017-12-29T09:11:03Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack 100% hardwood grilling smoker pellets, 100% cherry, 20 lb (new)","line_item_sku":"20cherry100","address_kind":"R","recipient_last_name":"lide","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":207611783,"state":"MD","owner_id":37098,"denormalized_ordered_at":"2017-12-28T23:11:54Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"112-0378099-5786623","packing_slip_generated":null,"denormalized_ext_order_reference_id":"112-0378099-5786623","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":224536133,"tracking_number":"789153254999","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":750,"ship_date":"2017-12-29"}],"updated_at":"2017-12-29T09:11:03Z","internal_notes":"","meta_data":null,"prime_order_id":207611783,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(224536133)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(5) "336.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(750)
      ["ship_date"]=>
      string(10) "2017-12-29"
      ["tracking_number"]=>
      string(12) "789153254999"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7417

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7076"
    ["order_id"]=>
    string(4) "7417"
    ["se_shipment_id"]=>
    string(9) "224536133"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(3) "750"
    ["shipment_weight_ounces"]=>
    string(6) "336.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(12) "789153254999"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "DP"
    ["tracking_status_description"]=>
    string(23) "Departed FedEx location"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-04 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:31"
  }
}


shipmentDBRows:
array(1) {
  [224536133]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7076"
    ["order_id"]=>
    string(4) "7417"
    ["se_shipment_id"]=>
    string(9) "224536133"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(3) "750"
    ["shipment_weight_ounces"]=>
    string(6) "336.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(12) "789153254999"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "DP"
    ["tracking_status_description"]=>
    string(23) "Departed FedEx location"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-04 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:31"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(224536133)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(5) "336.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(750)
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(12) "789153254999"
  }
}

Shipment info shipping easy shipment ID #224536133

From API:
array(7) {
  ["se_shipment_id"]=>
  int(224536133)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(5) "336.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(750)
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(12) "789153254999"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7076"
  ["order_id"]=>
  string(4) "7417"
  ["se_shipment_id"]=>
  string(9) "224536133"
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  string(3) "750"
  ["shipment_weight_ounces"]=>
  string(6) "336.00"
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(12) "789153254999"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  string(2) "DP"
  ["tracking_status_description"]=>
  string(23) "Departed FedEx location"
  ["estimated_delivery_time"]=>
  string(19) "2018-01-04 00:00:00"
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:31"
}



Shipment info for shipping easy shipment ID #224536133 is same between both arrays

*** Order info:
Array
(
    [id] => 207699873
    [external_order_identifier] => 111-1237180-7441042
    [ext_order_reference_id] => 111-1237180-7441042
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-29T00:56:20Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 18.40
    [total_excluding_tax] => 18.40
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 18.40
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Nathan Pendergraft
    [billing_first_name] => Nathan
    [billing_last_name] => Pendergraft
    [billing_address] => 607 Wagstaff rd
    [billing_address2] => 
    [billing_city] => Fuquay varina
    [billing_state] => North Carolina
    [billing_country] => US
    [billing_postal_code] => 27526
    [billing_phone_number] => 919 255 8486
    [billing_email] => 6jwyk01cbyzfyrq@marketplace.amazon.com
    [buyer_email] => 6jwyk01cbyzfyrq@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Nathan
                    [last_name] => Pendergraft
                    [address] => 607 Wagstaff rd
                    [address2] => 
                    [address3] => 
                    [city] => Fuquay varina
                    [residential] => 1
                    [state] => NC
                    [province] => 
                    [country] => United States
                    [postal_code] => 27526
                    [postal_code_plus_4] => 9799
                    [phone_number] => 919 255 8486
                    [email] => 6jwyk01cbyzfyrq@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack 100-Percent Hickory Wood BBQ Grilling Pellets, 20-Pound Bag (New)
                                    [sku] => 20hick100Comp1
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 336.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 18.40
                                    [unit_price] => 18.40
                                    [ext_line_item_id] => 41782741894066
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => b6c30f37-a481-43b7-91f7-3e72dc9c4905
                                    [order_source_id] => 217275143
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 207699873
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 209815733
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 336.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-29T02:07:22Z
                            [updated_at] => 2017-12-29T09:11:03Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack 100-percent hickory wood bbq grilling pellets, 20-pound bag (new)
                            [line_item_sku] => 20hick100comp1
                            [address_kind] => R
                            [recipient_last_name] => pendergraft
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 207699873
                            [state] => NC
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-29T00:56:20Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 111-1237180-7441042
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 111-1237180-7441042
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 224536143
                    [tracking_number] => 789153254337
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 1008
                    [ship_date] => 2017-12-29
                )

        )

    [updated_at] => 2017-12-29T09:11:03Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 207699873
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for 6jwyk01cbyzfyrq@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 10020

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(6) "Nathan"
  ["customer_last_name"]=>
  string(11) "Pendergraft"
  ["customer_email"]=>
  string(38) "6jwyk01cbyzfyrq@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(18) "Nathan Pendergraft"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(15) "607 Wagstaff rd"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(13) "Fuquay varina"
    ["address_state"]=>
    string(14) "North Carolina"
    ["address_zip"]=>
    string(5) "27526"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10020"
  ["ordered_time"]=>
  string(19) "2017-12-29 00:56:20"
  ["se_order_id"]=>
  int(207699873)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "111-1237180-7441042"
  ["order_weight_ounces"]=>
  string(5) "336.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4115) "{"id":207699873,"external_order_identifier":"111-1237180-7441042","ext_order_reference_id":"111-1237180-7441042","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-29T00:56:20Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"18.40","total_excluding_tax":"18.40","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"18.40","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Nathan Pendergraft","billing_first_name":"Nathan","billing_last_name":"Pendergraft","billing_address":"607 Wagstaff rd","billing_address2":null,"billing_city":"Fuquay varina","billing_state":"North Carolina","billing_country":"US","billing_postal_code":"27526","billing_phone_number":"919 255 8486","billing_email":"6jwyk01cbyzfyrq@marketplace.amazon.com","buyer_email":"6jwyk01cbyzfyrq@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Nathan","last_name":"Pendergraft","address":"607 Wagstaff rd","address2":null,"address3":null,"city":"Fuquay varina","residential":true,"state":"NC","province":null,"country":"United States","postal_code":"27526","postal_code_plus_4":"9799","phone_number":"919 255 8486","email":"6jwyk01cbyzfyrq@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack 100-Percent Hickory Wood BBQ Grilling Pellets, 20-Pound Bag (New)","sku":"20hick100Comp1","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"336.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"18.40","unit_price":"18.40","ext_line_item_id":"41782741894066","ext_product_id":null,"product_options":null,"uuid":"b6c30f37-a481-43b7-91f7-3e72dc9c4905","order_source_id":217275143,"gift_message":null}],"original_order":{"id":207699873,"customer_id":33773,"store_id":70647,"order_detail_id":209815733,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"336.0","total_quantity":1,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-29T02:07:22Z","updated_at":"2017-12-29T09:11:03Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack 100-percent hickory wood bbq grilling pellets, 20-pound bag (new)","line_item_sku":"20hick100comp1","address_kind":"R","recipient_last_name":"pendergraft","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":207699873,"state":"NC","owner_id":37098,"denormalized_ordered_at":"2017-12-29T00:56:20Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"111-1237180-7441042","packing_slip_generated":null,"denormalized_ext_order_reference_id":"111-1237180-7441042","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":224536143,"tracking_number":"789153254337","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":1008,"ship_date":"2017-12-29"}],"updated_at":"2017-12-29T09:11:03Z","internal_notes":"","meta_data":null,"prime_order_id":207699873,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(224536143)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(5) "336.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(1008)
      ["ship_date"]=>
      string(10) "2017-12-29"
      ["tracking_number"]=>
      string(12) "789153254337"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7418

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7077"
    ["order_id"]=>
    string(4) "7418"
    ["se_shipment_id"]=>
    string(9) "224536143"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1008"
    ["shipment_weight_ounces"]=>
    string(6) "336.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(12) "789153254337"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "IT"
    ["tracking_status_description"]=>
    string(10) "In transit"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-04 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:29"
  }
}


shipmentDBRows:
array(1) {
  [224536143]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7077"
    ["order_id"]=>
    string(4) "7418"
    ["se_shipment_id"]=>
    string(9) "224536143"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1008"
    ["shipment_weight_ounces"]=>
    string(6) "336.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(12) "789153254337"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "IT"
    ["tracking_status_description"]=>
    string(10) "In transit"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-04 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:29"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(224536143)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(5) "336.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(1008)
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(12) "789153254337"
  }
}

Shipment info shipping easy shipment ID #224536143

From API:
array(7) {
  ["se_shipment_id"]=>
  int(224536143)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(5) "336.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(1008)
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(12) "789153254337"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7077"
  ["order_id"]=>
  string(4) "7418"
  ["se_shipment_id"]=>
  string(9) "224536143"
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  string(4) "1008"
  ["shipment_weight_ounces"]=>
  string(6) "336.00"
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(12) "789153254337"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  string(2) "IT"
  ["tracking_status_description"]=>
  string(10) "In transit"
  ["estimated_delivery_time"]=>
  string(19) "2018-01-04 00:00:00"
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:29"
}



Shipment info for shipping easy shipment ID #224536143 is same between both arrays

*** Order info:
Array
(
    [id] => 207448633
    [external_order_identifier] => 113-4047915-5932202
    [ext_order_reference_id] => 113-4047915-5932202
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-28T19:43:21Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 19.50
    [total_excluding_tax] => 18.40
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 19.50
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 1.10
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Lynn Payne
    [billing_first_name] => James
    [billing_last_name] => Payne
    [billing_address] => 9738 SOARING BREEZES
    [billing_address2] => 
    [billing_city] => UNION
    [billing_state] => KY
    [billing_country] => US
    [billing_postal_code] => 41091-6929
    [billing_phone_number] => 8595472011
    [billing_email] => 3clrvf7nxbf9l0r@marketplace.amazon.com
    [buyer_email] => 3clrvf7nxbf9l0r@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Lynn
                    [last_name] => Payne
                    [address] => 9738 SOARING BREEZES
                    [address2] => 
                    [address3] => 
                    [city] => UNION
                    [residential] => 1
                    [state] => KY
                    [province] => 
                    [country] => United States
                    [postal_code] => 41091
                    [postal_code_plus_4] => 6929
                    [phone_number] => 8595472011
                    [email] => 3clrvf7nxbf9l0r@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack 100-Percent Hickory Wood BBQ Grilling Pellets, 20-Pound Bag (New)
                                    [sku] => 20hick100Comp1
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 336.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 18.40
                                    [unit_price] => 18.40
                                    [ext_line_item_id] => 08337626087642
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => f6e37cdf-0fd4-47f7-b3db-68100d444c0e
                                    [order_source_id] => 217000663
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 207448633
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 209557513
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 336.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 4
                            [created_at] => 2017-12-28T21:07:26Z
                            [updated_at] => 2017-12-29T09:11:03Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack 100-percent hickory wood bbq grilling pellets, 20-pound bag (new)
                            [line_item_sku] => 20hick100comp1
                            [address_kind] => R
                            [recipient_last_name] => payne
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 207448633
                            [state] => KY
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-28T19:43:21Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 113-4047915-5932202
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 113-4047915-5932202
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 224536153
                    [tracking_number] => 789153255105
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 951
                    [ship_date] => 2017-12-29
                )

        )

    [updated_at] => 2017-12-29T09:11:03Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 207448633
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for 3clrvf7nxbf9l0r@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 10021

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(4) "Lynn"
  ["customer_last_name"]=>
  string(5) "Payne"
  ["customer_email"]=>
  string(38) "3clrvf7nxbf9l0r@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(10) "Lynn Payne"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(20) "9738 SOARING BREEZES"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(5) "UNION"
    ["address_state"]=>
    string(2) "KY"
    ["address_zip"]=>
    string(10) "41091-6929"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10021"
  ["ordered_time"]=>
  string(19) "2017-12-28 19:43:21"
  ["se_order_id"]=>
  int(207448633)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "113-4047915-5932202"
  ["order_weight_ounces"]=>
  string(5) "336.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4068) "{"id":207448633,"external_order_identifier":"113-4047915-5932202","ext_order_reference_id":"113-4047915-5932202","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-28T19:43:21Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"19.50","total_excluding_tax":"18.40","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"19.50","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"1.10","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Lynn Payne","billing_first_name":"James","billing_last_name":"Payne","billing_address":"9738 SOARING BREEZES","billing_address2":null,"billing_city":"UNION","billing_state":"KY","billing_country":"US","billing_postal_code":"41091-6929","billing_phone_number":"8595472011","billing_email":"3clrvf7nxbf9l0r@marketplace.amazon.com","buyer_email":"3clrvf7nxbf9l0r@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Lynn","last_name":"Payne","address":"9738 SOARING BREEZES","address2":null,"address3":null,"city":"UNION","residential":true,"state":"KY","province":null,"country":"United States","postal_code":"41091","postal_code_plus_4":"6929","phone_number":"8595472011","email":"3clrvf7nxbf9l0r@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack 100-Percent Hickory Wood BBQ Grilling Pellets, 20-Pound Bag (New)","sku":"20hick100Comp1","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"336.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"18.40","unit_price":"18.40","ext_line_item_id":"08337626087642","ext_product_id":null,"product_options":null,"uuid":"f6e37cdf-0fd4-47f7-b3db-68100d444c0e","order_source_id":217000663,"gift_message":null}],"original_order":{"id":207448633,"customer_id":33773,"store_id":70647,"order_detail_id":209557513,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"336.0","total_quantity":1,"is_international":false,"usps_shipping_zone":4,"created_at":"2017-12-28T21:07:26Z","updated_at":"2017-12-29T09:11:03Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack 100-percent hickory wood bbq grilling pellets, 20-pound bag (new)","line_item_sku":"20hick100comp1","address_kind":"R","recipient_last_name":"payne","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":207448633,"state":"KY","owner_id":37098,"denormalized_ordered_at":"2017-12-28T19:43:21Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"113-4047915-5932202","packing_slip_generated":null,"denormalized_ext_order_reference_id":"113-4047915-5932202","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":224536153,"tracking_number":"789153255105","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":951,"ship_date":"2017-12-29"}],"updated_at":"2017-12-29T09:11:03Z","internal_notes":"","meta_data":null,"prime_order_id":207448633,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(224536153)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(5) "336.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(951)
      ["ship_date"]=>
      string(10) "2017-12-29"
      ["tracking_number"]=>
      string(12) "789153255105"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7419

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7078"
    ["order_id"]=>
    string(4) "7419"
    ["se_shipment_id"]=>
    string(9) "224536153"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(3) "951"
    ["shipment_weight_ounces"]=>
    string(6) "336.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(12) "789153255105"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "IT"
    ["tracking_status_description"]=>
    string(10) "In transit"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-03 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:31"
  }
}


shipmentDBRows:
array(1) {
  [224536153]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7078"
    ["order_id"]=>
    string(4) "7419"
    ["se_shipment_id"]=>
    string(9) "224536153"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(3) "951"
    ["shipment_weight_ounces"]=>
    string(6) "336.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(12) "789153255105"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "IT"
    ["tracking_status_description"]=>
    string(10) "In transit"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-03 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:31"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(224536153)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(5) "336.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(951)
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(12) "789153255105"
  }
}

Shipment info shipping easy shipment ID #224536153

From API:
array(7) {
  ["se_shipment_id"]=>
  int(224536153)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(5) "336.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(951)
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(12) "789153255105"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7078"
  ["order_id"]=>
  string(4) "7419"
  ["se_shipment_id"]=>
  string(9) "224536153"
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  string(3) "951"
  ["shipment_weight_ounces"]=>
  string(6) "336.00"
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(12) "789153255105"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  string(2) "IT"
  ["tracking_status_description"]=>
  string(10) "In transit"
  ["estimated_delivery_time"]=>
  string(19) "2018-01-03 00:00:00"
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:31"
}



Shipment info for shipping easy shipment ID #224536153 is same between both arrays

*** Order info:
Array
(
    [id] => 207655363
    [external_order_identifier] => 112-0396212-9321030
    [ext_order_reference_id] => 112-0396212-9321030
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-29T00:33:21Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 18.40
    [total_excluding_tax] => 18.40
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 18.40
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Sarah Presley
    [billing_first_name] => Sarah
    [billing_last_name] => Presley
    [billing_address] => 210 Saxon Street
    [billing_address2] => 
    [billing_city] => Waxahachie
    [billing_state] => Texas
    [billing_country] => US
    [billing_postal_code] => 75165
    [billing_phone_number] => 9727438951
    [billing_email] => yv9h80ljzmg6vbf@marketplace.amazon.com
    [buyer_email] => yv9h80ljzmg6vbf@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Sarah
                    [last_name] => Presley
                    [address] => 210 Saxon Street
                    [address2] => 
                    [address3] => 
                    [city] => Waxahachie
                    [residential] => 1
                    [state] => TX
                    [province] => 
                    [country] => United States
                    [postal_code] => 75165
                    [postal_code_plus_4] => 5958
                    [phone_number] => 9727438951
                    [email] => yv9h80ljzmg6vbf@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack 100% Hardwood Grilling Smoker Pellets, Pecan Blend, 20 LB (New)
                                    [sku] => 20PecComp
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 336.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 18.40
                                    [unit_price] => 18.40
                                    [ext_line_item_id] => 61728544531706
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => eed5e834-4dc5-41e6-8996-9d516514e5a6
                                    [order_source_id] => 217226003
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 207655363
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 209768183
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 336.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-29T01:06:55Z
                            [updated_at] => 2017-12-29T09:11:03Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack 100% hardwood grilling smoker pellets, pecan blend, 20 lb (new)
                            [line_item_sku] => 20peccomp
                            [address_kind] => R
                            [recipient_last_name] => presley
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 207655363
                            [state] => TX
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-29T00:33:21Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 112-0396212-9321030
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 112-0396212-9321030
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 224536163
                    [tracking_number] => 789153254510
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 1008
                    [ship_date] => 2017-12-29
                )

        )

    [updated_at] => 2017-12-29T09:11:03Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 207655363
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for yv9h80ljzmg6vbf@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 10022

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(5) "Sarah"
  ["customer_last_name"]=>
  string(7) "Presley"
  ["customer_email"]=>
  string(38) "yv9h80ljzmg6vbf@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(13) "Sarah Presley"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(16) "210 Saxon Street"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(10) "Waxahachie"
    ["address_state"]=>
    string(5) "Texas"
    ["address_zip"]=>
    string(5) "75165"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10022"
  ["ordered_time"]=>
  string(19) "2017-12-29 00:33:21"
  ["se_order_id"]=>
  int(207655363)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "112-0396212-9321030"
  ["order_weight_ounces"]=>
  string(5) "336.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4065) "{"id":207655363,"external_order_identifier":"112-0396212-9321030","ext_order_reference_id":"112-0396212-9321030","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-29T00:33:21Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"18.40","total_excluding_tax":"18.40","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"18.40","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Sarah Presley","billing_first_name":"Sarah","billing_last_name":"Presley","billing_address":"210 Saxon Street","billing_address2":null,"billing_city":"Waxahachie","billing_state":"Texas","billing_country":"US","billing_postal_code":"75165","billing_phone_number":"9727438951","billing_email":"yv9h80ljzmg6vbf@marketplace.amazon.com","buyer_email":"yv9h80ljzmg6vbf@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Sarah","last_name":"Presley","address":"210 Saxon Street","address2":null,"address3":null,"city":"Waxahachie","residential":true,"state":"TX","province":null,"country":"United States","postal_code":"75165","postal_code_plus_4":"5958","phone_number":"9727438951","email":"yv9h80ljzmg6vbf@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack 100% Hardwood Grilling Smoker Pellets, Pecan Blend, 20 LB (New)","sku":"20PecComp","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"336.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"18.40","unit_price":"18.40","ext_line_item_id":"61728544531706","ext_product_id":null,"product_options":null,"uuid":"eed5e834-4dc5-41e6-8996-9d516514e5a6","order_source_id":217226003,"gift_message":null}],"original_order":{"id":207655363,"customer_id":33773,"store_id":70647,"order_detail_id":209768183,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"336.0","total_quantity":1,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-29T01:06:55Z","updated_at":"2017-12-29T09:11:03Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack 100% hardwood grilling smoker pellets, pecan blend, 20 lb (new)","line_item_sku":"20peccomp","address_kind":"R","recipient_last_name":"presley","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":207655363,"state":"TX","owner_id":37098,"denormalized_ordered_at":"2017-12-29T00:33:21Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"112-0396212-9321030","packing_slip_generated":null,"denormalized_ext_order_reference_id":"112-0396212-9321030","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":224536163,"tracking_number":"789153254510","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":1008,"ship_date":"2017-12-29"}],"updated_at":"2017-12-29T09:11:03Z","internal_notes":"","meta_data":null,"prime_order_id":207655363,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(224536163)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(5) "336.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(1008)
      ["ship_date"]=>
      string(10) "2017-12-29"
      ["tracking_number"]=>
      string(12) "789153254510"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7420

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7079"
    ["order_id"]=>
    string(4) "7420"
    ["se_shipment_id"]=>
    string(9) "224536163"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1008"
    ["shipment_weight_ounces"]=>
    string(6) "336.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(12) "789153254510"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "AR"
    ["tracking_status_description"]=>
    string(25) "Arrived at FedEx location"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-04 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:29"
  }
}


shipmentDBRows:
array(1) {
  [224536163]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7079"
    ["order_id"]=>
    string(4) "7420"
    ["se_shipment_id"]=>
    string(9) "224536163"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1008"
    ["shipment_weight_ounces"]=>
    string(6) "336.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(12) "789153254510"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "AR"
    ["tracking_status_description"]=>
    string(25) "Arrived at FedEx location"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-04 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:29"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(224536163)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(5) "336.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(1008)
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(12) "789153254510"
  }
}

Shipment info shipping easy shipment ID #224536163

From API:
array(7) {
  ["se_shipment_id"]=>
  int(224536163)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(5) "336.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(1008)
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(12) "789153254510"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7079"
  ["order_id"]=>
  string(4) "7420"
  ["se_shipment_id"]=>
  string(9) "224536163"
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  string(4) "1008"
  ["shipment_weight_ounces"]=>
  string(6) "336.00"
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(12) "789153254510"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  string(2) "AR"
  ["tracking_status_description"]=>
  string(25) "Arrived at FedEx location"
  ["estimated_delivery_time"]=>
  string(19) "2018-01-04 00:00:00"
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:29"
}



Shipment info for shipping easy shipment ID #224536163 is same between both arrays

*** Order info:
Array
(
    [id] => 207655243
    [external_order_identifier] => 112-5690651-1955415
    [ext_order_reference_id] => 112-5690651-1955415
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-29T00:18:26Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 18.40
    [total_excluding_tax] => 18.40
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 18.40
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Alana Youngblood
    [billing_first_name] => Alana
    [billing_last_name] => Youngblood
    [billing_address] => 1107 GARDEN PL
    [billing_address2] => 
    [billing_city] => DEMOPOLIS
    [billing_state] => AL
    [billing_country] => US
    [billing_postal_code] => 36732-1600
    [billing_phone_number] => 334-216-0487
    [billing_email] => vkx6pr1tvg4v642@marketplace.amazon.com
    [buyer_email] => vkx6pr1tvg4v642@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Alana
                    [last_name] => Youngblood
                    [address] => 1107 GARDEN PL
                    [address2] => 
                    [address3] => 
                    [city] => DEMOPOLIS
                    [residential] => 1
                    [state] => AL
                    [province] => 
                    [country] => United States
                    [postal_code] => 36732
                    [postal_code_plus_4] => 1600
                    [phone_number] => 334-216-0487
                    [email] => vkx6pr1tvg4v642@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack 20-pounds BBQ Grilling wood pellets, Maple-Hickory-Cherry (MHC) (New)
                                    [sku] => 20mhc
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 336.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 18.40
                                    [unit_price] => 18.40
                                    [ext_line_item_id] => 24484132439538
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => b98714c6-d510-4c1e-9c3c-ed13c83c9d3b
                                    [order_source_id] => 217225883
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 207655243
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 209768073
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 336.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-29T01:06:54Z
                            [updated_at] => 2017-12-29T09:11:03Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack 20-pounds bbq grilling wood pellets, maple-hickory-cherry (mhc) (new)
                            [line_item_sku] => 20mhc
                            [address_kind] => R
                            [recipient_last_name] => youngblood
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 207655243
                            [state] => AL
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-29T00:18:26Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 112-5690651-1955415
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 112-5690651-1955415
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 224536173
                    [tracking_number] => 789153254782
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 1008
                    [ship_date] => 2017-12-29
                )

        )

    [updated_at] => 2017-12-29T09:11:03Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 207655243
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for vkx6pr1tvg4v642@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 10023

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(5) "Alana"
  ["customer_last_name"]=>
  string(10) "Youngblood"
  ["customer_email"]=>
  string(38) "vkx6pr1tvg4v642@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(16) "Alana Youngblood"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(14) "1107 GARDEN PL"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(9) "DEMOPOLIS"
    ["address_state"]=>
    string(2) "AL"
    ["address_zip"]=>
    string(10) "36732-1600"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10023"
  ["ordered_time"]=>
  string(19) "2017-12-29 00:18:26"
  ["se_order_id"]=>
  int(207655243)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "112-5690651-1955415"
  ["order_weight_ounces"]=>
  string(5) "336.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4081) "{"id":207655243,"external_order_identifier":"112-5690651-1955415","ext_order_reference_id":"112-5690651-1955415","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-29T00:18:26Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"18.40","total_excluding_tax":"18.40","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"18.40","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Alana Youngblood","billing_first_name":"Alana","billing_last_name":"Youngblood","billing_address":"1107 GARDEN PL","billing_address2":null,"billing_city":"DEMOPOLIS","billing_state":"AL","billing_country":"US","billing_postal_code":"36732-1600","billing_phone_number":"334-216-0487","billing_email":"vkx6pr1tvg4v642@marketplace.amazon.com","buyer_email":"vkx6pr1tvg4v642@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Alana","last_name":"Youngblood","address":"1107 GARDEN PL","address2":null,"address3":null,"city":"DEMOPOLIS","residential":true,"state":"AL","province":null,"country":"United States","postal_code":"36732","postal_code_plus_4":"1600","phone_number":"334-216-0487","email":"vkx6pr1tvg4v642@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack 20-pounds BBQ Grilling wood pellets, Maple-Hickory-Cherry (MHC) (New)","sku":"20mhc","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"336.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"18.40","unit_price":"18.40","ext_line_item_id":"24484132439538","ext_product_id":null,"product_options":null,"uuid":"b98714c6-d510-4c1e-9c3c-ed13c83c9d3b","order_source_id":217225883,"gift_message":null}],"original_order":{"id":207655243,"customer_id":33773,"store_id":70647,"order_detail_id":209768073,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"336.0","total_quantity":1,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-29T01:06:54Z","updated_at":"2017-12-29T09:11:03Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack 20-pounds bbq grilling wood pellets, maple-hickory-cherry (mhc) (new)","line_item_sku":"20mhc","address_kind":"R","recipient_last_name":"youngblood","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":207655243,"state":"AL","owner_id":37098,"denormalized_ordered_at":"2017-12-29T00:18:26Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"112-5690651-1955415","packing_slip_generated":null,"denormalized_ext_order_reference_id":"112-5690651-1955415","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":224536173,"tracking_number":"789153254782","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":1008,"ship_date":"2017-12-29"}],"updated_at":"2017-12-29T09:11:03Z","internal_notes":"","meta_data":null,"prime_order_id":207655243,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(224536173)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(5) "336.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(1008)
      ["ship_date"]=>
      string(10) "2017-12-29"
      ["tracking_number"]=>
      string(12) "789153254782"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7421

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7080"
    ["order_id"]=>
    string(4) "7421"
    ["se_shipment_id"]=>
    string(9) "224536173"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1008"
    ["shipment_weight_ounces"]=>
    string(6) "336.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(12) "789153254782"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "IT"
    ["tracking_status_description"]=>
    string(10) "In transit"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-04 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:30"
  }
}


shipmentDBRows:
array(1) {
  [224536173]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7080"
    ["order_id"]=>
    string(4) "7421"
    ["se_shipment_id"]=>
    string(9) "224536173"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1008"
    ["shipment_weight_ounces"]=>
    string(6) "336.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(12) "789153254782"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "IT"
    ["tracking_status_description"]=>
    string(10) "In transit"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-04 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:30"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(224536173)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(5) "336.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(1008)
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(12) "789153254782"
  }
}

Shipment info shipping easy shipment ID #224536173

From API:
array(7) {
  ["se_shipment_id"]=>
  int(224536173)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(5) "336.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(1008)
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(12) "789153254782"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7080"
  ["order_id"]=>
  string(4) "7421"
  ["se_shipment_id"]=>
  string(9) "224536173"
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  string(4) "1008"
  ["shipment_weight_ounces"]=>
  string(6) "336.00"
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(12) "789153254782"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  string(2) "IT"
  ["tracking_status_description"]=>
  string(10) "In transit"
  ["estimated_delivery_time"]=>
  string(19) "2018-01-04 00:00:00"
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:30"
}



Shipment info for shipping easy shipment ID #224536173 is same between both arrays

*** Order info:
Array
(
    [id] => 207655303
    [external_order_identifier] => 111-3238445-5493803
    [ext_order_reference_id] => 111-3238445-5493803
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-29T00:19:03Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 18.40
    [total_excluding_tax] => 18.40
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 18.40
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Sharon Pittman
    [billing_first_name] => Sharon
    [billing_last_name] => Pittman
    [billing_address] => 226 W JUNIATA PKWY
    [billing_address2] => 
    [billing_city] => MILLERSTOWN
    [billing_state] => PA
    [billing_country] => US
    [billing_postal_code] => 17062-9200
    [billing_phone_number] => 717-589-3422
    [billing_email] => 3gp4dnmpqmfqxx9@marketplace.amazon.com
    [buyer_email] => 3gp4dnmpqmfqxx9@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Sharon
                    [last_name] => Pittman
                    [address] => 226 W JUNIATA PKWY
                    [address2] => 
                    [address3] => 
                    [city] => MILLERSTOWN
                    [residential] => 
                    [state] => PA
                    [province] => 
                    [country] => United States
                    [postal_code] => 17062
                    [postal_code_plus_4] => 9200
                    [phone_number] => 717-589-3422
                    [email] => 3gp4dnmpqmfqxx9@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack 100% Hardwood Grilling Smoker Pellets, Pecan Blend, 20 LB (New)
                                    [sku] => 20PecComp
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 336.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 18.40
                                    [unit_price] => 18.40
                                    [ext_line_item_id] => 51962873901082
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 33dfa2ec-a15f-47ad-9e79-32c83463fc36
                                    [order_source_id] => 217225933
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 207655303
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 209768123
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 336.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-29T01:06:54Z
                            [updated_at] => 2017-12-29T09:11:03Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack 100% hardwood grilling smoker pellets, pecan blend, 20 lb (new)
                            [line_item_sku] => 20peccomp
                            [address_kind] => C
                            [recipient_last_name] => pittman
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 207655303
                            [state] => PA
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-29T00:19:03Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 111-3238445-5493803
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 111-3238445-5493803
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 224536183
                    [tracking_number] => 789153254679
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 1008
                    [ship_date] => 2017-12-29
                )

        )

    [updated_at] => 2017-12-29T09:11:03Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 207655303
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for 3gp4dnmpqmfqxx9@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 10024

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(6) "Sharon"
  ["customer_last_name"]=>
  string(7) "Pittman"
  ["customer_email"]=>
  string(38) "3gp4dnmpqmfqxx9@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(14) "Sharon Pittman"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(18) "226 W JUNIATA PKWY"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(11) "MILLERSTOWN"
    ["address_state"]=>
    string(2) "PA"
    ["address_zip"]=>
    string(10) "17062-9200"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10024"
  ["ordered_time"]=>
  string(19) "2017-12-29 00:19:03"
  ["se_order_id"]=>
  int(207655303)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "111-3238445-5493803"
  ["order_weight_ounces"]=>
  string(5) "336.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4081) "{"id":207655303,"external_order_identifier":"111-3238445-5493803","ext_order_reference_id":"111-3238445-5493803","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-29T00:19:03Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"18.40","total_excluding_tax":"18.40","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"18.40","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Sharon Pittman","billing_first_name":"Sharon","billing_last_name":"Pittman","billing_address":"226 W JUNIATA PKWY","billing_address2":null,"billing_city":"MILLERSTOWN","billing_state":"PA","billing_country":"US","billing_postal_code":"17062-9200","billing_phone_number":"717-589-3422","billing_email":"3gp4dnmpqmfqxx9@marketplace.amazon.com","buyer_email":"3gp4dnmpqmfqxx9@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Sharon","last_name":"Pittman","address":"226 W JUNIATA PKWY","address2":null,"address3":null,"city":"MILLERSTOWN","residential":false,"state":"PA","province":null,"country":"United States","postal_code":"17062","postal_code_plus_4":"9200","phone_number":"717-589-3422","email":"3gp4dnmpqmfqxx9@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack 100% Hardwood Grilling Smoker Pellets, Pecan Blend, 20 LB (New)","sku":"20PecComp","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"336.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"18.40","unit_price":"18.40","ext_line_item_id":"51962873901082","ext_product_id":null,"product_options":null,"uuid":"33dfa2ec-a15f-47ad-9e79-32c83463fc36","order_source_id":217225933,"gift_message":null}],"original_order":{"id":207655303,"customer_id":33773,"store_id":70647,"order_detail_id":209768123,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"336.0","total_quantity":1,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-29T01:06:54Z","updated_at":"2017-12-29T09:11:03Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack 100% hardwood grilling smoker pellets, pecan blend, 20 lb (new)","line_item_sku":"20peccomp","address_kind":"C","recipient_last_name":"pittman","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":207655303,"state":"PA","owner_id":37098,"denormalized_ordered_at":"2017-12-29T00:19:03Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"111-3238445-5493803","packing_slip_generated":null,"denormalized_ext_order_reference_id":"111-3238445-5493803","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":224536183,"tracking_number":"789153254679","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":1008,"ship_date":"2017-12-29"}],"updated_at":"2017-12-29T09:11:03Z","internal_notes":"","meta_data":null,"prime_order_id":207655303,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(224536183)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(5) "336.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(1008)
      ["ship_date"]=>
      string(10) "2017-12-29"
      ["tracking_number"]=>
      string(12) "789153254679"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7422

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7081"
    ["order_id"]=>
    string(4) "7422"
    ["se_shipment_id"]=>
    string(9) "224536183"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1008"
    ["shipment_weight_ounces"]=>
    string(6) "336.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(12) "789153254679"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "IT"
    ["tracking_status_description"]=>
    string(10) "In transit"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-04 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:30"
  }
}


shipmentDBRows:
array(1) {
  [224536183]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7081"
    ["order_id"]=>
    string(4) "7422"
    ["se_shipment_id"]=>
    string(9) "224536183"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1008"
    ["shipment_weight_ounces"]=>
    string(6) "336.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(12) "789153254679"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "IT"
    ["tracking_status_description"]=>
    string(10) "In transit"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-04 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:30"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(224536183)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(5) "336.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(1008)
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(12) "789153254679"
  }
}

Shipment info shipping easy shipment ID #224536183

From API:
array(7) {
  ["se_shipment_id"]=>
  int(224536183)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(5) "336.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(1008)
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(12) "789153254679"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7081"
  ["order_id"]=>
  string(4) "7422"
  ["se_shipment_id"]=>
  string(9) "224536183"
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  string(4) "1008"
  ["shipment_weight_ounces"]=>
  string(6) "336.00"
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(12) "789153254679"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  string(2) "IT"
  ["tracking_status_description"]=>
  string(10) "In transit"
  ["estimated_delivery_time"]=>
  string(19) "2018-01-04 00:00:00"
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:30"
}



Shipment info for shipping easy shipment ID #224536183 is same between both arrays

*** Order info:
Array
(
    [id] => 207192773
    [external_order_identifier] => 113-9514239-4896224
    [ext_order_reference_id] => 113-9514239-4896224
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-28T15:53:32Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 64.00
    [total_excluding_tax] => 64.00
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 64.00
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Howard G. Golden
    [billing_first_name] => Howard
    [billing_last_name] => Golden
    [billing_address] => 1840 BLACK RIVER RD
    [billing_address2] => 
    [billing_city] => FAR HILLS
    [billing_state] => NJ
    [billing_country] => US
    [billing_postal_code] => 07931-2611
    [billing_phone_number] => 908-347-6597
    [billing_email] => 7yjbhnvp4k4vvjf@marketplace.amazon.com
    [buyer_email] => 7yjbhnvp4k4vvjf@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Howard
                    [last_name] => G. Golden
                    [address] => 1840 BLACK RIVER RD
                    [address2] => 
                    [address3] => 
                    [city] => FAR HILLS
                    [residential] => 1
                    [state] => NJ
                    [province] => 
                    [country] => United States
                    [postal_code] => 07931
                    [postal_code_plus_4] => 2611
                    [phone_number] => 908-347-6597
                    [email] => 7yjbhnvp4k4vvjf@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack BBQ 60 Pounds Pellet Assortment (Pick 3 x 20 Pound Bags) See Description for Flavors (New)
                                    [sku] => sw-20lb-assort-20lb
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 976.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 64.00
                                    [unit_price] => 64.00
                                    [ext_line_item_id] => 45144819758746
                                    [ext_product_id] => 
                                    [product_options] => Array
                                        (
                                            [Select Bag # 1] => 
                                            [Color (Select Bag # 1)] => 
                                            [Font (Select Bag # 1)] => 
                                            [Select Bag # 2] => 
                                            [Color (Select Bag # 2)] => 
                                            [Font (Select Bag # 2)] => 
                                            [Select Bag # 3] => 
                                            [Color (Select Bag # 3)] => 
                                            [Font (Select Bag # 3)] => 
                                            [Wedgie] => 
                                            [Color (Wedgie)] => 
                                            [Font (Wedgie)] => 
                                            [Wedgie Feet] => 
                                            [Color (Wedgie Feet)] => 
                                            [Font (Wedgie Feet)] => 
                                            [Duck Fat] => 
                                            [Color (Duck Fat)] => 
                                            [Font (Duck Fat)] => 
                                        )

                                    [uuid] => fab7e31f-4132-4e6f-9877-322db306e9d9
                                    [order_source_id] => 216726933
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 207192773
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 209299383
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 976.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-28T17:06:41Z
                            [updated_at] => 2017-12-29T09:11:03Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack bbq 60 pounds pellet assortment (pick 3 x 20 pound bags) see description for flavors (new)
                            [line_item_sku] => sw-20lb-assort-20lb
                            [address_kind] => R
                            [recipient_last_name] => g. golden
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 207192773
                            [state] => NJ
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-28T15:53:32Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 113-9514239-4896224
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 113-9514239-4896224
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 224536413
                    [tracking_number] => 789153250240
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 1854
                    [ship_date] => 2017-12-29
                )

        )

    [updated_at] => 2017-12-29T09:11:03Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 207192773
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for 7yjbhnvp4k4vvjf@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 10025

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(6) "Howard"
  ["customer_last_name"]=>
  string(9) "G. Golden"
  ["customer_email"]=>
  string(38) "7yjbhnvp4k4vvjf@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(16) "Howard G. Golden"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(19) "1840 BLACK RIVER RD"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(9) "FAR HILLS"
    ["address_state"]=>
    string(2) "NJ"
    ["address_zip"]=>
    string(10) "07931-2611"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10025"
  ["ordered_time"]=>
  string(19) "2017-12-28 15:53:32"
  ["se_order_id"]=>
  int(207192773)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "113-9514239-4896224"
  ["order_weight_ounces"]=>
  string(5) "976.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4589) "{"id":207192773,"external_order_identifier":"113-9514239-4896224","ext_order_reference_id":"113-9514239-4896224","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-28T15:53:32Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"64.00","total_excluding_tax":"64.00","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"64.00","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Howard G. Golden","billing_first_name":"Howard","billing_last_name":"Golden","billing_address":"1840 BLACK RIVER RD","billing_address2":null,"billing_city":"FAR HILLS","billing_state":"NJ","billing_country":"US","billing_postal_code":"07931-2611","billing_phone_number":"908-347-6597","billing_email":"7yjbhnvp4k4vvjf@marketplace.amazon.com","buyer_email":"7yjbhnvp4k4vvjf@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Howard","last_name":"G. Golden","address":"1840 BLACK RIVER RD","address2":null,"address3":null,"city":"FAR HILLS","residential":true,"state":"NJ","province":null,"country":"United States","postal_code":"07931","postal_code_plus_4":"2611","phone_number":"908-347-6597","email":"7yjbhnvp4k4vvjf@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack BBQ 60 Pounds Pellet Assortment (Pick 3 x 20 Pound Bags) See Description for Flavors (New)","sku":"sw-20lb-assort-20lb","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"976.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"64.00","unit_price":"64.00","ext_line_item_id":"45144819758746","ext_product_id":null,"product_options":{"Select Bag # 1":null,"Color (Select Bag # 1)":null,"Font (Select Bag # 1)":null,"Select Bag # 2":null,"Color (Select Bag # 2)":null,"Font (Select Bag # 2)":null,"Select Bag # 3":null,"Color (Select Bag # 3)":null,"Font (Select Bag # 3)":null,"Wedgie":null,"Color (Wedgie)":null,"Font (Wedgie)":null,"Wedgie Feet":null,"Color (Wedgie Feet)":null,"Font (Wedgie Feet)":null,"Duck Fat":null,"Color (Duck Fat)":null,"Font (Duck Fat)":null},"uuid":"fab7e31f-4132-4e6f-9877-322db306e9d9","order_source_id":216726933,"gift_message":null}],"original_order":{"id":207192773,"customer_id":33773,"store_id":70647,"order_detail_id":209299383,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"976.0","total_quantity":1,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-28T17:06:41Z","updated_at":"2017-12-29T09:11:03Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack bbq 60 pounds pellet assortment (pick 3 x 20 pound bags) see description for flavors (new)","line_item_sku":"sw-20lb-assort-20lb","address_kind":"R","recipient_last_name":"g. golden","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":207192773,"state":"NJ","owner_id":37098,"denormalized_ordered_at":"2017-12-28T15:53:32Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"113-9514239-4896224","packing_slip_generated":null,"denormalized_ext_order_reference_id":"113-9514239-4896224","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":224536413,"tracking_number":"789153250240","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":1854,"ship_date":"2017-12-29"}],"updated_at":"2017-12-29T09:11:03Z","internal_notes":"","meta_data":null,"prime_order_id":207192773,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(224536413)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(5) "976.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(1854)
      ["ship_date"]=>
      string(10) "2017-12-29"
      ["tracking_number"]=>
      string(12) "789153250240"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7423

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7082"
    ["order_id"]=>
    string(4) "7423"
    ["se_shipment_id"]=>
    string(9) "224536413"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1854"
    ["shipment_weight_ounces"]=>
    string(6) "976.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(12) "789153250240"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "IT"
    ["tracking_status_description"]=>
    string(10) "In transit"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-04 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:28"
  }
}


shipmentDBRows:
array(1) {
  [224536413]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7082"
    ["order_id"]=>
    string(4) "7423"
    ["se_shipment_id"]=>
    string(9) "224536413"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1854"
    ["shipment_weight_ounces"]=>
    string(6) "976.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(12) "789153250240"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "IT"
    ["tracking_status_description"]=>
    string(10) "In transit"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-04 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:28"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(224536413)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(5) "976.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(1854)
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(12) "789153250240"
  }
}

Shipment info shipping easy shipment ID #224536413

From API:
array(7) {
  ["se_shipment_id"]=>
  int(224536413)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(5) "976.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(1854)
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(12) "789153250240"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7082"
  ["order_id"]=>
  string(4) "7423"
  ["se_shipment_id"]=>
  string(9) "224536413"
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  string(4) "1854"
  ["shipment_weight_ounces"]=>
  string(6) "976.00"
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(12) "789153250240"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  string(2) "IT"
  ["tracking_status_description"]=>
  string(10) "In transit"
  ["estimated_delivery_time"]=>
  string(19) "2018-01-04 00:00:00"
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:28"
}



Shipment info for shipping easy shipment ID #224536413 is same between both arrays

*** Order info:
Array
(
    [id] => 207016693
    [external_order_identifier] => 113-5609077-8730607
    [ext_order_reference_id] => 113-5609077-8730607
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-28T13:32:22Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 39.38
    [total_excluding_tax] => 36.80
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 39.38
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 2.58
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Geoff Perkins
    [billing_first_name] => geoff
    [billing_last_name] => perkins
    [billing_address] => 956 BUFFALO RD
    [billing_address2] => 
    [billing_city] => PEACHTREE CITY
    [billing_state] => GA
    [billing_country] => US
    [billing_postal_code] => 30269-1373
    [billing_phone_number] => 6783006548
    [billing_email] => hbh2fgcthv3j5ls@marketplace.amazon.com
    [buyer_email] => hbh2fgcthv3j5ls@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Geoff
                    [last_name] => Perkins
                    [address] => 956 BUFFALO RD
                    [address2] => 
                    [address3] => 
                    [city] => PEACHTREE CITY
                    [residential] => 1
                    [state] => GA
                    [province] => 
                    [country] => United States
                    [postal_code] => 30269
                    [postal_code_plus_4] => 1373
                    [phone_number] => 6783006548
                    [email] => hbh2fgcthv3j5ls@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack 100% Hardwood Grilling Smoker Pellets, Pecan Blend, 20 LB (New)
                                    [sku] => 20PecComp
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 336.0
                                    [quantity] => 2
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 18.40
                                    [unit_price] => 18.40
                                    [ext_line_item_id] => 68905538516898
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 1985f287-75cb-4aac-b701-d550a2de2a94
                                    [order_source_id] => 216541513
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 207016693
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 209121253
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 672.0
                            [total_quantity] => 2
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-28T14:06:23Z
                            [updated_at] => 2017-12-29T09:11:03Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack 100% hardwood grilling smoker pellets, pecan blend, 20 lb (new)
                            [line_item_sku] => 20peccomp
                            [address_kind] => R
                            [recipient_last_name] => perkins
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 207016693
                            [state] => GA
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-28T13:32:22Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 113-5609077-8730607
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 113-5609077-8730607
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 224536423
                    [tracking_number] => 789153246902
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 1261
                    [ship_date] => 2017-12-29
                )

        )

    [updated_at] => 2017-12-29T09:11:03Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 207016693
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for hbh2fgcthv3j5ls@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 8749

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(5) "Geoff"
  ["customer_last_name"]=>
  string(7) "Perkins"
  ["customer_email"]=>
  string(38) "hbh2fgcthv3j5ls@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(13) "Geoff Perkins"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(14) "956 BUFFALO RD"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(14) "PEACHTREE CITY"
    ["address_state"]=>
    string(2) "GA"
    ["address_zip"]=>
    string(10) "30269-1373"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "8749"
  ["ordered_time"]=>
  string(19) "2017-12-28 13:32:22"
  ["se_order_id"]=>
  int(207016693)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "113-5609077-8730607"
  ["order_weight_ounces"]=>
  string(5) "672.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4071) "{"id":207016693,"external_order_identifier":"113-5609077-8730607","ext_order_reference_id":"113-5609077-8730607","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-28T13:32:22Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"39.38","total_excluding_tax":"36.80","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"39.38","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"2.58","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Geoff Perkins","billing_first_name":"geoff","billing_last_name":"perkins","billing_address":"956 BUFFALO RD","billing_address2":null,"billing_city":"PEACHTREE CITY","billing_state":"GA","billing_country":"US","billing_postal_code":"30269-1373","billing_phone_number":"6783006548","billing_email":"hbh2fgcthv3j5ls@marketplace.amazon.com","buyer_email":"hbh2fgcthv3j5ls@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Geoff","last_name":"Perkins","address":"956 BUFFALO RD","address2":null,"address3":null,"city":"PEACHTREE CITY","residential":true,"state":"GA","province":null,"country":"United States","postal_code":"30269","postal_code_plus_4":"1373","phone_number":"6783006548","email":"hbh2fgcthv3j5ls@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack 100% Hardwood Grilling Smoker Pellets, Pecan Blend, 20 LB (New)","sku":"20PecComp","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"336.0","quantity":2,"total_excluding_tax":"0.00","price_excluding_tax":"18.40","unit_price":"18.40","ext_line_item_id":"68905538516898","ext_product_id":null,"product_options":null,"uuid":"1985f287-75cb-4aac-b701-d550a2de2a94","order_source_id":216541513,"gift_message":null}],"original_order":{"id":207016693,"customer_id":33773,"store_id":70647,"order_detail_id":209121253,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"672.0","total_quantity":2,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-28T14:06:23Z","updated_at":"2017-12-29T09:11:03Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack 100% hardwood grilling smoker pellets, pecan blend, 20 lb (new)","line_item_sku":"20peccomp","address_kind":"R","recipient_last_name":"perkins","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":207016693,"state":"GA","owner_id":37098,"denormalized_ordered_at":"2017-12-28T13:32:22Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"113-5609077-8730607","packing_slip_generated":null,"denormalized_ext_order_reference_id":"113-5609077-8730607","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":224536423,"tracking_number":"789153246902","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":1261,"ship_date":"2017-12-29"}],"updated_at":"2017-12-29T09:11:03Z","internal_notes":"","meta_data":null,"prime_order_id":207016693,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(224536423)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(5) "672.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(1261)
      ["ship_date"]=>
      string(10) "2017-12-29"
      ["tracking_number"]=>
      string(12) "789153246902"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7424

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7083"
    ["order_id"]=>
    string(4) "7424"
    ["se_shipment_id"]=>
    string(9) "224536423"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1261"
    ["shipment_weight_ounces"]=>
    string(6) "672.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(12) "789153246902"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "IT"
    ["tracking_status_description"]=>
    string(10) "In transit"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-04 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:27"
  }
}


shipmentDBRows:
array(1) {
  [224536423]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7083"
    ["order_id"]=>
    string(4) "7424"
    ["se_shipment_id"]=>
    string(9) "224536423"
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    string(4) "1261"
    ["shipment_weight_ounces"]=>
    string(6) "672.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(12) "789153246902"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    string(2) "IT"
    ["tracking_status_description"]=>
    string(10) "In transit"
    ["estimated_delivery_time"]=>
    string(19) "2018-01-04 00:00:00"
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:27"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(224536423)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(5) "672.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(1261)
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(12) "789153246902"
  }
}

Shipment info shipping easy shipment ID #224536423

From API:
array(7) {
  ["se_shipment_id"]=>
  int(224536423)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(5) "672.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(1261)
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(12) "789153246902"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7083"
  ["order_id"]=>
  string(4) "7424"
  ["se_shipment_id"]=>
  string(9) "224536423"
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  string(4) "1261"
  ["shipment_weight_ounces"]=>
  string(6) "672.00"
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(12) "789153246902"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  string(2) "IT"
  ["tracking_status_description"]=>
  string(10) "In transit"
  ["estimated_delivery_time"]=>
  string(19) "2018-01-04 00:00:00"
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:27"
}



Shipment info for shipping easy shipment ID #224536423 is same between both arrays

*** Order info:
Array
(
    [id] => 207064673
    [external_order_identifier] => 114-6112299-7809815
    [ext_order_reference_id] => 114-6112299-7809815
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-28T14:11:51Z
    [order_status] => drop_shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 29.99
    [total_excluding_tax] => 29.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 29.99
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Brandi Dux
    [billing_first_name] => Brianne
    [billing_last_name] => Edmond
    [billing_address] => 107 S RED SPRUCE AVE
    [billing_address2] => 
    [billing_city] => SIOUX FALLS
    [billing_state] => SD
    [billing_country] => US
    [billing_postal_code] => 57110-6247
    [billing_phone_number] => 8168984977
    [billing_email] => 0r82g6bhbr7rmb5@marketplace.amazon.com
    [buyer_email] => 0r82g6bhbr7rmb5@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Brandi
                    [last_name] => Dux
                    [address] => 107 S RED SPRUCE AVE
                    [address2] => 
                    [address3] => 
                    [city] => SIOUX FALLS
                    [residential] => 1
                    [state] => SD
                    [province] => 
                    [country] => United States
                    [postal_code] => 57110
                    [postal_code_plus_4] => 6247
                    [phone_number] => 8168984977
                    [email] => 0r82g6bhbr7rmb5@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Priority Mail if Qty 1 (New)
                                    [sku] => 1poundvariety
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 112.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 29.99
                                    [unit_price] => 29.99
                                    [ext_line_item_id] => 27354536657698
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => a1e26fca-3e6c-4232-89b6-ceb5cb690b2a
                                    [order_source_id] => 216591803
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 207064673
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 209169613
                            [workflow_state] => drop_shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 112.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 3
                            [created_at] => 2017-12-28T15:06:45Z
                            [updated_at] => 2017-12-29T10:11:06Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136971
                            [internal_notes] => 
                            [line_item_name] => lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped priority mail if qty 1 (new)
                            [line_item_sku] => 1poundvariety
                            [address_kind] => R
                            [recipient_last_name] => dux
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 207064673
                            [state] => SD
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-28T14:11:51Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 114-6112299-7809815
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 114-6112299-7809815
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 224544653
                    [tracking_number] => Shipping Speedee Dec 29 - Will update tracking information
                    [carrier_key] => USPS
                    [carrier_service_key] => 
                    [shipment_cost] => 
                    [ship_date] => 2017-12-29
                )

        )

    [updated_at] => 2017-12-29T10:11:06Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 207064673
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for 0r82g6bhbr7rmb5@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 10026

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(6) "Brandi"
  ["customer_last_name"]=>
  string(3) "Dux"
  ["customer_email"]=>
  string(38) "0r82g6bhbr7rmb5@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(10) "Brandi Dux"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(20) "107 S RED SPRUCE AVE"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(11) "SIOUX FALLS"
    ["address_state"]=>
    string(2) "SD"
    ["address_zip"]=>
    string(10) "57110-6247"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10026"
  ["ordered_time"]=>
  string(19) "2017-12-28 14:11:51"
  ["se_order_id"]=>
  int(207064673)
  ["se_order_status"]=>
  string(12) "drop_shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "114-6112299-7809815"
  ["order_weight_ounces"]=>
  string(5) "112.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4321) "{"id":207064673,"external_order_identifier":"114-6112299-7809815","ext_order_reference_id":"114-6112299-7809815","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-28T14:11:51Z","order_status":"drop_shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"29.99","total_excluding_tax":"29.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"29.99","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Brandi Dux","billing_first_name":"Brianne","billing_last_name":"Edmond","billing_address":"107 S RED SPRUCE AVE","billing_address2":null,"billing_city":"SIOUX FALLS","billing_state":"SD","billing_country":"US","billing_postal_code":"57110-6247","billing_phone_number":"8168984977","billing_email":"0r82g6bhbr7rmb5@marketplace.amazon.com","buyer_email":"0r82g6bhbr7rmb5@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Brandi","last_name":"Dux","address":"107 S RED SPRUCE AVE","address2":null,"address3":null,"city":"SIOUX FALLS","residential":true,"state":"SD","province":null,"country":"United States","postal_code":"57110","postal_code_plus_4":"6247","phone_number":"8168984977","email":"0r82g6bhbr7rmb5@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Priority Mail if Qty 1 (New)","sku":"1poundvariety","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"112.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"29.99","unit_price":"29.99","ext_line_item_id":"27354536657698","ext_product_id":null,"product_options":null,"uuid":"a1e26fca-3e6c-4232-89b6-ceb5cb690b2a","order_source_id":216591803,"gift_message":null}],"original_order":{"id":207064673,"customer_id":33773,"store_id":70647,"order_detail_id":209169613,"workflow_state":"drop_shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"112.0","total_quantity":1,"is_international":false,"usps_shipping_zone":3,"created_at":"2017-12-28T15:06:45Z","updated_at":"2017-12-29T10:11:06Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136971,"internal_notes":"","line_item_name":"lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped priority mail if qty 1 (new)","line_item_sku":"1poundvariety","address_kind":"R","recipient_last_name":"dux","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":207064673,"state":"SD","owner_id":37098,"denormalized_ordered_at":"2017-12-28T14:11:51Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"114-6112299-7809815","packing_slip_generated":null,"denormalized_ext_order_reference_id":"114-6112299-7809815","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":224544653,"tracking_number":"Shipping Speedee Dec 29 - Will update tracking information","carrier_key":"USPS","carrier_service_key":null,"shipment_cost":null,"ship_date":"2017-12-29"}],"updated_at":"2017-12-29T10:11:06Z","internal_notes":"","meta_data":null,"prime_order_id":207064673,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(224544653)
      ["carrier_key"]=>
      string(7) "SPEEDEE"
      ["shipment_weight_ounces"]=>
      string(5) "112.0"
      ["carrier_service_key"]=>
      NULL
      ["shipment_cost"]=>
      NULL
      ["ship_date"]=>
      string(10) "2017-12-29"
      ["tracking_number"]=>
      string(0) ""
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7425

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7084"
    ["order_id"]=>
    string(4) "7425"
    ["se_shipment_id"]=>
    string(9) "224544653"
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["shipment_weight_ounces"]=>
    string(6) "112.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(0) ""
    ["tracking_status"]=>
    string(9) "UNSHIPPED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    NULL
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:32:48"
  }
}


shipmentDBRows:
array(1) {
  [224544653]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7084"
    ["order_id"]=>
    string(4) "7425"
    ["se_shipment_id"]=>
    string(9) "224544653"
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["shipment_weight_ounces"]=>
    string(6) "112.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(0) ""
    ["tracking_status"]=>
    string(9) "UNSHIPPED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    NULL
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:32:48"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(224544653)
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["shipment_weight_ounces"]=>
    string(5) "112.0"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(0) ""
  }
}

Shipment info shipping easy shipment ID #224544653

From API:
array(7) {
  ["se_shipment_id"]=>
  int(224544653)
  ["carrier_key"]=>
  string(7) "SPEEDEE"
  ["shipment_weight_ounces"]=>
  string(5) "112.0"
  ["carrier_service_key"]=>
  NULL
  ["shipment_cost"]=>
  NULL
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(0) ""
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7084"
  ["order_id"]=>
  string(4) "7425"
  ["se_shipment_id"]=>
  string(9) "224544653"
  ["carrier_key"]=>
  string(7) "SPEEDEE"
  ["carrier_service_key"]=>
  NULL
  ["shipment_cost"]=>
  NULL
  ["shipment_weight_ounces"]=>
  string(6) "112.00"
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(0) ""
  ["tracking_status"]=>
  string(9) "UNSHIPPED"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  NULL
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:32:48"
}



Shipment info for shipping easy shipment ID #224544653 is same between both arrays

*** Order info:
Array
(
    [id] => 207192693
    [external_order_identifier] => 114-3302062-8073852
    [ext_order_reference_id] => 114-3302062-8073852
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-28T15:47:58Z
    [order_status] => drop_shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 34.99
    [total_excluding_tax] => 34.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 34.99
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => COURTNEY N TILLMAN
    [billing_first_name] => Courtney
    [billing_last_name] => Tillman
    [billing_address] => 1130 SAINT JOE ST
    [billing_address2] => 
    [billing_city] => SPEARFISH
    [billing_state] => SD
    [billing_country] => US
    [billing_postal_code] => 57783
    [billing_phone_number] => 
    [billing_email] => bc4qmp16zpr6g5q@marketplace.amazon.com
    [buyer_email] => bc4qmp16zpr6g5q@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => COURTNEY
                    [last_name] => N TILLMAN
                    [address] => 1130 SAINT JOE ST
                    [address2] => 
                    [address3] => 
                    [city] => SPEARFISH
                    [residential] => 1
                    [state] => SD
                    [province] => 
                    [country] => United States
                    [postal_code] => 57783
                    [postal_code_plus_4] => 1732
                    [phone_number] => 
                    [email] => bc4qmp16zpr6g5q@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Smokin Wedgie Pellet Smoker (Stainless Steel) with Lumber Jack BBQ Smoker Pellets Assortment - 9 Pounds - Pick 3-Pound Packs (See Description for Flavors) - Shipped Priority Mail if Qty 1 (New)
                                    [sku] => sw-9lb-assort-9lb
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 144.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 34.99
                                    [unit_price] => 34.99
                                    [ext_line_item_id] => 35802538154434
                                    [ext_product_id] => 
                                    [product_options] => Array
                                        (
                                            [Select Bag # 1] => 
                                            [Color (Select Bag # 1)] => 
                                            [Font (Select Bag # 1)] => 
                                            [Select Bag # 2] => 
                                            [Color (Select Bag # 2)] => 
                                            [Font (Select Bag # 2)] => 
                                            [Select Bag # 3] => 
                                            [Color (Select Bag # 3)] => 
                                            [Font (Select Bag # 3)] => 
                                            [2nd Wedgie] => 
                                            [Color (2nd Wedgie)] => 
                                            [Font (2nd Wedgie)] => 
                                            [Wedgie Feet] => 
                                            [Color (Wedgie Feet)] => 
                                            [Font (Wedgie Feet)] => 
                                            [Duck Fat] => 
                                            [Color (Duck Fat)] => 
                                            [Font (Duck Fat)] => 
                                        )

                                    [uuid] => 08465752-05dc-4ccd-bb1e-268a29cdb4af
                                    [order_source_id] => 216726823
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 207192693
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 209299273
                            [workflow_state] => drop_shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 144.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 4
                            [created_at] => 2017-12-28T17:06:39Z
                            [updated_at] => 2017-12-29T10:11:06Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136971
                            [internal_notes] => 
                            [line_item_name] => smokin wedgie pellet smoker (stainless steel) with lumber jack bbq smoker pellets assortment - 9 pounds - pick 3-pound packs (see description for flavors) - shipped priority mail if qty 1 (new)
                            [line_item_sku] => sw-9lb-assort-9lb
                            [address_kind] => R
                            [recipient_last_name] => n tillman
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 207192693
                            [state] => SD
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-28T15:47:58Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 114-3302062-8073852
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 114-3302062-8073852
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 224544663
                    [tracking_number] => Shipping Speedee Dec 29 - Will update tracking information
                    [carrier_key] => USPS
                    [carrier_service_key] => 
                    [shipment_cost] => 
                    [ship_date] => 2017-12-29
                )

        )

    [updated_at] => 2017-12-29T10:11:06Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 207192693
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
            [0] => custom order
        )

)
sdsdsdArray
This record (for bc4qmp16zpr6g5q@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 10027

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(8) "COURTNEY"
  ["customer_last_name"]=>
  string(9) "N TILLMAN"
  ["customer_email"]=>
  string(38) "bc4qmp16zpr6g5q@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(18) "COURTNEY N TILLMAN"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(17) "1130 SAINT JOE ST"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(9) "SPEARFISH"
    ["address_state"]=>
    string(2) "SD"
    ["address_zip"]=>
    string(5) "57783"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10027"
  ["ordered_time"]=>
  string(19) "2017-12-28 15:47:58"
  ["se_order_id"]=>
  int(207192693)
  ["se_order_status"]=>
  string(12) "drop_shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "114-3302062-8073852"
  ["order_weight_ounces"]=>
  string(5) "144.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4816) "{"id":207192693,"external_order_identifier":"114-3302062-8073852","ext_order_reference_id":"114-3302062-8073852","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-28T15:47:58Z","order_status":"drop_shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"34.99","total_excluding_tax":"34.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"34.99","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"COURTNEY N TILLMAN","billing_first_name":"Courtney","billing_last_name":"Tillman","billing_address":"1130 SAINT JOE ST","billing_address2":null,"billing_city":"SPEARFISH","billing_state":"SD","billing_country":"US","billing_postal_code":"57783","billing_phone_number":null,"billing_email":"bc4qmp16zpr6g5q@marketplace.amazon.com","buyer_email":"bc4qmp16zpr6g5q@marketplace.amazon.com","recipients":[{"company":null,"first_name":"COURTNEY","last_name":"N TILLMAN","address":"1130 SAINT JOE ST","address2":null,"address3":null,"city":"SPEARFISH","residential":true,"state":"SD","province":null,"country":"United States","postal_code":"57783","postal_code_plus_4":"1732","phone_number":null,"email":"bc4qmp16zpr6g5q@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Smokin Wedgie Pellet Smoker (Stainless Steel) with Lumber Jack BBQ Smoker Pellets Assortment - 9 Pounds - Pick 3-Pound Packs (See Description for Flavors) - Shipped Priority Mail if Qty 1 (New)","sku":"sw-9lb-assort-9lb","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"144.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"34.99","unit_price":"34.99","ext_line_item_id":"35802538154434","ext_product_id":null,"product_options":{"Select Bag # 1":null,"Color (Select Bag # 1)":null,"Font (Select Bag # 1)":null,"Select Bag # 2":null,"Color (Select Bag # 2)":null,"Font (Select Bag # 2)":null,"Select Bag # 3":null,"Color (Select Bag # 3)":null,"Font (Select Bag # 3)":null,"2nd Wedgie":null,"Color (2nd Wedgie)":null,"Font (2nd Wedgie)":null,"Wedgie Feet":null,"Color (Wedgie Feet)":null,"Font (Wedgie Feet)":null,"Duck Fat":null,"Color (Duck Fat)":null,"Font (Duck Fat)":null},"uuid":"08465752-05dc-4ccd-bb1e-268a29cdb4af","order_source_id":216726823,"gift_message":null}],"original_order":{"id":207192693,"customer_id":33773,"store_id":70647,"order_detail_id":209299273,"workflow_state":"drop_shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"144.0","total_quantity":1,"is_international":false,"usps_shipping_zone":4,"created_at":"2017-12-28T17:06:39Z","updated_at":"2017-12-29T10:11:06Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136971,"internal_notes":"","line_item_name":"smokin wedgie pellet smoker (stainless steel) with lumber jack bbq smoker pellets assortment - 9 pounds - pick 3-pound packs (see description for flavors) - shipped priority mail if qty 1 (new)","line_item_sku":"sw-9lb-assort-9lb","address_kind":"R","recipient_last_name":"n tillman","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":207192693,"state":"SD","owner_id":37098,"denormalized_ordered_at":"2017-12-28T15:47:58Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"114-3302062-8073852","packing_slip_generated":null,"denormalized_ext_order_reference_id":"114-3302062-8073852","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":224544663,"tracking_number":"Shipping Speedee Dec 29 - Will update tracking information","carrier_key":"USPS","carrier_service_key":null,"shipment_cost":null,"ship_date":"2017-12-29"}],"updated_at":"2017-12-29T10:11:06Z","internal_notes":"","meta_data":null,"prime_order_id":207192693,"is_prime":false,"split_from_order_id":null,"tags":["custom order"]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(224544663)
      ["carrier_key"]=>
      string(7) "SPEEDEE"
      ["shipment_weight_ounces"]=>
      string(5) "144.0"
      ["carrier_service_key"]=>
      NULL
      ["shipment_cost"]=>
      NULL
      ["ship_date"]=>
      string(10) "2017-12-29"
      ["tracking_number"]=>
      string(0) ""
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7426

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7085"
    ["order_id"]=>
    string(4) "7426"
    ["se_shipment_id"]=>
    string(9) "224544663"
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["shipment_weight_ounces"]=>
    string(6) "144.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(0) ""
    ["tracking_status"]=>
    string(9) "UNSHIPPED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    NULL
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:32:48"
  }
}


shipmentDBRows:
array(1) {
  [224544663]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7085"
    ["order_id"]=>
    string(4) "7426"
    ["se_shipment_id"]=>
    string(9) "224544663"
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["shipment_weight_ounces"]=>
    string(6) "144.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(0) ""
    ["tracking_status"]=>
    string(9) "UNSHIPPED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    NULL
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:32:48"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(224544663)
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["shipment_weight_ounces"]=>
    string(5) "144.0"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(0) ""
  }
}

Shipment info shipping easy shipment ID #224544663

From API:
array(7) {
  ["se_shipment_id"]=>
  int(224544663)
  ["carrier_key"]=>
  string(7) "SPEEDEE"
  ["shipment_weight_ounces"]=>
  string(5) "144.0"
  ["carrier_service_key"]=>
  NULL
  ["shipment_cost"]=>
  NULL
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(0) ""
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7085"
  ["order_id"]=>
  string(4) "7426"
  ["se_shipment_id"]=>
  string(9) "224544663"
  ["carrier_key"]=>
  string(7) "SPEEDEE"
  ["carrier_service_key"]=>
  NULL
  ["shipment_cost"]=>
  NULL
  ["shipment_weight_ounces"]=>
  string(6) "144.00"
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(0) ""
  ["tracking_status"]=>
  string(9) "UNSHIPPED"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  NULL
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:32:48"
}



Shipment info for shipping easy shipment ID #224544663 is same between both arrays

*** Order info:
Array
(
    [id] => 208173623
    [external_order_identifier] => 112-3901642-5764217
    [ext_order_reference_id] => 112-3901642-5764217
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-29T16:36:38Z
    [order_status] => ready_for_shipment
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 19.55
    [total_excluding_tax] => 18.40
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 19.55
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 1.15
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Michael Bartodziej
    [billing_first_name] => Michael
    [billing_last_name] => Bartodziej
    [billing_address] => 11108 WINDSOR DR
    [billing_address2] => 
    [billing_city] => WESTCHESTER
    [billing_state] => IL
    [billing_country] => US
    [billing_postal_code] => 60154-4947
    [billing_phone_number] => 708-606-6491
    [billing_email] => 9cd79jmyyjt8ly0@marketplace.amazon.com
    [buyer_email] => 9cd79jmyyjt8ly0@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Michael
                    [last_name] => Bartodziej
                    [address] => 11108 WINDSOR DR
                    [address2] => 
                    [address3] => 
                    [city] => WESTCHESTER
                    [residential] => 1
                    [state] => IL
                    [province] => 
                    [country] => United States
                    [postal_code] => 60154
                    [postal_code_plus_4] => 4947
                    [phone_number] => 708-606-6491
                    [email] => 9cd79jmyyjt8ly0@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack 100-Percent Hickory Wood BBQ Grilling Pellets, 20-Pound Bag (New)
                                    [sku] => 20hick100Comp1
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 336.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 18.40
                                    [unit_price] => 18.40
                                    [ext_line_item_id] => 46474457534914
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 12b704cb-c8d7-4c54-96c9-91e234f57099
                                    [order_source_id] => 217795953
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 208173623
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 210303473
                            [workflow_state] => ready_for_shipment
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 336.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 3
                            [created_at] => 2017-12-29T17:06:41Z
                            [updated_at] => 2017-12-29T17:06:42Z
                            [ext_shipment_confirmation_id] => 
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136971
                            [internal_notes] => 
                            [line_item_name] => lumber jack 100-percent hickory wood bbq grilling pellets, 20-pound bag (new)
                            [line_item_sku] => 20hick100comp1
                            [address_kind] => R
                            [recipient_last_name] => bartodziej
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 208173623
                            [state] => IL
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-29T16:36:38Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 112-3901642-5764217
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 112-3901642-5764217
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
        )

    [updated_at] => 2017-12-29T17:06:42Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 208173623
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for 9cd79jmyyjt8ly0@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 10028

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(7) "Michael"
  ["customer_last_name"]=>
  string(10) "Bartodziej"
  ["customer_email"]=>
  string(38) "9cd79jmyyjt8ly0@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(18) "Michael Bartodziej"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(16) "11108 WINDSOR DR"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(11) "WESTCHESTER"
    ["address_state"]=>
    string(2) "IL"
    ["address_zip"]=>
    string(10) "60154-4947"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10028"
  ["ordered_time"]=>
  string(19) "2017-12-29 16:36:38"
  ["se_order_id"]=>
  int(208173623)
  ["se_order_status"]=>
  string(18) "ready_for_shipment"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "112-3901642-5764217"
  ["order_weight_ounces"]=>
  string(5) "336.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(3976) "{"id":208173623,"external_order_identifier":"112-3901642-5764217","ext_order_reference_id":"112-3901642-5764217","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-29T16:36:38Z","order_status":"ready_for_shipment","parent_order_id":null,"source_order_ids":null,"total_including_tax":"19.55","total_excluding_tax":"18.40","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"19.55","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"1.15","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Michael Bartodziej","billing_first_name":"Michael","billing_last_name":"Bartodziej","billing_address":"11108 WINDSOR DR","billing_address2":null,"billing_city":"WESTCHESTER","billing_state":"IL","billing_country":"US","billing_postal_code":"60154-4947","billing_phone_number":"708-606-6491","billing_email":"9cd79jmyyjt8ly0@marketplace.amazon.com","buyer_email":"9cd79jmyyjt8ly0@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Michael","last_name":"Bartodziej","address":"11108 WINDSOR DR","address2":null,"address3":null,"city":"WESTCHESTER","residential":true,"state":"IL","province":null,"country":"United States","postal_code":"60154","postal_code_plus_4":"4947","phone_number":"708-606-6491","email":"9cd79jmyyjt8ly0@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack 100-Percent Hickory Wood BBQ Grilling Pellets, 20-Pound Bag (New)","sku":"20hick100Comp1","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"336.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"18.40","unit_price":"18.40","ext_line_item_id":"46474457534914","ext_product_id":null,"product_options":null,"uuid":"12b704cb-c8d7-4c54-96c9-91e234f57099","order_source_id":217795953,"gift_message":null}],"original_order":{"id":208173623,"customer_id":33773,"store_id":70647,"order_detail_id":210303473,"workflow_state":"ready_for_shipment","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"336.0","total_quantity":1,"is_international":false,"usps_shipping_zone":3,"created_at":"2017-12-29T17:06:41Z","updated_at":"2017-12-29T17:06:42Z","ext_shipment_confirmation_id":null,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136971,"internal_notes":"","line_item_name":"lumber jack 100-percent hickory wood bbq grilling pellets, 20-pound bag (new)","line_item_sku":"20hick100comp1","address_kind":"R","recipient_last_name":"bartodziej","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":208173623,"state":"IL","owner_id":37098,"denormalized_ordered_at":"2017-12-29T16:36:38Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"112-3901642-5764217","packing_slip_generated":null,"denormalized_ext_order_reference_id":"112-3901642-5764217","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[],"updated_at":"2017-12-29T17:06:42Z","internal_notes":"","meta_data":null,"prime_order_id":208173623,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(0) {
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7427

No shipment elements found in API response. Continuing

*** Order info:
Array
(
    [id] => 208543933
    [external_order_identifier] => 112-0991865-0849834
    [ext_order_reference_id] => 112-0991865-0849834
    [owner_id] => 
    [sales_channel] => 
    [fulfillment_channel] => fulfillment_by_amazon
    [ordered_at] => 2017-12-29T15:18:05Z
    [order_status] => drop_shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 21.24
    [total_excluding_tax] => 19.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 21.24
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 1.25
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => ERICH SCHWARZBECK
    [billing_first_name] => Erich
    [billing_last_name] => Schwarzbeck
    [billing_address] => 1205 HIGHLAND DR
    [billing_address2] => 
    [billing_city] => PROSPECT HEIGHTS
    [billing_state] => IL
    [billing_country] => US
    [billing_postal_code] => 60070-1017
    [billing_phone_number] => 
    [billing_email] => 9813jxjy8s0rm3s@marketplace.amazon.com
    [buyer_email] => 9813jxjy8s0rm3s@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => ERICH
                    [last_name] => SCHWARZBECK
                    [address] => 1205 HIGHLAND DR
                    [address2] => 
                    [address3] => 
                    [city] => PROSPECT HEIGHTS
                    [residential] => 1
                    [state] => IL
                    [province] => 
                    [country] => United States
                    [postal_code] => 60070
                    [postal_code_plus_4] => 1017
                    [phone_number] => 
                    [email] => 9813jxjy8s0rm3s@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => SecondDay
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Smokin Wedgies - Stainless Steel
                                    [sku] => smoking wedgie
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 0.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 19.99
                                    [unit_price] => 19.99
                                    [ext_line_item_id] => 63204357353386
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 00556c96-0d44-4cff-82fb-17cd73723b43
                                    [order_source_id] => 218192273
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 208543933
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 210683813
                            [workflow_state] => drop_shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 0.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 3
                            [created_at] => 2017-12-29T23:06:37Z
                            [updated_at] => 2017-12-29T23:06:38Z
                            [ext_shipment_confirmation_id] => 0
                            [store_order_status] => external_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 
                            [internal_notes] => 
                            [line_item_name] => smokin wedgies - stainless steel
                            [line_item_sku] => smoking wedgie
                            [address_kind] => R
                            [recipient_last_name] => schwarzbeck
                            [recipient_requested_service] => secondday
                            [gift] => 
                            [prime_order_id] => 208543933
                            [state] => IL
                            [owner_id] => 
                            [denormalized_ordered_at] => 2017-12-29T15:18:05Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 112-0991865-0849834
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 112-0991865-0849834
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 225427673
                    [tracking_number] => 
                    [carrier_key] => 
                    [carrier_service_key] => 
                    [shipment_cost] => 
                    [ship_date] => 2017-12-29
                )

        )

    [updated_at] => 2017-12-29T23:06:38Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 208543933
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for 9813jxjy8s0rm3s@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 10029

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(5) "ERICH"
  ["customer_last_name"]=>
  string(11) "SCHWARZBECK"
  ["customer_email"]=>
  string(38) "9813jxjy8s0rm3s@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(17) "ERICH SCHWARZBECK"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(16) "1205 HIGHLAND DR"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(16) "PROSPECT HEIGHTS"
    ["address_state"]=>
    string(2) "IL"
    ["address_zip"]=>
    string(10) "60070-1017"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10029"
  ["ordered_time"]=>
  string(19) "2017-12-29 15:18:05"
  ["se_order_id"]=>
  int(208543933)
  ["se_order_status"]=>
  string(12) "drop_shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "112-0991865-0849834"
  ["order_weight_ounces"]=>
  string(3) "0.0"
  ["store_order_status"]=>
  string(20) "external_fulfillment"
  ["se_api_response"]=>
  string(3997) "{"id":208543933,"external_order_identifier":"112-0991865-0849834","ext_order_reference_id":"112-0991865-0849834","owner_id":null,"sales_channel":null,"fulfillment_channel":"fulfillment_by_amazon","ordered_at":"2017-12-29T15:18:05Z","order_status":"drop_shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"21.24","total_excluding_tax":"19.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"21.24","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"1.25","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"ERICH SCHWARZBECK","billing_first_name":"Erich","billing_last_name":"Schwarzbeck","billing_address":"1205 HIGHLAND DR","billing_address2":null,"billing_city":"PROSPECT HEIGHTS","billing_state":"IL","billing_country":"US","billing_postal_code":"60070-1017","billing_phone_number":null,"billing_email":"9813jxjy8s0rm3s@marketplace.amazon.com","buyer_email":"9813jxjy8s0rm3s@marketplace.amazon.com","recipients":[{"company":null,"first_name":"ERICH","last_name":"SCHWARZBECK","address":"1205 HIGHLAND DR","address2":null,"address3":null,"city":"PROSPECT HEIGHTS","residential":true,"state":"IL","province":null,"country":"United States","postal_code":"60070","postal_code_plus_4":"1017","phone_number":null,"email":"9813jxjy8s0rm3s@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"SecondDay","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Smokin Wedgies - Stainless Steel","sku":"smoking wedgie","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"0.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"19.99","unit_price":"19.99","ext_line_item_id":"63204357353386","ext_product_id":null,"product_options":null,"uuid":"00556c96-0d44-4cff-82fb-17cd73723b43","order_source_id":218192273,"gift_message":null}],"original_order":{"id":208543933,"customer_id":33773,"store_id":70647,"order_detail_id":210683813,"workflow_state":"drop_shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"0.0","total_quantity":1,"is_international":false,"usps_shipping_zone":3,"created_at":"2017-12-29T23:06:37Z","updated_at":"2017-12-29T23:06:38Z","ext_shipment_confirmation_id":0,"store_order_status":"external_fulfillment","drop_ship_tracking_number":null,"category_id":null,"internal_notes":"","line_item_name":"smokin wedgies - stainless steel","line_item_sku":"smoking wedgie","address_kind":"R","recipient_last_name":"schwarzbeck","recipient_requested_service":"secondday","gift":null,"prime_order_id":208543933,"state":"IL","owner_id":null,"denormalized_ordered_at":"2017-12-29T15:18:05Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"112-0991865-0849834","packing_slip_generated":null,"denormalized_ext_order_reference_id":"112-0991865-0849834","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":225427673,"tracking_number":null,"carrier_key":null,"carrier_service_key":null,"shipment_cost":null,"ship_date":"2017-12-29"}],"updated_at":"2017-12-29T23:06:38Z","internal_notes":"","meta_data":null,"prime_order_id":208543933,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(225427673)
      ["carrier_key"]=>
      string(7) "SPEEDEE"
      ["shipment_weight_ounces"]=>
      string(3) "0.0"
      ["carrier_service_key"]=>
      NULL
      ["shipment_cost"]=>
      NULL
      ["ship_date"]=>
      string(10) "2017-12-29"
      ["tracking_number"]=>
      string(0) ""
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7428

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7086"
    ["order_id"]=>
    string(4) "7428"
    ["se_shipment_id"]=>
    string(9) "225427673"
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["shipment_weight_ounces"]=>
    string(4) "0.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(0) ""
    ["tracking_status"]=>
    string(9) "UNSHIPPED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    NULL
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:32:49"
  }
}


shipmentDBRows:
array(1) {
  [225427673]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7086"
    ["order_id"]=>
    string(4) "7428"
    ["se_shipment_id"]=>
    string(9) "225427673"
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["shipment_weight_ounces"]=>
    string(4) "0.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(0) ""
    ["tracking_status"]=>
    string(9) "UNSHIPPED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    NULL
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:32:49"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(225427673)
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["shipment_weight_ounces"]=>
    string(3) "0.0"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(0) ""
  }
}

Shipment info shipping easy shipment ID #225427673

From API:
array(7) {
  ["se_shipment_id"]=>
  int(225427673)
  ["carrier_key"]=>
  string(7) "SPEEDEE"
  ["shipment_weight_ounces"]=>
  string(3) "0.0"
  ["carrier_service_key"]=>
  NULL
  ["shipment_cost"]=>
  NULL
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(0) ""
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7086"
  ["order_id"]=>
  string(4) "7428"
  ["se_shipment_id"]=>
  string(9) "225427673"
  ["carrier_key"]=>
  string(7) "SPEEDEE"
  ["carrier_service_key"]=>
  NULL
  ["shipment_cost"]=>
  NULL
  ["shipment_weight_ounces"]=>
  string(4) "0.00"
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(0) ""
  ["tracking_status"]=>
  string(9) "UNSHIPPED"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  NULL
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:32:49"
}



Shipment info for shipping easy shipment ID #225427673 is same between both arrays

*** Order info:
Array
(
    [id] => 208720043
    [external_order_identifier] => 111-6946961-3470663
    [ext_order_reference_id] => 111-6946961-3470663
    [owner_id] => 
    [sales_channel] => 
    [fulfillment_channel] => fulfillment_by_amazon
    [ordered_at] => 2017-12-28T23:09:59Z
    [order_status] => drop_shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 19.99
    [total_excluding_tax] => 19.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 19.99
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Grant Groathouse
    [billing_first_name] => Grant
    [billing_last_name] => Groathouse
    [billing_address] => 531 N EUCALYPTUS PL
    [billing_address2] => 
    [billing_city] => CHANDLER
    [billing_state] => AZ
    [billing_country] => US
    [billing_postal_code] => 85225-8262
    [billing_phone_number] => 
    [billing_email] => wyggx12lj79tlzn@marketplace.amazon.com
    [buyer_email] => wyggx12lj79tlzn@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Grant
                    [last_name] => Groathouse
                    [address] => 531 N EUCALYPTUS PL
                    [address2] => 
                    [address3] => 
                    [city] => CHANDLER
                    [residential] => 1
                    [state] => AZ
                    [province] => 
                    [country] => United States
                    [postal_code] => 85225
                    [postal_code_plus_4] => 8262
                    [phone_number] => 
                    [email] => wyggx12lj79tlzn@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => SecondDay
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Smokin Wedgies - Stainless Steel
                                    [sku] => smoking wedgie
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 0.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 19.99
                                    [unit_price] => 19.99
                                    [ext_line_item_id] => 44260668426066
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => ad4e0ff5-a89c-4a82-89cb-6eac3bf1d936
                                    [order_source_id] => 218386963
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 208720043
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 210863483
                            [workflow_state] => drop_shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 0.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 6
                            [created_at] => 2017-12-30T03:07:04Z
                            [updated_at] => 2017-12-30T03:07:04Z
                            [ext_shipment_confirmation_id] => 0
                            [store_order_status] => external_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 
                            [internal_notes] => 
                            [line_item_name] => smokin wedgies - stainless steel
                            [line_item_sku] => smoking wedgie
                            [address_kind] => R
                            [recipient_last_name] => groathouse
                            [recipient_requested_service] => secondday
                            [gift] => 
                            [prime_order_id] => 208720043
                            [state] => AZ
                            [owner_id] => 
                            [denormalized_ordered_at] => 2017-12-28T23:09:59Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 111-6946961-3470663
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 111-6946961-3470663
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 225520213
                    [tracking_number] => 
                    [carrier_key] => 
                    [carrier_service_key] => 
                    [shipment_cost] => 
                    [ship_date] => 2017-12-29
                )

        )

    [updated_at] => 2017-12-30T03:07:04Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 208720043
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for wyggx12lj79tlzn@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 10030

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(5) "Grant"
  ["customer_last_name"]=>
  string(10) "Groathouse"
  ["customer_email"]=>
  string(38) "wyggx12lj79tlzn@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(16) "Grant Groathouse"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(19) "531 N EUCALYPTUS PL"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(8) "CHANDLER"
    ["address_state"]=>
    string(2) "AZ"
    ["address_zip"]=>
    string(10) "85225-8262"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10030"
  ["ordered_time"]=>
  string(19) "2017-12-28 23:09:59"
  ["se_order_id"]=>
  int(208720043)
  ["se_order_status"]=>
  string(12) "drop_shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "111-6946961-3470663"
  ["order_weight_ounces"]=>
  string(3) "0.0"
  ["store_order_status"]=>
  string(20) "external_fulfillment"
  ["se_api_response"]=>
  string(3983) "{"id":208720043,"external_order_identifier":"111-6946961-3470663","ext_order_reference_id":"111-6946961-3470663","owner_id":null,"sales_channel":null,"fulfillment_channel":"fulfillment_by_amazon","ordered_at":"2017-12-28T23:09:59Z","order_status":"drop_shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"19.99","total_excluding_tax":"19.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"19.99","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Grant Groathouse","billing_first_name":"Grant","billing_last_name":"Groathouse","billing_address":"531 N EUCALYPTUS PL","billing_address2":null,"billing_city":"CHANDLER","billing_state":"AZ","billing_country":"US","billing_postal_code":"85225-8262","billing_phone_number":null,"billing_email":"wyggx12lj79tlzn@marketplace.amazon.com","buyer_email":"wyggx12lj79tlzn@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Grant","last_name":"Groathouse","address":"531 N EUCALYPTUS PL","address2":null,"address3":null,"city":"CHANDLER","residential":true,"state":"AZ","province":null,"country":"United States","postal_code":"85225","postal_code_plus_4":"8262","phone_number":null,"email":"wyggx12lj79tlzn@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"SecondDay","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Smokin Wedgies - Stainless Steel","sku":"smoking wedgie","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"0.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"19.99","unit_price":"19.99","ext_line_item_id":"44260668426066","ext_product_id":null,"product_options":null,"uuid":"ad4e0ff5-a89c-4a82-89cb-6eac3bf1d936","order_source_id":218386963,"gift_message":null}],"original_order":{"id":208720043,"customer_id":33773,"store_id":70647,"order_detail_id":210863483,"workflow_state":"drop_shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"0.0","total_quantity":1,"is_international":false,"usps_shipping_zone":6,"created_at":"2017-12-30T03:07:04Z","updated_at":"2017-12-30T03:07:04Z","ext_shipment_confirmation_id":0,"store_order_status":"external_fulfillment","drop_ship_tracking_number":null,"category_id":null,"internal_notes":"","line_item_name":"smokin wedgies - stainless steel","line_item_sku":"smoking wedgie","address_kind":"R","recipient_last_name":"groathouse","recipient_requested_service":"secondday","gift":null,"prime_order_id":208720043,"state":"AZ","owner_id":null,"denormalized_ordered_at":"2017-12-28T23:09:59Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"111-6946961-3470663","packing_slip_generated":null,"denormalized_ext_order_reference_id":"111-6946961-3470663","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":225520213,"tracking_number":null,"carrier_key":null,"carrier_service_key":null,"shipment_cost":null,"ship_date":"2017-12-29"}],"updated_at":"2017-12-30T03:07:04Z","internal_notes":"","meta_data":null,"prime_order_id":208720043,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(225520213)
      ["carrier_key"]=>
      string(7) "SPEEDEE"
      ["shipment_weight_ounces"]=>
      string(3) "0.0"
      ["carrier_service_key"]=>
      NULL
      ["shipment_cost"]=>
      NULL
      ["ship_date"]=>
      string(10) "2017-12-29"
      ["tracking_number"]=>
      string(0) ""
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7429

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7087"
    ["order_id"]=>
    string(4) "7429"
    ["se_shipment_id"]=>
    string(9) "225520213"
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["shipment_weight_ounces"]=>
    string(4) "0.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(0) ""
    ["tracking_status"]=>
    string(9) "UNSHIPPED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    NULL
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:32:49"
  }
}


shipmentDBRows:
array(1) {
  [225520213]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7087"
    ["order_id"]=>
    string(4) "7429"
    ["se_shipment_id"]=>
    string(9) "225520213"
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["shipment_weight_ounces"]=>
    string(4) "0.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(0) ""
    ["tracking_status"]=>
    string(9) "UNSHIPPED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    NULL
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:32:49"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(225520213)
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["shipment_weight_ounces"]=>
    string(3) "0.0"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(0) ""
  }
}

Shipment info shipping easy shipment ID #225520213

From API:
array(7) {
  ["se_shipment_id"]=>
  int(225520213)
  ["carrier_key"]=>
  string(7) "SPEEDEE"
  ["shipment_weight_ounces"]=>
  string(3) "0.0"
  ["carrier_service_key"]=>
  NULL
  ["shipment_cost"]=>
  NULL
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(0) ""
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7087"
  ["order_id"]=>
  string(4) "7429"
  ["se_shipment_id"]=>
  string(9) "225520213"
  ["carrier_key"]=>
  string(7) "SPEEDEE"
  ["carrier_service_key"]=>
  NULL
  ["shipment_cost"]=>
  NULL
  ["shipment_weight_ounces"]=>
  string(4) "0.00"
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(0) ""
  ["tracking_status"]=>
  string(9) "UNSHIPPED"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  NULL
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:32:49"
}



Shipment info for shipping easy shipment ID #225520213 is same between both arrays

*** Order info:
Array
(
    [id] => 208720063
    [external_order_identifier] => 111-0900255-4625847
    [ext_order_reference_id] => 111-0900255-4625847
    [owner_id] => 
    [sales_channel] => 
    [fulfillment_channel] => fulfillment_by_amazon
    [ordered_at] => 2017-12-28T18:41:23Z
    [order_status] => drop_shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 19.99
    [total_excluding_tax] => 19.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 19.99
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Christopher A Timmins
    [billing_first_name] => Christopher
    [billing_last_name] => A.
    [billing_address] => 1502 W LAWRENCE RD
    [billing_address2] => 
    [billing_city] => PHOENIX
    [billing_state] => AZ
    [billing_country] => US
    [billing_postal_code] => 85015-1438
    [billing_phone_number] => 
    [billing_email] => y44ztk8zfdbvkp4@marketplace.amazon.com
    [buyer_email] => y44ztk8zfdbvkp4@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Christopher
                    [last_name] => A Timmins
                    [address] => 1502 W LAWRENCE RD
                    [address2] => 
                    [address3] => 
                    [city] => PHOENIX
                    [residential] => 1
                    [state] => AZ
                    [province] => 
                    [country] => United States
                    [postal_code] => 85015
                    [postal_code_plus_4] => 1438
                    [phone_number] => 
                    [email] => y44ztk8zfdbvkp4@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => SecondDay
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Smokin Wedgies - Stainless Steel
                                    [sku] => smoking wedgie
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 0.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 19.99
                                    [unit_price] => 19.99
                                    [ext_line_item_id] => 12953996812770
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 87578fd9-7543-4de3-a4f7-a6e4e73abaed
                                    [order_source_id] => 218386983
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 208720063
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 210863503
                            [workflow_state] => drop_shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 0.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 6
                            [created_at] => 2017-12-30T03:07:04Z
                            [updated_at] => 2017-12-30T03:07:04Z
                            [ext_shipment_confirmation_id] => 0
                            [store_order_status] => external_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 
                            [internal_notes] => 
                            [line_item_name] => smokin wedgies - stainless steel
                            [line_item_sku] => smoking wedgie
                            [address_kind] => R
                            [recipient_last_name] => a timmins
                            [recipient_requested_service] => secondday
                            [gift] => 
                            [prime_order_id] => 208720063
                            [state] => AZ
                            [owner_id] => 
                            [denormalized_ordered_at] => 2017-12-28T18:41:23Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 111-0900255-4625847
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 111-0900255-4625847
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 225520223
                    [tracking_number] => 
                    [carrier_key] => 
                    [carrier_service_key] => 
                    [shipment_cost] => 
                    [ship_date] => 2017-12-29
                )

        )

    [updated_at] => 2017-12-30T03:07:04Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 208720063
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for y44ztk8zfdbvkp4@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 10031

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(11) "Christopher"
  ["customer_last_name"]=>
  string(9) "A Timmins"
  ["customer_email"]=>
  string(38) "y44ztk8zfdbvkp4@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(21) "Christopher A Timmins"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(18) "1502 W LAWRENCE RD"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(7) "PHOENIX"
    ["address_state"]=>
    string(2) "AZ"
    ["address_zip"]=>
    string(10) "85015-1438"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10031"
  ["ordered_time"]=>
  string(19) "2017-12-28 18:41:23"
  ["se_order_id"]=>
  int(208720063)
  ["se_order_status"]=>
  string(12) "drop_shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "111-0900255-4625847"
  ["order_weight_ounces"]=>
  string(3) "0.0"
  ["store_order_status"]=>
  string(20) "external_fulfillment"
  ["se_api_response"]=>
  string(3986) "{"id":208720063,"external_order_identifier":"111-0900255-4625847","ext_order_reference_id":"111-0900255-4625847","owner_id":null,"sales_channel":null,"fulfillment_channel":"fulfillment_by_amazon","ordered_at":"2017-12-28T18:41:23Z","order_status":"drop_shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"19.99","total_excluding_tax":"19.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"19.99","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Christopher A Timmins","billing_first_name":"Christopher","billing_last_name":"A.","billing_address":"1502 W LAWRENCE RD","billing_address2":null,"billing_city":"PHOENIX","billing_state":"AZ","billing_country":"US","billing_postal_code":"85015-1438","billing_phone_number":null,"billing_email":"y44ztk8zfdbvkp4@marketplace.amazon.com","buyer_email":"y44ztk8zfdbvkp4@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Christopher","last_name":"A Timmins","address":"1502 W LAWRENCE RD","address2":null,"address3":null,"city":"PHOENIX","residential":true,"state":"AZ","province":null,"country":"United States","postal_code":"85015","postal_code_plus_4":"1438","phone_number":null,"email":"y44ztk8zfdbvkp4@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"SecondDay","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Smokin Wedgies - Stainless Steel","sku":"smoking wedgie","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"0.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"19.99","unit_price":"19.99","ext_line_item_id":"12953996812770","ext_product_id":null,"product_options":null,"uuid":"87578fd9-7543-4de3-a4f7-a6e4e73abaed","order_source_id":218386983,"gift_message":null}],"original_order":{"id":208720063,"customer_id":33773,"store_id":70647,"order_detail_id":210863503,"workflow_state":"drop_shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"0.0","total_quantity":1,"is_international":false,"usps_shipping_zone":6,"created_at":"2017-12-30T03:07:04Z","updated_at":"2017-12-30T03:07:04Z","ext_shipment_confirmation_id":0,"store_order_status":"external_fulfillment","drop_ship_tracking_number":null,"category_id":null,"internal_notes":"","line_item_name":"smokin wedgies - stainless steel","line_item_sku":"smoking wedgie","address_kind":"R","recipient_last_name":"a timmins","recipient_requested_service":"secondday","gift":null,"prime_order_id":208720063,"state":"AZ","owner_id":null,"denormalized_ordered_at":"2017-12-28T18:41:23Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"111-0900255-4625847","packing_slip_generated":null,"denormalized_ext_order_reference_id":"111-0900255-4625847","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":225520223,"tracking_number":null,"carrier_key":null,"carrier_service_key":null,"shipment_cost":null,"ship_date":"2017-12-29"}],"updated_at":"2017-12-30T03:07:04Z","internal_notes":"","meta_data":null,"prime_order_id":208720063,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(225520223)
      ["carrier_key"]=>
      string(7) "SPEEDEE"
      ["shipment_weight_ounces"]=>
      string(3) "0.0"
      ["carrier_service_key"]=>
      NULL
      ["shipment_cost"]=>
      NULL
      ["ship_date"]=>
      string(10) "2017-12-29"
      ["tracking_number"]=>
      string(0) ""
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7430

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7088"
    ["order_id"]=>
    string(4) "7430"
    ["se_shipment_id"]=>
    string(9) "225520223"
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["shipment_weight_ounces"]=>
    string(4) "0.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(0) ""
    ["tracking_status"]=>
    string(9) "UNSHIPPED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    NULL
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:32:50"
  }
}


shipmentDBRows:
array(1) {
  [225520223]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7088"
    ["order_id"]=>
    string(4) "7430"
    ["se_shipment_id"]=>
    string(9) "225520223"
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["shipment_weight_ounces"]=>
    string(4) "0.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(0) ""
    ["tracking_status"]=>
    string(9) "UNSHIPPED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    NULL
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:32:50"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(225520223)
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["shipment_weight_ounces"]=>
    string(3) "0.0"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(0) ""
  }
}

Shipment info shipping easy shipment ID #225520223

From API:
array(7) {
  ["se_shipment_id"]=>
  int(225520223)
  ["carrier_key"]=>
  string(7) "SPEEDEE"
  ["shipment_weight_ounces"]=>
  string(3) "0.0"
  ["carrier_service_key"]=>
  NULL
  ["shipment_cost"]=>
  NULL
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(0) ""
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7088"
  ["order_id"]=>
  string(4) "7430"
  ["se_shipment_id"]=>
  string(9) "225520223"
  ["carrier_key"]=>
  string(7) "SPEEDEE"
  ["carrier_service_key"]=>
  NULL
  ["shipment_cost"]=>
  NULL
  ["shipment_weight_ounces"]=>
  string(4) "0.00"
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(0) ""
  ["tracking_status"]=>
  string(9) "UNSHIPPED"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  NULL
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:32:50"
}



Shipment info for shipping easy shipment ID #225520223 is same between both arrays

*** Order info:
Array
(
    [id] => 208764513
    [external_order_identifier] => 113-3984786-1357862
    [ext_order_reference_id] => 113-3984786-1357862
    [owner_id] => 
    [sales_channel] => 
    [fulfillment_channel] => fulfillment_by_amazon
    [ordered_at] => 2017-12-26T20:59:28Z
    [order_status] => drop_shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 19.99
    [total_excluding_tax] => 19.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 19.99
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Brooke Hicks
    [billing_first_name] => Brooke
    [billing_last_name] => Hicks
    [billing_address] => 6597 TIDAL BAY DR
    [billing_address2] => 
    [billing_city] => MILTON
    [billing_state] => FLORIDA
    [billing_country] => US
    [billing_postal_code] => 32583-3353
    [billing_phone_number] => 
    [billing_email] => yl9xfj89j6qjrsk@marketplace.amazon.com
    [buyer_email] => yl9xfj89j6qjrsk@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Brooke
                    [last_name] => Hicks
                    [address] => 6597 TIDAL BAY DR
                    [address2] => 
                    [address3] => 
                    [city] => MILTON
                    [residential] => 1
                    [state] => FL
                    [province] => 
                    [country] => United States
                    [postal_code] => 32583
                    [postal_code_plus_4] => 3353
                    [phone_number] => 
                    [email] => yl9xfj89j6qjrsk@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => SecondDay
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Smokin Wedgies - Stainless Steel
                                    [sku] => smoking wedgie
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 0.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 19.99
                                    [unit_price] => 19.99
                                    [ext_line_item_id] => 30241023696578
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 008f1ed2-9f11-48b7-aa01-7de785f796b6
                                    [order_source_id] => 218436553
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 208764513
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 210910703
                            [workflow_state] => drop_shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 0.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 6
                            [created_at] => 2017-12-30T04:07:08Z
                            [updated_at] => 2017-12-30T04:07:09Z
                            [ext_shipment_confirmation_id] => 0
                            [store_order_status] => external_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 
                            [internal_notes] => 
                            [line_item_name] => smokin wedgies - stainless steel
                            [line_item_sku] => smoking wedgie
                            [address_kind] => R
                            [recipient_last_name] => hicks
                            [recipient_requested_service] => secondday
                            [gift] => 
                            [prime_order_id] => 208764513
                            [state] => FL
                            [owner_id] => 
                            [denormalized_ordered_at] => 2017-12-26T20:59:28Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 113-3984786-1357862
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 113-3984786-1357862
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 225539933
                    [tracking_number] => 
                    [carrier_key] => 
                    [carrier_service_key] => 
                    [shipment_cost] => 
                    [ship_date] => 2017-12-29
                )

        )

    [updated_at] => 2017-12-30T04:07:09Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 208764513
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for yl9xfj89j6qjrsk@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 10032

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(6) "Brooke"
  ["customer_last_name"]=>
  string(5) "Hicks"
  ["customer_email"]=>
  string(38) "yl9xfj89j6qjrsk@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(12) "Brooke Hicks"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(17) "6597 TIDAL BAY DR"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(6) "MILTON"
    ["address_state"]=>
    string(7) "FLORIDA"
    ["address_zip"]=>
    string(10) "32583-3353"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10032"
  ["ordered_time"]=>
  string(19) "2017-12-26 20:59:28"
  ["se_order_id"]=>
  int(208764513)
  ["se_order_status"]=>
  string(12) "drop_shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "113-3984786-1357862"
  ["order_weight_ounces"]=>
  string(3) "0.0"
  ["store_order_status"]=>
  string(20) "external_fulfillment"
  ["se_api_response"]=>
  string(3963) "{"id":208764513,"external_order_identifier":"113-3984786-1357862","ext_order_reference_id":"113-3984786-1357862","owner_id":null,"sales_channel":null,"fulfillment_channel":"fulfillment_by_amazon","ordered_at":"2017-12-26T20:59:28Z","order_status":"drop_shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"19.99","total_excluding_tax":"19.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"19.99","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Brooke Hicks","billing_first_name":"Brooke","billing_last_name":"Hicks","billing_address":"6597 TIDAL BAY DR","billing_address2":null,"billing_city":"MILTON","billing_state":"FLORIDA","billing_country":"US","billing_postal_code":"32583-3353","billing_phone_number":null,"billing_email":"yl9xfj89j6qjrsk@marketplace.amazon.com","buyer_email":"yl9xfj89j6qjrsk@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Brooke","last_name":"Hicks","address":"6597 TIDAL BAY DR","address2":null,"address3":null,"city":"MILTON","residential":true,"state":"FL","province":null,"country":"United States","postal_code":"32583","postal_code_plus_4":"3353","phone_number":null,"email":"yl9xfj89j6qjrsk@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"SecondDay","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Smokin Wedgies - Stainless Steel","sku":"smoking wedgie","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"0.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"19.99","unit_price":"19.99","ext_line_item_id":"30241023696578","ext_product_id":null,"product_options":null,"uuid":"008f1ed2-9f11-48b7-aa01-7de785f796b6","order_source_id":218436553,"gift_message":null}],"original_order":{"id":208764513,"customer_id":33773,"store_id":70647,"order_detail_id":210910703,"workflow_state":"drop_shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"0.0","total_quantity":1,"is_international":false,"usps_shipping_zone":6,"created_at":"2017-12-30T04:07:08Z","updated_at":"2017-12-30T04:07:09Z","ext_shipment_confirmation_id":0,"store_order_status":"external_fulfillment","drop_ship_tracking_number":null,"category_id":null,"internal_notes":"","line_item_name":"smokin wedgies - stainless steel","line_item_sku":"smoking wedgie","address_kind":"R","recipient_last_name":"hicks","recipient_requested_service":"secondday","gift":null,"prime_order_id":208764513,"state":"FL","owner_id":null,"denormalized_ordered_at":"2017-12-26T20:59:28Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"113-3984786-1357862","packing_slip_generated":null,"denormalized_ext_order_reference_id":"113-3984786-1357862","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":225539933,"tracking_number":null,"carrier_key":null,"carrier_service_key":null,"shipment_cost":null,"ship_date":"2017-12-29"}],"updated_at":"2017-12-30T04:07:09Z","internal_notes":"","meta_data":null,"prime_order_id":208764513,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(225539933)
      ["carrier_key"]=>
      string(7) "SPEEDEE"
      ["shipment_weight_ounces"]=>
      string(3) "0.0"
      ["carrier_service_key"]=>
      NULL
      ["shipment_cost"]=>
      NULL
      ["ship_date"]=>
      string(10) "2017-12-29"
      ["tracking_number"]=>
      string(0) ""
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7431

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7089"
    ["order_id"]=>
    string(4) "7431"
    ["se_shipment_id"]=>
    string(9) "225539933"
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["shipment_weight_ounces"]=>
    string(4) "0.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(0) ""
    ["tracking_status"]=>
    string(9) "UNSHIPPED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    NULL
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:32:50"
  }
}


shipmentDBRows:
array(1) {
  [225539933]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7089"
    ["order_id"]=>
    string(4) "7431"
    ["se_shipment_id"]=>
    string(9) "225539933"
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["shipment_weight_ounces"]=>
    string(4) "0.00"
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(0) ""
    ["tracking_status"]=>
    string(9) "UNSHIPPED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    NULL
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:32:50"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(225539933)
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["shipment_weight_ounces"]=>
    string(3) "0.0"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["ship_date"]=>
    string(10) "2017-12-29"
    ["tracking_number"]=>
    string(0) ""
  }
}

Shipment info shipping easy shipment ID #225539933

From API:
array(7) {
  ["se_shipment_id"]=>
  int(225539933)
  ["carrier_key"]=>
  string(7) "SPEEDEE"
  ["shipment_weight_ounces"]=>
  string(3) "0.0"
  ["carrier_service_key"]=>
  NULL
  ["shipment_cost"]=>
  NULL
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(0) ""
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7089"
  ["order_id"]=>
  string(4) "7431"
  ["se_shipment_id"]=>
  string(9) "225539933"
  ["carrier_key"]=>
  string(7) "SPEEDEE"
  ["carrier_service_key"]=>
  NULL
  ["shipment_cost"]=>
  NULL
  ["shipment_weight_ounces"]=>
  string(4) "0.00"
  ["ship_date"]=>
  string(10) "2017-12-29"
  ["tracking_number"]=>
  string(0) ""
  ["tracking_status"]=>
  string(9) "UNSHIPPED"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  NULL
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:32:50"
}



Shipment info for shipping easy shipment ID #225539933 is same between both arrays

*** Order info:
Array
(
    [id] => 209314783
    [external_order_identifier] => 111-8488664-9300228
    [ext_order_reference_id] => 111-8488664-9300228
    [owner_id] => 
    [sales_channel] => 
    [fulfillment_channel] => fulfillment_by_amazon
    [ordered_at] => 2017-12-29T22:15:24Z
    [order_status] => drop_shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 19.99
    [total_excluding_tax] => 19.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 19.99
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Jodi Bandy
    [billing_first_name] => Jodi
    [billing_last_name] => Bandy
    [billing_address] => 3113 EVELYN ST
    [billing_address2] => 
    [billing_city] => BELLEVUE
    [billing_state] => NE
    [billing_country] => US
    [billing_postal_code] => 68147-1934
    [billing_phone_number] => 
    [billing_email] => 1mxb30dnvd8r1bf@marketplace.amazon.com
    [buyer_email] => 1mxb30dnvd8r1bf@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Jodi
                    [last_name] => Bandy
                    [address] => 3113 EVELYN ST
                    [address2] => 
                    [address3] => 
                    [city] => BELLEVUE
                    [residential] => 1
                    [state] => NE
                    [province] => 
                    [country] => United States
                    [postal_code] => 68147
                    [postal_code_plus_4] => 1934
                    [phone_number] => 
                    [email] => 1mxb30dnvd8r1bf@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => SecondDay
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Smokin Wedgies - Stainless Steel
                                    [sku] => smoking wedgie
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 0.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 19.99
                                    [unit_price] => 19.99
                                    [ext_line_item_id] => 49034264436890
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 8728162d-9b95-4b87-8a5d-9710e8ac0156
                                    [order_source_id] => 219046213
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 209314783
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 211477023
                            [workflow_state] => drop_shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 0.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 4
                            [created_at] => 2017-12-30T23:07:25Z
                            [updated_at] => 2017-12-30T23:07:26Z
                            [ext_shipment_confirmation_id] => 0
                            [store_order_status] => external_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 
                            [internal_notes] => 
                            [line_item_name] => smokin wedgies - stainless steel
                            [line_item_sku] => smoking wedgie
                            [address_kind] => R
                            [recipient_last_name] => bandy
                            [recipient_requested_service] => secondday
                            [gift] => 
                            [prime_order_id] => 209314783
                            [state] => NE
                            [owner_id] => 
                            [denormalized_ordered_at] => 2017-12-29T22:15:24Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 111-8488664-9300228
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 111-8488664-9300228
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 225947513
                    [tracking_number] => 
                    [carrier_key] => 
                    [carrier_service_key] => 
                    [shipment_cost] => 
                    [ship_date] => 2017-12-30
                )

        )

    [updated_at] => 2017-12-30T23:07:26Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 209314783
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for 1mxb30dnvd8r1bf@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 10033

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(4) "Jodi"
  ["customer_last_name"]=>
  string(5) "Bandy"
  ["customer_email"]=>
  string(38) "1mxb30dnvd8r1bf@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(10) "Jodi Bandy"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(14) "3113 EVELYN ST"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(8) "BELLEVUE"
    ["address_state"]=>
    string(2) "NE"
    ["address_zip"]=>
    string(10) "68147-1934"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10033"
  ["ordered_time"]=>
  string(19) "2017-12-29 22:15:24"
  ["se_order_id"]=>
  int(209314783)
  ["se_order_status"]=>
  string(12) "drop_shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "111-8488664-9300228"
  ["order_weight_ounces"]=>
  string(3) "0.0"
  ["store_order_status"]=>
  string(20) "external_fulfillment"
  ["se_api_response"]=>
  string(3950) "{"id":209314783,"external_order_identifier":"111-8488664-9300228","ext_order_reference_id":"111-8488664-9300228","owner_id":null,"sales_channel":null,"fulfillment_channel":"fulfillment_by_amazon","ordered_at":"2017-12-29T22:15:24Z","order_status":"drop_shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"19.99","total_excluding_tax":"19.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"19.99","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Jodi Bandy","billing_first_name":"Jodi","billing_last_name":"Bandy","billing_address":"3113 EVELYN ST","billing_address2":null,"billing_city":"BELLEVUE","billing_state":"NE","billing_country":"US","billing_postal_code":"68147-1934","billing_phone_number":null,"billing_email":"1mxb30dnvd8r1bf@marketplace.amazon.com","buyer_email":"1mxb30dnvd8r1bf@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Jodi","last_name":"Bandy","address":"3113 EVELYN ST","address2":null,"address3":null,"city":"BELLEVUE","residential":true,"state":"NE","province":null,"country":"United States","postal_code":"68147","postal_code_plus_4":"1934","phone_number":null,"email":"1mxb30dnvd8r1bf@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"SecondDay","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Smokin Wedgies - Stainless Steel","sku":"smoking wedgie","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"0.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"19.99","unit_price":"19.99","ext_line_item_id":"49034264436890","ext_product_id":null,"product_options":null,"uuid":"8728162d-9b95-4b87-8a5d-9710e8ac0156","order_source_id":219046213,"gift_message":null}],"original_order":{"id":209314783,"customer_id":33773,"store_id":70647,"order_detail_id":211477023,"workflow_state":"drop_shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"0.0","total_quantity":1,"is_international":false,"usps_shipping_zone":4,"created_at":"2017-12-30T23:07:25Z","updated_at":"2017-12-30T23:07:26Z","ext_shipment_confirmation_id":0,"store_order_status":"external_fulfillment","drop_ship_tracking_number":null,"category_id":null,"internal_notes":"","line_item_name":"smokin wedgies - stainless steel","line_item_sku":"smoking wedgie","address_kind":"R","recipient_last_name":"bandy","recipient_requested_service":"secondday","gift":null,"prime_order_id":209314783,"state":"NE","owner_id":null,"denormalized_ordered_at":"2017-12-29T22:15:24Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"111-8488664-9300228","packing_slip_generated":null,"denormalized_ext_order_reference_id":"111-8488664-9300228","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":225947513,"tracking_number":null,"carrier_key":null,"carrier_service_key":null,"shipment_cost":null,"ship_date":"2017-12-30"}],"updated_at":"2017-12-30T23:07:26Z","internal_notes":"","meta_data":null,"prime_order_id":209314783,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(225947513)
      ["carrier_key"]=>
      string(7) "SPEEDEE"
      ["shipment_weight_ounces"]=>
      string(3) "0.0"
      ["carrier_service_key"]=>
      NULL
      ["shipment_cost"]=>
      NULL
      ["ship_date"]=>
      string(10) "2017-12-30"
      ["tracking_number"]=>
      string(0) ""
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7432

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7090"
    ["order_id"]=>
    string(4) "7432"
    ["se_shipment_id"]=>
    string(9) "225947513"
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["shipment_weight_ounces"]=>
    string(4) "0.00"
    ["ship_date"]=>
    string(10) "2017-12-30"
    ["tracking_number"]=>
    string(0) ""
    ["tracking_status"]=>
    string(9) "UNSHIPPED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    NULL
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:32:50"
  }
}


shipmentDBRows:
array(1) {
  [225947513]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7090"
    ["order_id"]=>
    string(4) "7432"
    ["se_shipment_id"]=>
    string(9) "225947513"
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["shipment_weight_ounces"]=>
    string(4) "0.00"
    ["ship_date"]=>
    string(10) "2017-12-30"
    ["tracking_number"]=>
    string(0) ""
    ["tracking_status"]=>
    string(9) "UNSHIPPED"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    NULL
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:32:50"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(225947513)
    ["carrier_key"]=>
    string(7) "SPEEDEE"
    ["shipment_weight_ounces"]=>
    string(3) "0.0"
    ["carrier_service_key"]=>
    NULL
    ["shipment_cost"]=>
    NULL
    ["ship_date"]=>
    string(10) "2017-12-30"
    ["tracking_number"]=>
    string(0) ""
  }
}

Shipment info shipping easy shipment ID #225947513

From API:
array(7) {
  ["se_shipment_id"]=>
  int(225947513)
  ["carrier_key"]=>
  string(7) "SPEEDEE"
  ["shipment_weight_ounces"]=>
  string(3) "0.0"
  ["carrier_service_key"]=>
  NULL
  ["shipment_cost"]=>
  NULL
  ["ship_date"]=>
  string(10) "2017-12-30"
  ["tracking_number"]=>
  string(0) ""
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7090"
  ["order_id"]=>
  string(4) "7432"
  ["se_shipment_id"]=>
  string(9) "225947513"
  ["carrier_key"]=>
  string(7) "SPEEDEE"
  ["carrier_service_key"]=>
  NULL
  ["shipment_cost"]=>
  NULL
  ["shipment_weight_ounces"]=>
  string(4) "0.00"
  ["ship_date"]=>
  string(10) "2017-12-30"
  ["tracking_number"]=>
  string(0) ""
  ["tracking_status"]=>
  string(9) "UNSHIPPED"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  NULL
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:32:50"
}



Shipment info for shipping easy shipment ID #225947513 is same between both arrays

*** Order info:
Array
(
    [id] => 207949553
    [external_order_identifier] => 114-6684673-7802657
    [ext_order_reference_id] => 114-6684673-7802657
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-29T11:03:04Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 13.85
    [total_excluding_tax] => 13.85
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 13.85
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => John Spevak
    [billing_first_name] => John
    [billing_last_name] => Spevak
    [billing_address] => 20840 60TH ST E
    [billing_address2] => 
    [billing_city] => BONNEY LAKE
    [billing_state] => WA
    [billing_country] => US
    [billing_postal_code] => 98391-8629
    [billing_phone_number] => 253-255-2896
    [billing_email] => g87mn37wp5zhw5w@marketplace.amazon.com
    [buyer_email] => g87mn37wp5zhw5w@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => John
                    [last_name] => Spevak
                    [address] => 20840 60TH ST E
                    [address2] => 
                    [address3] => 
                    [city] => BONNEY LAKE
                    [residential] => 1
                    [state] => WA
                    [province] => 
                    [country] => United States
                    [postal_code] => 98391
                    [postal_code_plus_4] => 8629
                    [phone_number] => 253-255-2896
                    [email] => g87mn37wp5zhw5w@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => Standard
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Cornhusker Kitchen's Duck Fat Cooking Oil Spray 7 oz (New)
                                    [sku] => duckfat-1
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 12.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 13.85
                                    [unit_price] => 13.85
                                    [ext_line_item_id] => 13323207380042
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 4a3b73e0-9fe5-4099-b06c-c7292ecfa5c0
                                    [order_source_id] => 217558703
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 207949553
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 210072343
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 12.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 7
                            [created_at] => 2017-12-29T12:06:43Z
                            [updated_at] => 2017-12-31T04:40:47Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => cornhusker kitchen's duck fat cooking oil spray 7 oz (new)
                            [line_item_sku] => duckfat-1
                            [address_kind] => R
                            [recipient_last_name] => spevak
                            [recipient_requested_service] => standard
                            [gift] => 
                            [prime_order_id] => 207949553
                            [state] => WA
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-29T11:03:04Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 114-6684673-7802657
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 114-6684673-7802657
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 224578043
                    [tracking_number] => 9400110298370317360363
                    [carrier_key] => USPS
                    [carrier_service_key] => First
                    [shipment_cost] => 374
                    [ship_date] => 2017-12-30
                )

        )

    [updated_at] => 2017-12-31T04:40:47Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 207949553
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for g87mn37wp5zhw5w@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 10034

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(4) "John"
  ["customer_last_name"]=>
  string(6) "Spevak"
  ["customer_email"]=>
  string(38) "g87mn37wp5zhw5w@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(11) "John Spevak"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(15) "20840 60TH ST E"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(11) "BONNEY LAKE"
    ["address_state"]=>
    string(2) "WA"
    ["address_zip"]=>
    string(10) "98391-8629"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10034"
  ["ordered_time"]=>
  string(19) "2017-12-29 11:03:04"
  ["se_order_id"]=>
  int(207949553)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "114-6684673-7802657"
  ["order_weight_ounces"]=>
  string(4) "12.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4023) "{"id":207949553,"external_order_identifier":"114-6684673-7802657","ext_order_reference_id":"114-6684673-7802657","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-29T11:03:04Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"13.85","total_excluding_tax":"13.85","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"13.85","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"John Spevak","billing_first_name":"John","billing_last_name":"Spevak","billing_address":"20840 60TH ST E","billing_address2":null,"billing_city":"BONNEY LAKE","billing_state":"WA","billing_country":"US","billing_postal_code":"98391-8629","billing_phone_number":"253-255-2896","billing_email":"g87mn37wp5zhw5w@marketplace.amazon.com","buyer_email":"g87mn37wp5zhw5w@marketplace.amazon.com","recipients":[{"company":null,"first_name":"John","last_name":"Spevak","address":"20840 60TH ST E","address2":null,"address3":null,"city":"BONNEY LAKE","residential":true,"state":"WA","province":null,"country":"United States","postal_code":"98391","postal_code_plus_4":"8629","phone_number":"253-255-2896","email":"g87mn37wp5zhw5w@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"Standard","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Cornhusker Kitchen's Duck Fat Cooking Oil Spray 7 oz (New)","sku":"duckfat-1","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"12.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"13.85","unit_price":"13.85","ext_line_item_id":"13323207380042","ext_product_id":null,"product_options":null,"uuid":"4a3b73e0-9fe5-4099-b06c-c7292ecfa5c0","order_source_id":217558703,"gift_message":null}],"original_order":{"id":207949553,"customer_id":33773,"store_id":70647,"order_detail_id":210072343,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"12.0","total_quantity":1,"is_international":false,"usps_shipping_zone":7,"created_at":"2017-12-29T12:06:43Z","updated_at":"2017-12-31T04:40:47Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"cornhusker kitchen's duck fat cooking oil spray 7 oz (new)","line_item_sku":"duckfat-1","address_kind":"R","recipient_last_name":"spevak","recipient_requested_service":"standard","gift":null,"prime_order_id":207949553,"state":"WA","owner_id":37098,"denormalized_ordered_at":"2017-12-29T11:03:04Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"114-6684673-7802657","packing_slip_generated":null,"denormalized_ext_order_reference_id":"114-6684673-7802657","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":224578043,"tracking_number":"9400110298370317360363","carrier_key":"USPS","carrier_service_key":"First","shipment_cost":374,"ship_date":"2017-12-30"}],"updated_at":"2017-12-31T04:40:47Z","internal_notes":"","meta_data":null,"prime_order_id":207949553,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(224578043)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(4) "12.0"
      ["carrier_service_key"]=>
      string(5) "First"
      ["shipment_cost"]=>
      int(374)
      ["ship_date"]=>
      string(10) "2017-12-30"
      ["tracking_number"]=>
      string(22) "9400110298370317360363"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7433

existingShippingEasySHipmentsDBRows:
array(1) {
  [0]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7091"
    ["order_id"]=>
    string(4) "7433"
    ["se_shipment_id"]=>
    string(9) "224578043"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(5) "First"
    ["shipment_cost"]=>
    string(3) "374"
    ["shipment_weight_ounces"]=>
    string(5) "12.00"
    ["ship_date"]=>
    string(10) "2017-12-30"
    ["tracking_number"]=>
    string(22) "9400110298370317360363"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(45) "Arrived at USPS Regional Destination Facility"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:38"
  }
}


shipmentDBRows:
array(1) {
  [224578043]=>
  array(15) {
    ["shipment_id"]=>
    string(4) "7091"
    ["order_id"]=>
    string(4) "7433"
    ["se_shipment_id"]=>
    string(9) "224578043"
    ["carrier_key"]=>
    string(4) "USPS"
    ["carrier_service_key"]=>
    string(5) "First"
    ["shipment_cost"]=>
    string(3) "374"
    ["shipment_weight_ounces"]=>
    string(5) "12.00"
    ["ship_date"]=>
    string(10) "2017-12-30"
    ["tracking_number"]=>
    string(22) "9400110298370317360363"
    ["tracking_status"]=>
    string(10) "IN TRANSIT"
    ["tracking_status_code"]=>
    NULL
    ["tracking_status_description"]=>
    string(45) "Arrived at USPS Regional Destination Facility"
    ["estimated_delivery_time"]=>
    NULL
    ["actual_delivery_time"]=>
    NULL
    ["last_updated"]=>
    string(19) "2018-01-01 00:33:38"
  }
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(224578043)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(4) "12.0"
    ["carrier_service_key"]=>
    string(5) "First"
    ["shipment_cost"]=>
    int(374)
    ["ship_date"]=>
    string(10) "2017-12-30"
    ["tracking_number"]=>
    string(22) "9400110298370317360363"
  }
}

Shipment info shipping easy shipment ID #224578043

From API:
array(7) {
  ["se_shipment_id"]=>
  int(224578043)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(4) "12.0"
  ["carrier_service_key"]=>
  string(5) "First"
  ["shipment_cost"]=>
  int(374)
  ["ship_date"]=>
  string(10) "2017-12-30"
  ["tracking_number"]=>
  string(22) "9400110298370317360363"
}

From DB:
array(15) {
  ["shipment_id"]=>
  string(4) "7091"
  ["order_id"]=>
  string(4) "7433"
  ["se_shipment_id"]=>
  string(9) "224578043"
  ["carrier_key"]=>
  string(4) "USPS"
  ["carrier_service_key"]=>
  string(5) "First"
  ["shipment_cost"]=>
  string(3) "374"
  ["shipment_weight_ounces"]=>
  string(5) "12.00"
  ["ship_date"]=>
  string(10) "2017-12-30"
  ["tracking_number"]=>
  string(22) "9400110298370317360363"
  ["tracking_status"]=>
  string(10) "IN TRANSIT"
  ["tracking_status_code"]=>
  NULL
  ["tracking_status_description"]=>
  string(45) "Arrived at USPS Regional Destination Facility"
  ["estimated_delivery_time"]=>
  NULL
  ["actual_delivery_time"]=>
  NULL
  ["last_updated"]=>
  string(19) "2018-01-01 00:33:38"
}



Shipment info for shipping easy shipment ID #224578043 is same between both arrays

*** Order info:
Array
(
    [id] => 209522593
    [external_order_identifier] => 3945
    [ext_order_reference_id] => 3945
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-30T15:56:26Z
    [order_status] => ready_for_shipment
    [parent_order_id] => 208978103
    [source_order_ids] => 
    [total_including_tax] => 203.50
    [total_excluding_tax] => 0.00
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 0.00
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => 
    [billing_first_name] => Dan
    [billing_last_name] => Orthman
    [billing_address] => 11000 hwy 10 lot 124
    [billing_address2] => 
    [billing_city] => rice
    [billing_state] => MN
    [billing_country] => US
    [billing_postal_code] => 56367
    [billing_phone_number] => 3203933027
    [billing_email] => danorthman@yahoo.com
    [buyer_email] => danorthman@yahoo.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Dan
                    [last_name] => Orthman
                    [address] => 11000 hwy 10 lot 124
                    [address2] => 
                    [address3] => 
                    [city] => rice
                    [residential] => 1
                    [state] => MN
                    [province] => 
                    [country] => United States
                    [postal_code] => 56367
                    [postal_code_plus_4] => 9319
                    [phone_number] => 3203933027
                    [email] => danorthman@yahoo.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 0
                    [shipping_method] => Free Shipping - No PO Boxes or APO
                    [items_shipped] => 0
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => 180 Pound BBQ Pellets Variety Pack (Select 9 20-Pound Varieties)
                                    [sku] => 18020variety
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 2910.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 203.50
                                    [price_excluding_tax] => 203.50
                                    [unit_price] => 203.50
                                    [ext_line_item_id] => 
                                    [ext_product_id] => 79127507
                                    [product_options] => Array
                                        (
                                            [Bag 1 (20#)] => 100% Hickory
                                            [Bag 2 (20#)] => 100% Oak
                                            [Bag 3 (20#)] => Mesquite Blend
                                            [Bag 4 (20#)] => 100% Apple
                                            [Bag 5 (20#)] => 100% Mesquite
                                            [Bag 6 (20#)] => Fruitwood (80% Cherry/20# Apple)
                                            [Bag 7 (20#)] => Mesquite Blend
                                            [Bag 8 (20#)] => 100% Oak
                                            [Bag 9 (20#)] => CharBlend Hickory
                                            [Add Handy Camel Bag Clip] => []
                                            [Add Smokin Wedgie Pellet Smoker(s)] => []
                                            [Add Gourmet Duck Fat Spray Can(s) Here (7 Ounce)] => []
                                            [Add Smokin Wedgie Leg Kit for Flat Bottom Smokers] => []
                                            [Add BBQ Bottle Opener] => []
                                        )

                                    [uuid] => 272a20de-f041-4b39-b519-4f2e878f2a59
                                    [order_source_id] => 218680153
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 209522593
                            [customer_id] => 33773
                            [store_id] => 70642
                            [order_detail_id] => 211694583
                            [workflow_state] => ready_for_shipment
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 208978103
                            [total_weight_in_ounces] => 990.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 2
                            [created_at] => 2017-12-31T06:49:35Z
                            [updated_at] => 2017-12-31T06:49:51Z
                            [ext_shipment_confirmation_id] => 
                            [store_order_status] => awaiting_shipment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136971
                            [internal_notes] => 
                            [line_item_name] => 180 pound bbq pellets variety pack (select 9 20-pound varieties)
                            [line_item_sku] => 18020variety
                            [address_kind] => R
                            [recipient_last_name] => orthman
                            [recipient_requested_service] => free shipping - no po boxes or apo
                            [gift] => 
                            [prime_order_id] => 208978103
                            [state] => MN
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-30T15:56:26Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 3945
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 3945
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 276833075f862f916ca417ff8ccb9564
    [shipments] => Array
        (
        )

    [updated_at] => 2017-12-31T06:49:51Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 208978103
    [is_prime] => 
    [split_from_order_id] => 208978103
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for danorthman@yahoo.com) was previously inserted to the DB.
Existing customer ID: 10035

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(3) "Dan"
  ["customer_last_name"]=>
  string(7) "Orthman"
  ["customer_email"]=>
  string(20) "danorthman@yahoo.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  NULL
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(20) "11000 hwy 10 lot 124"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(4) "rice"
    ["address_state"]=>
    string(2) "MN"
    ["address_zip"]=>
    string(5) "56367"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10035"
  ["ordered_time"]=>
  string(19) "2017-12-30 15:56:26"
  ["se_order_id"]=>
  int(209522593)
  ["se_order_status"]=>
  string(18) "ready_for_shipment"
  ["store_ordered_from"]=>
  string(5) "Ecwid"
  ["store_order_id"]=>
  string(4) "3945"
  ["order_weight_ounces"]=>
  string(5) "990.0"
  ["store_order_status"]=>
  string(17) "awaiting_shipment"
  ["se_api_response"]=>
  string(4319) "{"id":209522593,"external_order_identifier":"3945","ext_order_reference_id":"3945","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-30T15:56:26Z","order_status":"ready_for_shipment","parent_order_id":208978103,"source_order_ids":null,"total_including_tax":"203.50","total_excluding_tax":"0.00","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"0.00","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":null,"billing_first_name":"Dan","billing_last_name":"Orthman","billing_address":"11000 hwy 10 lot 124","billing_address2":null,"billing_city":"rice","billing_state":"MN","billing_country":"US","billing_postal_code":"56367","billing_phone_number":"3203933027","billing_email":"danorthman@yahoo.com","buyer_email":"danorthman@yahoo.com","recipients":[{"company":"","first_name":"Dan","last_name":"Orthman","address":"11000 hwy 10 lot 124","address2":"","address3":null,"city":"rice","residential":true,"state":"MN","province":null,"country":"United States","postal_code":"56367","postal_code_plus_4":"9319","phone_number":"3203933027","email":"danorthman@yahoo.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":0,"shipping_method":"Free Shipping - No PO Boxes or APO","items_shipped":0,"ext_shipping_detail_id":null,"line_items":[{"item_name":"180 Pound BBQ Pellets Variety Pack (Select 9 20-Pound Varieties)","sku":"18020variety","bin_picking_number":"","bundled_product":null,"weight_in_ounces":"2910.0","quantity":1,"total_excluding_tax":"203.50","price_excluding_tax":"203.50","unit_price":"203.50","ext_line_item_id":null,"ext_product_id":"79127507","product_options":{"Bag 1 (20#)":"100% Hickory","Bag 2 (20#)":"100% Oak","Bag 3 (20#)":"Mesquite Blend","Bag 4 (20#)":"100% Apple","Bag 5 (20#)":"100% Mesquite","Bag 6 (20#)":"Fruitwood (80% Cherry\/20# Apple)","Bag 7 (20#)":"Mesquite Blend","Bag 8 (20#)":"100% Oak","Bag 9 (20#)":"CharBlend Hickory","Add Handy Camel Bag Clip":"[]","Add Smokin Wedgie Pellet Smoker(s)":"[]","Add Gourmet Duck Fat Spray Can(s) Here (7 Ounce)":"[]","Add Smokin Wedgie Leg Kit for Flat Bottom Smokers":"[]","Add BBQ Bottle Opener":"[]"},"uuid":"272a20de-f041-4b39-b519-4f2e878f2a59","order_source_id":218680153,"gift_message":""}],"original_order":{"id":209522593,"customer_id":33773,"store_id":70642,"order_detail_id":211694583,"workflow_state":"ready_for_shipment","shipment_id":null,"destination_id":null,"split_from_order_id":208978103,"total_weight_in_ounces":"990.0","total_quantity":1,"is_international":false,"usps_shipping_zone":2,"created_at":"2017-12-31T06:49:35Z","updated_at":"2017-12-31T06:49:51Z","ext_shipment_confirmation_id":null,"store_order_status":"awaiting_shipment","drop_ship_tracking_number":null,"category_id":136971,"internal_notes":"","line_item_name":"180 pound bbq pellets variety pack (select 9 20-pound varieties)","line_item_sku":"18020variety","address_kind":"R","recipient_last_name":"orthman","recipient_requested_service":"free shipping - no po boxes or apo","gift":false,"prime_order_id":208978103,"state":"MN","owner_id":37098,"denormalized_ordered_at":"2017-12-30T15:56:26Z","grab_bag":[],"line_item_bin_picking_number":"","denormalized_ext_order_id":"3945","packing_slip_generated":null,"denormalized_ext_order_reference_id":"3945","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"276833075f862f916ca417ff8ccb9564","shipments":[],"updated_at":"2017-12-31T06:49:51Z","internal_notes":"","meta_data":null,"prime_order_id":208978103,"is_prime":null,"split_from_order_id":208978103,"tags":[]}"
  ["shipment_data"]=>
  array(0) {
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7434

No shipment elements found in API response. Continuing

*** Order info:
Array
(
    [id] => 209522623
    [external_order_identifier] => 3945
    [ext_order_reference_id] => 3945
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-30T15:56:26Z
    [order_status] => ready_for_shipment
    [parent_order_id] => 208978103
    [source_order_ids] => 
    [total_including_tax] => 203.50
    [total_excluding_tax] => 0.00
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 0.00
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => 
    [billing_first_name] => Dan
    [billing_last_name] => Orthman
    [billing_address] => 11000 hwy 10 lot 124
    [billing_address2] => 
    [billing_city] => rice
    [billing_state] => MN
    [billing_country] => US
    [billing_postal_code] => 56367
    [billing_phone_number] => 3203933027
    [billing_email] => danorthman@yahoo.com
    [buyer_email] => danorthman@yahoo.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Dan
                    [last_name] => Orthman
                    [address] => 11000 hwy 10 lot 124
                    [address2] => 
                    [address3] => 
                    [city] => rice
                    [residential] => 1
                    [state] => MN
                    [province] => 
                    [country] => United States
                    [postal_code] => 56367
                    [postal_code_plus_4] => 9319
                    [phone_number] => 3203933027
                    [email] => danorthman@yahoo.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 0
                    [shipping_method] => Free Shipping - No PO Boxes or APO
                    [items_shipped] => 0
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => 9 x 20# Lumber Jack Bags (180#) BBQ Pellets
                                    [sku] => 18020variety
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 2910.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 0.00
                                    [unit_price] => 0.00
                                    [ext_line_item_id] => 
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 44becd5f-84e9-4bb5-8418-fa75e64d2fca
                                    [order_source_id] => 219290993
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 209522623
                            [customer_id] => 33773
                            [store_id] => 70642
                            [order_detail_id] => 211694613
                            [workflow_state] => ready_for_shipment
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 208978103
                            [total_weight_in_ounces] => 990.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 2
                            [created_at] => 2017-12-31T06:49:36Z
                            [updated_at] => 2017-12-31T06:49:59Z
                            [ext_shipment_confirmation_id] => 
                            [store_order_status] => awaiting_shipment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136971
                            [internal_notes] => 
                            [line_item_name] => 9 x 20# lumber jack bags (180#) bbq pellets
                            [line_item_sku] => 18020variety
                            [address_kind] => R
                            [recipient_last_name] => orthman
                            [recipient_requested_service] => free shipping - no po boxes or apo
                            [gift] => 
                            [prime_order_id] => 208978103
                            [state] => MN
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-30T15:56:26Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 3945
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 3945
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 276833075f862f916ca417ff8ccb9564
    [shipments] => Array
        (
        )

    [updated_at] => 2017-12-31T06:49:59Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 208978103
    [is_prime] => 
    [split_from_order_id] => 208978103
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for danorthman@yahoo.com) was previously inserted to the DB.
Existing customer ID: 10035

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(3) "Dan"
  ["customer_last_name"]=>
  string(7) "Orthman"
  ["customer_email"]=>
  string(20) "danorthman@yahoo.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  NULL
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(20) "11000 hwy 10 lot 124"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(4) "rice"
    ["address_state"]=>
    string(2) "MN"
    ["address_zip"]=>
    string(5) "56367"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10035"
  ["ordered_time"]=>
  string(19) "2017-12-30 15:56:26"
  ["se_order_id"]=>
  int(209522623)
  ["se_order_status"]=>
  string(18) "ready_for_shipment"
  ["store_ordered_from"]=>
  string(5) "Ecwid"
  ["store_order_id"]=>
  string(4) "3945"
  ["order_weight_ounces"]=>
  string(5) "990.0"
  ["store_order_status"]=>
  string(17) "awaiting_shipment"
  ["se_api_response"]=>
  string(3770) "{"id":209522623,"external_order_identifier":"3945","ext_order_reference_id":"3945","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-30T15:56:26Z","order_status":"ready_for_shipment","parent_order_id":208978103,"source_order_ids":null,"total_including_tax":"203.50","total_excluding_tax":"0.00","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"0.00","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":null,"billing_first_name":"Dan","billing_last_name":"Orthman","billing_address":"11000 hwy 10 lot 124","billing_address2":null,"billing_city":"rice","billing_state":"MN","billing_country":"US","billing_postal_code":"56367","billing_phone_number":"3203933027","billing_email":"danorthman@yahoo.com","buyer_email":"danorthman@yahoo.com","recipients":[{"company":"","first_name":"Dan","last_name":"Orthman","address":"11000 hwy 10 lot 124","address2":"","address3":null,"city":"rice","residential":true,"state":"MN","province":null,"country":"United States","postal_code":"56367","postal_code_plus_4":"9319","phone_number":"3203933027","email":"danorthman@yahoo.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":0,"shipping_method":"Free Shipping - No PO Boxes or APO","items_shipped":0,"ext_shipping_detail_id":null,"line_items":[{"item_name":"9 x 20# Lumber Jack Bags (180#) BBQ Pellets","sku":"18020variety","bin_picking_number":"","bundled_product":null,"weight_in_ounces":"2910.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"0.00","unit_price":"0.00","ext_line_item_id":null,"ext_product_id":null,"product_options":null,"uuid":"44becd5f-84e9-4bb5-8418-fa75e64d2fca","order_source_id":219290993,"gift_message":""}],"original_order":{"id":209522623,"customer_id":33773,"store_id":70642,"order_detail_id":211694613,"workflow_state":"ready_for_shipment","shipment_id":null,"destination_id":null,"split_from_order_id":208978103,"total_weight_in_ounces":"990.0","total_quantity":1,"is_international":false,"usps_shipping_zone":2,"created_at":"2017-12-31T06:49:36Z","updated_at":"2017-12-31T06:49:59Z","ext_shipment_confirmation_id":null,"store_order_status":"awaiting_shipment","drop_ship_tracking_number":null,"category_id":136971,"internal_notes":"","line_item_name":"9 x 20# lumber jack bags (180#) bbq pellets","line_item_sku":"18020variety","address_kind":"R","recipient_last_name":"orthman","recipient_requested_service":"free shipping - no po boxes or apo","gift":false,"prime_order_id":208978103,"state":"MN","owner_id":37098,"denormalized_ordered_at":"2017-12-30T15:56:26Z","grab_bag":[],"line_item_bin_picking_number":"","denormalized_ext_order_id":"3945","packing_slip_generated":null,"denormalized_ext_order_reference_id":"3945","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"276833075f862f916ca417ff8ccb9564","shipments":[],"updated_at":"2017-12-31T06:49:59Z","internal_notes":"","meta_data":null,"prime_order_id":208978103,"is_prime":null,"split_from_order_id":208978103,"tags":[]}"
  ["shipment_data"]=>
  array(0) {
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7435

No shipment elements found in API response. Continuing

*** Order info:
Array
(
    [id] => 209522663
    [external_order_identifier] => 3945
    [ext_order_reference_id] => 3945
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-30T15:56:26Z
    [order_status] => ready_for_shipment
    [parent_order_id] => 208978103
    [source_order_ids] => 
    [total_including_tax] => 203.50
    [total_excluding_tax] => 0.00
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 0.00
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => 
    [billing_first_name] => Dan
    [billing_last_name] => Orthman
    [billing_address] => 11000 hwy 10 lot 124
    [billing_address2] => 
    [billing_city] => rice
    [billing_state] => MN
    [billing_country] => US
    [billing_postal_code] => 56367
    [billing_phone_number] => 3203933027
    [billing_email] => danorthman@yahoo.com
    [buyer_email] => danorthman@yahoo.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Dan
                    [last_name] => Orthman
                    [address] => 11000 hwy 10 lot 124
                    [address2] => 
                    [address3] => 
                    [city] => rice
                    [residential] => 1
                    [state] => MN
                    [province] => 
                    [country] => United States
                    [postal_code] => 56367
                    [postal_code_plus_4] => 9319
                    [phone_number] => 3203933027
                    [email] => danorthman@yahoo.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 0
                    [shipping_method] => Free Shipping - No PO Boxes or APO
                    [items_shipped] => 0
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => 9 x 20# Lumber Jack Bags (180#) BBQ Pellets
                                    [sku] => 18020variety
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 2910.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 0.00
                                    [unit_price] => 0.00
                                    [ext_line_item_id] => 
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 8fca7838-8afb-4d6a-b43d-a61a9d290a90
                                    [order_source_id] => 219291033
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 209522663
                            [customer_id] => 33773
                            [store_id] => 70642
                            [order_detail_id] => 211694653
                            [workflow_state] => ready_for_shipment
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 208978103
                            [total_weight_in_ounces] => 990.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 2
                            [created_at] => 2017-12-31T06:49:37Z
                            [updated_at] => 2017-12-31T06:50:06Z
                            [ext_shipment_confirmation_id] => 
                            [store_order_status] => awaiting_shipment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136971
                            [internal_notes] => 
                            [line_item_name] => 9 x 20# lumber jack bags (180#) bbq pellets
                            [line_item_sku] => 18020variety
                            [address_kind] => R
                            [recipient_last_name] => orthman
                            [recipient_requested_service] => free shipping - no po boxes or apo
                            [gift] => 
                            [prime_order_id] => 208978103
                            [state] => MN
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-30T15:56:26Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 3945
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 3945
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 276833075f862f916ca417ff8ccb9564
    [shipments] => Array
        (
        )

    [updated_at] => 2017-12-31T06:50:06Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 208978103
    [is_prime] => 
    [split_from_order_id] => 208978103
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for danorthman@yahoo.com) was previously inserted to the DB.
Existing customer ID: 10035

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(3) "Dan"
  ["customer_last_name"]=>
  string(7) "Orthman"
  ["customer_email"]=>
  string(20) "danorthman@yahoo.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  NULL
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(20) "11000 hwy 10 lot 124"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(4) "rice"
    ["address_state"]=>
    string(2) "MN"
    ["address_zip"]=>
    string(5) "56367"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10035"
  ["ordered_time"]=>
  string(19) "2017-12-30 15:56:26"
  ["se_order_id"]=>
  int(209522663)
  ["se_order_status"]=>
  string(18) "ready_for_shipment"
  ["store_ordered_from"]=>
  string(5) "Ecwid"
  ["store_order_id"]=>
  string(4) "3945"
  ["order_weight_ounces"]=>
  string(5) "990.0"
  ["store_order_status"]=>
  string(17) "awaiting_shipment"
  ["se_api_response"]=>
  string(3770) "{"id":209522663,"external_order_identifier":"3945","ext_order_reference_id":"3945","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-30T15:56:26Z","order_status":"ready_for_shipment","parent_order_id":208978103,"source_order_ids":null,"total_including_tax":"203.50","total_excluding_tax":"0.00","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"0.00","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":null,"billing_first_name":"Dan","billing_last_name":"Orthman","billing_address":"11000 hwy 10 lot 124","billing_address2":null,"billing_city":"rice","billing_state":"MN","billing_country":"US","billing_postal_code":"56367","billing_phone_number":"3203933027","billing_email":"danorthman@yahoo.com","buyer_email":"danorthman@yahoo.com","recipients":[{"company":"","first_name":"Dan","last_name":"Orthman","address":"11000 hwy 10 lot 124","address2":"","address3":null,"city":"rice","residential":true,"state":"MN","province":null,"country":"United States","postal_code":"56367","postal_code_plus_4":"9319","phone_number":"3203933027","email":"danorthman@yahoo.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":0,"shipping_method":"Free Shipping - No PO Boxes or APO","items_shipped":0,"ext_shipping_detail_id":null,"line_items":[{"item_name":"9 x 20# Lumber Jack Bags (180#) BBQ Pellets","sku":"18020variety","bin_picking_number":"","bundled_product":null,"weight_in_ounces":"2910.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"0.00","unit_price":"0.00","ext_line_item_id":null,"ext_product_id":null,"product_options":null,"uuid":"8fca7838-8afb-4d6a-b43d-a61a9d290a90","order_source_id":219291033,"gift_message":""}],"original_order":{"id":209522663,"customer_id":33773,"store_id":70642,"order_detail_id":211694653,"workflow_state":"ready_for_shipment","shipment_id":null,"destination_id":null,"split_from_order_id":208978103,"total_weight_in_ounces":"990.0","total_quantity":1,"is_international":false,"usps_shipping_zone":2,"created_at":"2017-12-31T06:49:37Z","updated_at":"2017-12-31T06:50:06Z","ext_shipment_confirmation_id":null,"store_order_status":"awaiting_shipment","drop_ship_tracking_number":null,"category_id":136971,"internal_notes":"","line_item_name":"9 x 20# lumber jack bags (180#) bbq pellets","line_item_sku":"18020variety","address_kind":"R","recipient_last_name":"orthman","recipient_requested_service":"free shipping - no po boxes or apo","gift":false,"prime_order_id":208978103,"state":"MN","owner_id":37098,"denormalized_ordered_at":"2017-12-30T15:56:26Z","grab_bag":[],"line_item_bin_picking_number":"","denormalized_ext_order_id":"3945","packing_slip_generated":null,"denormalized_ext_order_reference_id":"3945","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"276833075f862f916ca417ff8ccb9564","shipments":[],"updated_at":"2017-12-31T06:50:06Z","internal_notes":"","meta_data":null,"prime_order_id":208978103,"is_prime":null,"split_from_order_id":208978103,"tags":[]}"
  ["shipment_data"]=>
  array(0) {
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7436

No shipment elements found in API response. Continuing

*** Order info:
Array
(
    [id] => 209329173
    [external_order_identifier] => 626
    [ext_order_reference_id] => 263172597370-2146670442016
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-30T23:27:05Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 17.51
    [total_excluding_tax] => 15.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 17.51
    [subtotal_excluding_tax] => 15.99
    [subtotal_tax] => 1.52
    [total_tax] => 1.52
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => 
    [billing_first_name] => Doug
    [billing_last_name] => Remington
    [billing_address] => 804 N Briarcliff Cir
    [billing_address2] => 
    [billing_city] => Maryville
    [billing_state] => TN
    [billing_country] => US
    [billing_postal_code] => 37803-6404
    [billing_phone_number] => 850 420 8187
    [billing_email] => uberdriver55@hotmail.com
    [buyer_email] => uberdriver55@hotmail.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Doug
                    [last_name] => Remington
                    [address] => 804 N Briarcliff Cir
                    [address2] => 
                    [address3] => 
                    [city] => Maryville
                    [residential] => 1
                    [state] => TN
                    [province] => 
                    [country] => United States
                    [postal_code] => 37803
                    [postal_code_plus_4] => 6404
                    [phone_number] => 850 420 8187
                    [email] => uberdriver55@hotmail.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FedExHomeDelivery
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack 100% Hickory BBQ Grilling Pellets[10 lbs.] (New)
                                    [sku] => 10100hickory
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 160.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 15.99
                                    [unit_price] => 15.99
                                    [ext_line_item_id] => 263172597370
                                    [ext_product_id] => 263172597370
                                    [product_options] => 
                                    [uuid] => 62c93b9a-c3e1-4631-af5b-66b3b43fb9ab
                                    [order_source_id] => 219062213
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 209329173
                            [customer_id] => 33773
                            [store_id] => 70645
                            [order_detail_id] => 211491773
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 160.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-30T23:27:21Z
                            [updated_at] => 2018-01-01T07:35:11Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_shipment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack 100% hickory bbq grilling pellets[10 lbs.] (new)
                            [line_item_sku] => 10100hickory
                            [address_kind] => R
                            [recipient_last_name] => remington
                            [recipient_requested_service] => fedexhomedelivery
                            [gift] => 
                            [prime_order_id] => 209329173
                            [state] => TN
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-30T23:27:05Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 626
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 263172597370-2146670442016
                            [denormalized_alternate_order_id] => 626
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => c7abd3d962624149b18bc3415cae937a
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 226043243
                    [tracking_number] => 9405510298370319231619
                    [carrier_key] => USPS
                    [carrier_service_key] => Priority
                    [shipment_cost] => 1095
                    [ship_date] => 2018-01-01
                )

        )

    [updated_at] => 2018-01-01T07:35:11Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 209329173
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsd
Customer not found in the database.  Attempting to add now
New customer ID: 10044

parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10044"
  ["ordered_time"]=>
  string(19) "2017-12-30 23:27:05"
  ["se_order_id"]=>
  int(209329173)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(4) "eBay"
  ["store_order_id"]=>
  string(3) "626"
  ["order_weight_ounces"]=>
  string(5) "160.0"
  ["store_order_status"]=>
  string(17) "awaiting_shipment"
  ["se_api_response"]=>
  string(4007) "{"id":209329173,"external_order_identifier":"626","ext_order_reference_id":"263172597370-2146670442016","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-30T23:27:05Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"17.51","total_excluding_tax":"15.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"17.51","subtotal_excluding_tax":"15.99","subtotal_tax":"1.52","total_tax":"1.52","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":null,"billing_first_name":"Doug","billing_last_name":"Remington","billing_address":"804 N Briarcliff Cir","billing_address2":"","billing_city":"Maryville","billing_state":"TN","billing_country":"US","billing_postal_code":"37803-6404","billing_phone_number":"850 420 8187","billing_email":"uberdriver55@hotmail.com","buyer_email":"uberdriver55@hotmail.com","recipients":[{"company":null,"first_name":"Doug","last_name":"Remington","address":"804 N Briarcliff Cir","address2":null,"address3":null,"city":"Maryville","residential":true,"state":"TN","province":null,"country":"United States","postal_code":"37803","postal_code_plus_4":"6404","phone_number":"850 420 8187","email":"uberdriver55@hotmail.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FedExHomeDelivery","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack 100% Hickory BBQ Grilling Pellets[10 lbs.] (New)","sku":"10100hickory","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"160.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"15.99","unit_price":"15.99","ext_line_item_id":"263172597370","ext_product_id":"263172597370","product_options":null,"uuid":"62c93b9a-c3e1-4631-af5b-66b3b43fb9ab","order_source_id":219062213,"gift_message":null}],"original_order":{"id":209329173,"customer_id":33773,"store_id":70645,"order_detail_id":211491773,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"160.0","total_quantity":1,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-30T23:27:21Z","updated_at":"2018-01-01T07:35:11Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_shipment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack 100% hickory bbq grilling pellets[10 lbs.] (new)","line_item_sku":"10100hickory","address_kind":"R","recipient_last_name":"remington","recipient_requested_service":"fedexhomedelivery","gift":null,"prime_order_id":209329173,"state":"TN","owner_id":37098,"denormalized_ordered_at":"2017-12-30T23:27:05Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"626","packing_slip_generated":null,"denormalized_ext_order_reference_id":"263172597370-2146670442016","denormalized_alternate_order_id":"626","denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"c7abd3d962624149b18bc3415cae937a","shipments":[{"id":226043243,"tracking_number":"9405510298370319231619","carrier_key":"USPS","carrier_service_key":"Priority","shipment_cost":1095,"ship_date":"2018-01-01"}],"updated_at":"2018-01-01T07:35:11Z","internal_notes":"","meta_data":null,"prime_order_id":209329173,"is_prime":null,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(226043243)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(5) "160.0"
      ["carrier_service_key"]=>
      string(8) "Priority"
      ["shipment_cost"]=>
      int(1095)
      ["ship_date"]=>
      string(10) "2018-01-01"
      ["tracking_number"]=>
      string(22) "9405510298370319231619"
    }
  }
}


sql:     INSERT INTO
        `bbqpo_se_orders`
    (
        `customer_id`,
        `ordered_time`,
        `se_order_id`,
        `se_order_status`,
        `store_ordered_from`,
        `store_order_id`,
        `store_order_status`,
        `order_weight_ounces`,
        `se_api_response`,
        `last_updated`
    )
        VALUES 
    (
        '10044',
        '2017-12-30 23:27:05',
        '209329173',
        'shipped',
        'eBay',
        '626',
        'awaiting_shipment',
        '160.0',
        '{\"id\":209329173,\"external_order_identifier\":\"626\",\"ext_order_reference_id\":\"263172597370-2146670442016\",\"owner_id\":37098,\"sales_channel\":null,\"fulfillment_channel\":null,\"ordered_at\":\"2017-12-30T23:27:05Z\",\"order_status\":\"shipped\",\"parent_order_id\":null,\"source_order_ids\":null,\"total_including_tax\":\"17.51\",\"total_excluding_tax\":\"15.99\",\"discount_amount\":\"0.00\",\"coupon_discount\":\"0.00\",\"subtotal_including_tax\":\"17.51\",\"subtotal_excluding_tax\":\"15.99\",\"subtotal_tax\":\"1.52\",\"total_tax\":\"1.52\",\"base_shipping_cost\":\"0.00\",\"shipping_cost_including_tax\":\"0.00\",\"shipping_cost_excluding_tax\":\"0.00\",\"shipping_cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"base_wrapping_cost\":\"0.00\",\"wrapping_cost_excluding_tax\":\"0.00\",\"wrapping_cost_including_tax\":\"0.00\",\"wrapping_cost_tax\":\"0.00\",\"billing_company\":null,\"billing_first_name\":\"Doug\",\"billing_last_name\":\"Remington\",\"billing_address\":\"804 N Briarcliff Cir\",\"billing_address2\":\"\",\"billing_city\":\"Maryville\",\"billing_state\":\"TN\",\"billing_country\":\"US\",\"billing_postal_code\":\"37803-6404\",\"billing_phone_number\":\"850 420 8187\",\"billing_email\":\"uberdriver55@hotmail.com\",\"buyer_email\":\"uberdriver55@hotmail.com\",\"recipients\":[{\"company\":null,\"first_name\":\"Doug\",\"last_name\":\"Remington\",\"address\":\"804 N Briarcliff Cir\",\"address2\":null,\"address3\":null,\"city\":\"Maryville\",\"residential\":true,\"state\":\"TN\",\"province\":null,\"country\":\"United States\",\"postal_code\":\"37803\",\"postal_code_plus_4\":\"6404\",\"phone_number\":\"850 420 8187\",\"email\":\"uberdriver55@hotmail.com\",\"base_cost\":\"0.00\",\"cost_excluding_tax\":\"0.00\",\"cost_including_tax\":\"0.00\",\"cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"shipping_zone_id\":null,\"shipping_zone_name\":null,\"items_total\":null,\"shipping_method\":\"FedExHomeDelivery\",\"items_shipped\":null,\"ext_shipping_detail_id\":null,\"line_items\":[{\"item_name\":\"Lumber Jack 100% Hickory BBQ Grilling Pellets[10 lbs.] (New)\",\"sku\":\"10100hickory\",\"bin_picking_number\":null,\"bundled_product\":null,\"weight_in_ounces\":\"160.0\",\"quantity\":1,\"total_excluding_tax\":\"0.00\",\"price_excluding_tax\":\"15.99\",\"unit_price\":\"15.99\",\"ext_line_item_id\":\"263172597370\",\"ext_product_id\":\"263172597370\",\"product_options\":null,\"uuid\":\"62c93b9a-c3e1-4631-af5b-66b3b43fb9ab\",\"order_source_id\":219062213,\"gift_message\":null}],\"original_order\":{\"id\":209329173,\"customer_id\":33773,\"store_id\":70645,\"order_detail_id\":211491773,\"workflow_state\":\"shipped\",\"shipment_id\":null,\"destination_id\":null,\"split_from_order_id\":null,\"total_weight_in_ounces\":\"160.0\",\"total_quantity\":1,\"is_international\":false,\"usps_shipping_zone\":5,\"created_at\":\"2017-12-30T23:27:21Z\",\"updated_at\":\"2018-01-01T07:35:11Z\",\"ext_shipment_confirmation_id\":1,\"store_order_status\":\"awaiting_shipment\",\"drop_ship_tracking_number\":null,\"category_id\":136973,\"internal_notes\":\"\",\"line_item_name\":\"lumber jack 100% hickory bbq grilling pellets[10 lbs.] (new)\",\"line_item_sku\":\"10100hickory\",\"address_kind\":\"R\",\"recipient_last_name\":\"remington\",\"recipient_requested_service\":\"fedexhomedelivery\",\"gift\":null,\"prime_order_id\":209329173,\"state\":\"TN\",\"owner_id\":37098,\"denormalized_ordered_at\":\"2017-12-30T23:27:05Z\",\"grab_bag\":[],\"line_item_bin_picking_number\":null,\"denormalized_ext_order_id\":\"626\",\"packing_slip_generated\":null,\"denormalized_ext_order_reference_id\":\"263172597370-2146670442016\",\"denormalized_alternate_order_id\":\"626\",\"denormalized_sales_channel\":null,\"custom_1\":null,\"custom_2\":null,\"custom_3\":null,\"hidden\":null,\"allocated\":null}}],\"store_api_key\":\"c7abd3d962624149b18bc3415cae937a\",\"shipments\":[{\"id\":226043243,\"tracking_number\":\"9405510298370319231619\",\"carrier_key\":\"USPS\",\"carrier_service_key\":\"Priority\",\"shipment_cost\":1095,\"ship_date\":\"2018-01-01\"}],\"updated_at\":\"2018-01-01T07:35:11Z\",\"internal_notes\":\"\",\"meta_data\":null,\"prime_order_id\":209329173,\"is_prime\":null,\"split_from_order_id\":null,\"tags\":[]}',
        CURRENT_TIMESTAMP
    )
        

Successfully added order to DB. Order ID (our DB's order ID) #7445

existingShippingEasySHipmentsDBRows:
array(0) {
}


shipmentDBRows:
array(0) {
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(226043243)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(5) "160.0"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    int(1095)
    ["ship_date"]=>
    string(10) "2018-01-01"
    ["tracking_number"]=>
    string(22) "9405510298370319231619"
  }
}

Adding shipment info:
array(7) {
  ["se_shipment_id"]=>
  int(226043243)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(5) "160.0"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  int(1095)
  ["ship_date"]=>
  string(10) "2018-01-01"
  ["tracking_number"]=>
  string(22) "9405510298370319231619"
}



sql:     
        INSERT INTO
            `bbqpo_se_shipments`
        (
            order_id,
            se_shipment_id,
            carrier_key,
            carrier_service_key,
            shipment_cost,
            ship_date,
            shipment_weight_ounces,
            tracking_number
        )
            VALUES
        (
            '7445',
            226043243,
            'USPS',
            'Priority',
            1095,
            '2018-01-01',
            '160.0',
            '9405510298370319231619'
        )
        ON DUPLICATE KEY UPDATE
        
            se_shipment_id = 226043243,
            carrier_key = 'USPS',
            carrier_service_key = 'Priority',
            shipment_cost = 1095,
            ship_date = '2018-01-01',
            tracking_number = '9405510298370319231619',
            shipment_weight_ounces = '160.0'
        

insert result:
string(4) "7092"



*** Order info:
Array
(
    [id] => 209762303
    [external_order_identifier] => 1581187897798
    [ext_order_reference_id] => 1581187897798
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-31T16:43:30Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 15.99
    [total_excluding_tax] => 15.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 15.99
    [subtotal_excluding_tax] => 15.99
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => 
    [billing_first_name] => 
    [billing_last_name] => 
    [billing_address] => 
    [billing_address2] => 
    [billing_city] => 
    [billing_state] => 
    [billing_country] => 
    [billing_postal_code] => 
    [billing_phone_number] => 
    [billing_email] => B8F34383EDDE4F5D92929A80D3673289@relay.walmart.com
    [buyer_email] => B8F34383EDDE4F5D92929A80D3673289@relay.walmart.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Joni
                    [last_name] => Lemoine
                    [address] => 4520 Viola Street
                    [address2] => 
                    [address3] => 
                    [city] => Fordoche
                    [residential] => 1
                    [state] => LA
                    [province] => 
                    [country] => United States
                    [postal_code] => 70732
                    [postal_code_plus_4] => 
                    [phone_number] => 2253877813
                    [email] => B8F34383EDDE4F5D92929A80D3673289@relay.walmart.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => Value
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack Oak-Hickory-Cherry - Supreme Blend BBQ Grilling Pellets
                                    [sku] => 10ohc
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 160.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 15.99
                                    [price_excluding_tax] => 15.99
                                    [unit_price] => 15.99
                                    [ext_line_item_id] => 1
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 9eac6c4a-ac1b-40fc-8761-4773b3157f3e
                                    [order_source_id] => 219604903
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 209762303
                            [customer_id] => 33773
                            [store_id] => 537580
                            [order_detail_id] => 211940513
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 160.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-31T17:31:11Z
                            [updated_at] => 2018-01-01T07:35:27Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_shipment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack oak-hickory-cherry - supreme blend bbq grilling pellets
                            [line_item_sku] => 10ohc
                            [address_kind] => F
                            [recipient_last_name] => lemoine
                            [recipient_requested_service] => value
                            [gift] => 
                            [prime_order_id] => 209762303
                            [state] => LA
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-31T16:43:30Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 1581187897798
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 1581187897798
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 8d8626ca858f2fdea525637cd6a0816f
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 226410343
                    [tracking_number] => 9405510298370319231626
                    [carrier_key] => USPS
                    [carrier_service_key] => Priority
                    [shipment_cost] => 1095
                    [ship_date] => 2018-01-01
                )

        )

    [updated_at] => 2018-01-01T07:35:27Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 209762303
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for B8F34383EDDE4F5D92929A80D3673289@relay.walmart.com) was previously inserted to the DB.
Existing customer ID: 10038

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(4) "Joni"
  ["customer_last_name"]=>
  string(7) "Lemoine"
  ["customer_email"]=>
  string(50) "B8F34383EDDE4F5D92929A80D3673289@relay.walmart.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  NULL
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    NULL
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    NULL
    ["address_state"]=>
    NULL
    ["address_zip"]=>
    NULL
    ["address_country"]=>
    NULL
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10038"
  ["ordered_time"]=>
  string(19) "2017-12-31 16:43:30"
  ["se_order_id"]=>
  int(209762303)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(7) "WalMart"
  ["store_order_id"]=>
  string(13) "1581187897798"
  ["order_weight_ounces"]=>
  string(5) "160.0"
  ["store_order_status"]=>
  string(17) "awaiting_shipment"
  ["se_api_response"]=>
  string(3973) "{"id":209762303,"external_order_identifier":"1581187897798","ext_order_reference_id":"1581187897798","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-31T16:43:30Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"15.99","total_excluding_tax":"15.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"15.99","subtotal_excluding_tax":"15.99","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":null,"billing_first_name":null,"billing_last_name":null,"billing_address":null,"billing_address2":null,"billing_city":null,"billing_state":null,"billing_country":null,"billing_postal_code":null,"billing_phone_number":null,"billing_email":"B8F34383EDDE4F5D92929A80D3673289@relay.walmart.com","buyer_email":"B8F34383EDDE4F5D92929A80D3673289@relay.walmart.com","recipients":[{"company":null,"first_name":"Joni","last_name":"Lemoine","address":"4520 Viola Street","address2":null,"address3":null,"city":"Fordoche","residential":true,"state":"LA","province":null,"country":"United States","postal_code":"70732","postal_code_plus_4":null,"phone_number":"2253877813","email":"B8F34383EDDE4F5D92929A80D3673289@relay.walmart.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"Value","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack Oak-Hickory-Cherry - Supreme Blend BBQ Grilling Pellets","sku":"10ohc","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"160.0","quantity":1,"total_excluding_tax":"15.99","price_excluding_tax":"15.99","unit_price":"15.99","ext_line_item_id":"1","ext_product_id":null,"product_options":null,"uuid":"9eac6c4a-ac1b-40fc-8761-4773b3157f3e","order_source_id":219604903,"gift_message":null}],"original_order":{"id":209762303,"customer_id":33773,"store_id":537580,"order_detail_id":211940513,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"160.0","total_quantity":1,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-31T17:31:11Z","updated_at":"2018-01-01T07:35:27Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_shipment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack oak-hickory-cherry - supreme blend bbq grilling pellets","line_item_sku":"10ohc","address_kind":"F","recipient_last_name":"lemoine","recipient_requested_service":"value","gift":null,"prime_order_id":209762303,"state":"LA","owner_id":37098,"denormalized_ordered_at":"2017-12-31T16:43:30Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"1581187897798","packing_slip_generated":null,"denormalized_ext_order_reference_id":"1581187897798","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"8d8626ca858f2fdea525637cd6a0816f","shipments":[{"id":226410343,"tracking_number":"9405510298370319231626","carrier_key":"USPS","carrier_service_key":"Priority","shipment_cost":1095,"ship_date":"2018-01-01"}],"updated_at":"2018-01-01T07:35:27Z","internal_notes":"","meta_data":null,"prime_order_id":209762303,"is_prime":null,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(226410343)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(5) "160.0"
      ["carrier_service_key"]=>
      string(8) "Priority"
      ["shipment_cost"]=>
      int(1095)
      ["ship_date"]=>
      string(10) "2018-01-01"
      ["tracking_number"]=>
      string(22) "9405510298370319231626"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7439

existingShippingEasySHipmentsDBRows:
array(0) {
}


shipmentDBRows:
array(0) {
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(226410343)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(5) "160.0"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    int(1095)
    ["ship_date"]=>
    string(10) "2018-01-01"
    ["tracking_number"]=>
    string(22) "9405510298370319231626"
  }
}

Adding shipment info:
array(7) {
  ["se_shipment_id"]=>
  int(226410343)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(5) "160.0"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  int(1095)
  ["ship_date"]=>
  string(10) "2018-01-01"
  ["tracking_number"]=>
  string(22) "9405510298370319231626"
}



sql:     
        INSERT INTO
            `bbqpo_se_shipments`
        (
            order_id,
            se_shipment_id,
            carrier_key,
            carrier_service_key,
            shipment_cost,
            ship_date,
            shipment_weight_ounces,
            tracking_number
        )
            VALUES
        (
            '7439',
            226410343,
            'USPS',
            'Priority',
            1095,
            '2018-01-01',
            '160.0',
            '9405510298370319231626'
        )
        ON DUPLICATE KEY UPDATE
        
            se_shipment_id = 226410343,
            carrier_key = 'USPS',
            carrier_service_key = 'Priority',
            shipment_cost = 1095,
            ship_date = '2018-01-01',
            tracking_number = '9405510298370319231626',
            shipment_weight_ounces = '160.0'
        

insert result:
string(4) "7093"



*** Order info:
Array
(
    [id] => 209928953
    [external_order_identifier] => 3950
    [ext_order_reference_id] => 3950
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-31T22:02:01Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 36.00
    [total_excluding_tax] => 0.00
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 0.00
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => 
    [billing_first_name] => Adison
    [billing_last_name] => Neal
    [billing_address] => 9404 Inverness Bay Road
9404 Inverness Bay Road
    [billing_address2] => 
    [billing_city] => Charlotte
    [billing_state] => NC
    [billing_country] => US
    [billing_postal_code] => 28278
    [billing_phone_number] => +17046063780
    [billing_email] => adison.neal@gmail.com
    [buyer_email] => adison.neal@gmail.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Adison
                    [last_name] => Neal
                    [address] => 9404 Inverness Bay Road
                    [address2] => 
                    [address3] => 
                    [city] => Charlotte
                    [residential] => 1
                    [state] => NC
                    [province] => 
                    [country] => United States
                    [postal_code] => 28278
                    [postal_code_plus_4] => 6723
                    [phone_number] => +17046063780
                    [email] => adison.neal@gmail.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 0
                    [shipping_method] => Free Shipping - No PO Boxes or APO
                    [items_shipped] => 0
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack 1 Pound Variety Pack (7 varieties) - Free Shipping
                                    [sku] => 1poundvariety
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 112.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 36.00
                                    [price_excluding_tax] => 0.00
                                    [unit_price] => 36.00
                                    [ext_line_item_id] => 
                                    [ext_product_id] => 69201136
                                    [product_options] => Array
                                        (
                                            [Add Smokin Wedgie] => Array
                                                (
                                                )

                                            [Add Optional 8th Flavor Sample] => Italian Garlic Spice
                                            [Add Optional 9th Flavor Sample] => Paris Bordeaux (Rosemary)
                                            [Add Gourmet Duck Fat Spray Cans Here] => Array
                                                (
                                                )

                                            [Add Smokin Wedgie Leg Kit for Flat Bottom Smokers] => Array
                                                (
                                                )

                                        )

                                    [uuid] => f6c63df7-7c62-490c-85c9-0aa9b1ec6e2a
                                    [order_source_id] => 219743653
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 209928953
                            [customer_id] => 33773
                            [store_id] => 70642
                            [order_detail_id] => 212111873
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 112.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-31T21:31:25Z
                            [updated_at] => 2018-01-01T07:35:52Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_shipment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack 1 pound variety pack (7 varieties) - free shipping
                            [line_item_sku] => 1poundvariety
                            [address_kind] => R
                            [recipient_last_name] => neal
                            [recipient_requested_service] => free shipping - no po boxes or apo
                            [gift] => 
                            [prime_order_id] => 209928953
                            [state] => NC
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-31T22:02:01Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 3950
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 3950
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 276833075f862f916ca417ff8ccb9564
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 226410333
                    [tracking_number] => 9405510298370319231640
                    [carrier_key] => USPS
                    [carrier_service_key] => Priority
                    [shipment_cost] => 815
                    [ship_date] => 2018-01-01
                )

        )

    [updated_at] => 2018-01-01T07:35:52Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 209928953
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for adison.neal@gmail.com) was previously inserted to the DB.
Existing customer ID: 10040

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(6) "Adison"
  ["customer_last_name"]=>
  string(4) "Neal"
  ["customer_email"]=>
  string(21) "adison.neal@gmail.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  NULL
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(47) "9404 Inverness Bay Road
9404 Inverness Bay Road"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(9) "Charlotte"
    ["address_state"]=>
    string(2) "NC"
    ["address_zip"]=>
    string(5) "28278"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10040"
  ["ordered_time"]=>
  string(19) "2017-12-31 22:02:01"
  ["se_order_id"]=>
  int(209928953)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(5) "Ecwid"
  ["store_order_id"]=>
  string(4) "3950"
  ["order_weight_ounces"]=>
  string(5) "112.0"
  ["store_order_status"]=>
  string(17) "awaiting_shipment"
  ["se_api_response"]=>
  string(4221) "{"id":209928953,"external_order_identifier":"3950","ext_order_reference_id":"3950","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-31T22:02:01Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"36.00","total_excluding_tax":"0.00","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"0.00","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":null,"billing_first_name":"Adison","billing_last_name":"Neal","billing_address":"9404 Inverness Bay Road\n9404 Inverness Bay Road","billing_address2":null,"billing_city":"Charlotte","billing_state":"NC","billing_country":"US","billing_postal_code":"28278","billing_phone_number":"+17046063780","billing_email":"adison.neal@gmail.com","buyer_email":"adison.neal@gmail.com","recipients":[{"company":"","first_name":"Adison","last_name":"Neal","address":"9404 Inverness Bay Road","address2":null,"address3":null,"city":"Charlotte","residential":true,"state":"NC","province":null,"country":"United States","postal_code":"28278","postal_code_plus_4":"6723","phone_number":"+17046063780","email":"adison.neal@gmail.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":0,"shipping_method":"Free Shipping - No PO Boxes or APO","items_shipped":0,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack 1 Pound Variety Pack (7 varieties) - Free Shipping","sku":"1poundvariety","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"112.0","quantity":1,"total_excluding_tax":"36.00","price_excluding_tax":"0.00","unit_price":"36.00","ext_line_item_id":null,"ext_product_id":"69201136","product_options":{"Add Smokin Wedgie":[],"Add Optional 8th Flavor Sample":"Italian Garlic Spice","Add Optional 9th Flavor Sample":"Paris Bordeaux (Rosemary)","Add Gourmet Duck Fat Spray Cans Here":[],"Add Smokin Wedgie Leg Kit for Flat Bottom Smokers":[]},"uuid":"f6c63df7-7c62-490c-85c9-0aa9b1ec6e2a","order_source_id":219743653,"gift_message":null}],"original_order":{"id":209928953,"customer_id":33773,"store_id":70642,"order_detail_id":212111873,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"112.0","total_quantity":1,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-31T21:31:25Z","updated_at":"2018-01-01T07:35:52Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_shipment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack 1 pound variety pack (7 varieties) - free shipping","line_item_sku":"1poundvariety","address_kind":"R","recipient_last_name":"neal","recipient_requested_service":"free shipping - no po boxes or apo","gift":false,"prime_order_id":209928953,"state":"NC","owner_id":37098,"denormalized_ordered_at":"2017-12-31T22:02:01Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"3950","packing_slip_generated":null,"denormalized_ext_order_reference_id":"3950","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"276833075f862f916ca417ff8ccb9564","shipments":[{"id":226410333,"tracking_number":"9405510298370319231640","carrier_key":"USPS","carrier_service_key":"Priority","shipment_cost":815,"ship_date":"2018-01-01"}],"updated_at":"2018-01-01T07:35:52Z","internal_notes":"","meta_data":null,"prime_order_id":209928953,"is_prime":null,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(226410333)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(5) "112.0"
      ["carrier_service_key"]=>
      string(8) "Priority"
      ["shipment_cost"]=>
      int(815)
      ["ship_date"]=>
      string(10) "2018-01-01"
      ["tracking_number"]=>
      string(22) "9405510298370319231640"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7441

existingShippingEasySHipmentsDBRows:
array(0) {
}


shipmentDBRows:
array(0) {
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(226410333)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(5) "112.0"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    int(815)
    ["ship_date"]=>
    string(10) "2018-01-01"
    ["tracking_number"]=>
    string(22) "9405510298370319231640"
  }
}

Adding shipment info:
array(7) {
  ["se_shipment_id"]=>
  int(226410333)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(5) "112.0"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  int(815)
  ["ship_date"]=>
  string(10) "2018-01-01"
  ["tracking_number"]=>
  string(22) "9405510298370319231640"
}



sql:     
        INSERT INTO
            `bbqpo_se_shipments`
        (
            order_id,
            se_shipment_id,
            carrier_key,
            carrier_service_key,
            shipment_cost,
            ship_date,
            shipment_weight_ounces,
            tracking_number
        )
            VALUES
        (
            '7441',
            226410333,
            'USPS',
            'Priority',
            815,
            '2018-01-01',
            '112.0',
            '9405510298370319231640'
        )
        ON DUPLICATE KEY UPDATE
        
            se_shipment_id = 226410333,
            carrier_key = 'USPS',
            carrier_service_key = 'Priority',
            shipment_cost = 815,
            ship_date = '2018-01-01',
            tracking_number = '9405510298370319231640',
            shipment_weight_ounces = '112.0'
        

insert result:
string(4) "7094"



*** Order info:
Array
(
    [id] => 207995433
    [external_order_identifier] => 113-8642394-6203411
    [ext_order_reference_id] => 113-8642394-6203411
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-29T12:47:23Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 19.82
    [total_excluding_tax] => 18.40
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 19.82
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 1.42
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Joyce Burt
    [billing_first_name] => Joyce
    [billing_last_name] => Burt
    [billing_address] => 7003 165th ST NE
    [billing_address2] => 
    [billing_city] => Arlington
    [billing_state] => WA
    [billing_country] => US
    [billing_postal_code] => 98223
    [billing_phone_number] => 360-435-3902
    [billing_email] => hwyqxg5hq2l01yn@marketplace.amazon.com
    [buyer_email] => hwyqxg5hq2l01yn@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Joyce
                    [last_name] => Burt
                    [address] => 7003 165th ST NE
                    [address2] => 
                    [address3] => 
                    [city] => Arlington
                    [residential] => 1
                    [state] => WA
                    [province] => 
                    [country] => United States
                    [postal_code] => 98223
                    [postal_code_plus_4] => 8925
                    [phone_number] => 360-435-3902
                    [email] => hwyqxg5hq2l01yn@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack 100-Percent Hickory Wood BBQ Grilling Pellets, 20-Pound Bag (New)
                                    [sku] => 20hick100Comp
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 336.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 18.40
                                    [unit_price] => 18.40
                                    [ext_line_item_id] => 39994588387954
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 5e589e27-0fd2-4014-851c-fff6c3f0cf22
                                    [order_source_id] => 217607343
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 207995433
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 210119283
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 336.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 7
                            [created_at] => 2017-12-29T14:06:35Z
                            [updated_at] => 2018-01-01T07:40:45Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack 100-percent hickory wood bbq grilling pellets, 20-pound bag (new)
                            [line_item_sku] => 20hick100comp
                            [address_kind] => R
                            [recipient_last_name] => burt
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 207995433
                            [state] => WA
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-29T12:47:23Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 113-8642394-6203411
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 113-8642394-6203411
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 226043293
                    [tracking_number] => 9405510298370319231671
                    [carrier_key] => USPS
                    [carrier_service_key] => Priority
                    [shipment_cost] => 1655
                    [ship_date] => 2018-01-01
                )

        )

    [updated_at] => 2018-01-01T07:40:45Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 207995433
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsd
Customer not found in the database.  Attempting to add now
New customer ID: 10045

parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10045"
  ["ordered_time"]=>
  string(19) "2017-12-29 12:47:23"
  ["se_order_id"]=>
  int(207995433)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "113-8642394-6203411"
  ["order_weight_ounces"]=>
  string(5) "336.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4069) "{"id":207995433,"external_order_identifier":"113-8642394-6203411","ext_order_reference_id":"113-8642394-6203411","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-29T12:47:23Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"19.82","total_excluding_tax":"18.40","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"19.82","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"1.42","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Joyce Burt","billing_first_name":"Joyce","billing_last_name":"Burt","billing_address":"7003 165th ST NE","billing_address2":null,"billing_city":"Arlington","billing_state":"WA","billing_country":"US","billing_postal_code":"98223","billing_phone_number":"360-435-3902","billing_email":"hwyqxg5hq2l01yn@marketplace.amazon.com","buyer_email":"hwyqxg5hq2l01yn@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Joyce","last_name":"Burt","address":"7003 165th ST NE","address2":null,"address3":null,"city":"Arlington","residential":true,"state":"WA","province":null,"country":"United States","postal_code":"98223","postal_code_plus_4":"8925","phone_number":"360-435-3902","email":"hwyqxg5hq2l01yn@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack 100-Percent Hickory Wood BBQ Grilling Pellets, 20-Pound Bag (New)","sku":"20hick100Comp","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"336.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"18.40","unit_price":"18.40","ext_line_item_id":"39994588387954","ext_product_id":null,"product_options":null,"uuid":"5e589e27-0fd2-4014-851c-fff6c3f0cf22","order_source_id":217607343,"gift_message":null}],"original_order":{"id":207995433,"customer_id":33773,"store_id":70647,"order_detail_id":210119283,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"336.0","total_quantity":1,"is_international":false,"usps_shipping_zone":7,"created_at":"2017-12-29T14:06:35Z","updated_at":"2018-01-01T07:40:45Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack 100-percent hickory wood bbq grilling pellets, 20-pound bag (new)","line_item_sku":"20hick100comp","address_kind":"R","recipient_last_name":"burt","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":207995433,"state":"WA","owner_id":37098,"denormalized_ordered_at":"2017-12-29T12:47:23Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"113-8642394-6203411","packing_slip_generated":null,"denormalized_ext_order_reference_id":"113-8642394-6203411","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":226043293,"tracking_number":"9405510298370319231671","carrier_key":"USPS","carrier_service_key":"Priority","shipment_cost":1655,"ship_date":"2018-01-01"}],"updated_at":"2018-01-01T07:40:45Z","internal_notes":"","meta_data":null,"prime_order_id":207995433,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(226043293)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(5) "336.0"
      ["carrier_service_key"]=>
      string(8) "Priority"
      ["shipment_cost"]=>
      int(1655)
      ["ship_date"]=>
      string(10) "2018-01-01"
      ["tracking_number"]=>
      string(22) "9405510298370319231671"
    }
  }
}


sql:     INSERT INTO
        `bbqpo_se_orders`
    (
        `customer_id`,
        `ordered_time`,
        `se_order_id`,
        `se_order_status`,
        `store_ordered_from`,
        `store_order_id`,
        `store_order_status`,
        `order_weight_ounces`,
        `se_api_response`,
        `last_updated`
    )
        VALUES 
    (
        '10045',
        '2017-12-29 12:47:23',
        '207995433',
        'shipped',
        'Amazon',
        '113-8642394-6203411',
        'awaiting_fulfillment',
        '336.0',
        '{\"id\":207995433,\"external_order_identifier\":\"113-8642394-6203411\",\"ext_order_reference_id\":\"113-8642394-6203411\",\"owner_id\":37098,\"sales_channel\":null,\"fulfillment_channel\":null,\"ordered_at\":\"2017-12-29T12:47:23Z\",\"order_status\":\"shipped\",\"parent_order_id\":null,\"source_order_ids\":null,\"total_including_tax\":\"19.82\",\"total_excluding_tax\":\"18.40\",\"discount_amount\":\"0.00\",\"coupon_discount\":\"0.00\",\"subtotal_including_tax\":\"19.82\",\"subtotal_excluding_tax\":\"0.00\",\"subtotal_tax\":\"0.00\",\"total_tax\":\"1.42\",\"base_shipping_cost\":\"0.00\",\"shipping_cost_including_tax\":\"0.00\",\"shipping_cost_excluding_tax\":\"0.00\",\"shipping_cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"base_wrapping_cost\":\"0.00\",\"wrapping_cost_excluding_tax\":\"0.00\",\"wrapping_cost_including_tax\":\"0.00\",\"wrapping_cost_tax\":\"0.00\",\"billing_company\":\"Joyce Burt\",\"billing_first_name\":\"Joyce\",\"billing_last_name\":\"Burt\",\"billing_address\":\"7003 165th ST NE\",\"billing_address2\":null,\"billing_city\":\"Arlington\",\"billing_state\":\"WA\",\"billing_country\":\"US\",\"billing_postal_code\":\"98223\",\"billing_phone_number\":\"360-435-3902\",\"billing_email\":\"hwyqxg5hq2l01yn@marketplace.amazon.com\",\"buyer_email\":\"hwyqxg5hq2l01yn@marketplace.amazon.com\",\"recipients\":[{\"company\":null,\"first_name\":\"Joyce\",\"last_name\":\"Burt\",\"address\":\"7003 165th ST NE\",\"address2\":null,\"address3\":null,\"city\":\"Arlington\",\"residential\":true,\"state\":\"WA\",\"province\":null,\"country\":\"United States\",\"postal_code\":\"98223\",\"postal_code_plus_4\":\"8925\",\"phone_number\":\"360-435-3902\",\"email\":\"hwyqxg5hq2l01yn@marketplace.amazon.com\",\"base_cost\":\"0.00\",\"cost_excluding_tax\":\"0.00\",\"cost_including_tax\":\"0.00\",\"cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"shipping_zone_id\":null,\"shipping_zone_name\":null,\"items_total\":null,\"shipping_method\":\"FreeEconomy\",\"items_shipped\":null,\"ext_shipping_detail_id\":null,\"line_items\":[{\"item_name\":\"Lumber Jack 100-Percent Hickory Wood BBQ Grilling Pellets, 20-Pound Bag (New)\",\"sku\":\"20hick100Comp\",\"bin_picking_number\":null,\"bundled_product\":null,\"weight_in_ounces\":\"336.0\",\"quantity\":1,\"total_excluding_tax\":\"0.00\",\"price_excluding_tax\":\"18.40\",\"unit_price\":\"18.40\",\"ext_line_item_id\":\"39994588387954\",\"ext_product_id\":null,\"product_options\":null,\"uuid\":\"5e589e27-0fd2-4014-851c-fff6c3f0cf22\",\"order_source_id\":217607343,\"gift_message\":null}],\"original_order\":{\"id\":207995433,\"customer_id\":33773,\"store_id\":70647,\"order_detail_id\":210119283,\"workflow_state\":\"shipped\",\"shipment_id\":null,\"destination_id\":null,\"split_from_order_id\":null,\"total_weight_in_ounces\":\"336.0\",\"total_quantity\":1,\"is_international\":false,\"usps_shipping_zone\":7,\"created_at\":\"2017-12-29T14:06:35Z\",\"updated_at\":\"2018-01-01T07:40:45Z\",\"ext_shipment_confirmation_id\":1,\"store_order_status\":\"awaiting_fulfillment\",\"drop_ship_tracking_number\":null,\"category_id\":136973,\"internal_notes\":\"\",\"line_item_name\":\"lumber jack 100-percent hickory wood bbq grilling pellets, 20-pound bag (new)\",\"line_item_sku\":\"20hick100comp\",\"address_kind\":\"R\",\"recipient_last_name\":\"burt\",\"recipient_requested_service\":\"freeeconomy\",\"gift\":null,\"prime_order_id\":207995433,\"state\":\"WA\",\"owner_id\":37098,\"denormalized_ordered_at\":\"2017-12-29T12:47:23Z\",\"grab_bag\":[],\"line_item_bin_picking_number\":null,\"denormalized_ext_order_id\":\"113-8642394-6203411\",\"packing_slip_generated\":null,\"denormalized_ext_order_reference_id\":\"113-8642394-6203411\",\"denormalized_alternate_order_id\":null,\"denormalized_sales_channel\":null,\"custom_1\":null,\"custom_2\":null,\"custom_3\":null,\"hidden\":null,\"allocated\":null}}],\"store_api_key\":\"7090b516cf49ce6d62caa5db6a7a32ab\",\"shipments\":[{\"id\":226043293,\"tracking_number\":\"9405510298370319231671\",\"carrier_key\":\"USPS\",\"carrier_service_key\":\"Priority\",\"shipment_cost\":1655,\"ship_date\":\"2018-01-01\"}],\"updated_at\":\"2018-01-01T07:40:45Z\",\"internal_notes\":\"\",\"meta_data\":null,\"prime_order_id\":207995433,\"is_prime\":false,\"split_from_order_id\":null,\"tags\":[]}',
        CURRENT_TIMESTAMP
    )
        

Successfully added order to DB. Order ID (our DB's order ID) #7446

existingShippingEasySHipmentsDBRows:
array(0) {
}


shipmentDBRows:
array(0) {
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(226043293)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(5) "336.0"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    int(1655)
    ["ship_date"]=>
    string(10) "2018-01-01"
    ["tracking_number"]=>
    string(22) "9405510298370319231671"
  }
}

Adding shipment info:
array(7) {
  ["se_shipment_id"]=>
  int(226043293)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(5) "336.0"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  int(1655)
  ["ship_date"]=>
  string(10) "2018-01-01"
  ["tracking_number"]=>
  string(22) "9405510298370319231671"
}



sql:     
        INSERT INTO
            `bbqpo_se_shipments`
        (
            order_id,
            se_shipment_id,
            carrier_key,
            carrier_service_key,
            shipment_cost,
            ship_date,
            shipment_weight_ounces,
            tracking_number
        )
            VALUES
        (
            '7446',
            226043293,
            'USPS',
            'Priority',
            1655,
            '2018-01-01',
            '336.0',
            '9405510298370319231671'
        )
        ON DUPLICATE KEY UPDATE
        
            se_shipment_id = 226043293,
            carrier_key = 'USPS',
            carrier_service_key = 'Priority',
            shipment_cost = 1655,
            ship_date = '2018-01-01',
            tracking_number = '9405510298370319231671',
            shipment_weight_ounces = '336.0'
        

insert result:
string(4) "7095"



*** Order info:
Array
(
    [id] => 208543643
    [external_order_identifier] => 114-6535262-2540222
    [ext_order_reference_id] => 114-6535262-2540222
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-29T21:50:31Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 18.40
    [total_excluding_tax] => 18.40
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 18.40
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Alicia Beamer
    [billing_first_name] => Alicia
    [billing_last_name] => Beamer
    [billing_address] => 14105 CATTLE EGRET PL
    [billing_address2] => 
    [billing_city] => LAKEWOOD RANCH
    [billing_state] => FL
    [billing_country] => US
    [billing_postal_code] => 34202-8259
    [billing_phone_number] => 662-202-2757
    [billing_email] => 3kb1rphxdqnrjcv@marketplace.amazon.com
    [buyer_email] => 3kb1rphxdqnrjcv@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Alicia
                    [last_name] => Beamer
                    [address] => 14105 CATTLE EGRET PL
                    [address2] => 
                    [address3] => 
                    [city] => LAKEWOOD RANCH
                    [residential] => 1
                    [state] => FL
                    [province] => 
                    [country] => United States
                    [postal_code] => 34202
                    [postal_code_plus_4] => 8259
                    [phone_number] => 662-202-2757
                    [email] => 3kb1rphxdqnrjcv@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack 100-Percent Hickory Wood BBQ Grilling Pellets, 20-Pound Bag (New)
                                    [sku] => 20hick100Comp
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 336.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 18.40
                                    [unit_price] => 18.40
                                    [ext_line_item_id] => 60399979843546
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => d73a4710-5f0e-421e-84b2-efa731f17040
                                    [order_source_id] => 218191963
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 208543643
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 210683533
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 336.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 6
                            [created_at] => 2017-12-29T23:06:34Z
                            [updated_at] => 2018-01-01T09:40:44Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack 100-percent hickory wood bbq grilling pellets, 20-pound bag (new)
                            [line_item_sku] => 20hick100comp
                            [address_kind] => R
                            [recipient_last_name] => beamer
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 208543643
                            [state] => FL
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-29T21:50:31Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 114-6535262-2540222
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 114-6535262-2540222
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 226043283
                    [tracking_number] => 789173972852
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 934
                    [ship_date] => 2018-01-01
                )

        )

    [updated_at] => 2018-01-01T09:40:44Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 208543643
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsd
Customer not found in the database.  Attempting to add now
New customer ID: 10046

parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10046"
  ["ordered_time"]=>
  string(19) "2017-12-29 21:50:31"
  ["se_order_id"]=>
  int(208543643)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "114-6535262-2540222"
  ["order_weight_ounces"]=>
  string(5) "336.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4099) "{"id":208543643,"external_order_identifier":"114-6535262-2540222","ext_order_reference_id":"114-6535262-2540222","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-29T21:50:31Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"18.40","total_excluding_tax":"18.40","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"18.40","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Alicia Beamer","billing_first_name":"Alicia","billing_last_name":"Beamer","billing_address":"14105 CATTLE EGRET PL","billing_address2":null,"billing_city":"LAKEWOOD RANCH","billing_state":"FL","billing_country":"US","billing_postal_code":"34202-8259","billing_phone_number":"662-202-2757","billing_email":"3kb1rphxdqnrjcv@marketplace.amazon.com","buyer_email":"3kb1rphxdqnrjcv@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Alicia","last_name":"Beamer","address":"14105 CATTLE EGRET PL","address2":null,"address3":null,"city":"LAKEWOOD RANCH","residential":true,"state":"FL","province":null,"country":"United States","postal_code":"34202","postal_code_plus_4":"8259","phone_number":"662-202-2757","email":"3kb1rphxdqnrjcv@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack 100-Percent Hickory Wood BBQ Grilling Pellets, 20-Pound Bag (New)","sku":"20hick100Comp","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"336.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"18.40","unit_price":"18.40","ext_line_item_id":"60399979843546","ext_product_id":null,"product_options":null,"uuid":"d73a4710-5f0e-421e-84b2-efa731f17040","order_source_id":218191963,"gift_message":null}],"original_order":{"id":208543643,"customer_id":33773,"store_id":70647,"order_detail_id":210683533,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"336.0","total_quantity":1,"is_international":false,"usps_shipping_zone":6,"created_at":"2017-12-29T23:06:34Z","updated_at":"2018-01-01T09:40:44Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack 100-percent hickory wood bbq grilling pellets, 20-pound bag (new)","line_item_sku":"20hick100comp","address_kind":"R","recipient_last_name":"beamer","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":208543643,"state":"FL","owner_id":37098,"denormalized_ordered_at":"2017-12-29T21:50:31Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"114-6535262-2540222","packing_slip_generated":null,"denormalized_ext_order_reference_id":"114-6535262-2540222","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":226043283,"tracking_number":"789173972852","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":934,"ship_date":"2018-01-01"}],"updated_at":"2018-01-01T09:40:44Z","internal_notes":"","meta_data":null,"prime_order_id":208543643,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(226043283)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(5) "336.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(934)
      ["ship_date"]=>
      string(10) "2018-01-01"
      ["tracking_number"]=>
      string(12) "789173972852"
    }
  }
}


sql:     INSERT INTO
        `bbqpo_se_orders`
    (
        `customer_id`,
        `ordered_time`,
        `se_order_id`,
        `se_order_status`,
        `store_ordered_from`,
        `store_order_id`,
        `store_order_status`,
        `order_weight_ounces`,
        `se_api_response`,
        `last_updated`
    )
        VALUES 
    (
        '10046',
        '2017-12-29 21:50:31',
        '208543643',
        'shipped',
        'Amazon',
        '114-6535262-2540222',
        'awaiting_fulfillment',
        '336.0',
        '{\"id\":208543643,\"external_order_identifier\":\"114-6535262-2540222\",\"ext_order_reference_id\":\"114-6535262-2540222\",\"owner_id\":37098,\"sales_channel\":null,\"fulfillment_channel\":null,\"ordered_at\":\"2017-12-29T21:50:31Z\",\"order_status\":\"shipped\",\"parent_order_id\":null,\"source_order_ids\":null,\"total_including_tax\":\"18.40\",\"total_excluding_tax\":\"18.40\",\"discount_amount\":\"0.00\",\"coupon_discount\":\"0.00\",\"subtotal_including_tax\":\"18.40\",\"subtotal_excluding_tax\":\"0.00\",\"subtotal_tax\":\"0.00\",\"total_tax\":\"0.00\",\"base_shipping_cost\":\"0.00\",\"shipping_cost_including_tax\":\"0.00\",\"shipping_cost_excluding_tax\":\"0.00\",\"shipping_cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"base_wrapping_cost\":\"0.00\",\"wrapping_cost_excluding_tax\":\"0.00\",\"wrapping_cost_including_tax\":\"0.00\",\"wrapping_cost_tax\":\"0.00\",\"billing_company\":\"Alicia Beamer\",\"billing_first_name\":\"Alicia\",\"billing_last_name\":\"Beamer\",\"billing_address\":\"14105 CATTLE EGRET PL\",\"billing_address2\":null,\"billing_city\":\"LAKEWOOD RANCH\",\"billing_state\":\"FL\",\"billing_country\":\"US\",\"billing_postal_code\":\"34202-8259\",\"billing_phone_number\":\"662-202-2757\",\"billing_email\":\"3kb1rphxdqnrjcv@marketplace.amazon.com\",\"buyer_email\":\"3kb1rphxdqnrjcv@marketplace.amazon.com\",\"recipients\":[{\"company\":null,\"first_name\":\"Alicia\",\"last_name\":\"Beamer\",\"address\":\"14105 CATTLE EGRET PL\",\"address2\":null,\"address3\":null,\"city\":\"LAKEWOOD RANCH\",\"residential\":true,\"state\":\"FL\",\"province\":null,\"country\":\"United States\",\"postal_code\":\"34202\",\"postal_code_plus_4\":\"8259\",\"phone_number\":\"662-202-2757\",\"email\":\"3kb1rphxdqnrjcv@marketplace.amazon.com\",\"base_cost\":\"0.00\",\"cost_excluding_tax\":\"0.00\",\"cost_including_tax\":\"0.00\",\"cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"shipping_zone_id\":null,\"shipping_zone_name\":null,\"items_total\":null,\"shipping_method\":\"FreeEconomy\",\"items_shipped\":null,\"ext_shipping_detail_id\":null,\"line_items\":[{\"item_name\":\"Lumber Jack 100-Percent Hickory Wood BBQ Grilling Pellets, 20-Pound Bag (New)\",\"sku\":\"20hick100Comp\",\"bin_picking_number\":null,\"bundled_product\":null,\"weight_in_ounces\":\"336.0\",\"quantity\":1,\"total_excluding_tax\":\"0.00\",\"price_excluding_tax\":\"18.40\",\"unit_price\":\"18.40\",\"ext_line_item_id\":\"60399979843546\",\"ext_product_id\":null,\"product_options\":null,\"uuid\":\"d73a4710-5f0e-421e-84b2-efa731f17040\",\"order_source_id\":218191963,\"gift_message\":null}],\"original_order\":{\"id\":208543643,\"customer_id\":33773,\"store_id\":70647,\"order_detail_id\":210683533,\"workflow_state\":\"shipped\",\"shipment_id\":null,\"destination_id\":null,\"split_from_order_id\":null,\"total_weight_in_ounces\":\"336.0\",\"total_quantity\":1,\"is_international\":false,\"usps_shipping_zone\":6,\"created_at\":\"2017-12-29T23:06:34Z\",\"updated_at\":\"2018-01-01T09:40:44Z\",\"ext_shipment_confirmation_id\":1,\"store_order_status\":\"awaiting_fulfillment\",\"drop_ship_tracking_number\":null,\"category_id\":136973,\"internal_notes\":\"\",\"line_item_name\":\"lumber jack 100-percent hickory wood bbq grilling pellets, 20-pound bag (new)\",\"line_item_sku\":\"20hick100comp\",\"address_kind\":\"R\",\"recipient_last_name\":\"beamer\",\"recipient_requested_service\":\"freeeconomy\",\"gift\":null,\"prime_order_id\":208543643,\"state\":\"FL\",\"owner_id\":37098,\"denormalized_ordered_at\":\"2017-12-29T21:50:31Z\",\"grab_bag\":[],\"line_item_bin_picking_number\":null,\"denormalized_ext_order_id\":\"114-6535262-2540222\",\"packing_slip_generated\":null,\"denormalized_ext_order_reference_id\":\"114-6535262-2540222\",\"denormalized_alternate_order_id\":null,\"denormalized_sales_channel\":null,\"custom_1\":null,\"custom_2\":null,\"custom_3\":null,\"hidden\":null,\"allocated\":null}}],\"store_api_key\":\"7090b516cf49ce6d62caa5db6a7a32ab\",\"shipments\":[{\"id\":226043283,\"tracking_number\":\"789173972852\",\"carrier_key\":\"FEDEX\",\"carrier_service_key\":\"FEDEX_GROUND\",\"shipment_cost\":934,\"ship_date\":\"2018-01-01\"}],\"updated_at\":\"2018-01-01T09:40:44Z\",\"internal_notes\":\"\",\"meta_data\":null,\"prime_order_id\":208543643,\"is_prime\":false,\"split_from_order_id\":null,\"tags\":[]}',
        CURRENT_TIMESTAMP
    )
        

Successfully added order to DB. Order ID (our DB's order ID) #7447

existingShippingEasySHipmentsDBRows:
array(0) {
}


shipmentDBRows:
array(0) {
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(226043283)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(5) "336.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(934)
    ["ship_date"]=>
    string(10) "2018-01-01"
    ["tracking_number"]=>
    string(12) "789173972852"
  }
}

Adding shipment info:
array(7) {
  ["se_shipment_id"]=>
  int(226043283)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(5) "336.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(934)
  ["ship_date"]=>
  string(10) "2018-01-01"
  ["tracking_number"]=>
  string(12) "789173972852"
}



sql:     
        INSERT INTO
            `bbqpo_se_shipments`
        (
            order_id,
            se_shipment_id,
            carrier_key,
            carrier_service_key,
            shipment_cost,
            ship_date,
            shipment_weight_ounces,
            tracking_number
        )
            VALUES
        (
            '7447',
            226043283,
            'FEDEX',
            'FEDEX_GROUND',
            934,
            '2018-01-01',
            '336.0',
            '789173972852'
        )
        ON DUPLICATE KEY UPDATE
        
            se_shipment_id = 226043283,
            carrier_key = 'FEDEX',
            carrier_service_key = 'FEDEX_GROUND',
            shipment_cost = 934,
            ship_date = '2018-01-01',
            tracking_number = '789173972852',
            shipment_weight_ounces = '336.0'
        

insert result:
string(4) "7096"



*** Order info:
Array
(
    [id] => 208882013
    [external_order_identifier] => 3581177384019
    [ext_order_reference_id] => 3581177384019
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-30T08:36:16Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 48.95
    [total_excluding_tax] => 48.95
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 48.95
    [subtotal_excluding_tax] => 48.95
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => 
    [billing_first_name] => 
    [billing_last_name] => 
    [billing_address] => 
    [billing_address2] => 
    [billing_city] => 
    [billing_state] => 
    [billing_country] => 
    [billing_postal_code] => 
    [billing_phone_number] => 
    [billing_email] => 6CDB77D4891C4E199BBB2F96086E4839@relay.walmart.com
    [buyer_email] => 6CDB77D4891C4E199BBB2F96086E4839@relay.walmart.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Matthew
                    [last_name] => Cartier
                    [address] => 3272 County Route  2
                    [address2] => 
                    [address3] => 
                    [city] => Pulaski
                    [residential] => 1
                    [state] => NY
                    [province] => 
                    [country] => United States
                    [postal_code] => 13142
                    [postal_code_plus_4] => 2541
                    [phone_number] => 3155325761
                    [email] => 6CDB77D4891C4E199BBB2F96086E4839@relay.walmart.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => Value
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack CharBlend Hickory BBQ Grilling Pellets
                                    [sku] => 40charhick
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 656.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 48.95
                                    [price_excluding_tax] => 48.95
                                    [unit_price] => 48.95
                                    [ext_line_item_id] => 1
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => ae574938-4070-4439-abfb-e57e5254ee07
                                    [order_source_id] => 218583673
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 208882013
                            [customer_id] => 33773
                            [store_id] => 537580
                            [order_detail_id] => 211035163
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 656.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-30T09:30:08Z
                            [updated_at] => 2018-01-01T09:55:48Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_shipment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack charblend hickory bbq grilling pellets
                            [line_item_sku] => 40charhick
                            [address_kind] => R
                            [recipient_last_name] => cartier
                            [recipient_requested_service] => value
                            [gift] => 
                            [prime_order_id] => 208882013
                            [state] => NY
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-30T08:36:16Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 3581177384019
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 3581177384019
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 8d8626ca858f2fdea525637cd6a0816f
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 226043373
                    [tracking_number] => 789173989067
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 1573
                    [ship_date] => 2018-01-01
                )

        )

    [updated_at] => 2018-01-01T09:55:48Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 208882013
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsd
Customer not found in the database.  Attempting to add now
New customer ID: 10047

parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10047"
  ["ordered_time"]=>
  string(19) "2017-12-30 08:36:16"
  ["se_order_id"]=>
  int(208882013)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(7) "WalMart"
  ["store_order_id"]=>
  string(13) "3581177384019"
  ["order_weight_ounces"]=>
  string(5) "656.0"
  ["store_order_status"]=>
  string(17) "awaiting_shipment"
  ["se_api_response"]=>
  string(3951) "{"id":208882013,"external_order_identifier":"3581177384019","ext_order_reference_id":"3581177384019","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-30T08:36:16Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"48.95","total_excluding_tax":"48.95","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"48.95","subtotal_excluding_tax":"48.95","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":null,"billing_first_name":null,"billing_last_name":null,"billing_address":null,"billing_address2":null,"billing_city":null,"billing_state":null,"billing_country":null,"billing_postal_code":null,"billing_phone_number":null,"billing_email":"6CDB77D4891C4E199BBB2F96086E4839@relay.walmart.com","buyer_email":"6CDB77D4891C4E199BBB2F96086E4839@relay.walmart.com","recipients":[{"company":null,"first_name":"Matthew","last_name":"Cartier","address":"3272 County Route  2","address2":null,"address3":null,"city":"Pulaski","residential":true,"state":"NY","province":null,"country":"United States","postal_code":"13142","postal_code_plus_4":"2541","phone_number":"3155325761","email":"6CDB77D4891C4E199BBB2F96086E4839@relay.walmart.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"Value","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack CharBlend Hickory BBQ Grilling Pellets","sku":"40charhick","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"656.0","quantity":1,"total_excluding_tax":"48.95","price_excluding_tax":"48.95","unit_price":"48.95","ext_line_item_id":"1","ext_product_id":null,"product_options":null,"uuid":"ae574938-4070-4439-abfb-e57e5254ee07","order_source_id":218583673,"gift_message":null}],"original_order":{"id":208882013,"customer_id":33773,"store_id":537580,"order_detail_id":211035163,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"656.0","total_quantity":1,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-30T09:30:08Z","updated_at":"2018-01-01T09:55:48Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_shipment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack charblend hickory bbq grilling pellets","line_item_sku":"40charhick","address_kind":"R","recipient_last_name":"cartier","recipient_requested_service":"value","gift":null,"prime_order_id":208882013,"state":"NY","owner_id":37098,"denormalized_ordered_at":"2017-12-30T08:36:16Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"3581177384019","packing_slip_generated":null,"denormalized_ext_order_reference_id":"3581177384019","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"8d8626ca858f2fdea525637cd6a0816f","shipments":[{"id":226043373,"tracking_number":"789173989067","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":1573,"ship_date":"2018-01-01"}],"updated_at":"2018-01-01T09:55:48Z","internal_notes":"","meta_data":null,"prime_order_id":208882013,"is_prime":null,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(226043373)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(5) "656.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(1573)
      ["ship_date"]=>
      string(10) "2018-01-01"
      ["tracking_number"]=>
      string(12) "789173989067"
    }
  }
}


sql:     INSERT INTO
        `bbqpo_se_orders`
    (
        `customer_id`,
        `ordered_time`,
        `se_order_id`,
        `se_order_status`,
        `store_ordered_from`,
        `store_order_id`,
        `store_order_status`,
        `order_weight_ounces`,
        `se_api_response`,
        `last_updated`
    )
        VALUES 
    (
        '10047',
        '2017-12-30 08:36:16',
        '208882013',
        'shipped',
        'WalMart',
        '3581177384019',
        'awaiting_shipment',
        '656.0',
        '{\"id\":208882013,\"external_order_identifier\":\"3581177384019\",\"ext_order_reference_id\":\"3581177384019\",\"owner_id\":37098,\"sales_channel\":null,\"fulfillment_channel\":null,\"ordered_at\":\"2017-12-30T08:36:16Z\",\"order_status\":\"shipped\",\"parent_order_id\":null,\"source_order_ids\":null,\"total_including_tax\":\"48.95\",\"total_excluding_tax\":\"48.95\",\"discount_amount\":\"0.00\",\"coupon_discount\":\"0.00\",\"subtotal_including_tax\":\"48.95\",\"subtotal_excluding_tax\":\"48.95\",\"subtotal_tax\":\"0.00\",\"total_tax\":\"0.00\",\"base_shipping_cost\":\"0.00\",\"shipping_cost_including_tax\":\"0.00\",\"shipping_cost_excluding_tax\":\"0.00\",\"shipping_cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"base_wrapping_cost\":\"0.00\",\"wrapping_cost_excluding_tax\":\"0.00\",\"wrapping_cost_including_tax\":\"0.00\",\"wrapping_cost_tax\":\"0.00\",\"billing_company\":null,\"billing_first_name\":null,\"billing_last_name\":null,\"billing_address\":null,\"billing_address2\":null,\"billing_city\":null,\"billing_state\":null,\"billing_country\":null,\"billing_postal_code\":null,\"billing_phone_number\":null,\"billing_email\":\"6CDB77D4891C4E199BBB2F96086E4839@relay.walmart.com\",\"buyer_email\":\"6CDB77D4891C4E199BBB2F96086E4839@relay.walmart.com\",\"recipients\":[{\"company\":null,\"first_name\":\"Matthew\",\"last_name\":\"Cartier\",\"address\":\"3272 County Route  2\",\"address2\":null,\"address3\":null,\"city\":\"Pulaski\",\"residential\":true,\"state\":\"NY\",\"province\":null,\"country\":\"United States\",\"postal_code\":\"13142\",\"postal_code_plus_4\":\"2541\",\"phone_number\":\"3155325761\",\"email\":\"6CDB77D4891C4E199BBB2F96086E4839@relay.walmart.com\",\"base_cost\":\"0.00\",\"cost_excluding_tax\":\"0.00\",\"cost_including_tax\":\"0.00\",\"cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"shipping_zone_id\":null,\"shipping_zone_name\":null,\"items_total\":null,\"shipping_method\":\"Value\",\"items_shipped\":null,\"ext_shipping_detail_id\":null,\"line_items\":[{\"item_name\":\"Lumber Jack CharBlend Hickory BBQ Grilling Pellets\",\"sku\":\"40charhick\",\"bin_picking_number\":null,\"bundled_product\":null,\"weight_in_ounces\":\"656.0\",\"quantity\":1,\"total_excluding_tax\":\"48.95\",\"price_excluding_tax\":\"48.95\",\"unit_price\":\"48.95\",\"ext_line_item_id\":\"1\",\"ext_product_id\":null,\"product_options\":null,\"uuid\":\"ae574938-4070-4439-abfb-e57e5254ee07\",\"order_source_id\":218583673,\"gift_message\":null}],\"original_order\":{\"id\":208882013,\"customer_id\":33773,\"store_id\":537580,\"order_detail_id\":211035163,\"workflow_state\":\"shipped\",\"shipment_id\":null,\"destination_id\":null,\"split_from_order_id\":null,\"total_weight_in_ounces\":\"656.0\",\"total_quantity\":1,\"is_international\":false,\"usps_shipping_zone\":5,\"created_at\":\"2017-12-30T09:30:08Z\",\"updated_at\":\"2018-01-01T09:55:48Z\",\"ext_shipment_confirmation_id\":1,\"store_order_status\":\"awaiting_shipment\",\"drop_ship_tracking_number\":null,\"category_id\":136973,\"internal_notes\":\"\",\"line_item_name\":\"lumber jack charblend hickory bbq grilling pellets\",\"line_item_sku\":\"40charhick\",\"address_kind\":\"R\",\"recipient_last_name\":\"cartier\",\"recipient_requested_service\":\"value\",\"gift\":null,\"prime_order_id\":208882013,\"state\":\"NY\",\"owner_id\":37098,\"denormalized_ordered_at\":\"2017-12-30T08:36:16Z\",\"grab_bag\":[],\"line_item_bin_picking_number\":null,\"denormalized_ext_order_id\":\"3581177384019\",\"packing_slip_generated\":null,\"denormalized_ext_order_reference_id\":\"3581177384019\",\"denormalized_alternate_order_id\":null,\"denormalized_sales_channel\":null,\"custom_1\":null,\"custom_2\":null,\"custom_3\":null,\"hidden\":null,\"allocated\":null}}],\"store_api_key\":\"8d8626ca858f2fdea525637cd6a0816f\",\"shipments\":[{\"id\":226043373,\"tracking_number\":\"789173989067\",\"carrier_key\":\"FEDEX\",\"carrier_service_key\":\"FEDEX_GROUND\",\"shipment_cost\":1573,\"ship_date\":\"2018-01-01\"}],\"updated_at\":\"2018-01-01T09:55:48Z\",\"internal_notes\":\"\",\"meta_data\":null,\"prime_order_id\":208882013,\"is_prime\":null,\"split_from_order_id\":null,\"tags\":[]}',
        CURRENT_TIMESTAMP
    )
        

Successfully added order to DB. Order ID (our DB's order ID) #7448

existingShippingEasySHipmentsDBRows:
array(0) {
}


shipmentDBRows:
array(0) {
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(226043373)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(5) "656.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(1573)
    ["ship_date"]=>
    string(10) "2018-01-01"
    ["tracking_number"]=>
    string(12) "789173989067"
  }
}

Adding shipment info:
array(7) {
  ["se_shipment_id"]=>
  int(226043373)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(5) "656.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(1573)
  ["ship_date"]=>
  string(10) "2018-01-01"
  ["tracking_number"]=>
  string(12) "789173989067"
}



sql:     
        INSERT INTO
            `bbqpo_se_shipments`
        (
            order_id,
            se_shipment_id,
            carrier_key,
            carrier_service_key,
            shipment_cost,
            ship_date,
            shipment_weight_ounces,
            tracking_number
        )
            VALUES
        (
            '7448',
            226043373,
            'FEDEX',
            'FEDEX_GROUND',
            1573,
            '2018-01-01',
            '656.0',
            '789173989067'
        )
        ON DUPLICATE KEY UPDATE
        
            se_shipment_id = 226043373,
            carrier_key = 'FEDEX',
            carrier_service_key = 'FEDEX_GROUND',
            shipment_cost = 1573,
            ship_date = '2018-01-01',
            tracking_number = '789173989067',
            shipment_weight_ounces = '656.0'
        

insert result:
string(4) "7097"



*** Order info:
Array
(
    [id] => 209482033
    [external_order_identifier] => 3946
    [ext_order_reference_id] => 3946
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-31T04:32:12Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 27.07
    [total_excluding_tax] => 0.00
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 0.00
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 2.07
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => 
    [billing_first_name] => Joe
    [billing_last_name] => Liebentritt
    [billing_address] => 843 Antilla Way
    [billing_address2] => 
    [billing_city] => San Marcos
    [billing_state] => CA
    [billing_country] => US
    [billing_postal_code] => 92078
    [billing_phone_number] => 7605910360
    [billing_email] => jclieb@att.net
    [buyer_email] => jclieb@att.net
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Joe
                    [last_name] => Liebentritt
                    [address] => 843 Antilla Way
                    [address2] => 
                    [address3] => 
                    [city] => San Marcos
                    [residential] => 1
                    [state] => CA
                    [province] => 
                    [country] => United States
                    [postal_code] => 92078
                    [postal_code_plus_4] => 0917
                    [phone_number] => 7605910360
                    [email] => jclieb@att.net
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 0
                    [shipping_method] => Free Shipping - No PO Boxes or APO
                    [items_shipped] => 0
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Smoker Pellets Variety Pack (Select 3 3-Pound Assortments at Checkout  = 9 Pounds)
                                    [sku] => sample-pellets-9-pounds
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 144.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 25.00
                                    [price_excluding_tax] => 0.00
                                    [unit_price] => 25.00
                                    [ext_line_item_id] => 
                                    [ext_product_id] => 44776087
                                    [product_options] => Array
                                        (
                                            [Bag 1 (3#)] => 100% Mesquite
                                            [Bag 2 (3#)] => 100% Cherry
                                            [Bag 3 (3#)] => 100% Maple
                                            [Add Smokin Wedgie] => Array
                                                (
                                                )

                                            [Add 4th Sample Bag Below] => Do Not include 4th Sample Bag
                                            [Add 5th Sample Bag Below] => Do Not include 5th Sample Bag
                                            [Add 6th Sample  Bag Below] => Do Not include 6th Sample Bag
                                            [Add Smokin Wedgie Leg Kit for Flat Bottom Smokers] => Array
                                                (
                                                )

                                            [Add Can(s) Gourmet Duck Fat Spray Here] => Array
                                                (
                                                )

                                        )

                                    [uuid] => c18ad375-9822-412e-845f-1a41a5833685
                                    [order_source_id] => 219240553
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 209482033
                            [customer_id] => 33773
                            [store_id] => 70642
                            [order_detail_id] => 211652923
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 144.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 7
                            [created_at] => 2017-12-31T04:31:16Z
                            [updated_at] => 2018-01-01T10:06:20Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_shipment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => smoker pellets variety pack (select 3 3-pound assortments at checkout  = 9 pounds)
                            [line_item_sku] => sample-pellets-9-pounds
                            [address_kind] => R
                            [recipient_last_name] => liebentritt
                            [recipient_requested_service] => free shipping - no po boxes or apo
                            [gift] => 
                            [prime_order_id] => 209482033
                            [state] => CA
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-31T04:32:12Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 3946
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 3946
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 276833075f862f916ca417ff8ccb9564
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 226043223
                    [tracking_number] => 9405510298370319257985
                    [carrier_key] => USPS
                    [carrier_service_key] => Priority
                    [shipment_cost] => 1205
                    [ship_date] => 2018-01-01
                )

        )

    [updated_at] => 2018-01-01T10:06:20Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 209482033
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsd
Customer not found in the database.  Attempting to add now
New customer ID: 10048

parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10048"
  ["ordered_time"]=>
  string(19) "2017-12-31 04:32:12"
  ["se_order_id"]=>
  int(209482033)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(5) "Ecwid"
  ["store_order_id"]=>
  string(4) "3946"
  ["order_weight_ounces"]=>
  string(5) "144.0"
  ["store_order_status"]=>
  string(17) "awaiting_shipment"
  ["se_api_response"]=>
  string(4378) "{"id":209482033,"external_order_identifier":"3946","ext_order_reference_id":"3946","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-31T04:32:12Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"27.07","total_excluding_tax":"0.00","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"0.00","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"2.07","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":null,"billing_first_name":"Joe","billing_last_name":"Liebentritt","billing_address":"843 Antilla Way","billing_address2":null,"billing_city":"San Marcos","billing_state":"CA","billing_country":"US","billing_postal_code":"92078","billing_phone_number":"7605910360","billing_email":"jclieb@att.net","buyer_email":"jclieb@att.net","recipients":[{"company":"","first_name":"Joe","last_name":"Liebentritt","address":"843 Antilla Way","address2":null,"address3":null,"city":"San Marcos","residential":true,"state":"CA","province":null,"country":"United States","postal_code":"92078","postal_code_plus_4":"0917","phone_number":"7605910360","email":"jclieb@att.net","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":0,"shipping_method":"Free Shipping - No PO Boxes or APO","items_shipped":0,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Smoker Pellets Variety Pack (Select 3 3-Pound Assortments at Checkout  = 9 Pounds)","sku":"sample-pellets-9-pounds","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"144.0","quantity":1,"total_excluding_tax":"25.00","price_excluding_tax":"0.00","unit_price":"25.00","ext_line_item_id":null,"ext_product_id":"44776087","product_options":{"Bag 1 (3#)":"100% Mesquite","Bag 2 (3#)":"100% Cherry","Bag 3 (3#)":"100% Maple","Add Smokin Wedgie":[],"Add 4th Sample Bag Below":"Do Not include 4th Sample Bag","Add 5th Sample Bag Below":"Do Not include 5th Sample Bag","Add 6th Sample  Bag Below":"Do Not include 6th Sample Bag","Add Smokin Wedgie Leg Kit for Flat Bottom Smokers":[],"Add Can(s) Gourmet Duck Fat Spray Here":[]},"uuid":"c18ad375-9822-412e-845f-1a41a5833685","order_source_id":219240553,"gift_message":null}],"original_order":{"id":209482033,"customer_id":33773,"store_id":70642,"order_detail_id":211652923,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"144.0","total_quantity":1,"is_international":false,"usps_shipping_zone":7,"created_at":"2017-12-31T04:31:16Z","updated_at":"2018-01-01T10:06:20Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_shipment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"smoker pellets variety pack (select 3 3-pound assortments at checkout  = 9 pounds)","line_item_sku":"sample-pellets-9-pounds","address_kind":"R","recipient_last_name":"liebentritt","recipient_requested_service":"free shipping - no po boxes or apo","gift":false,"prime_order_id":209482033,"state":"CA","owner_id":37098,"denormalized_ordered_at":"2017-12-31T04:32:12Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"3946","packing_slip_generated":null,"denormalized_ext_order_reference_id":"3946","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"276833075f862f916ca417ff8ccb9564","shipments":[{"id":226043223,"tracking_number":"9405510298370319257985","carrier_key":"USPS","carrier_service_key":"Priority","shipment_cost":1205,"ship_date":"2018-01-01"}],"updated_at":"2018-01-01T10:06:20Z","internal_notes":"","meta_data":null,"prime_order_id":209482033,"is_prime":null,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(226043223)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(5) "144.0"
      ["carrier_service_key"]=>
      string(8) "Priority"
      ["shipment_cost"]=>
      int(1205)
      ["ship_date"]=>
      string(10) "2018-01-01"
      ["tracking_number"]=>
      string(22) "9405510298370319257985"
    }
  }
}


sql:     INSERT INTO
        `bbqpo_se_orders`
    (
        `customer_id`,
        `ordered_time`,
        `se_order_id`,
        `se_order_status`,
        `store_ordered_from`,
        `store_order_id`,
        `store_order_status`,
        `order_weight_ounces`,
        `se_api_response`,
        `last_updated`
    )
        VALUES 
    (
        '10048',
        '2017-12-31 04:32:12',
        '209482033',
        'shipped',
        'Ecwid',
        '3946',
        'awaiting_shipment',
        '144.0',
        '{\"id\":209482033,\"external_order_identifier\":\"3946\",\"ext_order_reference_id\":\"3946\",\"owner_id\":37098,\"sales_channel\":null,\"fulfillment_channel\":null,\"ordered_at\":\"2017-12-31T04:32:12Z\",\"order_status\":\"shipped\",\"parent_order_id\":null,\"source_order_ids\":null,\"total_including_tax\":\"27.07\",\"total_excluding_tax\":\"0.00\",\"discount_amount\":\"0.00\",\"coupon_discount\":\"0.00\",\"subtotal_including_tax\":\"0.00\",\"subtotal_excluding_tax\":\"0.00\",\"subtotal_tax\":\"0.00\",\"total_tax\":\"2.07\",\"base_shipping_cost\":\"0.00\",\"shipping_cost_including_tax\":\"0.00\",\"shipping_cost_excluding_tax\":\"0.00\",\"shipping_cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"base_wrapping_cost\":\"0.00\",\"wrapping_cost_excluding_tax\":\"0.00\",\"wrapping_cost_including_tax\":\"0.00\",\"wrapping_cost_tax\":\"0.00\",\"billing_company\":null,\"billing_first_name\":\"Joe\",\"billing_last_name\":\"Liebentritt\",\"billing_address\":\"843 Antilla Way\",\"billing_address2\":null,\"billing_city\":\"San Marcos\",\"billing_state\":\"CA\",\"billing_country\":\"US\",\"billing_postal_code\":\"92078\",\"billing_phone_number\":\"7605910360\",\"billing_email\":\"jclieb@att.net\",\"buyer_email\":\"jclieb@att.net\",\"recipients\":[{\"company\":\"\",\"first_name\":\"Joe\",\"last_name\":\"Liebentritt\",\"address\":\"843 Antilla Way\",\"address2\":null,\"address3\":null,\"city\":\"San Marcos\",\"residential\":true,\"state\":\"CA\",\"province\":null,\"country\":\"United States\",\"postal_code\":\"92078\",\"postal_code_plus_4\":\"0917\",\"phone_number\":\"7605910360\",\"email\":\"jclieb@att.net\",\"base_cost\":\"0.00\",\"cost_excluding_tax\":\"0.00\",\"cost_including_tax\":\"0.00\",\"cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"shipping_zone_id\":null,\"shipping_zone_name\":null,\"items_total\":0,\"shipping_method\":\"Free Shipping - No PO Boxes or APO\",\"items_shipped\":0,\"ext_shipping_detail_id\":null,\"line_items\":[{\"item_name\":\"Smoker Pellets Variety Pack (Select 3 3-Pound Assortments at Checkout  = 9 Pounds)\",\"sku\":\"sample-pellets-9-pounds\",\"bin_picking_number\":null,\"bundled_product\":null,\"weight_in_ounces\":\"144.0\",\"quantity\":1,\"total_excluding_tax\":\"25.00\",\"price_excluding_tax\":\"0.00\",\"unit_price\":\"25.00\",\"ext_line_item_id\":null,\"ext_product_id\":\"44776087\",\"product_options\":{\"Bag 1 (3#)\":\"100% Mesquite\",\"Bag 2 (3#)\":\"100% Cherry\",\"Bag 3 (3#)\":\"100% Maple\",\"Add Smokin Wedgie\":[],\"Add 4th Sample Bag Below\":\"Do Not include 4th Sample Bag\",\"Add 5th Sample Bag Below\":\"Do Not include 5th Sample Bag\",\"Add 6th Sample  Bag Below\":\"Do Not include 6th Sample Bag\",\"Add Smokin Wedgie Leg Kit for Flat Bottom Smokers\":[],\"Add Can(s) Gourmet Duck Fat Spray Here\":[]},\"uuid\":\"c18ad375-9822-412e-845f-1a41a5833685\",\"order_source_id\":219240553,\"gift_message\":null}],\"original_order\":{\"id\":209482033,\"customer_id\":33773,\"store_id\":70642,\"order_detail_id\":211652923,\"workflow_state\":\"shipped\",\"shipment_id\":null,\"destination_id\":null,\"split_from_order_id\":null,\"total_weight_in_ounces\":\"144.0\",\"total_quantity\":1,\"is_international\":false,\"usps_shipping_zone\":7,\"created_at\":\"2017-12-31T04:31:16Z\",\"updated_at\":\"2018-01-01T10:06:20Z\",\"ext_shipment_confirmation_id\":1,\"store_order_status\":\"awaiting_shipment\",\"drop_ship_tracking_number\":null,\"category_id\":136973,\"internal_notes\":\"\",\"line_item_name\":\"smoker pellets variety pack (select 3 3-pound assortments at checkout  = 9 pounds)\",\"line_item_sku\":\"sample-pellets-9-pounds\",\"address_kind\":\"R\",\"recipient_last_name\":\"liebentritt\",\"recipient_requested_service\":\"free shipping - no po boxes or apo\",\"gift\":false,\"prime_order_id\":209482033,\"state\":\"CA\",\"owner_id\":37098,\"denormalized_ordered_at\":\"2017-12-31T04:32:12Z\",\"grab_bag\":[],\"line_item_bin_picking_number\":null,\"denormalized_ext_order_id\":\"3946\",\"packing_slip_generated\":null,\"denormalized_ext_order_reference_id\":\"3946\",\"denormalized_alternate_order_id\":null,\"denormalized_sales_channel\":null,\"custom_1\":null,\"custom_2\":null,\"custom_3\":null,\"hidden\":null,\"allocated\":null}}],\"store_api_key\":\"276833075f862f916ca417ff8ccb9564\",\"shipments\":[{\"id\":226043223,\"tracking_number\":\"9405510298370319257985\",\"carrier_key\":\"USPS\",\"carrier_service_key\":\"Priority\",\"shipment_cost\":1205,\"ship_date\":\"2018-01-01\"}],\"updated_at\":\"2018-01-01T10:06:20Z\",\"internal_notes\":\"\",\"meta_data\":null,\"prime_order_id\":209482033,\"is_prime\":null,\"split_from_order_id\":null,\"tags\":[]}',
        CURRENT_TIMESTAMP
    )
        

Successfully added order to DB. Order ID (our DB's order ID) #7449

existingShippingEasySHipmentsDBRows:
array(0) {
}


shipmentDBRows:
array(0) {
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(226043223)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(5) "144.0"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    int(1205)
    ["ship_date"]=>
    string(10) "2018-01-01"
    ["tracking_number"]=>
    string(22) "9405510298370319257985"
  }
}

Adding shipment info:
array(7) {
  ["se_shipment_id"]=>
  int(226043223)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(5) "144.0"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  int(1205)
  ["ship_date"]=>
  string(10) "2018-01-01"
  ["tracking_number"]=>
  string(22) "9405510298370319257985"
}



sql:     
        INSERT INTO
            `bbqpo_se_shipments`
        (
            order_id,
            se_shipment_id,
            carrier_key,
            carrier_service_key,
            shipment_cost,
            ship_date,
            shipment_weight_ounces,
            tracking_number
        )
            VALUES
        (
            '7449',
            226043223,
            'USPS',
            'Priority',
            1205,
            '2018-01-01',
            '144.0',
            '9405510298370319257985'
        )
        ON DUPLICATE KEY UPDATE
        
            se_shipment_id = 226043223,
            carrier_key = 'USPS',
            carrier_service_key = 'Priority',
            shipment_cost = 1205,
            ship_date = '2018-01-01',
            tracking_number = '9405510298370319257985',
            shipment_weight_ounces = '144.0'
        

insert result:
string(4) "7098"



*** Order info:
Array
(
    [id] => 209928993
    [external_order_identifier] => 3949
    [ext_order_reference_id] => 3949
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-31T21:58:28Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 48.55
    [total_excluding_tax] => 0.00
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 0.00
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 3.55
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => 
    [billing_first_name] => Stephen
    [billing_last_name] => Osborne
    [billing_address] => 2433 Wrangler Walsh Lane
    [billing_address2] => 
    [billing_city] => Henderson
    [billing_state] => NV
    [billing_country] => US
    [billing_postal_code] => 89002
    [billing_phone_number] => 8502404204
    [billing_email] => ozsocleen7@gmail.com
    [buyer_email] => ozsocleen7@gmail.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Stephen
                    [last_name] => Osborne
                    [address] => 2433 Wrangler Walsh Lane
                    [address2] => 
                    [address3] => 
                    [city] => Henderson
                    [residential] => 1
                    [state] => NV
                    [province] => 
                    [country] => United States
                    [postal_code] => 89002
                    [postal_code_plus_4] => 9345
                    [phone_number] => 8502404204
                    [email] => ozsocleen7@gmail.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 0
                    [shipping_method] => Free Shipping - No PO Boxes or APO
                    [items_shipped] => 0
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => CharBlend Hickory Pellets
                                    [sku] => 40charhick
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 656.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 45.00
                                    [price_excluding_tax] => 0.00
                                    [unit_price] => 45.00
                                    [ext_line_item_id] => 
                                    [ext_product_id] => 82522247
                                    [product_options] => Array
                                        (
                                            [Weight] => 40 Pounds (2x20 Pound Bags)
                                            [Add Smokin Wedgie Pellet Smoker] => Array
                                                (
                                                )

                                            [Add Handy Camel Bag Clip] => Array
                                                (
                                                )

                                            [Add Gourmet Duck Fat Spray Can(s) Here (7 Ounce)] => Array
                                                (
                                                )

                                            [Add Smokin Wedgie Leg Kit for Flat Bottom Smokers] => Array
                                                (
                                                )

                                            [BBQ Bottle Opener] => Array
                                                (
                                                )

                                        )

                                    [uuid] => d75e18b7-ebc5-4595-97a5-5932a8f02831
                                    [order_source_id] => 219743723
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 209928993
                            [customer_id] => 33773
                            [store_id] => 70642
                            [order_detail_id] => 212111923
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 656.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 6
                            [created_at] => 2017-12-31T21:31:26Z
                            [updated_at] => 2018-01-01T10:07:54Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_shipment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => charblend hickory pellets
                            [line_item_sku] => 40charhick
                            [address_kind] => R
                            [recipient_last_name] => osborne
                            [recipient_requested_service] => free shipping - no po boxes or apo
                            [gift] => 
                            [prime_order_id] => 209928993
                            [state] => NV
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-31T21:58:28Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 3949
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 3949
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 276833075f862f916ca417ff8ccb9564
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 226410393
                    [tracking_number] => 789174005710
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 1639
                    [ship_date] => 2018-01-01
                )

        )

    [updated_at] => 2018-01-01T10:07:54Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 209928993
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for ozsocleen7@gmail.com) was previously inserted to the DB.
Existing customer ID: 10041

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(7) "Stephen"
  ["customer_last_name"]=>
  string(7) "Osborne"
  ["customer_email"]=>
  string(20) "ozsocleen7@gmail.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  NULL
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(24) "2433 Wrangler Walsh Lane"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(9) "Henderson"
    ["address_state"]=>
    string(2) "NV"
    ["address_zip"]=>
    string(5) "89002"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10041"
  ["ordered_time"]=>
  string(19) "2017-12-31 21:58:28"
  ["se_order_id"]=>
  int(209928993)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(5) "Ecwid"
  ["store_order_id"]=>
  string(4) "3949"
  ["order_weight_ounces"]=>
  string(5) "656.0"
  ["store_order_status"]=>
  string(17) "awaiting_shipment"
  ["se_api_response"]=>
  string(4119) "{"id":209928993,"external_order_identifier":"3949","ext_order_reference_id":"3949","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-31T21:58:28Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"48.55","total_excluding_tax":"0.00","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"0.00","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"3.55","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":null,"billing_first_name":"Stephen","billing_last_name":"Osborne","billing_address":"2433 Wrangler Walsh Lane","billing_address2":null,"billing_city":"Henderson","billing_state":"NV","billing_country":"US","billing_postal_code":"89002","billing_phone_number":"8502404204","billing_email":"ozsocleen7@gmail.com","buyer_email":"ozsocleen7@gmail.com","recipients":[{"company":"","first_name":"Stephen","last_name":"Osborne","address":"2433 Wrangler Walsh Lane","address2":null,"address3":null,"city":"Henderson","residential":true,"state":"NV","province":null,"country":"United States","postal_code":"89002","postal_code_plus_4":"9345","phone_number":"8502404204","email":"ozsocleen7@gmail.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":0,"shipping_method":"Free Shipping - No PO Boxes or APO","items_shipped":0,"ext_shipping_detail_id":null,"line_items":[{"item_name":"CharBlend Hickory Pellets","sku":"40charhick","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"656.0","quantity":1,"total_excluding_tax":"45.00","price_excluding_tax":"0.00","unit_price":"45.00","ext_line_item_id":null,"ext_product_id":"82522247","product_options":{"Weight":"40 Pounds (2x20 Pound Bags)","Add Smokin Wedgie Pellet Smoker":[],"Add Handy Camel Bag Clip":[],"Add Gourmet Duck Fat Spray Can(s) Here (7 Ounce)":[],"Add Smokin Wedgie Leg Kit for Flat Bottom Smokers":[],"BBQ Bottle Opener":[]},"uuid":"d75e18b7-ebc5-4595-97a5-5932a8f02831","order_source_id":219743723,"gift_message":null}],"original_order":{"id":209928993,"customer_id":33773,"store_id":70642,"order_detail_id":212111923,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"656.0","total_quantity":1,"is_international":false,"usps_shipping_zone":6,"created_at":"2017-12-31T21:31:26Z","updated_at":"2018-01-01T10:07:54Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_shipment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"charblend hickory pellets","line_item_sku":"40charhick","address_kind":"R","recipient_last_name":"osborne","recipient_requested_service":"free shipping - no po boxes or apo","gift":false,"prime_order_id":209928993,"state":"NV","owner_id":37098,"denormalized_ordered_at":"2017-12-31T21:58:28Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"3949","packing_slip_generated":null,"denormalized_ext_order_reference_id":"3949","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"276833075f862f916ca417ff8ccb9564","shipments":[{"id":226410393,"tracking_number":"789174005710","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":1639,"ship_date":"2018-01-01"}],"updated_at":"2018-01-01T10:07:54Z","internal_notes":"","meta_data":null,"prime_order_id":209928993,"is_prime":null,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(226410393)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(5) "656.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(1639)
      ["ship_date"]=>
      string(10) "2018-01-01"
      ["tracking_number"]=>
      string(12) "789174005710"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7442

existingShippingEasySHipmentsDBRows:
array(0) {
}


shipmentDBRows:
array(0) {
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(226410393)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(5) "656.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(1639)
    ["ship_date"]=>
    string(10) "2018-01-01"
    ["tracking_number"]=>
    string(12) "789174005710"
  }
}

Adding shipment info:
array(7) {
  ["se_shipment_id"]=>
  int(226410393)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(5) "656.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(1639)
  ["ship_date"]=>
  string(10) "2018-01-01"
  ["tracking_number"]=>
  string(12) "789174005710"
}



sql:     
        INSERT INTO
            `bbqpo_se_shipments`
        (
            order_id,
            se_shipment_id,
            carrier_key,
            carrier_service_key,
            shipment_cost,
            ship_date,
            shipment_weight_ounces,
            tracking_number
        )
            VALUES
        (
            '7442',
            226410393,
            'FEDEX',
            'FEDEX_GROUND',
            1639,
            '2018-01-01',
            '656.0',
            '789174005710'
        )
        ON DUPLICATE KEY UPDATE
        
            se_shipment_id = 226410393,
            carrier_key = 'FEDEX',
            carrier_service_key = 'FEDEX_GROUND',
            shipment_cost = 1639,
            ship_date = '2018-01-01',
            tracking_number = '789174005710',
            shipment_weight_ounces = '656.0'
        

insert result:
string(4) "7099"



*** Order info:
Array
(
    [id] => 209671393
    [external_order_identifier] => 3947
    [ext_order_reference_id] => 3947
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-31T14:42:28Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 55.69
    [total_excluding_tax] => 0.00
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 0.00
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 3.69
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => 
    [billing_first_name] => Richard
    [billing_last_name] => Miller
    [billing_address] => 1269 Case Rd.
    [billing_address2] => 
    [billing_city] => Delaware
    [billing_state] => OH
    [billing_country] => US
    [billing_postal_code] => 43015
    [billing_phone_number] => 740-513-7861
    [billing_email] => richmill@hotmail.com
    [buyer_email] => richmill@hotmail.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Richard
                    [last_name] => Miller
                    [address] => 1269 Case Rd.
                    [address2] => 
                    [address3] => 
                    [city] => Delaware
                    [residential] => 1
                    [state] => OH
                    [province] => 
                    [country] => United States
                    [postal_code] => 43015
                    [postal_code_plus_4] => 9019
                    [phone_number] => 740-513-7861
                    [email] => richmill@hotmail.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 0
                    [shipping_method] => Free Shipping - No PO Boxes or APO
                    [items_shipped] => 0
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => 100% Apple Pellets
                                    [sku] => 40100apple
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 656.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 52.00
                                    [price_excluding_tax] => 0.00
                                    [unit_price] => 52.00
                                    [ext_line_item_id] => 
                                    [ext_product_id] => 82522214
                                    [product_options] => Array
                                        (
                                            [Weight] => 40 Pounds (2x20 Pound Bags)
                                            [Add Smokin Wedgie Pellet Smoker] => Array
                                                (
                                                )

                                            [Add Handy Camel Bag Clip] => Array
                                                (
                                                )

                                            [Add Gourmet Duck Fat Spray Can(s) Here (7 Ounce)] => Array
                                                (
                                                )

                                            [Add Smokin Wedgie Leg Kit for Flat Bottom Smokers] => Array
                                                (
                                                )

                                            [Add BBQ Bottle Opener] => Array
                                                (
                                                )

                                        )

                                    [uuid] => 2acdee48-0792-4138-8b89-4bb67b73c74f
                                    [order_source_id] => 219456373
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 209671393
                            [customer_id] => 33773
                            [store_id] => 70642
                            [order_detail_id] => 211846623
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 656.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 4
                            [created_at] => 2017-12-31T14:31:12Z
                            [updated_at] => 2018-01-01T10:07:54Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_shipment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => 100% apple pellets
                            [line_item_sku] => 40100apple
                            [address_kind] => R
                            [recipient_last_name] => miller
                            [recipient_requested_service] => free shipping - no po boxes or apo
                            [gift] => 
                            [prime_order_id] => 209671393
                            [state] => OH
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-31T14:42:28Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 3947
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 3947
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 276833075f862f916ca417ff8ccb9564
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 226410413
                    [tracking_number] => 789174005993
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 1085
                    [ship_date] => 2018-01-01
                )

        )

    [updated_at] => 2018-01-01T10:07:54Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 209671393
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for richmill@hotmail.com) was previously inserted to the DB.
Existing customer ID: 10036

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(7) "Richard"
  ["customer_last_name"]=>
  string(6) "Miller"
  ["customer_email"]=>
  string(20) "richmill@hotmail.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  NULL
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(13) "1269 Case Rd."
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(8) "Delaware"
    ["address_state"]=>
    string(2) "OH"
    ["address_zip"]=>
    string(5) "43015"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10036"
  ["ordered_time"]=>
  string(19) "2017-12-31 14:42:28"
  ["se_order_id"]=>
  int(209671393)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(5) "Ecwid"
  ["store_order_id"]=>
  string(4) "3947"
  ["order_weight_ounces"]=>
  string(5) "656.0"
  ["store_order_status"]=>
  string(17) "awaiting_shipment"
  ["se_api_response"]=>
  string(4086) "{"id":209671393,"external_order_identifier":"3947","ext_order_reference_id":"3947","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-31T14:42:28Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"55.69","total_excluding_tax":"0.00","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"0.00","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"3.69","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":null,"billing_first_name":"Richard","billing_last_name":"Miller","billing_address":"1269 Case Rd.","billing_address2":null,"billing_city":"Delaware","billing_state":"OH","billing_country":"US","billing_postal_code":"43015","billing_phone_number":"740-513-7861","billing_email":"richmill@hotmail.com","buyer_email":"richmill@hotmail.com","recipients":[{"company":"","first_name":"Richard","last_name":"Miller","address":"1269 Case Rd.","address2":null,"address3":null,"city":"Delaware","residential":true,"state":"OH","province":null,"country":"United States","postal_code":"43015","postal_code_plus_4":"9019","phone_number":"740-513-7861","email":"richmill@hotmail.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":0,"shipping_method":"Free Shipping - No PO Boxes or APO","items_shipped":0,"ext_shipping_detail_id":null,"line_items":[{"item_name":"100% Apple Pellets","sku":"40100apple","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"656.0","quantity":1,"total_excluding_tax":"52.00","price_excluding_tax":"0.00","unit_price":"52.00","ext_line_item_id":null,"ext_product_id":"82522214","product_options":{"Weight":"40 Pounds (2x20 Pound Bags)","Add Smokin Wedgie Pellet Smoker":[],"Add Handy Camel Bag Clip":[],"Add Gourmet Duck Fat Spray Can(s) Here (7 Ounce)":[],"Add Smokin Wedgie Leg Kit for Flat Bottom Smokers":[],"Add BBQ Bottle Opener":[]},"uuid":"2acdee48-0792-4138-8b89-4bb67b73c74f","order_source_id":219456373,"gift_message":null}],"original_order":{"id":209671393,"customer_id":33773,"store_id":70642,"order_detail_id":211846623,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"656.0","total_quantity":1,"is_international":false,"usps_shipping_zone":4,"created_at":"2017-12-31T14:31:12Z","updated_at":"2018-01-01T10:07:54Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_shipment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"100% apple pellets","line_item_sku":"40100apple","address_kind":"R","recipient_last_name":"miller","recipient_requested_service":"free shipping - no po boxes or apo","gift":false,"prime_order_id":209671393,"state":"OH","owner_id":37098,"denormalized_ordered_at":"2017-12-31T14:42:28Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"3947","packing_slip_generated":null,"denormalized_ext_order_reference_id":"3947","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"276833075f862f916ca417ff8ccb9564","shipments":[{"id":226410413,"tracking_number":"789174005993","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":1085,"ship_date":"2018-01-01"}],"updated_at":"2018-01-01T10:07:54Z","internal_notes":"","meta_data":null,"prime_order_id":209671393,"is_prime":null,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(226410413)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(5) "656.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(1085)
      ["ship_date"]=>
      string(10) "2018-01-01"
      ["tracking_number"]=>
      string(12) "789174005993"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7437

existingShippingEasySHipmentsDBRows:
array(0) {
}


shipmentDBRows:
array(0) {
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(226410413)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(5) "656.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(1085)
    ["ship_date"]=>
    string(10) "2018-01-01"
    ["tracking_number"]=>
    string(12) "789174005993"
  }
}

Adding shipment info:
array(7) {
  ["se_shipment_id"]=>
  int(226410413)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(5) "656.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(1085)
  ["ship_date"]=>
  string(10) "2018-01-01"
  ["tracking_number"]=>
  string(12) "789174005993"
}



sql:     
        INSERT INTO
            `bbqpo_se_shipments`
        (
            order_id,
            se_shipment_id,
            carrier_key,
            carrier_service_key,
            shipment_cost,
            ship_date,
            shipment_weight_ounces,
            tracking_number
        )
            VALUES
        (
            '7437',
            226410413,
            'FEDEX',
            'FEDEX_GROUND',
            1085,
            '2018-01-01',
            '656.0',
            '789174005993'
        )
        ON DUPLICATE KEY UPDATE
        
            se_shipment_id = 226410413,
            carrier_key = 'FEDEX',
            carrier_service_key = 'FEDEX_GROUND',
            shipment_cost = 1085,
            ship_date = '2018-01-01',
            tracking_number = '789174005993',
            shipment_weight_ounces = '656.0'
        

insert result:
string(4) "7100"



*** Order info:
Array
(
    [id] => 210116623
    [external_order_identifier] => 4581197396399
    [ext_order_reference_id] => 4581197396399
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2018-01-01T01:50:07Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 52.01
    [total_excluding_tax] => 48.95
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 52.01
    [subtotal_excluding_tax] => 48.95
    [subtotal_tax] => 3.06
    [total_tax] => 3.06
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => 
    [billing_first_name] => 
    [billing_last_name] => 
    [billing_address] => 
    [billing_address2] => 
    [billing_city] => 
    [billing_state] => 
    [billing_country] => 
    [billing_postal_code] => 
    [billing_phone_number] => 
    [billing_email] => 020BDC3DBDEF4EC1B31FD23EC9631283@relay.walmart.com
    [buyer_email] => 020BDC3DBDEF4EC1B31FD23EC9631283@relay.walmart.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Bernadette
                    [last_name] => Reynolds
                    [address] => 2239 Avenue L
                    [address2] => 
                    [address3] => 
                    [city] => San Leon
                    [residential] => 1
                    [state] => TX
                    [province] => 
                    [country] => United States
                    [postal_code] => 77539
                    [postal_code_plus_4] => 9645
                    [phone_number] => 2815593935
                    [email] => 020BDC3DBDEF4EC1B31FD23EC9631283@relay.walmart.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => Value
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack CharBlend Hickory BBQ Grilling Pellets
                                    [sku] => 40charhick
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 656.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 48.95
                                    [price_excluding_tax] => 48.95
                                    [unit_price] => 48.95
                                    [ext_line_item_id] => 1
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => f70a6042-6841-4292-a752-49a1f6c85986
                                    [order_source_id] => 219991573
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 210116623
                            [customer_id] => 33773
                            [store_id] => 537580
                            [order_detail_id] => 212302573
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 656.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 6
                            [created_at] => 2018-01-01T02:30:52Z
                            [updated_at] => 2018-01-01T10:07:55Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_shipment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack charblend hickory bbq grilling pellets
                            [line_item_sku] => 40charhick
                            [address_kind] => R
                            [recipient_last_name] => reynolds
                            [recipient_requested_service] => value
                            [gift] => 
                            [prime_order_id] => 210116623
                            [state] => TX
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2018-01-01T01:50:07Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 4581197396399
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 4581197396399
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 8d8626ca858f2fdea525637cd6a0816f
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 226410403
                    [tracking_number] => 789174006202
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 1639
                    [ship_date] => 2018-01-01
                )

        )

    [updated_at] => 2018-01-01T10:07:55Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 210116623
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for 020BDC3DBDEF4EC1B31FD23EC9631283@relay.walmart.com) was previously inserted to the DB.
Existing customer ID: 10042

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(10) "Bernadette"
  ["customer_last_name"]=>
  string(8) "Reynolds"
  ["customer_email"]=>
  string(50) "020BDC3DBDEF4EC1B31FD23EC9631283@relay.walmart.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  NULL
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    NULL
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    NULL
    ["address_state"]=>
    NULL
    ["address_zip"]=>
    NULL
    ["address_country"]=>
    NULL
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10042"
  ["ordered_time"]=>
  string(19) "2018-01-01 01:50:07"
  ["se_order_id"]=>
  int(210116623)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(7) "WalMart"
  ["store_order_id"]=>
  string(13) "4581197396399"
  ["order_weight_ounces"]=>
  string(5) "656.0"
  ["store_order_status"]=>
  string(17) "awaiting_shipment"
  ["se_api_response"]=>
  string(3950) "{"id":210116623,"external_order_identifier":"4581197396399","ext_order_reference_id":"4581197396399","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2018-01-01T01:50:07Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"52.01","total_excluding_tax":"48.95","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"52.01","subtotal_excluding_tax":"48.95","subtotal_tax":"3.06","total_tax":"3.06","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":null,"billing_first_name":null,"billing_last_name":null,"billing_address":null,"billing_address2":null,"billing_city":null,"billing_state":null,"billing_country":null,"billing_postal_code":null,"billing_phone_number":null,"billing_email":"020BDC3DBDEF4EC1B31FD23EC9631283@relay.walmart.com","buyer_email":"020BDC3DBDEF4EC1B31FD23EC9631283@relay.walmart.com","recipients":[{"company":null,"first_name":"Bernadette","last_name":"Reynolds","address":"2239 Avenue L","address2":null,"address3":null,"city":"San Leon","residential":true,"state":"TX","province":null,"country":"United States","postal_code":"77539","postal_code_plus_4":"9645","phone_number":"2815593935","email":"020BDC3DBDEF4EC1B31FD23EC9631283@relay.walmart.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"Value","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack CharBlend Hickory BBQ Grilling Pellets","sku":"40charhick","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"656.0","quantity":1,"total_excluding_tax":"48.95","price_excluding_tax":"48.95","unit_price":"48.95","ext_line_item_id":"1","ext_product_id":null,"product_options":null,"uuid":"f70a6042-6841-4292-a752-49a1f6c85986","order_source_id":219991573,"gift_message":null}],"original_order":{"id":210116623,"customer_id":33773,"store_id":537580,"order_detail_id":212302573,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"656.0","total_quantity":1,"is_international":false,"usps_shipping_zone":6,"created_at":"2018-01-01T02:30:52Z","updated_at":"2018-01-01T10:07:55Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_shipment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack charblend hickory bbq grilling pellets","line_item_sku":"40charhick","address_kind":"R","recipient_last_name":"reynolds","recipient_requested_service":"value","gift":null,"prime_order_id":210116623,"state":"TX","owner_id":37098,"denormalized_ordered_at":"2018-01-01T01:50:07Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"4581197396399","packing_slip_generated":null,"denormalized_ext_order_reference_id":"4581197396399","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"8d8626ca858f2fdea525637cd6a0816f","shipments":[{"id":226410403,"tracking_number":"789174006202","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":1639,"ship_date":"2018-01-01"}],"updated_at":"2018-01-01T10:07:55Z","internal_notes":"","meta_data":null,"prime_order_id":210116623,"is_prime":null,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(226410403)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(5) "656.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(1639)
      ["ship_date"]=>
      string(10) "2018-01-01"
      ["tracking_number"]=>
      string(12) "789174006202"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7443

existingShippingEasySHipmentsDBRows:
array(0) {
}


shipmentDBRows:
array(0) {
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(226410403)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(5) "656.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(1639)
    ["ship_date"]=>
    string(10) "2018-01-01"
    ["tracking_number"]=>
    string(12) "789174006202"
  }
}

Adding shipment info:
array(7) {
  ["se_shipment_id"]=>
  int(226410403)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(5) "656.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(1639)
  ["ship_date"]=>
  string(10) "2018-01-01"
  ["tracking_number"]=>
  string(12) "789174006202"
}



sql:     
        INSERT INTO
            `bbqpo_se_shipments`
        (
            order_id,
            se_shipment_id,
            carrier_key,
            carrier_service_key,
            shipment_cost,
            ship_date,
            shipment_weight_ounces,
            tracking_number
        )
            VALUES
        (
            '7443',
            226410403,
            'FEDEX',
            'FEDEX_GROUND',
            1639,
            '2018-01-01',
            '656.0',
            '789174006202'
        )
        ON DUPLICATE KEY UPDATE
        
            se_shipment_id = 226410403,
            carrier_key = 'FEDEX',
            carrier_service_key = 'FEDEX_GROUND',
            shipment_cost = 1639,
            ship_date = '2018-01-01',
            tracking_number = '789174006202',
            shipment_weight_ounces = '656.0'
        

insert result:
string(4) "7101"



*** Order info:
Array
(
    [id] => 208784163
    [external_order_identifier] => 3944
    [ext_order_reference_id] => 3944
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-30T05:06:15Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 17.67
    [total_excluding_tax] => 0.00
    [discount_amount] => 4.00
    [coupon_discount] => 4.00
    [subtotal_including_tax] => 0.00
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 1.17
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => 
    [billing_first_name] => Kyle
    [billing_last_name] => Nelson
    [billing_address] => 5630 N Pointe Pkwy
    [billing_address2] => 
    [billing_city] => Lorain
    [billing_state] => OH
    [billing_country] => US
    [billing_postal_code] => 44053
    [billing_phone_number] => +14404539461
    [billing_email] => khnelson131@hotmail.com
    [buyer_email] => khnelson131@hotmail.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Kyle
                    [last_name] => Nelson
                    [address] => 5630 N Pointe Pkwy
                    [address2] => 
                    [address3] => 
                    [city] => Lorain
                    [residential] => 1
                    [state] => OH
                    [province] => 
                    [country] => United States
                    [postal_code] => 44053
                    [postal_code_plus_4] => 2184
                    [phone_number] => +14404539461
                    [email] => khnelson131@hotmail.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 0
                    [shipping_method] => Free Shipping - No PO Boxes or APO
                    [items_shipped] => 0
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Smokin Wedgies - Stainless Steel (free shipping - Multi-unit discounts)
                                    [sku] => wedgie
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 11.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 20.50
                                    [price_excluding_tax] => 0.00
                                    [unit_price] => 20.50
                                    [ext_line_item_id] => 
                                    [ext_product_id] => 45204563
                                    [product_options] => Array
                                        (
                                            [Add Smokin Wedgie Leg Kit for Flat Bottom Smokers] => Array
                                                (
                                                )

                                        )

                                    [uuid] => e9ba0dc4-2c5b-41c4-ab2c-f616a4f627fa
                                    [order_source_id] => 218459183
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 208784163
                            [customer_id] => 33773
                            [store_id] => 70642
                            [order_detail_id] => 210930393
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 11.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 4
                            [created_at] => 2017-12-30T04:31:41Z
                            [updated_at] => 2018-01-01T10:08:08Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_shipment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => smokin wedgies - stainless steel (free shipping - multi-unit discounts)
                            [line_item_sku] => wedgie
                            [address_kind] => R
                            [recipient_last_name] => nelson
                            [recipient_requested_service] => free shipping - no po boxes or apo
                            [gift] => 
                            [prime_order_id] => 208784163
                            [state] => OH
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-30T05:06:15Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 3944
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 3944
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 276833075f862f916ca417ff8ccb9564
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 226043173
                    [tracking_number] => 9400110298370319258002
                    [carrier_key] => USPS
                    [carrier_service_key] => First
                    [shipment_cost] => 360
                    [ship_date] => 2018-01-01
                )

        )

    [updated_at] => 2018-01-01T10:08:08Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 208784163
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsd
Customer not found in the database.  Attempting to add now
New customer ID: 10049

parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10049"
  ["ordered_time"]=>
  string(19) "2017-12-30 05:06:15"
  ["se_order_id"]=>
  int(208784163)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(5) "Ecwid"
  ["store_order_id"]=>
  string(4) "3944"
  ["order_weight_ounces"]=>
  string(4) "11.0"
  ["store_order_status"]=>
  string(17) "awaiting_shipment"
  ["se_api_response"]=>
  string(4005) "{"id":208784163,"external_order_identifier":"3944","ext_order_reference_id":"3944","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-30T05:06:15Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"17.67","total_excluding_tax":"0.00","discount_amount":"4.00","coupon_discount":"4.00","subtotal_including_tax":"0.00","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"1.17","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":null,"billing_first_name":"Kyle","billing_last_name":"Nelson","billing_address":"5630 N Pointe Pkwy","billing_address2":null,"billing_city":"Lorain","billing_state":"OH","billing_country":"US","billing_postal_code":"44053","billing_phone_number":"+14404539461","billing_email":"khnelson131@hotmail.com","buyer_email":"khnelson131@hotmail.com","recipients":[{"company":"","first_name":"Kyle","last_name":"Nelson","address":"5630 N Pointe Pkwy","address2":null,"address3":null,"city":"Lorain","residential":true,"state":"OH","province":null,"country":"United States","postal_code":"44053","postal_code_plus_4":"2184","phone_number":"+14404539461","email":"khnelson131@hotmail.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":0,"shipping_method":"Free Shipping - No PO Boxes or APO","items_shipped":0,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Smokin Wedgies - Stainless Steel (free shipping - Multi-unit discounts)","sku":"wedgie","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"11.0","quantity":1,"total_excluding_tax":"20.50","price_excluding_tax":"0.00","unit_price":"20.50","ext_line_item_id":null,"ext_product_id":"45204563","product_options":{"Add Smokin Wedgie Leg Kit for Flat Bottom Smokers":[]},"uuid":"e9ba0dc4-2c5b-41c4-ab2c-f616a4f627fa","order_source_id":218459183,"gift_message":null}],"original_order":{"id":208784163,"customer_id":33773,"store_id":70642,"order_detail_id":210930393,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"11.0","total_quantity":1,"is_international":false,"usps_shipping_zone":4,"created_at":"2017-12-30T04:31:41Z","updated_at":"2018-01-01T10:08:08Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_shipment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"smokin wedgies - stainless steel (free shipping - multi-unit discounts)","line_item_sku":"wedgie","address_kind":"R","recipient_last_name":"nelson","recipient_requested_service":"free shipping - no po boxes or apo","gift":false,"prime_order_id":208784163,"state":"OH","owner_id":37098,"denormalized_ordered_at":"2017-12-30T05:06:15Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"3944","packing_slip_generated":null,"denormalized_ext_order_reference_id":"3944","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"276833075f862f916ca417ff8ccb9564","shipments":[{"id":226043173,"tracking_number":"9400110298370319258002","carrier_key":"USPS","carrier_service_key":"First","shipment_cost":360,"ship_date":"2018-01-01"}],"updated_at":"2018-01-01T10:08:08Z","internal_notes":"","meta_data":null,"prime_order_id":208784163,"is_prime":null,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(226043173)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(4) "11.0"
      ["carrier_service_key"]=>
      string(5) "First"
      ["shipment_cost"]=>
      int(360)
      ["ship_date"]=>
      string(10) "2018-01-01"
      ["tracking_number"]=>
      string(22) "9400110298370319258002"
    }
  }
}


sql:     INSERT INTO
        `bbqpo_se_orders`
    (
        `customer_id`,
        `ordered_time`,
        `se_order_id`,
        `se_order_status`,
        `store_ordered_from`,
        `store_order_id`,
        `store_order_status`,
        `order_weight_ounces`,
        `se_api_response`,
        `last_updated`
    )
        VALUES 
    (
        '10049',
        '2017-12-30 05:06:15',
        '208784163',
        'shipped',
        'Ecwid',
        '3944',
        'awaiting_shipment',
        '11.0',
        '{\"id\":208784163,\"external_order_identifier\":\"3944\",\"ext_order_reference_id\":\"3944\",\"owner_id\":37098,\"sales_channel\":null,\"fulfillment_channel\":null,\"ordered_at\":\"2017-12-30T05:06:15Z\",\"order_status\":\"shipped\",\"parent_order_id\":null,\"source_order_ids\":null,\"total_including_tax\":\"17.67\",\"total_excluding_tax\":\"0.00\",\"discount_amount\":\"4.00\",\"coupon_discount\":\"4.00\",\"subtotal_including_tax\":\"0.00\",\"subtotal_excluding_tax\":\"0.00\",\"subtotal_tax\":\"0.00\",\"total_tax\":\"1.17\",\"base_shipping_cost\":\"0.00\",\"shipping_cost_including_tax\":\"0.00\",\"shipping_cost_excluding_tax\":\"0.00\",\"shipping_cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"base_wrapping_cost\":\"0.00\",\"wrapping_cost_excluding_tax\":\"0.00\",\"wrapping_cost_including_tax\":\"0.00\",\"wrapping_cost_tax\":\"0.00\",\"billing_company\":null,\"billing_first_name\":\"Kyle\",\"billing_last_name\":\"Nelson\",\"billing_address\":\"5630 N Pointe Pkwy\",\"billing_address2\":null,\"billing_city\":\"Lorain\",\"billing_state\":\"OH\",\"billing_country\":\"US\",\"billing_postal_code\":\"44053\",\"billing_phone_number\":\"+14404539461\",\"billing_email\":\"khnelson131@hotmail.com\",\"buyer_email\":\"khnelson131@hotmail.com\",\"recipients\":[{\"company\":\"\",\"first_name\":\"Kyle\",\"last_name\":\"Nelson\",\"address\":\"5630 N Pointe Pkwy\",\"address2\":null,\"address3\":null,\"city\":\"Lorain\",\"residential\":true,\"state\":\"OH\",\"province\":null,\"country\":\"United States\",\"postal_code\":\"44053\",\"postal_code_plus_4\":\"2184\",\"phone_number\":\"+14404539461\",\"email\":\"khnelson131@hotmail.com\",\"base_cost\":\"0.00\",\"cost_excluding_tax\":\"0.00\",\"cost_including_tax\":\"0.00\",\"cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"shipping_zone_id\":null,\"shipping_zone_name\":null,\"items_total\":0,\"shipping_method\":\"Free Shipping - No PO Boxes or APO\",\"items_shipped\":0,\"ext_shipping_detail_id\":null,\"line_items\":[{\"item_name\":\"Smokin Wedgies - Stainless Steel (free shipping - Multi-unit discounts)\",\"sku\":\"wedgie\",\"bin_picking_number\":null,\"bundled_product\":null,\"weight_in_ounces\":\"11.0\",\"quantity\":1,\"total_excluding_tax\":\"20.50\",\"price_excluding_tax\":\"0.00\",\"unit_price\":\"20.50\",\"ext_line_item_id\":null,\"ext_product_id\":\"45204563\",\"product_options\":{\"Add Smokin Wedgie Leg Kit for Flat Bottom Smokers\":[]},\"uuid\":\"e9ba0dc4-2c5b-41c4-ab2c-f616a4f627fa\",\"order_source_id\":218459183,\"gift_message\":null}],\"original_order\":{\"id\":208784163,\"customer_id\":33773,\"store_id\":70642,\"order_detail_id\":210930393,\"workflow_state\":\"shipped\",\"shipment_id\":null,\"destination_id\":null,\"split_from_order_id\":null,\"total_weight_in_ounces\":\"11.0\",\"total_quantity\":1,\"is_international\":false,\"usps_shipping_zone\":4,\"created_at\":\"2017-12-30T04:31:41Z\",\"updated_at\":\"2018-01-01T10:08:08Z\",\"ext_shipment_confirmation_id\":1,\"store_order_status\":\"awaiting_shipment\",\"drop_ship_tracking_number\":null,\"category_id\":136973,\"internal_notes\":\"\",\"line_item_name\":\"smokin wedgies - stainless steel (free shipping - multi-unit discounts)\",\"line_item_sku\":\"wedgie\",\"address_kind\":\"R\",\"recipient_last_name\":\"nelson\",\"recipient_requested_service\":\"free shipping - no po boxes or apo\",\"gift\":false,\"prime_order_id\":208784163,\"state\":\"OH\",\"owner_id\":37098,\"denormalized_ordered_at\":\"2017-12-30T05:06:15Z\",\"grab_bag\":[],\"line_item_bin_picking_number\":null,\"denormalized_ext_order_id\":\"3944\",\"packing_slip_generated\":null,\"denormalized_ext_order_reference_id\":\"3944\",\"denormalized_alternate_order_id\":null,\"denormalized_sales_channel\":null,\"custom_1\":null,\"custom_2\":null,\"custom_3\":null,\"hidden\":null,\"allocated\":null}}],\"store_api_key\":\"276833075f862f916ca417ff8ccb9564\",\"shipments\":[{\"id\":226043173,\"tracking_number\":\"9400110298370319258002\",\"carrier_key\":\"USPS\",\"carrier_service_key\":\"First\",\"shipment_cost\":360,\"ship_date\":\"2018-01-01\"}],\"updated_at\":\"2018-01-01T10:08:08Z\",\"internal_notes\":\"\",\"meta_data\":null,\"prime_order_id\":208784163,\"is_prime\":null,\"split_from_order_id\":null,\"tags\":[]}',
        CURRENT_TIMESTAMP
    )
        

Successfully added order to DB. Order ID (our DB's order ID) #7450

existingShippingEasySHipmentsDBRows:
array(0) {
}


shipmentDBRows:
array(0) {
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(226043173)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(4) "11.0"
    ["carrier_service_key"]=>
    string(5) "First"
    ["shipment_cost"]=>
    int(360)
    ["ship_date"]=>
    string(10) "2018-01-01"
    ["tracking_number"]=>
    string(22) "9400110298370319258002"
  }
}

Adding shipment info:
array(7) {
  ["se_shipment_id"]=>
  int(226043173)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(4) "11.0"
  ["carrier_service_key"]=>
  string(5) "First"
  ["shipment_cost"]=>
  int(360)
  ["ship_date"]=>
  string(10) "2018-01-01"
  ["tracking_number"]=>
  string(22) "9400110298370319258002"
}



sql:     
        INSERT INTO
            `bbqpo_se_shipments`
        (
            order_id,
            se_shipment_id,
            carrier_key,
            carrier_service_key,
            shipment_cost,
            ship_date,
            shipment_weight_ounces,
            tracking_number
        )
            VALUES
        (
            '7450',
            226043173,
            'USPS',
            'First',
            360,
            '2018-01-01',
            '11.0',
            '9400110298370319258002'
        )
        ON DUPLICATE KEY UPDATE
        
            se_shipment_id = 226043173,
            carrier_key = 'USPS',
            carrier_service_key = 'First',
            shipment_cost = 360,
            ship_date = '2018-01-01',
            tracking_number = '9400110298370319258002',
            shipment_weight_ounces = '11.0'
        

insert result:
string(4) "7102"



*** Order info:
Array
(
    [id] => 209107053
    [external_order_identifier] => 625
    [ext_order_reference_id] => 263172615353-2146514989016
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-30T17:35:54Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 19.99
    [total_excluding_tax] => 19.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 19.99
    [subtotal_excluding_tax] => 19.99
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => 
    [billing_first_name] => Brian
    [billing_last_name] => Rice
    [billing_address] => 8645 NC Hwy. 58 South
    [billing_address2] => 
    [billing_city] => Elm City
    [billing_state] => NC
    [billing_country] => US
    [billing_postal_code] => 27822
    [billing_phone_number] => 252 314 6017
    [billing_email] => bkrice11@yahoo.com
    [buyer_email] => bkrice11@yahoo.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Brian
                    [last_name] => Rice
                    [address] => 8645 NC Hwy. 58 South
                    [address2] => 
                    [address3] => 
                    [city] => Elm City
                    [residential] => 1
                    [state] => NC
                    [province] => 
                    [country] => United States
                    [postal_code] => 27822
                    [postal_code_plus_4] => 8502
                    [phone_number] => 252 314 6017
                    [email] => bkrice11@yahoo.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FedExHomeDelivery
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Smokin Wedgie - Stainless Steel - BBQ Grill Traeger, Big Green Egg, GMG, Yoder (New)
                                    [sku] => ebaywedgie
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 11.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 19.99
                                    [unit_price] => 19.99
                                    [ext_line_item_id] => 263172615353
                                    [ext_product_id] => 263172615353
                                    [product_options] => 
                                    [uuid] => 403b81c6-f19d-498a-a9e1-ef9429d3979b
                                    [order_source_id] => 218819683
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 209107053
                            [customer_id] => 33773
                            [store_id] => 70645
                            [order_detail_id] => 211265003
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 11.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-30T18:27:39Z
                            [updated_at] => 2018-01-01T10:08:09Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_shipment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => smokin wedgie - stainless steel - bbq grill traeger, big green egg, gmg, yoder (new)
                            [line_item_sku] => ebaywedgie
                            [address_kind] => R
                            [recipient_last_name] => rice
                            [recipient_requested_service] => fedexhomedelivery
                            [gift] => 
                            [prime_order_id] => 209107053
                            [state] => NC
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-30T17:35:54Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 625
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 263172615353-2146514989016
                            [denormalized_alternate_order_id] => 625
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => c7abd3d962624149b18bc3415cae937a
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 226043163
                    [tracking_number] => 9400110298370319257999
                    [carrier_key] => USPS
                    [carrier_service_key] => First
                    [shipment_cost] => 360
                    [ship_date] => 2018-01-01
                )

        )

    [updated_at] => 2018-01-01T10:08:09Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 209107053
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsd
Customer not found in the database.  Attempting to add now
New customer ID: 10050

parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10050"
  ["ordered_time"]=>
  string(19) "2017-12-30 17:35:54"
  ["se_order_id"]=>
  int(209107053)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(4) "eBay"
  ["store_order_id"]=>
  string(3) "625"
  ["order_weight_ounces"]=>
  string(4) "11.0"
  ["store_order_status"]=>
  string(17) "awaiting_shipment"
  ["se_api_response"]=>
  string(4009) "{"id":209107053,"external_order_identifier":"625","ext_order_reference_id":"263172615353-2146514989016","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-30T17:35:54Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"19.99","total_excluding_tax":"19.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"19.99","subtotal_excluding_tax":"19.99","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":null,"billing_first_name":"Brian","billing_last_name":"Rice","billing_address":"8645 NC Hwy. 58 South","billing_address2":"","billing_city":"Elm City","billing_state":"NC","billing_country":"US","billing_postal_code":"27822","billing_phone_number":"252 314 6017","billing_email":"bkrice11@yahoo.com","buyer_email":"bkrice11@yahoo.com","recipients":[{"company":null,"first_name":"Brian","last_name":"Rice","address":"8645 NC Hwy. 58 South","address2":null,"address3":null,"city":"Elm City","residential":true,"state":"NC","province":null,"country":"United States","postal_code":"27822","postal_code_plus_4":"8502","phone_number":"252 314 6017","email":"bkrice11@yahoo.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FedExHomeDelivery","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Smokin Wedgie - Stainless Steel - BBQ Grill Traeger, Big Green Egg, GMG, Yoder (New)","sku":"ebaywedgie","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"11.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"19.99","unit_price":"19.99","ext_line_item_id":"263172615353","ext_product_id":"263172615353","product_options":null,"uuid":"403b81c6-f19d-498a-a9e1-ef9429d3979b","order_source_id":218819683,"gift_message":null}],"original_order":{"id":209107053,"customer_id":33773,"store_id":70645,"order_detail_id":211265003,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"11.0","total_quantity":1,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-30T18:27:39Z","updated_at":"2018-01-01T10:08:09Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_shipment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"smokin wedgie - stainless steel - bbq grill traeger, big green egg, gmg, yoder (new)","line_item_sku":"ebaywedgie","address_kind":"R","recipient_last_name":"rice","recipient_requested_service":"fedexhomedelivery","gift":null,"prime_order_id":209107053,"state":"NC","owner_id":37098,"denormalized_ordered_at":"2017-12-30T17:35:54Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"625","packing_slip_generated":null,"denormalized_ext_order_reference_id":"263172615353-2146514989016","denormalized_alternate_order_id":"625","denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"c7abd3d962624149b18bc3415cae937a","shipments":[{"id":226043163,"tracking_number":"9400110298370319257999","carrier_key":"USPS","carrier_service_key":"First","shipment_cost":360,"ship_date":"2018-01-01"}],"updated_at":"2018-01-01T10:08:09Z","internal_notes":"","meta_data":null,"prime_order_id":209107053,"is_prime":null,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(226043163)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(4) "11.0"
      ["carrier_service_key"]=>
      string(5) "First"
      ["shipment_cost"]=>
      int(360)
      ["ship_date"]=>
      string(10) "2018-01-01"
      ["tracking_number"]=>
      string(22) "9400110298370319257999"
    }
  }
}


sql:     INSERT INTO
        `bbqpo_se_orders`
    (
        `customer_id`,
        `ordered_time`,
        `se_order_id`,
        `se_order_status`,
        `store_ordered_from`,
        `store_order_id`,
        `store_order_status`,
        `order_weight_ounces`,
        `se_api_response`,
        `last_updated`
    )
        VALUES 
    (
        '10050',
        '2017-12-30 17:35:54',
        '209107053',
        'shipped',
        'eBay',
        '625',
        'awaiting_shipment',
        '11.0',
        '{\"id\":209107053,\"external_order_identifier\":\"625\",\"ext_order_reference_id\":\"263172615353-2146514989016\",\"owner_id\":37098,\"sales_channel\":null,\"fulfillment_channel\":null,\"ordered_at\":\"2017-12-30T17:35:54Z\",\"order_status\":\"shipped\",\"parent_order_id\":null,\"source_order_ids\":null,\"total_including_tax\":\"19.99\",\"total_excluding_tax\":\"19.99\",\"discount_amount\":\"0.00\",\"coupon_discount\":\"0.00\",\"subtotal_including_tax\":\"19.99\",\"subtotal_excluding_tax\":\"19.99\",\"subtotal_tax\":\"0.00\",\"total_tax\":\"0.00\",\"base_shipping_cost\":\"0.00\",\"shipping_cost_including_tax\":\"0.00\",\"shipping_cost_excluding_tax\":\"0.00\",\"shipping_cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"base_wrapping_cost\":\"0.00\",\"wrapping_cost_excluding_tax\":\"0.00\",\"wrapping_cost_including_tax\":\"0.00\",\"wrapping_cost_tax\":\"0.00\",\"billing_company\":null,\"billing_first_name\":\"Brian\",\"billing_last_name\":\"Rice\",\"billing_address\":\"8645 NC Hwy. 58 South\",\"billing_address2\":\"\",\"billing_city\":\"Elm City\",\"billing_state\":\"NC\",\"billing_country\":\"US\",\"billing_postal_code\":\"27822\",\"billing_phone_number\":\"252 314 6017\",\"billing_email\":\"bkrice11@yahoo.com\",\"buyer_email\":\"bkrice11@yahoo.com\",\"recipients\":[{\"company\":null,\"first_name\":\"Brian\",\"last_name\":\"Rice\",\"address\":\"8645 NC Hwy. 58 South\",\"address2\":null,\"address3\":null,\"city\":\"Elm City\",\"residential\":true,\"state\":\"NC\",\"province\":null,\"country\":\"United States\",\"postal_code\":\"27822\",\"postal_code_plus_4\":\"8502\",\"phone_number\":\"252 314 6017\",\"email\":\"bkrice11@yahoo.com\",\"base_cost\":\"0.00\",\"cost_excluding_tax\":\"0.00\",\"cost_including_tax\":\"0.00\",\"cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"shipping_zone_id\":null,\"shipping_zone_name\":null,\"items_total\":null,\"shipping_method\":\"FedExHomeDelivery\",\"items_shipped\":null,\"ext_shipping_detail_id\":null,\"line_items\":[{\"item_name\":\"Smokin Wedgie - Stainless Steel - BBQ Grill Traeger, Big Green Egg, GMG, Yoder (New)\",\"sku\":\"ebaywedgie\",\"bin_picking_number\":null,\"bundled_product\":null,\"weight_in_ounces\":\"11.0\",\"quantity\":1,\"total_excluding_tax\":\"0.00\",\"price_excluding_tax\":\"19.99\",\"unit_price\":\"19.99\",\"ext_line_item_id\":\"263172615353\",\"ext_product_id\":\"263172615353\",\"product_options\":null,\"uuid\":\"403b81c6-f19d-498a-a9e1-ef9429d3979b\",\"order_source_id\":218819683,\"gift_message\":null}],\"original_order\":{\"id\":209107053,\"customer_id\":33773,\"store_id\":70645,\"order_detail_id\":211265003,\"workflow_state\":\"shipped\",\"shipment_id\":null,\"destination_id\":null,\"split_from_order_id\":null,\"total_weight_in_ounces\":\"11.0\",\"total_quantity\":1,\"is_international\":false,\"usps_shipping_zone\":5,\"created_at\":\"2017-12-30T18:27:39Z\",\"updated_at\":\"2018-01-01T10:08:09Z\",\"ext_shipment_confirmation_id\":1,\"store_order_status\":\"awaiting_shipment\",\"drop_ship_tracking_number\":null,\"category_id\":136973,\"internal_notes\":\"\",\"line_item_name\":\"smokin wedgie - stainless steel - bbq grill traeger, big green egg, gmg, yoder (new)\",\"line_item_sku\":\"ebaywedgie\",\"address_kind\":\"R\",\"recipient_last_name\":\"rice\",\"recipient_requested_service\":\"fedexhomedelivery\",\"gift\":null,\"prime_order_id\":209107053,\"state\":\"NC\",\"owner_id\":37098,\"denormalized_ordered_at\":\"2017-12-30T17:35:54Z\",\"grab_bag\":[],\"line_item_bin_picking_number\":null,\"denormalized_ext_order_id\":\"625\",\"packing_slip_generated\":null,\"denormalized_ext_order_reference_id\":\"263172615353-2146514989016\",\"denormalized_alternate_order_id\":\"625\",\"denormalized_sales_channel\":null,\"custom_1\":null,\"custom_2\":null,\"custom_3\":null,\"hidden\":null,\"allocated\":null}}],\"store_api_key\":\"c7abd3d962624149b18bc3415cae937a\",\"shipments\":[{\"id\":226043163,\"tracking_number\":\"9400110298370319257999\",\"carrier_key\":\"USPS\",\"carrier_service_key\":\"First\",\"shipment_cost\":360,\"ship_date\":\"2018-01-01\"}],\"updated_at\":\"2018-01-01T10:08:09Z\",\"internal_notes\":\"\",\"meta_data\":null,\"prime_order_id\":209107053,\"is_prime\":null,\"split_from_order_id\":null,\"tags\":[]}',
        CURRENT_TIMESTAMP
    )
        

Successfully added order to DB. Order ID (our DB's order ID) #7451

existingShippingEasySHipmentsDBRows:
array(0) {
}


shipmentDBRows:
array(0) {
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(226043163)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(4) "11.0"
    ["carrier_service_key"]=>
    string(5) "First"
    ["shipment_cost"]=>
    int(360)
    ["ship_date"]=>
    string(10) "2018-01-01"
    ["tracking_number"]=>
    string(22) "9400110298370319257999"
  }
}

Adding shipment info:
array(7) {
  ["se_shipment_id"]=>
  int(226043163)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(4) "11.0"
  ["carrier_service_key"]=>
  string(5) "First"
  ["shipment_cost"]=>
  int(360)
  ["ship_date"]=>
  string(10) "2018-01-01"
  ["tracking_number"]=>
  string(22) "9400110298370319257999"
}



sql:     
        INSERT INTO
            `bbqpo_se_shipments`
        (
            order_id,
            se_shipment_id,
            carrier_key,
            carrier_service_key,
            shipment_cost,
            ship_date,
            shipment_weight_ounces,
            tracking_number
        )
            VALUES
        (
            '7451',
            226043163,
            'USPS',
            'First',
            360,
            '2018-01-01',
            '11.0',
            '9400110298370319257999'
        )
        ON DUPLICATE KEY UPDATE
        
            se_shipment_id = 226043163,
            carrier_key = 'USPS',
            carrier_service_key = 'First',
            shipment_cost = 360,
            ship_date = '2018-01-01',
            tracking_number = '9400110298370319257999',
            shipment_weight_ounces = '11.0'
        

insert result:
string(4) "7103"



*** Order info:
Array
(
    [id] => 208741643
    [external_order_identifier] => 3943
    [ext_order_reference_id] => 3943
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-30T03:36:26Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 23.00
    [total_excluding_tax] => 0.00
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 0.00
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => 
    [billing_first_name] => Roger
    [billing_last_name] => Murphy
    [billing_address] => 3649 highway 139
    [billing_address2] => 
    [billing_city] => Monroe
    [billing_state] => LA
    [billing_country] => US
    [billing_postal_code] => 71203
    [billing_phone_number] => 3185034407
    [billing_email] => southernguy1236@yahoo.com
    [buyer_email] => southernguy1236@yahoo.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Roger
                    [last_name] => Murphy
                    [address] => 3649 highway 139
                    [address2] => 
                    [address3] => 
                    [city] => Monroe
                    [residential] => 1
                    [state] => LA
                    [province] => 
                    [country] => United States
                    [postal_code] => 71203
                    [postal_code_plus_4] => 8498
                    [phone_number] => 3185034407
                    [email] => southernguy1236@yahoo.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 0
                    [shipping_method] => Free Shipping - No PO Boxes or APO
                    [items_shipped] => 0
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Maple-Hickory-Cherry (MHC) - Competition Blend Pellets
                                    [sku] => 20mhc
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 336.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 23.00
                                    [price_excluding_tax] => 0.00
                                    [unit_price] => 23.00
                                    [ext_line_item_id] => 
                                    [ext_product_id] => 82522196
                                    [product_options] => Array
                                        (
                                            [Weight] => 20 Pound Bag
                                            [Add a Flavor Magnet and never forget what's in your hopper] => Array
                                                (
                                                )

                                            [Add Smokin Wedgie Pellet Smoker] => Array
                                                (
                                                )

                                            [Add Handy Camel Bag Clip] => Array
                                                (
                                                )

                                            [Add Gourmet Duck Fat Spray Can(s) Here (7 Ounce)] => Array
                                                (
                                                )

                                            [Add Smokin Wedgie Leg Kit for Flat Bottom Smokers] => Array
                                                (
                                                )

                                            [BBQ Bottle Opener] => Array
                                                (
                                                )

                                        )

                                    [uuid] => ece03ab1-5b2f-4d71-95ec-ba56874b85af
                                    [order_source_id] => 218411303
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 208741643
                            [customer_id] => 33773
                            [store_id] => 70642
                            [order_detail_id] => 210886233
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 336.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-30T03:31:46Z
                            [updated_at] => 2018-01-01T10:08:54Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_shipment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => maple-hickory-cherry (mhc) - competition blend pellets
                            [line_item_sku] => 20mhc
                            [address_kind] => R
                            [recipient_last_name] => murphy
                            [recipient_requested_service] => free shipping - no po boxes or apo
                            [gift] => 
                            [prime_order_id] => 208741643
                            [state] => LA
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-30T03:36:26Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 3943
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 3943
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 276833075f862f916ca417ff8ccb9564
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 226043343
                    [tracking_number] => 789174009315
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 771
                    [ship_date] => 2018-01-01
                )

        )

    [updated_at] => 2018-01-01T10:08:54Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 208741643
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsd
Customer not found in the database.  Attempting to add now
New customer ID: 10051

parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10051"
  ["ordered_time"]=>
  string(19) "2017-12-30 03:36:26"
  ["se_order_id"]=>
  int(208741643)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(5) "Ecwid"
  ["store_order_id"]=>
  string(4) "3943"
  ["order_weight_ounces"]=>
  string(5) "336.0"
  ["store_order_status"]=>
  string(17) "awaiting_shipment"
  ["se_api_response"]=>
  string(4201) "{"id":208741643,"external_order_identifier":"3943","ext_order_reference_id":"3943","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-30T03:36:26Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"23.00","total_excluding_tax":"0.00","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"0.00","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":null,"billing_first_name":"Roger","billing_last_name":"Murphy","billing_address":"3649 highway 139","billing_address2":null,"billing_city":"Monroe","billing_state":"LA","billing_country":"US","billing_postal_code":"71203","billing_phone_number":"3185034407","billing_email":"southernguy1236@yahoo.com","buyer_email":"southernguy1236@yahoo.com","recipients":[{"company":"","first_name":"Roger","last_name":"Murphy","address":"3649 highway 139","address2":null,"address3":null,"city":"Monroe","residential":true,"state":"LA","province":null,"country":"United States","postal_code":"71203","postal_code_plus_4":"8498","phone_number":"3185034407","email":"southernguy1236@yahoo.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":0,"shipping_method":"Free Shipping - No PO Boxes or APO","items_shipped":0,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Maple-Hickory-Cherry (MHC) - Competition Blend Pellets","sku":"20mhc","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"336.0","quantity":1,"total_excluding_tax":"23.00","price_excluding_tax":"0.00","unit_price":"23.00","ext_line_item_id":null,"ext_product_id":"82522196","product_options":{"Weight":"20 Pound Bag","Add a Flavor Magnet and never forget what's in your hopper":[],"Add Smokin Wedgie Pellet Smoker":[],"Add Handy Camel Bag Clip":[],"Add Gourmet Duck Fat Spray Can(s) Here (7 Ounce)":[],"Add Smokin Wedgie Leg Kit for Flat Bottom Smokers":[],"BBQ Bottle Opener":[]},"uuid":"ece03ab1-5b2f-4d71-95ec-ba56874b85af","order_source_id":218411303,"gift_message":null}],"original_order":{"id":208741643,"customer_id":33773,"store_id":70642,"order_detail_id":210886233,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"336.0","total_quantity":1,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-30T03:31:46Z","updated_at":"2018-01-01T10:08:54Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_shipment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"maple-hickory-cherry (mhc) - competition blend pellets","line_item_sku":"20mhc","address_kind":"R","recipient_last_name":"murphy","recipient_requested_service":"free shipping - no po boxes or apo","gift":false,"prime_order_id":208741643,"state":"LA","owner_id":37098,"denormalized_ordered_at":"2017-12-30T03:36:26Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"3943","packing_slip_generated":null,"denormalized_ext_order_reference_id":"3943","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"276833075f862f916ca417ff8ccb9564","shipments":[{"id":226043343,"tracking_number":"789174009315","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":771,"ship_date":"2018-01-01"}],"updated_at":"2018-01-01T10:08:54Z","internal_notes":"","meta_data":null,"prime_order_id":208741643,"is_prime":null,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(226043343)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(5) "336.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(771)
      ["ship_date"]=>
      string(10) "2018-01-01"
      ["tracking_number"]=>
      string(12) "789174009315"
    }
  }
}


sql:     INSERT INTO
        `bbqpo_se_orders`
    (
        `customer_id`,
        `ordered_time`,
        `se_order_id`,
        `se_order_status`,
        `store_ordered_from`,
        `store_order_id`,
        `store_order_status`,
        `order_weight_ounces`,
        `se_api_response`,
        `last_updated`
    )
        VALUES 
    (
        '10051',
        '2017-12-30 03:36:26',
        '208741643',
        'shipped',
        'Ecwid',
        '3943',
        'awaiting_shipment',
        '336.0',
        '{\"id\":208741643,\"external_order_identifier\":\"3943\",\"ext_order_reference_id\":\"3943\",\"owner_id\":37098,\"sales_channel\":null,\"fulfillment_channel\":null,\"ordered_at\":\"2017-12-30T03:36:26Z\",\"order_status\":\"shipped\",\"parent_order_id\":null,\"source_order_ids\":null,\"total_including_tax\":\"23.00\",\"total_excluding_tax\":\"0.00\",\"discount_amount\":\"0.00\",\"coupon_discount\":\"0.00\",\"subtotal_including_tax\":\"0.00\",\"subtotal_excluding_tax\":\"0.00\",\"subtotal_tax\":\"0.00\",\"total_tax\":\"0.00\",\"base_shipping_cost\":\"0.00\",\"shipping_cost_including_tax\":\"0.00\",\"shipping_cost_excluding_tax\":\"0.00\",\"shipping_cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"base_wrapping_cost\":\"0.00\",\"wrapping_cost_excluding_tax\":\"0.00\",\"wrapping_cost_including_tax\":\"0.00\",\"wrapping_cost_tax\":\"0.00\",\"billing_company\":null,\"billing_first_name\":\"Roger\",\"billing_last_name\":\"Murphy\",\"billing_address\":\"3649 highway 139\",\"billing_address2\":null,\"billing_city\":\"Monroe\",\"billing_state\":\"LA\",\"billing_country\":\"US\",\"billing_postal_code\":\"71203\",\"billing_phone_number\":\"3185034407\",\"billing_email\":\"southernguy1236@yahoo.com\",\"buyer_email\":\"southernguy1236@yahoo.com\",\"recipients\":[{\"company\":\"\",\"first_name\":\"Roger\",\"last_name\":\"Murphy\",\"address\":\"3649 highway 139\",\"address2\":null,\"address3\":null,\"city\":\"Monroe\",\"residential\":true,\"state\":\"LA\",\"province\":null,\"country\":\"United States\",\"postal_code\":\"71203\",\"postal_code_plus_4\":\"8498\",\"phone_number\":\"3185034407\",\"email\":\"southernguy1236@yahoo.com\",\"base_cost\":\"0.00\",\"cost_excluding_tax\":\"0.00\",\"cost_including_tax\":\"0.00\",\"cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"shipping_zone_id\":null,\"shipping_zone_name\":null,\"items_total\":0,\"shipping_method\":\"Free Shipping - No PO Boxes or APO\",\"items_shipped\":0,\"ext_shipping_detail_id\":null,\"line_items\":[{\"item_name\":\"Maple-Hickory-Cherry (MHC) - Competition Blend Pellets\",\"sku\":\"20mhc\",\"bin_picking_number\":null,\"bundled_product\":null,\"weight_in_ounces\":\"336.0\",\"quantity\":1,\"total_excluding_tax\":\"23.00\",\"price_excluding_tax\":\"0.00\",\"unit_price\":\"23.00\",\"ext_line_item_id\":null,\"ext_product_id\":\"82522196\",\"product_options\":{\"Weight\":\"20 Pound Bag\",\"Add a Flavor Magnet and never forget what\'s in your hopper\":[],\"Add Smokin Wedgie Pellet Smoker\":[],\"Add Handy Camel Bag Clip\":[],\"Add Gourmet Duck Fat Spray Can(s) Here (7 Ounce)\":[],\"Add Smokin Wedgie Leg Kit for Flat Bottom Smokers\":[],\"BBQ Bottle Opener\":[]},\"uuid\":\"ece03ab1-5b2f-4d71-95ec-ba56874b85af\",\"order_source_id\":218411303,\"gift_message\":null}],\"original_order\":{\"id\":208741643,\"customer_id\":33773,\"store_id\":70642,\"order_detail_id\":210886233,\"workflow_state\":\"shipped\",\"shipment_id\":null,\"destination_id\":null,\"split_from_order_id\":null,\"total_weight_in_ounces\":\"336.0\",\"total_quantity\":1,\"is_international\":false,\"usps_shipping_zone\":5,\"created_at\":\"2017-12-30T03:31:46Z\",\"updated_at\":\"2018-01-01T10:08:54Z\",\"ext_shipment_confirmation_id\":1,\"store_order_status\":\"awaiting_shipment\",\"drop_ship_tracking_number\":null,\"category_id\":136973,\"internal_notes\":\"\",\"line_item_name\":\"maple-hickory-cherry (mhc) - competition blend pellets\",\"line_item_sku\":\"20mhc\",\"address_kind\":\"R\",\"recipient_last_name\":\"murphy\",\"recipient_requested_service\":\"free shipping - no po boxes or apo\",\"gift\":false,\"prime_order_id\":208741643,\"state\":\"LA\",\"owner_id\":37098,\"denormalized_ordered_at\":\"2017-12-30T03:36:26Z\",\"grab_bag\":[],\"line_item_bin_picking_number\":null,\"denormalized_ext_order_id\":\"3943\",\"packing_slip_generated\":null,\"denormalized_ext_order_reference_id\":\"3943\",\"denormalized_alternate_order_id\":null,\"denormalized_sales_channel\":null,\"custom_1\":null,\"custom_2\":null,\"custom_3\":null,\"hidden\":null,\"allocated\":null}}],\"store_api_key\":\"276833075f862f916ca417ff8ccb9564\",\"shipments\":[{\"id\":226043343,\"tracking_number\":\"789174009315\",\"carrier_key\":\"FEDEX\",\"carrier_service_key\":\"FEDEX_GROUND\",\"shipment_cost\":771,\"ship_date\":\"2018-01-01\"}],\"updated_at\":\"2018-01-01T10:08:54Z\",\"internal_notes\":\"\",\"meta_data\":null,\"prime_order_id\":208741643,\"is_prime\":null,\"split_from_order_id\":null,\"tags\":[]}',
        CURRENT_TIMESTAMP
    )
        

Successfully added order to DB. Order ID (our DB's order ID) #7452

existingShippingEasySHipmentsDBRows:
array(0) {
}


shipmentDBRows:
array(0) {
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(226043343)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(5) "336.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(771)
    ["ship_date"]=>
    string(10) "2018-01-01"
    ["tracking_number"]=>
    string(12) "789174009315"
  }
}

Adding shipment info:
array(7) {
  ["se_shipment_id"]=>
  int(226043343)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(5) "336.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(771)
  ["ship_date"]=>
  string(10) "2018-01-01"
  ["tracking_number"]=>
  string(12) "789174009315"
}



sql:     
        INSERT INTO
            `bbqpo_se_shipments`
        (
            order_id,
            se_shipment_id,
            carrier_key,
            carrier_service_key,
            shipment_cost,
            ship_date,
            shipment_weight_ounces,
            tracking_number
        )
            VALUES
        (
            '7452',
            226043343,
            'FEDEX',
            'FEDEX_GROUND',
            771,
            '2018-01-01',
            '336.0',
            '789174009315'
        )
        ON DUPLICATE KEY UPDATE
        
            se_shipment_id = 226043343,
            carrier_key = 'FEDEX',
            carrier_service_key = 'FEDEX_GROUND',
            shipment_cost = 771,
            ship_date = '2018-01-01',
            tracking_number = '789174009315',
            shipment_weight_ounces = '336.0'
        

insert result:
string(4) "7104"



*** Order info:
Array
(
    [id] => 208044713
    [external_order_identifier] => 113-1839578-1501068
    [ext_order_reference_id] => 113-1839578-1501068
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-29T14:04:21Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 29.99
    [total_excluding_tax] => 29.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 29.99
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => David C Campbell
    [billing_first_name] => David
    [billing_last_name] => Campbell
    [billing_address] => 8014 SUTTONVIEW DR
    [billing_address2] => 
    [billing_city] => CHARLOTTE
    [billing_state] => NC
    [billing_country] => US
    [billing_postal_code] => 28269-5237
    [billing_phone_number] => 7049954069
    [billing_email] => 6c5rshp4lc1d22p@marketplace.amazon.com
    [buyer_email] => 6c5rshp4lc1d22p@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => David
                    [last_name] => C Campbell
                    [address] => 8014 SUTTONVIEW DR
                    [address2] => 
                    [address3] => 
                    [city] => CHARLOTTE
                    [residential] => 1
                    [state] => NC
                    [province] => 
                    [country] => United States
                    [postal_code] => 28269
                    [postal_code_plus_4] => 5237
                    [phone_number] => 7049954069
                    [email] => 6c5rshp4lc1d22p@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Priority Mail if Qty 1 (New)
                                    [sku] => 1poundvariety
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 112.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 29.99
                                    [unit_price] => 29.99
                                    [ext_line_item_id] => 22367546299434
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 18bd941b-664c-4750-90b3-c451781c6518
                                    [order_source_id] => 217659683
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 208044713
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 210169313
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 112.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-29T15:06:36Z
                            [updated_at] => 2018-01-01T10:10:52Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped priority mail if qty 1 (new)
                            [line_item_sku] => 1poundvariety
                            [address_kind] => R
                            [recipient_last_name] => c campbell
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 208044713
                            [state] => NC
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-29T14:04:21Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 113-1839578-1501068
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 113-1839578-1501068
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 226042953
                    [tracking_number] => 9405510298370319258975
                    [carrier_key] => USPS
                    [carrier_service_key] => Priority
                    [shipment_cost] => 815
                    [ship_date] => 2018-01-01
                )

        )

    [updated_at] => 2018-01-01T10:10:52Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 208044713
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsd
Customer not found in the database.  Attempting to add now
New customer ID: 10052

parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10052"
  ["ordered_time"]=>
  string(19) "2017-12-29 14:04:21"
  ["se_order_id"]=>
  int(208044713)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "113-1839578-1501068"
  ["order_weight_ounces"]=>
  string(5) "112.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4291) "{"id":208044713,"external_order_identifier":"113-1839578-1501068","ext_order_reference_id":"113-1839578-1501068","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-29T14:04:21Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"29.99","total_excluding_tax":"29.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"29.99","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"David C Campbell","billing_first_name":"David","billing_last_name":"Campbell","billing_address":"8014 SUTTONVIEW DR","billing_address2":null,"billing_city":"CHARLOTTE","billing_state":"NC","billing_country":"US","billing_postal_code":"28269-5237","billing_phone_number":"7049954069","billing_email":"6c5rshp4lc1d22p@marketplace.amazon.com","buyer_email":"6c5rshp4lc1d22p@marketplace.amazon.com","recipients":[{"company":null,"first_name":"David","last_name":"C Campbell","address":"8014 SUTTONVIEW DR","address2":null,"address3":null,"city":"CHARLOTTE","residential":true,"state":"NC","province":null,"country":"United States","postal_code":"28269","postal_code_plus_4":"5237","phone_number":"7049954069","email":"6c5rshp4lc1d22p@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Priority Mail if Qty 1 (New)","sku":"1poundvariety","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"112.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"29.99","unit_price":"29.99","ext_line_item_id":"22367546299434","ext_product_id":null,"product_options":null,"uuid":"18bd941b-664c-4750-90b3-c451781c6518","order_source_id":217659683,"gift_message":null}],"original_order":{"id":208044713,"customer_id":33773,"store_id":70647,"order_detail_id":210169313,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"112.0","total_quantity":1,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-29T15:06:36Z","updated_at":"2018-01-01T10:10:52Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped priority mail if qty 1 (new)","line_item_sku":"1poundvariety","address_kind":"R","recipient_last_name":"c campbell","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":208044713,"state":"NC","owner_id":37098,"denormalized_ordered_at":"2017-12-29T14:04:21Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"113-1839578-1501068","packing_slip_generated":null,"denormalized_ext_order_reference_id":"113-1839578-1501068","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":226042953,"tracking_number":"9405510298370319258975","carrier_key":"USPS","carrier_service_key":"Priority","shipment_cost":815,"ship_date":"2018-01-01"}],"updated_at":"2018-01-01T10:10:52Z","internal_notes":"","meta_data":null,"prime_order_id":208044713,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(226042953)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(5) "112.0"
      ["carrier_service_key"]=>
      string(8) "Priority"
      ["shipment_cost"]=>
      int(815)
      ["ship_date"]=>
      string(10) "2018-01-01"
      ["tracking_number"]=>
      string(22) "9405510298370319258975"
    }
  }
}


sql:     INSERT INTO
        `bbqpo_se_orders`
    (
        `customer_id`,
        `ordered_time`,
        `se_order_id`,
        `se_order_status`,
        `store_ordered_from`,
        `store_order_id`,
        `store_order_status`,
        `order_weight_ounces`,
        `se_api_response`,
        `last_updated`
    )
        VALUES 
    (
        '10052',
        '2017-12-29 14:04:21',
        '208044713',
        'shipped',
        'Amazon',
        '113-1839578-1501068',
        'awaiting_fulfillment',
        '112.0',
        '{\"id\":208044713,\"external_order_identifier\":\"113-1839578-1501068\",\"ext_order_reference_id\":\"113-1839578-1501068\",\"owner_id\":37098,\"sales_channel\":null,\"fulfillment_channel\":null,\"ordered_at\":\"2017-12-29T14:04:21Z\",\"order_status\":\"shipped\",\"parent_order_id\":null,\"source_order_ids\":null,\"total_including_tax\":\"29.99\",\"total_excluding_tax\":\"29.99\",\"discount_amount\":\"0.00\",\"coupon_discount\":\"0.00\",\"subtotal_including_tax\":\"29.99\",\"subtotal_excluding_tax\":\"0.00\",\"subtotal_tax\":\"0.00\",\"total_tax\":\"0.00\",\"base_shipping_cost\":\"0.00\",\"shipping_cost_including_tax\":\"0.00\",\"shipping_cost_excluding_tax\":\"0.00\",\"shipping_cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"base_wrapping_cost\":\"0.00\",\"wrapping_cost_excluding_tax\":\"0.00\",\"wrapping_cost_including_tax\":\"0.00\",\"wrapping_cost_tax\":\"0.00\",\"billing_company\":\"David C Campbell\",\"billing_first_name\":\"David\",\"billing_last_name\":\"Campbell\",\"billing_address\":\"8014 SUTTONVIEW DR\",\"billing_address2\":null,\"billing_city\":\"CHARLOTTE\",\"billing_state\":\"NC\",\"billing_country\":\"US\",\"billing_postal_code\":\"28269-5237\",\"billing_phone_number\":\"7049954069\",\"billing_email\":\"6c5rshp4lc1d22p@marketplace.amazon.com\",\"buyer_email\":\"6c5rshp4lc1d22p@marketplace.amazon.com\",\"recipients\":[{\"company\":null,\"first_name\":\"David\",\"last_name\":\"C Campbell\",\"address\":\"8014 SUTTONVIEW DR\",\"address2\":null,\"address3\":null,\"city\":\"CHARLOTTE\",\"residential\":true,\"state\":\"NC\",\"province\":null,\"country\":\"United States\",\"postal_code\":\"28269\",\"postal_code_plus_4\":\"5237\",\"phone_number\":\"7049954069\",\"email\":\"6c5rshp4lc1d22p@marketplace.amazon.com\",\"base_cost\":\"0.00\",\"cost_excluding_tax\":\"0.00\",\"cost_including_tax\":\"0.00\",\"cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"shipping_zone_id\":null,\"shipping_zone_name\":null,\"items_total\":null,\"shipping_method\":\"FreeEconomy\",\"items_shipped\":null,\"ext_shipping_detail_id\":null,\"line_items\":[{\"item_name\":\"Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Priority Mail if Qty 1 (New)\",\"sku\":\"1poundvariety\",\"bin_picking_number\":null,\"bundled_product\":null,\"weight_in_ounces\":\"112.0\",\"quantity\":1,\"total_excluding_tax\":\"0.00\",\"price_excluding_tax\":\"29.99\",\"unit_price\":\"29.99\",\"ext_line_item_id\":\"22367546299434\",\"ext_product_id\":null,\"product_options\":null,\"uuid\":\"18bd941b-664c-4750-90b3-c451781c6518\",\"order_source_id\":217659683,\"gift_message\":null}],\"original_order\":{\"id\":208044713,\"customer_id\":33773,\"store_id\":70647,\"order_detail_id\":210169313,\"workflow_state\":\"shipped\",\"shipment_id\":null,\"destination_id\":null,\"split_from_order_id\":null,\"total_weight_in_ounces\":\"112.0\",\"total_quantity\":1,\"is_international\":false,\"usps_shipping_zone\":5,\"created_at\":\"2017-12-29T15:06:36Z\",\"updated_at\":\"2018-01-01T10:10:52Z\",\"ext_shipment_confirmation_id\":1,\"store_order_status\":\"awaiting_fulfillment\",\"drop_ship_tracking_number\":null,\"category_id\":136973,\"internal_notes\":\"\",\"line_item_name\":\"lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped priority mail if qty 1 (new)\",\"line_item_sku\":\"1poundvariety\",\"address_kind\":\"R\",\"recipient_last_name\":\"c campbell\",\"recipient_requested_service\":\"freeeconomy\",\"gift\":null,\"prime_order_id\":208044713,\"state\":\"NC\",\"owner_id\":37098,\"denormalized_ordered_at\":\"2017-12-29T14:04:21Z\",\"grab_bag\":[],\"line_item_bin_picking_number\":null,\"denormalized_ext_order_id\":\"113-1839578-1501068\",\"packing_slip_generated\":null,\"denormalized_ext_order_reference_id\":\"113-1839578-1501068\",\"denormalized_alternate_order_id\":null,\"denormalized_sales_channel\":null,\"custom_1\":null,\"custom_2\":null,\"custom_3\":null,\"hidden\":null,\"allocated\":null}}],\"store_api_key\":\"7090b516cf49ce6d62caa5db6a7a32ab\",\"shipments\":[{\"id\":226042953,\"tracking_number\":\"9405510298370319258975\",\"carrier_key\":\"USPS\",\"carrier_service_key\":\"Priority\",\"shipment_cost\":815,\"ship_date\":\"2018-01-01\"}],\"updated_at\":\"2018-01-01T10:10:52Z\",\"internal_notes\":\"\",\"meta_data\":null,\"prime_order_id\":208044713,\"is_prime\":false,\"split_from_order_id\":null,\"tags\":[]}',
        CURRENT_TIMESTAMP
    )
        

Successfully added order to DB. Order ID (our DB's order ID) #7453

existingShippingEasySHipmentsDBRows:
array(0) {
}


shipmentDBRows:
array(0) {
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(226042953)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(5) "112.0"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    int(815)
    ["ship_date"]=>
    string(10) "2018-01-01"
    ["tracking_number"]=>
    string(22) "9405510298370319258975"
  }
}

Adding shipment info:
array(7) {
  ["se_shipment_id"]=>
  int(226042953)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(5) "112.0"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  int(815)
  ["ship_date"]=>
  string(10) "2018-01-01"
  ["tracking_number"]=>
  string(22) "9405510298370319258975"
}



sql:     
        INSERT INTO
            `bbqpo_se_shipments`
        (
            order_id,
            se_shipment_id,
            carrier_key,
            carrier_service_key,
            shipment_cost,
            ship_date,
            shipment_weight_ounces,
            tracking_number
        )
            VALUES
        (
            '7453',
            226042953,
            'USPS',
            'Priority',
            815,
            '2018-01-01',
            '112.0',
            '9405510298370319258975'
        )
        ON DUPLICATE KEY UPDATE
        
            se_shipment_id = 226042953,
            carrier_key = 'USPS',
            carrier_service_key = 'Priority',
            shipment_cost = 815,
            ship_date = '2018-01-01',
            tracking_number = '9405510298370319258975',
            shipment_weight_ounces = '112.0'
        

insert result:
string(4) "7105"



*** Order info:
Array
(
    [id] => 208586213
    [external_order_identifier] => 114-6461773-0080219
    [ext_order_reference_id] => 114-6461773-0080219
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-29T23:30:23Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 32.54
    [total_excluding_tax] => 29.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 32.54
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 2.55
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Ricki L Cox
    [billing_first_name] => Nick
    [billing_last_name] => Cox
    [billing_address] => 190 MORGISON LOOP
    [billing_address2] => 
    [billing_city] => SEQUIM
    [billing_state] => WA
    [billing_country] => US
    [billing_postal_code] => 98382-6665
    [billing_phone_number] => 5099394534
    [billing_email] => 4vcck94stq8xp18@marketplace.amazon.com
    [buyer_email] => 4vcck94stq8xp18@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Ricki
                    [last_name] => L Cox
                    [address] => 190 MORGISON LOOP
                    [address2] => 
                    [address3] => 
                    [city] => SEQUIM
                    [residential] => 1
                    [state] => WA
                    [province] => 
                    [country] => United States
                    [postal_code] => 98382
                    [postal_code_plus_4] => 6665
                    [phone_number] => 5099394534
                    [email] => 4vcck94stq8xp18@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Priority Mail if Qty 1 (New)
                                    [sku] => 1poundvariety
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 112.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 29.99
                                    [unit_price] => 29.99
                                    [ext_line_item_id] => 28532226783810
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 59ddf70b-7977-495e-9ab5-80153e307b1d
                                    [order_source_id] => 218238663
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 208586213
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 210726793
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 112.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 7
                            [created_at] => 2017-12-30T00:06:30Z
                            [updated_at] => 2018-01-01T10:10:52Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped priority mail if qty 1 (new)
                            [line_item_sku] => 1poundvariety
                            [address_kind] => R
                            [recipient_last_name] => l cox
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 208586213
                            [state] => WA
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-29T23:30:23Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 114-6461773-0080219
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 114-6461773-0080219
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 226042963
                    [tracking_number] => 9405510298370319259002
                    [carrier_key] => USPS
                    [carrier_service_key] => Priority
                    [shipment_cost] => 999
                    [ship_date] => 2018-01-01
                )

        )

    [updated_at] => 2018-01-01T10:10:52Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 208586213
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsd
Customer not found in the database.  Attempting to add now
New customer ID: 10053

parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10053"
  ["ordered_time"]=>
  string(19) "2017-12-29 23:30:23"
  ["se_order_id"]=>
  int(208586213)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "114-6461773-0080219"
  ["order_weight_ounces"]=>
  string(5) "112.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4262) "{"id":208586213,"external_order_identifier":"114-6461773-0080219","ext_order_reference_id":"114-6461773-0080219","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-29T23:30:23Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"32.54","total_excluding_tax":"29.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"32.54","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"2.55","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Ricki L Cox","billing_first_name":"Nick","billing_last_name":"Cox","billing_address":"190 MORGISON LOOP","billing_address2":null,"billing_city":"SEQUIM","billing_state":"WA","billing_country":"US","billing_postal_code":"98382-6665","billing_phone_number":"5099394534","billing_email":"4vcck94stq8xp18@marketplace.amazon.com","buyer_email":"4vcck94stq8xp18@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Ricki","last_name":"L Cox","address":"190 MORGISON LOOP","address2":null,"address3":null,"city":"SEQUIM","residential":true,"state":"WA","province":null,"country":"United States","postal_code":"98382","postal_code_plus_4":"6665","phone_number":"5099394534","email":"4vcck94stq8xp18@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Priority Mail if Qty 1 (New)","sku":"1poundvariety","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"112.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"29.99","unit_price":"29.99","ext_line_item_id":"28532226783810","ext_product_id":null,"product_options":null,"uuid":"59ddf70b-7977-495e-9ab5-80153e307b1d","order_source_id":218238663,"gift_message":null}],"original_order":{"id":208586213,"customer_id":33773,"store_id":70647,"order_detail_id":210726793,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"112.0","total_quantity":1,"is_international":false,"usps_shipping_zone":7,"created_at":"2017-12-30T00:06:30Z","updated_at":"2018-01-01T10:10:52Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped priority mail if qty 1 (new)","line_item_sku":"1poundvariety","address_kind":"R","recipient_last_name":"l cox","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":208586213,"state":"WA","owner_id":37098,"denormalized_ordered_at":"2017-12-29T23:30:23Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"114-6461773-0080219","packing_slip_generated":null,"denormalized_ext_order_reference_id":"114-6461773-0080219","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":226042963,"tracking_number":"9405510298370319259002","carrier_key":"USPS","carrier_service_key":"Priority","shipment_cost":999,"ship_date":"2018-01-01"}],"updated_at":"2018-01-01T10:10:52Z","internal_notes":"","meta_data":null,"prime_order_id":208586213,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(226042963)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(5) "112.0"
      ["carrier_service_key"]=>
      string(8) "Priority"
      ["shipment_cost"]=>
      int(999)
      ["ship_date"]=>
      string(10) "2018-01-01"
      ["tracking_number"]=>
      string(22) "9405510298370319259002"
    }
  }
}


sql:     INSERT INTO
        `bbqpo_se_orders`
    (
        `customer_id`,
        `ordered_time`,
        `se_order_id`,
        `se_order_status`,
        `store_ordered_from`,
        `store_order_id`,
        `store_order_status`,
        `order_weight_ounces`,
        `se_api_response`,
        `last_updated`
    )
        VALUES 
    (
        '10053',
        '2017-12-29 23:30:23',
        '208586213',
        'shipped',
        'Amazon',
        '114-6461773-0080219',
        'awaiting_fulfillment',
        '112.0',
        '{\"id\":208586213,\"external_order_identifier\":\"114-6461773-0080219\",\"ext_order_reference_id\":\"114-6461773-0080219\",\"owner_id\":37098,\"sales_channel\":null,\"fulfillment_channel\":null,\"ordered_at\":\"2017-12-29T23:30:23Z\",\"order_status\":\"shipped\",\"parent_order_id\":null,\"source_order_ids\":null,\"total_including_tax\":\"32.54\",\"total_excluding_tax\":\"29.99\",\"discount_amount\":\"0.00\",\"coupon_discount\":\"0.00\",\"subtotal_including_tax\":\"32.54\",\"subtotal_excluding_tax\":\"0.00\",\"subtotal_tax\":\"0.00\",\"total_tax\":\"2.55\",\"base_shipping_cost\":\"0.00\",\"shipping_cost_including_tax\":\"0.00\",\"shipping_cost_excluding_tax\":\"0.00\",\"shipping_cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"base_wrapping_cost\":\"0.00\",\"wrapping_cost_excluding_tax\":\"0.00\",\"wrapping_cost_including_tax\":\"0.00\",\"wrapping_cost_tax\":\"0.00\",\"billing_company\":\"Ricki L Cox\",\"billing_first_name\":\"Nick\",\"billing_last_name\":\"Cox\",\"billing_address\":\"190 MORGISON LOOP\",\"billing_address2\":null,\"billing_city\":\"SEQUIM\",\"billing_state\":\"WA\",\"billing_country\":\"US\",\"billing_postal_code\":\"98382-6665\",\"billing_phone_number\":\"5099394534\",\"billing_email\":\"4vcck94stq8xp18@marketplace.amazon.com\",\"buyer_email\":\"4vcck94stq8xp18@marketplace.amazon.com\",\"recipients\":[{\"company\":null,\"first_name\":\"Ricki\",\"last_name\":\"L Cox\",\"address\":\"190 MORGISON LOOP\",\"address2\":null,\"address3\":null,\"city\":\"SEQUIM\",\"residential\":true,\"state\":\"WA\",\"province\":null,\"country\":\"United States\",\"postal_code\":\"98382\",\"postal_code_plus_4\":\"6665\",\"phone_number\":\"5099394534\",\"email\":\"4vcck94stq8xp18@marketplace.amazon.com\",\"base_cost\":\"0.00\",\"cost_excluding_tax\":\"0.00\",\"cost_including_tax\":\"0.00\",\"cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"shipping_zone_id\":null,\"shipping_zone_name\":null,\"items_total\":null,\"shipping_method\":\"FreeEconomy\",\"items_shipped\":null,\"ext_shipping_detail_id\":null,\"line_items\":[{\"item_name\":\"Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Priority Mail if Qty 1 (New)\",\"sku\":\"1poundvariety\",\"bin_picking_number\":null,\"bundled_product\":null,\"weight_in_ounces\":\"112.0\",\"quantity\":1,\"total_excluding_tax\":\"0.00\",\"price_excluding_tax\":\"29.99\",\"unit_price\":\"29.99\",\"ext_line_item_id\":\"28532226783810\",\"ext_product_id\":null,\"product_options\":null,\"uuid\":\"59ddf70b-7977-495e-9ab5-80153e307b1d\",\"order_source_id\":218238663,\"gift_message\":null}],\"original_order\":{\"id\":208586213,\"customer_id\":33773,\"store_id\":70647,\"order_detail_id\":210726793,\"workflow_state\":\"shipped\",\"shipment_id\":null,\"destination_id\":null,\"split_from_order_id\":null,\"total_weight_in_ounces\":\"112.0\",\"total_quantity\":1,\"is_international\":false,\"usps_shipping_zone\":7,\"created_at\":\"2017-12-30T00:06:30Z\",\"updated_at\":\"2018-01-01T10:10:52Z\",\"ext_shipment_confirmation_id\":1,\"store_order_status\":\"awaiting_fulfillment\",\"drop_ship_tracking_number\":null,\"category_id\":136973,\"internal_notes\":\"\",\"line_item_name\":\"lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped priority mail if qty 1 (new)\",\"line_item_sku\":\"1poundvariety\",\"address_kind\":\"R\",\"recipient_last_name\":\"l cox\",\"recipient_requested_service\":\"freeeconomy\",\"gift\":null,\"prime_order_id\":208586213,\"state\":\"WA\",\"owner_id\":37098,\"denormalized_ordered_at\":\"2017-12-29T23:30:23Z\",\"grab_bag\":[],\"line_item_bin_picking_number\":null,\"denormalized_ext_order_id\":\"114-6461773-0080219\",\"packing_slip_generated\":null,\"denormalized_ext_order_reference_id\":\"114-6461773-0080219\",\"denormalized_alternate_order_id\":null,\"denormalized_sales_channel\":null,\"custom_1\":null,\"custom_2\":null,\"custom_3\":null,\"hidden\":null,\"allocated\":null}}],\"store_api_key\":\"7090b516cf49ce6d62caa5db6a7a32ab\",\"shipments\":[{\"id\":226042963,\"tracking_number\":\"9405510298370319259002\",\"carrier_key\":\"USPS\",\"carrier_service_key\":\"Priority\",\"shipment_cost\":999,\"ship_date\":\"2018-01-01\"}],\"updated_at\":\"2018-01-01T10:10:52Z\",\"internal_notes\":\"\",\"meta_data\":null,\"prime_order_id\":208586213,\"is_prime\":false,\"split_from_order_id\":null,\"tags\":[]}',
        CURRENT_TIMESTAMP
    )
        

Successfully added order to DB. Order ID (our DB's order ID) #7454

existingShippingEasySHipmentsDBRows:
array(0) {
}


shipmentDBRows:
array(0) {
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(226042963)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(5) "112.0"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    int(999)
    ["ship_date"]=>
    string(10) "2018-01-01"
    ["tracking_number"]=>
    string(22) "9405510298370319259002"
  }
}

Adding shipment info:
array(7) {
  ["se_shipment_id"]=>
  int(226042963)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(5) "112.0"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  int(999)
  ["ship_date"]=>
  string(10) "2018-01-01"
  ["tracking_number"]=>
  string(22) "9405510298370319259002"
}



sql:     
        INSERT INTO
            `bbqpo_se_shipments`
        (
            order_id,
            se_shipment_id,
            carrier_key,
            carrier_service_key,
            shipment_cost,
            ship_date,
            shipment_weight_ounces,
            tracking_number
        )
            VALUES
        (
            '7454',
            226042963,
            'USPS',
            'Priority',
            999,
            '2018-01-01',
            '112.0',
            '9405510298370319259002'
        )
        ON DUPLICATE KEY UPDATE
        
            se_shipment_id = 226042963,
            carrier_key = 'USPS',
            carrier_service_key = 'Priority',
            shipment_cost = 999,
            ship_date = '2018-01-01',
            tracking_number = '9405510298370319259002',
            shipment_weight_ounces = '112.0'
        

insert result:
string(4) "7106"



*** Order info:
Array
(
    [id] => 208308933
    [external_order_identifier] => 114-6701331-4861038
    [ext_order_reference_id] => 114-6701331-4861038
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-29T18:41:17Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 29.99
    [total_excluding_tax] => 29.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 29.99
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Kenneth L. Henderson
    [billing_first_name] => Kenneth
    [billing_last_name] => L.
    [billing_address] => 2319 VALLEY BEND DR
    [billing_address2] => 
    [billing_city] => MISSOURI CITY
    [billing_state] => TX
    [billing_country] => US
    [billing_postal_code] => 77489-6030
    [billing_phone_number] => 7135694382
    [billing_email] => bs11nh3gbyxk95v@marketplace.amazon.com
    [buyer_email] => bs11nh3gbyxk95v@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Kenneth
                    [last_name] => L. Henderson
                    [address] => 2319 VALLEY BEND DR
                    [address2] => 
                    [address3] => 
                    [city] => MISSOURI CITY
                    [residential] => 1
                    [state] => TX
                    [province] => 
                    [country] => United States
                    [postal_code] => 77489
                    [postal_code_plus_4] => 6030
                    [phone_number] => 7135694382
                    [email] => bs11nh3gbyxk95v@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Priority Mail if Qty 1 (New)
                                    [sku] => 1poundvariety
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 112.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 29.99
                                    [unit_price] => 29.99
                                    [ext_line_item_id] => 08890045116826
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 69a4fad1-ecc2-44a3-a375-634433f499df
                                    [order_source_id] => 217940163
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 208308933
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 210444313
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 112.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 6
                            [created_at] => 2017-12-29T19:06:40Z
                            [updated_at] => 2018-01-01T10:10:52Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped priority mail if qty 1 (new)
                            [line_item_sku] => 1poundvariety
                            [address_kind] => R
                            [recipient_last_name] => l. henderson
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 208308933
                            [state] => TX
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-29T18:41:17Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 114-6701331-4861038
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 114-6701331-4861038
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 226042973
                    [tracking_number] => 9405510298370319259026
                    [carrier_key] => USPS
                    [carrier_service_key] => Priority
                    [shipment_cost] => 919
                    [ship_date] => 2018-01-01
                )

        )

    [updated_at] => 2018-01-01T10:10:52Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 208308933
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsd
Customer not found in the database.  Attempting to add now
New customer ID: 10054

parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10054"
  ["ordered_time"]=>
  string(19) "2017-12-29 18:41:17"
  ["se_order_id"]=>
  int(208308933)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "114-6701331-4861038"
  ["order_weight_ounces"]=>
  string(5) "112.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4307) "{"id":208308933,"external_order_identifier":"114-6701331-4861038","ext_order_reference_id":"114-6701331-4861038","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-29T18:41:17Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"29.99","total_excluding_tax":"29.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"29.99","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Kenneth L. Henderson","billing_first_name":"Kenneth","billing_last_name":"L.","billing_address":"2319 VALLEY BEND DR","billing_address2":null,"billing_city":"MISSOURI CITY","billing_state":"TX","billing_country":"US","billing_postal_code":"77489-6030","billing_phone_number":"7135694382","billing_email":"bs11nh3gbyxk95v@marketplace.amazon.com","buyer_email":"bs11nh3gbyxk95v@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Kenneth","last_name":"L. Henderson","address":"2319 VALLEY BEND DR","address2":null,"address3":null,"city":"MISSOURI CITY","residential":true,"state":"TX","province":null,"country":"United States","postal_code":"77489","postal_code_plus_4":"6030","phone_number":"7135694382","email":"bs11nh3gbyxk95v@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Priority Mail if Qty 1 (New)","sku":"1poundvariety","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"112.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"29.99","unit_price":"29.99","ext_line_item_id":"08890045116826","ext_product_id":null,"product_options":null,"uuid":"69a4fad1-ecc2-44a3-a375-634433f499df","order_source_id":217940163,"gift_message":null}],"original_order":{"id":208308933,"customer_id":33773,"store_id":70647,"order_detail_id":210444313,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"112.0","total_quantity":1,"is_international":false,"usps_shipping_zone":6,"created_at":"2017-12-29T19:06:40Z","updated_at":"2018-01-01T10:10:52Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped priority mail if qty 1 (new)","line_item_sku":"1poundvariety","address_kind":"R","recipient_last_name":"l. henderson","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":208308933,"state":"TX","owner_id":37098,"denormalized_ordered_at":"2017-12-29T18:41:17Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"114-6701331-4861038","packing_slip_generated":null,"denormalized_ext_order_reference_id":"114-6701331-4861038","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":226042973,"tracking_number":"9405510298370319259026","carrier_key":"USPS","carrier_service_key":"Priority","shipment_cost":919,"ship_date":"2018-01-01"}],"updated_at":"2018-01-01T10:10:52Z","internal_notes":"","meta_data":null,"prime_order_id":208308933,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(226042973)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(5) "112.0"
      ["carrier_service_key"]=>
      string(8) "Priority"
      ["shipment_cost"]=>
      int(919)
      ["ship_date"]=>
      string(10) "2018-01-01"
      ["tracking_number"]=>
      string(22) "9405510298370319259026"
    }
  }
}


sql:     INSERT INTO
        `bbqpo_se_orders`
    (
        `customer_id`,
        `ordered_time`,
        `se_order_id`,
        `se_order_status`,
        `store_ordered_from`,
        `store_order_id`,
        `store_order_status`,
        `order_weight_ounces`,
        `se_api_response`,
        `last_updated`
    )
        VALUES 
    (
        '10054',
        '2017-12-29 18:41:17',
        '208308933',
        'shipped',
        'Amazon',
        '114-6701331-4861038',
        'awaiting_fulfillment',
        '112.0',
        '{\"id\":208308933,\"external_order_identifier\":\"114-6701331-4861038\",\"ext_order_reference_id\":\"114-6701331-4861038\",\"owner_id\":37098,\"sales_channel\":null,\"fulfillment_channel\":null,\"ordered_at\":\"2017-12-29T18:41:17Z\",\"order_status\":\"shipped\",\"parent_order_id\":null,\"source_order_ids\":null,\"total_including_tax\":\"29.99\",\"total_excluding_tax\":\"29.99\",\"discount_amount\":\"0.00\",\"coupon_discount\":\"0.00\",\"subtotal_including_tax\":\"29.99\",\"subtotal_excluding_tax\":\"0.00\",\"subtotal_tax\":\"0.00\",\"total_tax\":\"0.00\",\"base_shipping_cost\":\"0.00\",\"shipping_cost_including_tax\":\"0.00\",\"shipping_cost_excluding_tax\":\"0.00\",\"shipping_cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"base_wrapping_cost\":\"0.00\",\"wrapping_cost_excluding_tax\":\"0.00\",\"wrapping_cost_including_tax\":\"0.00\",\"wrapping_cost_tax\":\"0.00\",\"billing_company\":\"Kenneth L. Henderson\",\"billing_first_name\":\"Kenneth\",\"billing_last_name\":\"L.\",\"billing_address\":\"2319 VALLEY BEND DR\",\"billing_address2\":null,\"billing_city\":\"MISSOURI CITY\",\"billing_state\":\"TX\",\"billing_country\":\"US\",\"billing_postal_code\":\"77489-6030\",\"billing_phone_number\":\"7135694382\",\"billing_email\":\"bs11nh3gbyxk95v@marketplace.amazon.com\",\"buyer_email\":\"bs11nh3gbyxk95v@marketplace.amazon.com\",\"recipients\":[{\"company\":null,\"first_name\":\"Kenneth\",\"last_name\":\"L. Henderson\",\"address\":\"2319 VALLEY BEND DR\",\"address2\":null,\"address3\":null,\"city\":\"MISSOURI CITY\",\"residential\":true,\"state\":\"TX\",\"province\":null,\"country\":\"United States\",\"postal_code\":\"77489\",\"postal_code_plus_4\":\"6030\",\"phone_number\":\"7135694382\",\"email\":\"bs11nh3gbyxk95v@marketplace.amazon.com\",\"base_cost\":\"0.00\",\"cost_excluding_tax\":\"0.00\",\"cost_including_tax\":\"0.00\",\"cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"shipping_zone_id\":null,\"shipping_zone_name\":null,\"items_total\":null,\"shipping_method\":\"FreeEconomy\",\"items_shipped\":null,\"ext_shipping_detail_id\":null,\"line_items\":[{\"item_name\":\"Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Priority Mail if Qty 1 (New)\",\"sku\":\"1poundvariety\",\"bin_picking_number\":null,\"bundled_product\":null,\"weight_in_ounces\":\"112.0\",\"quantity\":1,\"total_excluding_tax\":\"0.00\",\"price_excluding_tax\":\"29.99\",\"unit_price\":\"29.99\",\"ext_line_item_id\":\"08890045116826\",\"ext_product_id\":null,\"product_options\":null,\"uuid\":\"69a4fad1-ecc2-44a3-a375-634433f499df\",\"order_source_id\":217940163,\"gift_message\":null}],\"original_order\":{\"id\":208308933,\"customer_id\":33773,\"store_id\":70647,\"order_detail_id\":210444313,\"workflow_state\":\"shipped\",\"shipment_id\":null,\"destination_id\":null,\"split_from_order_id\":null,\"total_weight_in_ounces\":\"112.0\",\"total_quantity\":1,\"is_international\":false,\"usps_shipping_zone\":6,\"created_at\":\"2017-12-29T19:06:40Z\",\"updated_at\":\"2018-01-01T10:10:52Z\",\"ext_shipment_confirmation_id\":1,\"store_order_status\":\"awaiting_fulfillment\",\"drop_ship_tracking_number\":null,\"category_id\":136973,\"internal_notes\":\"\",\"line_item_name\":\"lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped priority mail if qty 1 (new)\",\"line_item_sku\":\"1poundvariety\",\"address_kind\":\"R\",\"recipient_last_name\":\"l. henderson\",\"recipient_requested_service\":\"freeeconomy\",\"gift\":null,\"prime_order_id\":208308933,\"state\":\"TX\",\"owner_id\":37098,\"denormalized_ordered_at\":\"2017-12-29T18:41:17Z\",\"grab_bag\":[],\"line_item_bin_picking_number\":null,\"denormalized_ext_order_id\":\"114-6701331-4861038\",\"packing_slip_generated\":null,\"denormalized_ext_order_reference_id\":\"114-6701331-4861038\",\"denormalized_alternate_order_id\":null,\"denormalized_sales_channel\":null,\"custom_1\":null,\"custom_2\":null,\"custom_3\":null,\"hidden\":null,\"allocated\":null}}],\"store_api_key\":\"7090b516cf49ce6d62caa5db6a7a32ab\",\"shipments\":[{\"id\":226042973,\"tracking_number\":\"9405510298370319259026\",\"carrier_key\":\"USPS\",\"carrier_service_key\":\"Priority\",\"shipment_cost\":919,\"ship_date\":\"2018-01-01\"}],\"updated_at\":\"2018-01-01T10:10:52Z\",\"internal_notes\":\"\",\"meta_data\":null,\"prime_order_id\":208308933,\"is_prime\":false,\"split_from_order_id\":null,\"tags\":[]}',
        CURRENT_TIMESTAMP
    )
        

Successfully added order to DB. Order ID (our DB's order ID) #7455

existingShippingEasySHipmentsDBRows:
array(0) {
}


shipmentDBRows:
array(0) {
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(226042973)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(5) "112.0"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    int(919)
    ["ship_date"]=>
    string(10) "2018-01-01"
    ["tracking_number"]=>
    string(22) "9405510298370319259026"
  }
}

Adding shipment info:
array(7) {
  ["se_shipment_id"]=>
  int(226042973)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(5) "112.0"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  int(919)
  ["ship_date"]=>
  string(10) "2018-01-01"
  ["tracking_number"]=>
  string(22) "9405510298370319259026"
}



sql:     
        INSERT INTO
            `bbqpo_se_shipments`
        (
            order_id,
            se_shipment_id,
            carrier_key,
            carrier_service_key,
            shipment_cost,
            ship_date,
            shipment_weight_ounces,
            tracking_number
        )
            VALUES
        (
            '7455',
            226042973,
            'USPS',
            'Priority',
            919,
            '2018-01-01',
            '112.0',
            '9405510298370319259026'
        )
        ON DUPLICATE KEY UPDATE
        
            se_shipment_id = 226042973,
            carrier_key = 'USPS',
            carrier_service_key = 'Priority',
            shipment_cost = 919,
            ship_date = '2018-01-01',
            tracking_number = '9405510298370319259026',
            shipment_weight_ounces = '112.0'
        

insert result:
string(4) "7107"



*** Order info:
Array
(
    [id] => 208173563
    [external_order_identifier] => 114-0369838-8837064
    [ext_order_reference_id] => 114-0369838-8837064
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-29T15:45:59Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 32.09
    [total_excluding_tax] => 29.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 32.09
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 2.10
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Frank Massa
    [billing_first_name] => Frank
    [billing_last_name] => Massa
    [billing_address] => 4713 Middleboro Lane
    [billing_address2] => 
    [billing_city] => Gainesville
    [billing_state] => Georgia
    [billing_country] => US
    [billing_postal_code] => 30506
    [billing_phone_number] => 404-660-9395
    [billing_email] => nbzf3smlhgqy7qf@marketplace.amazon.com
    [buyer_email] => nbzf3smlhgqy7qf@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Frank
                    [last_name] => Massa
                    [address] => 4713 Middleboro Lane
                    [address2] => 
                    [address3] => 
                    [city] => Gainesville
                    [residential] => 1
                    [state] => GA
                    [province] => 
                    [country] => United States
                    [postal_code] => 30506
                    [postal_code_plus_4] => 4691
                    [phone_number] => 404-660-9395
                    [email] => nbzf3smlhgqy7qf@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Priority Mail if Qty 1 (New)
                                    [sku] => 1poundvariety
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 112.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 29.99
                                    [unit_price] => 29.99
                                    [ext_line_item_id] => 68509829373138
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 7362094d-0fe4-432b-a0cf-11cef66a190c
                                    [order_source_id] => 217795903
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 208173563
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 210303423
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 112.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-29T17:06:40Z
                            [updated_at] => 2018-01-01T10:10:52Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped priority mail if qty 1 (new)
                            [line_item_sku] => 1poundvariety
                            [address_kind] => R
                            [recipient_last_name] => massa
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 208173563
                            [state] => GA
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-29T15:45:59Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 114-0369838-8837064
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 114-0369838-8837064
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 226042983
                    [tracking_number] => 9405510298370319258968
                    [carrier_key] => USPS
                    [carrier_service_key] => Priority
                    [shipment_cost] => 815
                    [ship_date] => 2018-01-01
                )

        )

    [updated_at] => 2018-01-01T10:10:52Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 208173563
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsd
Customer not found in the database.  Attempting to add now
New customer ID: 10055

parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10055"
  ["ordered_time"]=>
  string(19) "2017-12-29 15:45:59"
  ["se_order_id"]=>
  int(208173563)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "114-0369838-8837064"
  ["order_weight_ounces"]=>
  string(5) "112.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4285) "{"id":208173563,"external_order_identifier":"114-0369838-8837064","ext_order_reference_id":"114-0369838-8837064","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-29T15:45:59Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"32.09","total_excluding_tax":"29.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"32.09","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"2.10","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Frank Massa","billing_first_name":"Frank","billing_last_name":"Massa","billing_address":"4713 Middleboro Lane","billing_address2":null,"billing_city":"Gainesville","billing_state":"Georgia","billing_country":"US","billing_postal_code":"30506","billing_phone_number":"404-660-9395","billing_email":"nbzf3smlhgqy7qf@marketplace.amazon.com","buyer_email":"nbzf3smlhgqy7qf@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Frank","last_name":"Massa","address":"4713 Middleboro Lane","address2":null,"address3":null,"city":"Gainesville","residential":true,"state":"GA","province":null,"country":"United States","postal_code":"30506","postal_code_plus_4":"4691","phone_number":"404-660-9395","email":"nbzf3smlhgqy7qf@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Priority Mail if Qty 1 (New)","sku":"1poundvariety","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"112.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"29.99","unit_price":"29.99","ext_line_item_id":"68509829373138","ext_product_id":null,"product_options":null,"uuid":"7362094d-0fe4-432b-a0cf-11cef66a190c","order_source_id":217795903,"gift_message":null}],"original_order":{"id":208173563,"customer_id":33773,"store_id":70647,"order_detail_id":210303423,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"112.0","total_quantity":1,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-29T17:06:40Z","updated_at":"2018-01-01T10:10:52Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped priority mail if qty 1 (new)","line_item_sku":"1poundvariety","address_kind":"R","recipient_last_name":"massa","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":208173563,"state":"GA","owner_id":37098,"denormalized_ordered_at":"2017-12-29T15:45:59Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"114-0369838-8837064","packing_slip_generated":null,"denormalized_ext_order_reference_id":"114-0369838-8837064","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":226042983,"tracking_number":"9405510298370319258968","carrier_key":"USPS","carrier_service_key":"Priority","shipment_cost":815,"ship_date":"2018-01-01"}],"updated_at":"2018-01-01T10:10:52Z","internal_notes":"","meta_data":null,"prime_order_id":208173563,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(226042983)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(5) "112.0"
      ["carrier_service_key"]=>
      string(8) "Priority"
      ["shipment_cost"]=>
      int(815)
      ["ship_date"]=>
      string(10) "2018-01-01"
      ["tracking_number"]=>
      string(22) "9405510298370319258968"
    }
  }
}


sql:     INSERT INTO
        `bbqpo_se_orders`
    (
        `customer_id`,
        `ordered_time`,
        `se_order_id`,
        `se_order_status`,
        `store_ordered_from`,
        `store_order_id`,
        `store_order_status`,
        `order_weight_ounces`,
        `se_api_response`,
        `last_updated`
    )
        VALUES 
    (
        '10055',
        '2017-12-29 15:45:59',
        '208173563',
        'shipped',
        'Amazon',
        '114-0369838-8837064',
        'awaiting_fulfillment',
        '112.0',
        '{\"id\":208173563,\"external_order_identifier\":\"114-0369838-8837064\",\"ext_order_reference_id\":\"114-0369838-8837064\",\"owner_id\":37098,\"sales_channel\":null,\"fulfillment_channel\":null,\"ordered_at\":\"2017-12-29T15:45:59Z\",\"order_status\":\"shipped\",\"parent_order_id\":null,\"source_order_ids\":null,\"total_including_tax\":\"32.09\",\"total_excluding_tax\":\"29.99\",\"discount_amount\":\"0.00\",\"coupon_discount\":\"0.00\",\"subtotal_including_tax\":\"32.09\",\"subtotal_excluding_tax\":\"0.00\",\"subtotal_tax\":\"0.00\",\"total_tax\":\"2.10\",\"base_shipping_cost\":\"0.00\",\"shipping_cost_including_tax\":\"0.00\",\"shipping_cost_excluding_tax\":\"0.00\",\"shipping_cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"base_wrapping_cost\":\"0.00\",\"wrapping_cost_excluding_tax\":\"0.00\",\"wrapping_cost_including_tax\":\"0.00\",\"wrapping_cost_tax\":\"0.00\",\"billing_company\":\"Frank Massa\",\"billing_first_name\":\"Frank\",\"billing_last_name\":\"Massa\",\"billing_address\":\"4713 Middleboro Lane\",\"billing_address2\":null,\"billing_city\":\"Gainesville\",\"billing_state\":\"Georgia\",\"billing_country\":\"US\",\"billing_postal_code\":\"30506\",\"billing_phone_number\":\"404-660-9395\",\"billing_email\":\"nbzf3smlhgqy7qf@marketplace.amazon.com\",\"buyer_email\":\"nbzf3smlhgqy7qf@marketplace.amazon.com\",\"recipients\":[{\"company\":null,\"first_name\":\"Frank\",\"last_name\":\"Massa\",\"address\":\"4713 Middleboro Lane\",\"address2\":null,\"address3\":null,\"city\":\"Gainesville\",\"residential\":true,\"state\":\"GA\",\"province\":null,\"country\":\"United States\",\"postal_code\":\"30506\",\"postal_code_plus_4\":\"4691\",\"phone_number\":\"404-660-9395\",\"email\":\"nbzf3smlhgqy7qf@marketplace.amazon.com\",\"base_cost\":\"0.00\",\"cost_excluding_tax\":\"0.00\",\"cost_including_tax\":\"0.00\",\"cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"shipping_zone_id\":null,\"shipping_zone_name\":null,\"items_total\":null,\"shipping_method\":\"FreeEconomy\",\"items_shipped\":null,\"ext_shipping_detail_id\":null,\"line_items\":[{\"item_name\":\"Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Priority Mail if Qty 1 (New)\",\"sku\":\"1poundvariety\",\"bin_picking_number\":null,\"bundled_product\":null,\"weight_in_ounces\":\"112.0\",\"quantity\":1,\"total_excluding_tax\":\"0.00\",\"price_excluding_tax\":\"29.99\",\"unit_price\":\"29.99\",\"ext_line_item_id\":\"68509829373138\",\"ext_product_id\":null,\"product_options\":null,\"uuid\":\"7362094d-0fe4-432b-a0cf-11cef66a190c\",\"order_source_id\":217795903,\"gift_message\":null}],\"original_order\":{\"id\":208173563,\"customer_id\":33773,\"store_id\":70647,\"order_detail_id\":210303423,\"workflow_state\":\"shipped\",\"shipment_id\":null,\"destination_id\":null,\"split_from_order_id\":null,\"total_weight_in_ounces\":\"112.0\",\"total_quantity\":1,\"is_international\":false,\"usps_shipping_zone\":5,\"created_at\":\"2017-12-29T17:06:40Z\",\"updated_at\":\"2018-01-01T10:10:52Z\",\"ext_shipment_confirmation_id\":1,\"store_order_status\":\"awaiting_fulfillment\",\"drop_ship_tracking_number\":null,\"category_id\":136973,\"internal_notes\":\"\",\"line_item_name\":\"lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped priority mail if qty 1 (new)\",\"line_item_sku\":\"1poundvariety\",\"address_kind\":\"R\",\"recipient_last_name\":\"massa\",\"recipient_requested_service\":\"freeeconomy\",\"gift\":null,\"prime_order_id\":208173563,\"state\":\"GA\",\"owner_id\":37098,\"denormalized_ordered_at\":\"2017-12-29T15:45:59Z\",\"grab_bag\":[],\"line_item_bin_picking_number\":null,\"denormalized_ext_order_id\":\"114-0369838-8837064\",\"packing_slip_generated\":null,\"denormalized_ext_order_reference_id\":\"114-0369838-8837064\",\"denormalized_alternate_order_id\":null,\"denormalized_sales_channel\":null,\"custom_1\":null,\"custom_2\":null,\"custom_3\":null,\"hidden\":null,\"allocated\":null}}],\"store_api_key\":\"7090b516cf49ce6d62caa5db6a7a32ab\",\"shipments\":[{\"id\":226042983,\"tracking_number\":\"9405510298370319258968\",\"carrier_key\":\"USPS\",\"carrier_service_key\":\"Priority\",\"shipment_cost\":815,\"ship_date\":\"2018-01-01\"}],\"updated_at\":\"2018-01-01T10:10:52Z\",\"internal_notes\":\"\",\"meta_data\":null,\"prime_order_id\":208173563,\"is_prime\":false,\"split_from_order_id\":null,\"tags\":[]}',
        CURRENT_TIMESTAMP
    )
        

Successfully added order to DB. Order ID (our DB's order ID) #7456

existingShippingEasySHipmentsDBRows:
array(0) {
}


shipmentDBRows:
array(0) {
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(226042983)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(5) "112.0"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    int(815)
    ["ship_date"]=>
    string(10) "2018-01-01"
    ["tracking_number"]=>
    string(22) "9405510298370319258968"
  }
}

Adding shipment info:
array(7) {
  ["se_shipment_id"]=>
  int(226042983)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(5) "112.0"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  int(815)
  ["ship_date"]=>
  string(10) "2018-01-01"
  ["tracking_number"]=>
  string(22) "9405510298370319258968"
}



sql:     
        INSERT INTO
            `bbqpo_se_shipments`
        (
            order_id,
            se_shipment_id,
            carrier_key,
            carrier_service_key,
            shipment_cost,
            ship_date,
            shipment_weight_ounces,
            tracking_number
        )
            VALUES
        (
            '7456',
            226042983,
            'USPS',
            'Priority',
            815,
            '2018-01-01',
            '112.0',
            '9405510298370319258968'
        )
        ON DUPLICATE KEY UPDATE
        
            se_shipment_id = 226042983,
            carrier_key = 'USPS',
            carrier_service_key = 'Priority',
            shipment_cost = 815,
            ship_date = '2018-01-01',
            tracking_number = '9405510298370319258968',
            shipment_weight_ounces = '112.0'
        

insert result:
string(4) "7108"



*** Order info:
Array
(
    [id] => 208543813
    [external_order_identifier] => 113-6411948-1209829
    [ext_order_reference_id] => 113-6411948-1209829
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-29T22:24:22Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 32.46
    [total_excluding_tax] => 29.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 32.46
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 2.47
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Kathryn Kelley
    [billing_first_name] => Kathryn
    [billing_last_name] => Kelley
    [billing_address] => 1625 PACIFIC TIDE PL
    [billing_address2] => 
    [billing_city] => LAS VEGAS
    [billing_state] => NV
    [billing_country] => US
    [billing_postal_code] => 89144-6847
    [billing_phone_number] => 7022050484
    [billing_email] => h703zgtfff4fnj5@marketplace.amazon.com
    [buyer_email] => h703zgtfff4fnj5@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Kathryn
                    [last_name] => Kelley
                    [address] => 1625 PACIFIC TIDE PL
                    [address2] => 
                    [address3] => 
                    [city] => LAS VEGAS
                    [residential] => 1
                    [state] => NV
                    [province] => 
                    [country] => United States
                    [postal_code] => 89144
                    [postal_code_plus_4] => 6847
                    [phone_number] => 7022050484
                    [email] => h703zgtfff4fnj5@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Priority Mail if Qty 1 (New)
                                    [sku] => 1poundvariety
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 112.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 29.99
                                    [unit_price] => 29.99
                                    [ext_line_item_id] => 37810605097002
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 229247d1-1c93-4a23-bf2e-0b3fb76de869
                                    [order_source_id] => 218192163
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 208543813
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 210683703
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 112.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 6
                            [created_at] => 2017-12-29T23:06:36Z
                            [updated_at] => 2018-01-01T10:10:52Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped priority mail if qty 1 (new)
                            [line_item_sku] => 1poundvariety
                            [address_kind] => R
                            [recipient_last_name] => kelley
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 208543813
                            [state] => NV
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-29T22:24:22Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 113-6411948-1209829
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 113-6411948-1209829
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 226042993
                    [tracking_number] => 9405510298370319258999
                    [carrier_key] => USPS
                    [carrier_service_key] => Priority
                    [shipment_cost] => 919
                    [ship_date] => 2018-01-01
                )

        )

    [updated_at] => 2018-01-01T10:10:52Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 208543813
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsd
Customer not found in the database.  Attempting to add now
New customer ID: 10056

parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10056"
  ["ordered_time"]=>
  string(19) "2017-12-29 22:24:22"
  ["se_order_id"]=>
  int(208543813)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "113-6411948-1209829"
  ["order_weight_ounces"]=>
  string(5) "112.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4287) "{"id":208543813,"external_order_identifier":"113-6411948-1209829","ext_order_reference_id":"113-6411948-1209829","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-29T22:24:22Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"32.46","total_excluding_tax":"29.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"32.46","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"2.47","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Kathryn Kelley","billing_first_name":"Kathryn","billing_last_name":"Kelley","billing_address":"1625 PACIFIC TIDE PL","billing_address2":null,"billing_city":"LAS VEGAS","billing_state":"NV","billing_country":"US","billing_postal_code":"89144-6847","billing_phone_number":"7022050484","billing_email":"h703zgtfff4fnj5@marketplace.amazon.com","buyer_email":"h703zgtfff4fnj5@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Kathryn","last_name":"Kelley","address":"1625 PACIFIC TIDE PL","address2":null,"address3":null,"city":"LAS VEGAS","residential":true,"state":"NV","province":null,"country":"United States","postal_code":"89144","postal_code_plus_4":"6847","phone_number":"7022050484","email":"h703zgtfff4fnj5@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Priority Mail if Qty 1 (New)","sku":"1poundvariety","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"112.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"29.99","unit_price":"29.99","ext_line_item_id":"37810605097002","ext_product_id":null,"product_options":null,"uuid":"229247d1-1c93-4a23-bf2e-0b3fb76de869","order_source_id":218192163,"gift_message":null}],"original_order":{"id":208543813,"customer_id":33773,"store_id":70647,"order_detail_id":210683703,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"112.0","total_quantity":1,"is_international":false,"usps_shipping_zone":6,"created_at":"2017-12-29T23:06:36Z","updated_at":"2018-01-01T10:10:52Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped priority mail if qty 1 (new)","line_item_sku":"1poundvariety","address_kind":"R","recipient_last_name":"kelley","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":208543813,"state":"NV","owner_id":37098,"denormalized_ordered_at":"2017-12-29T22:24:22Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"113-6411948-1209829","packing_slip_generated":null,"denormalized_ext_order_reference_id":"113-6411948-1209829","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":226042993,"tracking_number":"9405510298370319258999","carrier_key":"USPS","carrier_service_key":"Priority","shipment_cost":919,"ship_date":"2018-01-01"}],"updated_at":"2018-01-01T10:10:52Z","internal_notes":"","meta_data":null,"prime_order_id":208543813,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(226042993)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(5) "112.0"
      ["carrier_service_key"]=>
      string(8) "Priority"
      ["shipment_cost"]=>
      int(919)
      ["ship_date"]=>
      string(10) "2018-01-01"
      ["tracking_number"]=>
      string(22) "9405510298370319258999"
    }
  }
}


sql:     INSERT INTO
        `bbqpo_se_orders`
    (
        `customer_id`,
        `ordered_time`,
        `se_order_id`,
        `se_order_status`,
        `store_ordered_from`,
        `store_order_id`,
        `store_order_status`,
        `order_weight_ounces`,
        `se_api_response`,
        `last_updated`
    )
        VALUES 
    (
        '10056',
        '2017-12-29 22:24:22',
        '208543813',
        'shipped',
        'Amazon',
        '113-6411948-1209829',
        'awaiting_fulfillment',
        '112.0',
        '{\"id\":208543813,\"external_order_identifier\":\"113-6411948-1209829\",\"ext_order_reference_id\":\"113-6411948-1209829\",\"owner_id\":37098,\"sales_channel\":null,\"fulfillment_channel\":null,\"ordered_at\":\"2017-12-29T22:24:22Z\",\"order_status\":\"shipped\",\"parent_order_id\":null,\"source_order_ids\":null,\"total_including_tax\":\"32.46\",\"total_excluding_tax\":\"29.99\",\"discount_amount\":\"0.00\",\"coupon_discount\":\"0.00\",\"subtotal_including_tax\":\"32.46\",\"subtotal_excluding_tax\":\"0.00\",\"subtotal_tax\":\"0.00\",\"total_tax\":\"2.47\",\"base_shipping_cost\":\"0.00\",\"shipping_cost_including_tax\":\"0.00\",\"shipping_cost_excluding_tax\":\"0.00\",\"shipping_cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"base_wrapping_cost\":\"0.00\",\"wrapping_cost_excluding_tax\":\"0.00\",\"wrapping_cost_including_tax\":\"0.00\",\"wrapping_cost_tax\":\"0.00\",\"billing_company\":\"Kathryn Kelley\",\"billing_first_name\":\"Kathryn\",\"billing_last_name\":\"Kelley\",\"billing_address\":\"1625 PACIFIC TIDE PL\",\"billing_address2\":null,\"billing_city\":\"LAS VEGAS\",\"billing_state\":\"NV\",\"billing_country\":\"US\",\"billing_postal_code\":\"89144-6847\",\"billing_phone_number\":\"7022050484\",\"billing_email\":\"h703zgtfff4fnj5@marketplace.amazon.com\",\"buyer_email\":\"h703zgtfff4fnj5@marketplace.amazon.com\",\"recipients\":[{\"company\":null,\"first_name\":\"Kathryn\",\"last_name\":\"Kelley\",\"address\":\"1625 PACIFIC TIDE PL\",\"address2\":null,\"address3\":null,\"city\":\"LAS VEGAS\",\"residential\":true,\"state\":\"NV\",\"province\":null,\"country\":\"United States\",\"postal_code\":\"89144\",\"postal_code_plus_4\":\"6847\",\"phone_number\":\"7022050484\",\"email\":\"h703zgtfff4fnj5@marketplace.amazon.com\",\"base_cost\":\"0.00\",\"cost_excluding_tax\":\"0.00\",\"cost_including_tax\":\"0.00\",\"cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"shipping_zone_id\":null,\"shipping_zone_name\":null,\"items_total\":null,\"shipping_method\":\"FreeEconomy\",\"items_shipped\":null,\"ext_shipping_detail_id\":null,\"line_items\":[{\"item_name\":\"Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Priority Mail if Qty 1 (New)\",\"sku\":\"1poundvariety\",\"bin_picking_number\":null,\"bundled_product\":null,\"weight_in_ounces\":\"112.0\",\"quantity\":1,\"total_excluding_tax\":\"0.00\",\"price_excluding_tax\":\"29.99\",\"unit_price\":\"29.99\",\"ext_line_item_id\":\"37810605097002\",\"ext_product_id\":null,\"product_options\":null,\"uuid\":\"229247d1-1c93-4a23-bf2e-0b3fb76de869\",\"order_source_id\":218192163,\"gift_message\":null}],\"original_order\":{\"id\":208543813,\"customer_id\":33773,\"store_id\":70647,\"order_detail_id\":210683703,\"workflow_state\":\"shipped\",\"shipment_id\":null,\"destination_id\":null,\"split_from_order_id\":null,\"total_weight_in_ounces\":\"112.0\",\"total_quantity\":1,\"is_international\":false,\"usps_shipping_zone\":6,\"created_at\":\"2017-12-29T23:06:36Z\",\"updated_at\":\"2018-01-01T10:10:52Z\",\"ext_shipment_confirmation_id\":1,\"store_order_status\":\"awaiting_fulfillment\",\"drop_ship_tracking_number\":null,\"category_id\":136973,\"internal_notes\":\"\",\"line_item_name\":\"lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped priority mail if qty 1 (new)\",\"line_item_sku\":\"1poundvariety\",\"address_kind\":\"R\",\"recipient_last_name\":\"kelley\",\"recipient_requested_service\":\"freeeconomy\",\"gift\":null,\"prime_order_id\":208543813,\"state\":\"NV\",\"owner_id\":37098,\"denormalized_ordered_at\":\"2017-12-29T22:24:22Z\",\"grab_bag\":[],\"line_item_bin_picking_number\":null,\"denormalized_ext_order_id\":\"113-6411948-1209829\",\"packing_slip_generated\":null,\"denormalized_ext_order_reference_id\":\"113-6411948-1209829\",\"denormalized_alternate_order_id\":null,\"denormalized_sales_channel\":null,\"custom_1\":null,\"custom_2\":null,\"custom_3\":null,\"hidden\":null,\"allocated\":null}}],\"store_api_key\":\"7090b516cf49ce6d62caa5db6a7a32ab\",\"shipments\":[{\"id\":226042993,\"tracking_number\":\"9405510298370319258999\",\"carrier_key\":\"USPS\",\"carrier_service_key\":\"Priority\",\"shipment_cost\":919,\"ship_date\":\"2018-01-01\"}],\"updated_at\":\"2018-01-01T10:10:52Z\",\"internal_notes\":\"\",\"meta_data\":null,\"prime_order_id\":208543813,\"is_prime\":false,\"split_from_order_id\":null,\"tags\":[]}',
        CURRENT_TIMESTAMP
    )
        

Successfully added order to DB. Order ID (our DB's order ID) #7457

existingShippingEasySHipmentsDBRows:
array(0) {
}


shipmentDBRows:
array(0) {
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(226042993)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(5) "112.0"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    int(919)
    ["ship_date"]=>
    string(10) "2018-01-01"
    ["tracking_number"]=>
    string(22) "9405510298370319258999"
  }
}

Adding shipment info:
array(7) {
  ["se_shipment_id"]=>
  int(226042993)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(5) "112.0"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  int(919)
  ["ship_date"]=>
  string(10) "2018-01-01"
  ["tracking_number"]=>
  string(22) "9405510298370319258999"
}



sql:     
        INSERT INTO
            `bbqpo_se_shipments`
        (
            order_id,
            se_shipment_id,
            carrier_key,
            carrier_service_key,
            shipment_cost,
            ship_date,
            shipment_weight_ounces,
            tracking_number
        )
            VALUES
        (
            '7457',
            226042993,
            'USPS',
            'Priority',
            919,
            '2018-01-01',
            '112.0',
            '9405510298370319258999'
        )
        ON DUPLICATE KEY UPDATE
        
            se_shipment_id = 226042993,
            carrier_key = 'USPS',
            carrier_service_key = 'Priority',
            shipment_cost = 919,
            ship_date = '2018-01-01',
            tracking_number = '9405510298370319258999',
            shipment_weight_ounces = '112.0'
        

insert result:
string(4) "7109"



*** Order info:
Array
(
    [id] => 208241353
    [external_order_identifier] => 113-2094248-7001040
    [ext_order_reference_id] => 113-2094248-7001040
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-29T16:36:46Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 32.16
    [total_excluding_tax] => 29.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 32.16
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 2.17
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Debra Maldonado
    [billing_first_name] => laura
    [billing_last_name] => 
    [billing_address] => 788 FULTON RD
    [billing_address2] => 
    [billing_city] => SAN MARCOS
    [billing_state] => CA
    [billing_country] => US
    [billing_postal_code] => 92069-2072
    [billing_phone_number] => 5304158338
    [billing_email] => fwrqysr4mk8gfn5@marketplace.amazon.com
    [buyer_email] => fwrqysr4mk8gfn5@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Debra
                    [last_name] => Maldonado
                    [address] => 788 FULTON RD
                    [address2] => 
                    [address3] => 
                    [city] => SAN MARCOS
                    [residential] => 1
                    [state] => CA
                    [province] => 
                    [country] => United States
                    [postal_code] => 92069
                    [postal_code_plus_4] => 2072
                    [phone_number] => 5304158338
                    [email] => fwrqysr4mk8gfn5@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Priority Mail if Qty 1 (New)
                                    [sku] => 1poundvariety
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 112.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 29.99
                                    [unit_price] => 29.99
                                    [ext_line_item_id] => 06740636261010
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 3aea978f-3826-4f17-890e-ddcd577dede0
                                    [order_source_id] => 217867583
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 208241353
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 210376133
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 112.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 7
                            [created_at] => 2017-12-29T18:06:45Z
                            [updated_at] => 2018-01-01T10:10:52Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped priority mail if qty 1 (new)
                            [line_item_sku] => 1poundvariety
                            [address_kind] => R
                            [recipient_last_name] => maldonado
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 208241353
                            [state] => CA
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-29T16:36:46Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 113-2094248-7001040
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 113-2094248-7001040
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 226043003
                    [tracking_number] => 9405510298370319259019
                    [carrier_key] => USPS
                    [carrier_service_key] => Priority
                    [shipment_cost] => 999
                    [ship_date] => 2018-01-01
                )

        )

    [updated_at] => 2018-01-01T10:10:52Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 208241353
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsd
Customer not found in the database.  Attempting to add now
New customer ID: 10057

parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10057"
  ["ordered_time"]=>
  string(19) "2017-12-29 16:36:46"
  ["se_order_id"]=>
  int(208241353)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "113-2094248-7001040"
  ["order_weight_ounces"]=>
  string(5) "112.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4274) "{"id":208241353,"external_order_identifier":"113-2094248-7001040","ext_order_reference_id":"113-2094248-7001040","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-29T16:36:46Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"32.16","total_excluding_tax":"29.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"32.16","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"2.17","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Debra Maldonado","billing_first_name":"laura","billing_last_name":null,"billing_address":"788 FULTON RD","billing_address2":null,"billing_city":"SAN MARCOS","billing_state":"CA","billing_country":"US","billing_postal_code":"92069-2072","billing_phone_number":"5304158338","billing_email":"fwrqysr4mk8gfn5@marketplace.amazon.com","buyer_email":"fwrqysr4mk8gfn5@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Debra","last_name":"Maldonado","address":"788 FULTON RD","address2":null,"address3":null,"city":"SAN MARCOS","residential":true,"state":"CA","province":null,"country":"United States","postal_code":"92069","postal_code_plus_4":"2072","phone_number":"5304158338","email":"fwrqysr4mk8gfn5@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Priority Mail if Qty 1 (New)","sku":"1poundvariety","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"112.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"29.99","unit_price":"29.99","ext_line_item_id":"06740636261010","ext_product_id":null,"product_options":null,"uuid":"3aea978f-3826-4f17-890e-ddcd577dede0","order_source_id":217867583,"gift_message":null}],"original_order":{"id":208241353,"customer_id":33773,"store_id":70647,"order_detail_id":210376133,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"112.0","total_quantity":1,"is_international":false,"usps_shipping_zone":7,"created_at":"2017-12-29T18:06:45Z","updated_at":"2018-01-01T10:10:52Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped priority mail if qty 1 (new)","line_item_sku":"1poundvariety","address_kind":"R","recipient_last_name":"maldonado","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":208241353,"state":"CA","owner_id":37098,"denormalized_ordered_at":"2017-12-29T16:36:46Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"113-2094248-7001040","packing_slip_generated":null,"denormalized_ext_order_reference_id":"113-2094248-7001040","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":226043003,"tracking_number":"9405510298370319259019","carrier_key":"USPS","carrier_service_key":"Priority","shipment_cost":999,"ship_date":"2018-01-01"}],"updated_at":"2018-01-01T10:10:52Z","internal_notes":"","meta_data":null,"prime_order_id":208241353,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(226043003)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(5) "112.0"
      ["carrier_service_key"]=>
      string(8) "Priority"
      ["shipment_cost"]=>
      int(999)
      ["ship_date"]=>
      string(10) "2018-01-01"
      ["tracking_number"]=>
      string(22) "9405510298370319259019"
    }
  }
}


sql:     INSERT INTO
        `bbqpo_se_orders`
    (
        `customer_id`,
        `ordered_time`,
        `se_order_id`,
        `se_order_status`,
        `store_ordered_from`,
        `store_order_id`,
        `store_order_status`,
        `order_weight_ounces`,
        `se_api_response`,
        `last_updated`
    )
        VALUES 
    (
        '10057',
        '2017-12-29 16:36:46',
        '208241353',
        'shipped',
        'Amazon',
        '113-2094248-7001040',
        'awaiting_fulfillment',
        '112.0',
        '{\"id\":208241353,\"external_order_identifier\":\"113-2094248-7001040\",\"ext_order_reference_id\":\"113-2094248-7001040\",\"owner_id\":37098,\"sales_channel\":null,\"fulfillment_channel\":null,\"ordered_at\":\"2017-12-29T16:36:46Z\",\"order_status\":\"shipped\",\"parent_order_id\":null,\"source_order_ids\":null,\"total_including_tax\":\"32.16\",\"total_excluding_tax\":\"29.99\",\"discount_amount\":\"0.00\",\"coupon_discount\":\"0.00\",\"subtotal_including_tax\":\"32.16\",\"subtotal_excluding_tax\":\"0.00\",\"subtotal_tax\":\"0.00\",\"total_tax\":\"2.17\",\"base_shipping_cost\":\"0.00\",\"shipping_cost_including_tax\":\"0.00\",\"shipping_cost_excluding_tax\":\"0.00\",\"shipping_cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"base_wrapping_cost\":\"0.00\",\"wrapping_cost_excluding_tax\":\"0.00\",\"wrapping_cost_including_tax\":\"0.00\",\"wrapping_cost_tax\":\"0.00\",\"billing_company\":\"Debra Maldonado\",\"billing_first_name\":\"laura\",\"billing_last_name\":null,\"billing_address\":\"788 FULTON RD\",\"billing_address2\":null,\"billing_city\":\"SAN MARCOS\",\"billing_state\":\"CA\",\"billing_country\":\"US\",\"billing_postal_code\":\"92069-2072\",\"billing_phone_number\":\"5304158338\",\"billing_email\":\"fwrqysr4mk8gfn5@marketplace.amazon.com\",\"buyer_email\":\"fwrqysr4mk8gfn5@marketplace.amazon.com\",\"recipients\":[{\"company\":null,\"first_name\":\"Debra\",\"last_name\":\"Maldonado\",\"address\":\"788 FULTON RD\",\"address2\":null,\"address3\":null,\"city\":\"SAN MARCOS\",\"residential\":true,\"state\":\"CA\",\"province\":null,\"country\":\"United States\",\"postal_code\":\"92069\",\"postal_code_plus_4\":\"2072\",\"phone_number\":\"5304158338\",\"email\":\"fwrqysr4mk8gfn5@marketplace.amazon.com\",\"base_cost\":\"0.00\",\"cost_excluding_tax\":\"0.00\",\"cost_including_tax\":\"0.00\",\"cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"shipping_zone_id\":null,\"shipping_zone_name\":null,\"items_total\":null,\"shipping_method\":\"FreeEconomy\",\"items_shipped\":null,\"ext_shipping_detail_id\":null,\"line_items\":[{\"item_name\":\"Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Priority Mail if Qty 1 (New)\",\"sku\":\"1poundvariety\",\"bin_picking_number\":null,\"bundled_product\":null,\"weight_in_ounces\":\"112.0\",\"quantity\":1,\"total_excluding_tax\":\"0.00\",\"price_excluding_tax\":\"29.99\",\"unit_price\":\"29.99\",\"ext_line_item_id\":\"06740636261010\",\"ext_product_id\":null,\"product_options\":null,\"uuid\":\"3aea978f-3826-4f17-890e-ddcd577dede0\",\"order_source_id\":217867583,\"gift_message\":null}],\"original_order\":{\"id\":208241353,\"customer_id\":33773,\"store_id\":70647,\"order_detail_id\":210376133,\"workflow_state\":\"shipped\",\"shipment_id\":null,\"destination_id\":null,\"split_from_order_id\":null,\"total_weight_in_ounces\":\"112.0\",\"total_quantity\":1,\"is_international\":false,\"usps_shipping_zone\":7,\"created_at\":\"2017-12-29T18:06:45Z\",\"updated_at\":\"2018-01-01T10:10:52Z\",\"ext_shipment_confirmation_id\":1,\"store_order_status\":\"awaiting_fulfillment\",\"drop_ship_tracking_number\":null,\"category_id\":136973,\"internal_notes\":\"\",\"line_item_name\":\"lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped priority mail if qty 1 (new)\",\"line_item_sku\":\"1poundvariety\",\"address_kind\":\"R\",\"recipient_last_name\":\"maldonado\",\"recipient_requested_service\":\"freeeconomy\",\"gift\":null,\"prime_order_id\":208241353,\"state\":\"CA\",\"owner_id\":37098,\"denormalized_ordered_at\":\"2017-12-29T16:36:46Z\",\"grab_bag\":[],\"line_item_bin_picking_number\":null,\"denormalized_ext_order_id\":\"113-2094248-7001040\",\"packing_slip_generated\":null,\"denormalized_ext_order_reference_id\":\"113-2094248-7001040\",\"denormalized_alternate_order_id\":null,\"denormalized_sales_channel\":null,\"custom_1\":null,\"custom_2\":null,\"custom_3\":null,\"hidden\":null,\"allocated\":null}}],\"store_api_key\":\"7090b516cf49ce6d62caa5db6a7a32ab\",\"shipments\":[{\"id\":226043003,\"tracking_number\":\"9405510298370319259019\",\"carrier_key\":\"USPS\",\"carrier_service_key\":\"Priority\",\"shipment_cost\":999,\"ship_date\":\"2018-01-01\"}],\"updated_at\":\"2018-01-01T10:10:52Z\",\"internal_notes\":\"\",\"meta_data\":null,\"prime_order_id\":208241353,\"is_prime\":false,\"split_from_order_id\":null,\"tags\":[]}',
        CURRENT_TIMESTAMP
    )
        

Successfully added order to DB. Order ID (our DB's order ID) #7458

existingShippingEasySHipmentsDBRows:
array(0) {
}


shipmentDBRows:
array(0) {
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(226043003)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(5) "112.0"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    int(999)
    ["ship_date"]=>
    string(10) "2018-01-01"
    ["tracking_number"]=>
    string(22) "9405510298370319259019"
  }
}

Adding shipment info:
array(7) {
  ["se_shipment_id"]=>
  int(226043003)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(5) "112.0"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  int(999)
  ["ship_date"]=>
  string(10) "2018-01-01"
  ["tracking_number"]=>
  string(22) "9405510298370319259019"
}



sql:     
        INSERT INTO
            `bbqpo_se_shipments`
        (
            order_id,
            se_shipment_id,
            carrier_key,
            carrier_service_key,
            shipment_cost,
            ship_date,
            shipment_weight_ounces,
            tracking_number
        )
            VALUES
        (
            '7458',
            226043003,
            'USPS',
            'Priority',
            999,
            '2018-01-01',
            '112.0',
            '9405510298370319259019'
        )
        ON DUPLICATE KEY UPDATE
        
            se_shipment_id = 226043003,
            carrier_key = 'USPS',
            carrier_service_key = 'Priority',
            shipment_cost = 999,
            ship_date = '2018-01-01',
            tracking_number = '9405510298370319259019',
            shipment_weight_ounces = '112.0'
        

insert result:
string(4) "7110"



*** Order info:
Array
(
    [id] => 208629023
    [external_order_identifier] => 111-4200957-3380223
    [ext_order_reference_id] => 111-4200957-3380223
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-30T00:38:36Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 29.99
    [total_excluding_tax] => 29.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 29.99
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Kira L Headlee
    [billing_first_name] => Kira
    [billing_last_name] => Headlee
    [billing_address] => 1261 Durham Drive
    [billing_address2] => 
    [billing_city] => Chattanooga
    [billing_state] => TN
    [billing_country] => US
    [billing_postal_code] => 37421
    [billing_phone_number] => 4233645791
    [billing_email] => fzlbcy7dr7m027j@marketplace.amazon.com
    [buyer_email] => fzlbcy7dr7m027j@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Kira
                    [last_name] => L Headlee
                    [address] => 1261 Durham Drive
                    [address2] => 
                    [address3] => 
                    [city] => Chattanooga
                    [residential] => 1
                    [state] => TN
                    [province] => 
                    [country] => United States
                    [postal_code] => 37421
                    [postal_code_plus_4] => 4007
                    [phone_number] => 4233645791
                    [email] => fzlbcy7dr7m027j@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Priority Mail if Qty 1 (New)
                                    [sku] => 1poundvariety
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 112.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 29.99
                                    [unit_price] => 29.99
                                    [ext_line_item_id] => 64681638150682
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 44f33096-798f-4231-9227-f1cfa6c74193
                                    [order_source_id] => 218286693
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 208629023
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 210769873
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 112.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-30T01:06:27Z
                            [updated_at] => 2018-01-01T10:10:52Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped priority mail if qty 1 (new)
                            [line_item_sku] => 1poundvariety
                            [address_kind] => R
                            [recipient_last_name] => l headlee
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 208629023
                            [state] => TN
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-30T00:38:36Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 111-4200957-3380223
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 111-4200957-3380223
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 226043013
                    [tracking_number] => 9405510298370319258982
                    [carrier_key] => USPS
                    [carrier_service_key] => Priority
                    [shipment_cost] => 815
                    [ship_date] => 2018-01-01
                )

        )

    [updated_at] => 2018-01-01T10:10:52Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 208629023
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsd
Customer not found in the database.  Attempting to add now
New customer ID: 10058

parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10058"
  ["ordered_time"]=>
  string(19) "2017-12-30 00:38:36"
  ["se_order_id"]=>
  int(208629023)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "111-4200957-3380223"
  ["order_weight_ounces"]=>
  string(5) "112.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4281) "{"id":208629023,"external_order_identifier":"111-4200957-3380223","ext_order_reference_id":"111-4200957-3380223","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-30T00:38:36Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"29.99","total_excluding_tax":"29.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"29.99","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Kira L Headlee","billing_first_name":"Kira","billing_last_name":"Headlee","billing_address":"1261 Durham Drive","billing_address2":null,"billing_city":"Chattanooga","billing_state":"TN","billing_country":"US","billing_postal_code":"37421","billing_phone_number":"4233645791","billing_email":"fzlbcy7dr7m027j@marketplace.amazon.com","buyer_email":"fzlbcy7dr7m027j@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Kira","last_name":"L Headlee","address":"1261 Durham Drive","address2":null,"address3":null,"city":"Chattanooga","residential":true,"state":"TN","province":null,"country":"United States","postal_code":"37421","postal_code_plus_4":"4007","phone_number":"4233645791","email":"fzlbcy7dr7m027j@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Priority Mail if Qty 1 (New)","sku":"1poundvariety","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"112.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"29.99","unit_price":"29.99","ext_line_item_id":"64681638150682","ext_product_id":null,"product_options":null,"uuid":"44f33096-798f-4231-9227-f1cfa6c74193","order_source_id":218286693,"gift_message":null}],"original_order":{"id":208629023,"customer_id":33773,"store_id":70647,"order_detail_id":210769873,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"112.0","total_quantity":1,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-30T01:06:27Z","updated_at":"2018-01-01T10:10:52Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped priority mail if qty 1 (new)","line_item_sku":"1poundvariety","address_kind":"R","recipient_last_name":"l headlee","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":208629023,"state":"TN","owner_id":37098,"denormalized_ordered_at":"2017-12-30T00:38:36Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"111-4200957-3380223","packing_slip_generated":null,"denormalized_ext_order_reference_id":"111-4200957-3380223","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":226043013,"tracking_number":"9405510298370319258982","carrier_key":"USPS","carrier_service_key":"Priority","shipment_cost":815,"ship_date":"2018-01-01"}],"updated_at":"2018-01-01T10:10:52Z","internal_notes":"","meta_data":null,"prime_order_id":208629023,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(226043013)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(5) "112.0"
      ["carrier_service_key"]=>
      string(8) "Priority"
      ["shipment_cost"]=>
      int(815)
      ["ship_date"]=>
      string(10) "2018-01-01"
      ["tracking_number"]=>
      string(22) "9405510298370319258982"
    }
  }
}


sql:     INSERT INTO
        `bbqpo_se_orders`
    (
        `customer_id`,
        `ordered_time`,
        `se_order_id`,
        `se_order_status`,
        `store_ordered_from`,
        `store_order_id`,
        `store_order_status`,
        `order_weight_ounces`,
        `se_api_response`,
        `last_updated`
    )
        VALUES 
    (
        '10058',
        '2017-12-30 00:38:36',
        '208629023',
        'shipped',
        'Amazon',
        '111-4200957-3380223',
        'awaiting_fulfillment',
        '112.0',
        '{\"id\":208629023,\"external_order_identifier\":\"111-4200957-3380223\",\"ext_order_reference_id\":\"111-4200957-3380223\",\"owner_id\":37098,\"sales_channel\":null,\"fulfillment_channel\":null,\"ordered_at\":\"2017-12-30T00:38:36Z\",\"order_status\":\"shipped\",\"parent_order_id\":null,\"source_order_ids\":null,\"total_including_tax\":\"29.99\",\"total_excluding_tax\":\"29.99\",\"discount_amount\":\"0.00\",\"coupon_discount\":\"0.00\",\"subtotal_including_tax\":\"29.99\",\"subtotal_excluding_tax\":\"0.00\",\"subtotal_tax\":\"0.00\",\"total_tax\":\"0.00\",\"base_shipping_cost\":\"0.00\",\"shipping_cost_including_tax\":\"0.00\",\"shipping_cost_excluding_tax\":\"0.00\",\"shipping_cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"base_wrapping_cost\":\"0.00\",\"wrapping_cost_excluding_tax\":\"0.00\",\"wrapping_cost_including_tax\":\"0.00\",\"wrapping_cost_tax\":\"0.00\",\"billing_company\":\"Kira L Headlee\",\"billing_first_name\":\"Kira\",\"billing_last_name\":\"Headlee\",\"billing_address\":\"1261 Durham Drive\",\"billing_address2\":null,\"billing_city\":\"Chattanooga\",\"billing_state\":\"TN\",\"billing_country\":\"US\",\"billing_postal_code\":\"37421\",\"billing_phone_number\":\"4233645791\",\"billing_email\":\"fzlbcy7dr7m027j@marketplace.amazon.com\",\"buyer_email\":\"fzlbcy7dr7m027j@marketplace.amazon.com\",\"recipients\":[{\"company\":null,\"first_name\":\"Kira\",\"last_name\":\"L Headlee\",\"address\":\"1261 Durham Drive\",\"address2\":null,\"address3\":null,\"city\":\"Chattanooga\",\"residential\":true,\"state\":\"TN\",\"province\":null,\"country\":\"United States\",\"postal_code\":\"37421\",\"postal_code_plus_4\":\"4007\",\"phone_number\":\"4233645791\",\"email\":\"fzlbcy7dr7m027j@marketplace.amazon.com\",\"base_cost\":\"0.00\",\"cost_excluding_tax\":\"0.00\",\"cost_including_tax\":\"0.00\",\"cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"shipping_zone_id\":null,\"shipping_zone_name\":null,\"items_total\":null,\"shipping_method\":\"FreeEconomy\",\"items_shipped\":null,\"ext_shipping_detail_id\":null,\"line_items\":[{\"item_name\":\"Lumber Jack BBQ 7 varieties BBQ Pellet Pack - 1 Lb. Bag - 100% (Apple, Cherry, Pecan, Hickory, Maple-Hickory-Cherry, Mesquite and Maple) - Shipped Priority Mail if Qty 1 (New)\",\"sku\":\"1poundvariety\",\"bin_picking_number\":null,\"bundled_product\":null,\"weight_in_ounces\":\"112.0\",\"quantity\":1,\"total_excluding_tax\":\"0.00\",\"price_excluding_tax\":\"29.99\",\"unit_price\":\"29.99\",\"ext_line_item_id\":\"64681638150682\",\"ext_product_id\":null,\"product_options\":null,\"uuid\":\"44f33096-798f-4231-9227-f1cfa6c74193\",\"order_source_id\":218286693,\"gift_message\":null}],\"original_order\":{\"id\":208629023,\"customer_id\":33773,\"store_id\":70647,\"order_detail_id\":210769873,\"workflow_state\":\"shipped\",\"shipment_id\":null,\"destination_id\":null,\"split_from_order_id\":null,\"total_weight_in_ounces\":\"112.0\",\"total_quantity\":1,\"is_international\":false,\"usps_shipping_zone\":5,\"created_at\":\"2017-12-30T01:06:27Z\",\"updated_at\":\"2018-01-01T10:10:52Z\",\"ext_shipment_confirmation_id\":1,\"store_order_status\":\"awaiting_fulfillment\",\"drop_ship_tracking_number\":null,\"category_id\":136973,\"internal_notes\":\"\",\"line_item_name\":\"lumber jack bbq 7 varieties bbq pellet pack - 1 lb. bag - 100% (apple, cherry, pecan, hickory, maple-hickory-cherry, mesquite and maple) - shipped priority mail if qty 1 (new)\",\"line_item_sku\":\"1poundvariety\",\"address_kind\":\"R\",\"recipient_last_name\":\"l headlee\",\"recipient_requested_service\":\"freeeconomy\",\"gift\":null,\"prime_order_id\":208629023,\"state\":\"TN\",\"owner_id\":37098,\"denormalized_ordered_at\":\"2017-12-30T00:38:36Z\",\"grab_bag\":[],\"line_item_bin_picking_number\":null,\"denormalized_ext_order_id\":\"111-4200957-3380223\",\"packing_slip_generated\":null,\"denormalized_ext_order_reference_id\":\"111-4200957-3380223\",\"denormalized_alternate_order_id\":null,\"denormalized_sales_channel\":null,\"custom_1\":null,\"custom_2\":null,\"custom_3\":null,\"hidden\":null,\"allocated\":null}}],\"store_api_key\":\"7090b516cf49ce6d62caa5db6a7a32ab\",\"shipments\":[{\"id\":226043013,\"tracking_number\":\"9405510298370319258982\",\"carrier_key\":\"USPS\",\"carrier_service_key\":\"Priority\",\"shipment_cost\":815,\"ship_date\":\"2018-01-01\"}],\"updated_at\":\"2018-01-01T10:10:52Z\",\"internal_notes\":\"\",\"meta_data\":null,\"prime_order_id\":208629023,\"is_prime\":false,\"split_from_order_id\":null,\"tags\":[]}',
        CURRENT_TIMESTAMP
    )
        

Successfully added order to DB. Order ID (our DB's order ID) #7459

existingShippingEasySHipmentsDBRows:
array(0) {
}


shipmentDBRows:
array(0) {
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(226043013)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(5) "112.0"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    int(815)
    ["ship_date"]=>
    string(10) "2018-01-01"
    ["tracking_number"]=>
    string(22) "9405510298370319258982"
  }
}

Adding shipment info:
array(7) {
  ["se_shipment_id"]=>
  int(226043013)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(5) "112.0"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  int(815)
  ["ship_date"]=>
  string(10) "2018-01-01"
  ["tracking_number"]=>
  string(22) "9405510298370319258982"
}



sql:     
        INSERT INTO
            `bbqpo_se_shipments`
        (
            order_id,
            se_shipment_id,
            carrier_key,
            carrier_service_key,
            shipment_cost,
            ship_date,
            shipment_weight_ounces,
            tracking_number
        )
            VALUES
        (
            '7459',
            226043013,
            'USPS',
            'Priority',
            815,
            '2018-01-01',
            '112.0',
            '9405510298370319258982'
        )
        ON DUPLICATE KEY UPDATE
        
            se_shipment_id = 226043013,
            carrier_key = 'USPS',
            carrier_service_key = 'Priority',
            shipment_cost = 815,
            ship_date = '2018-01-01',
            tracking_number = '9405510298370319258982',
            shipment_weight_ounces = '112.0'
        

insert result:
string(4) "7111"



*** Order info:
Array
(
    [id] => 208720083
    [external_order_identifier] => 113-6618373-1177011
    [ext_order_reference_id] => 113-6618373-1177011
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-30T01:55:31Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 13.85
    [total_excluding_tax] => 13.85
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 13.85
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => aaron McCauley
    [billing_first_name] => Matthew
    [billing_last_name] => Kohr
    [billing_address] => 2927 floral way drive
    [billing_address2] => 
    [billing_city] => san antonio
    [billing_state] => tx
    [billing_country] => US
    [billing_postal_code] => 78247
    [billing_phone_number] => 8432672315
    [billing_email] => c6y785wfrdqgcby@marketplace.amazon.com
    [buyer_email] => c6y785wfrdqgcby@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => aaron
                    [last_name] => McCauley
                    [address] => 2927 floral way drive
                    [address2] => 
                    [address3] => 
                    [city] => san antonio
                    [residential] => 1
                    [state] => TX
                    [province] => 
                    [country] => United States
                    [postal_code] => 78247
                    [postal_code_plus_4] => 3870
                    [phone_number] => 8432672315
                    [email] => c6y785wfrdqgcby@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => Standard
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Cornhusker Kitchen's Duck Fat Cooking Oil Spray 7 oz (New)
                                    [sku] => duckfat-1
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 12.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 13.85
                                    [unit_price] => 13.85
                                    [ext_line_item_id] => 15927212948650
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 9e22a955-ee3c-4f4e-9a54-504e40a506e0
                                    [order_source_id] => 218387003
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 208720083
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 210863523
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 12.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 6
                            [created_at] => 2017-12-30T03:07:05Z
                            [updated_at] => 2018-01-01T10:10:52Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => cornhusker kitchen's duck fat cooking oil spray 7 oz (new)
                            [line_item_sku] => duckfat-1
                            [address_kind] => R
                            [recipient_last_name] => mccauley
                            [recipient_requested_service] => standard
                            [gift] => 
                            [prime_order_id] => 208720083
                            [state] => TX
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-30T01:55:31Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 113-6618373-1177011
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 113-6618373-1177011
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 226043153
                    [tracking_number] => 9400110298370319258019
                    [carrier_key] => USPS
                    [carrier_service_key] => First
                    [shipment_cost] => 374
                    [ship_date] => 2018-01-01
                )

        )

    [updated_at] => 2018-01-01T10:10:52Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 208720083
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsd
Customer not found in the database.  Attempting to add now
New customer ID: 10059

parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10059"
  ["ordered_time"]=>
  string(19) "2017-12-30 01:55:31"
  ["se_order_id"]=>
  int(208720083)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "113-6618373-1177011"
  ["order_weight_ounces"]=>
  string(4) "12.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4035) "{"id":208720083,"external_order_identifier":"113-6618373-1177011","ext_order_reference_id":"113-6618373-1177011","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-30T01:55:31Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"13.85","total_excluding_tax":"13.85","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"13.85","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"aaron McCauley","billing_first_name":"Matthew","billing_last_name":"Kohr","billing_address":"2927 floral way drive","billing_address2":null,"billing_city":"san antonio","billing_state":"tx","billing_country":"US","billing_postal_code":"78247","billing_phone_number":"8432672315","billing_email":"c6y785wfrdqgcby@marketplace.amazon.com","buyer_email":"c6y785wfrdqgcby@marketplace.amazon.com","recipients":[{"company":null,"first_name":"aaron","last_name":"McCauley","address":"2927 floral way drive","address2":null,"address3":null,"city":"san antonio","residential":true,"state":"TX","province":null,"country":"United States","postal_code":"78247","postal_code_plus_4":"3870","phone_number":"8432672315","email":"c6y785wfrdqgcby@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"Standard","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Cornhusker Kitchen's Duck Fat Cooking Oil Spray 7 oz (New)","sku":"duckfat-1","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"12.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"13.85","unit_price":"13.85","ext_line_item_id":"15927212948650","ext_product_id":null,"product_options":null,"uuid":"9e22a955-ee3c-4f4e-9a54-504e40a506e0","order_source_id":218387003,"gift_message":null}],"original_order":{"id":208720083,"customer_id":33773,"store_id":70647,"order_detail_id":210863523,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"12.0","total_quantity":1,"is_international":false,"usps_shipping_zone":6,"created_at":"2017-12-30T03:07:05Z","updated_at":"2018-01-01T10:10:52Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"cornhusker kitchen's duck fat cooking oil spray 7 oz (new)","line_item_sku":"duckfat-1","address_kind":"R","recipient_last_name":"mccauley","recipient_requested_service":"standard","gift":null,"prime_order_id":208720083,"state":"TX","owner_id":37098,"denormalized_ordered_at":"2017-12-30T01:55:31Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"113-6618373-1177011","packing_slip_generated":null,"denormalized_ext_order_reference_id":"113-6618373-1177011","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":226043153,"tracking_number":"9400110298370319258019","carrier_key":"USPS","carrier_service_key":"First","shipment_cost":374,"ship_date":"2018-01-01"}],"updated_at":"2018-01-01T10:10:52Z","internal_notes":"","meta_data":null,"prime_order_id":208720083,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(226043153)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(4) "12.0"
      ["carrier_service_key"]=>
      string(5) "First"
      ["shipment_cost"]=>
      int(374)
      ["ship_date"]=>
      string(10) "2018-01-01"
      ["tracking_number"]=>
      string(22) "9400110298370319258019"
    }
  }
}


sql:     INSERT INTO
        `bbqpo_se_orders`
    (
        `customer_id`,
        `ordered_time`,
        `se_order_id`,
        `se_order_status`,
        `store_ordered_from`,
        `store_order_id`,
        `store_order_status`,
        `order_weight_ounces`,
        `se_api_response`,
        `last_updated`
    )
        VALUES 
    (
        '10059',
        '2017-12-30 01:55:31',
        '208720083',
        'shipped',
        'Amazon',
        '113-6618373-1177011',
        'awaiting_fulfillment',
        '12.0',
        '{\"id\":208720083,\"external_order_identifier\":\"113-6618373-1177011\",\"ext_order_reference_id\":\"113-6618373-1177011\",\"owner_id\":37098,\"sales_channel\":null,\"fulfillment_channel\":null,\"ordered_at\":\"2017-12-30T01:55:31Z\",\"order_status\":\"shipped\",\"parent_order_id\":null,\"source_order_ids\":null,\"total_including_tax\":\"13.85\",\"total_excluding_tax\":\"13.85\",\"discount_amount\":\"0.00\",\"coupon_discount\":\"0.00\",\"subtotal_including_tax\":\"13.85\",\"subtotal_excluding_tax\":\"0.00\",\"subtotal_tax\":\"0.00\",\"total_tax\":\"0.00\",\"base_shipping_cost\":\"0.00\",\"shipping_cost_including_tax\":\"0.00\",\"shipping_cost_excluding_tax\":\"0.00\",\"shipping_cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"base_wrapping_cost\":\"0.00\",\"wrapping_cost_excluding_tax\":\"0.00\",\"wrapping_cost_including_tax\":\"0.00\",\"wrapping_cost_tax\":\"0.00\",\"billing_company\":\"aaron McCauley\",\"billing_first_name\":\"Matthew\",\"billing_last_name\":\"Kohr\",\"billing_address\":\"2927 floral way drive\",\"billing_address2\":null,\"billing_city\":\"san antonio\",\"billing_state\":\"tx\",\"billing_country\":\"US\",\"billing_postal_code\":\"78247\",\"billing_phone_number\":\"8432672315\",\"billing_email\":\"c6y785wfrdqgcby@marketplace.amazon.com\",\"buyer_email\":\"c6y785wfrdqgcby@marketplace.amazon.com\",\"recipients\":[{\"company\":null,\"first_name\":\"aaron\",\"last_name\":\"McCauley\",\"address\":\"2927 floral way drive\",\"address2\":null,\"address3\":null,\"city\":\"san antonio\",\"residential\":true,\"state\":\"TX\",\"province\":null,\"country\":\"United States\",\"postal_code\":\"78247\",\"postal_code_plus_4\":\"3870\",\"phone_number\":\"8432672315\",\"email\":\"c6y785wfrdqgcby@marketplace.amazon.com\",\"base_cost\":\"0.00\",\"cost_excluding_tax\":\"0.00\",\"cost_including_tax\":\"0.00\",\"cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"shipping_zone_id\":null,\"shipping_zone_name\":null,\"items_total\":null,\"shipping_method\":\"Standard\",\"items_shipped\":null,\"ext_shipping_detail_id\":null,\"line_items\":[{\"item_name\":\"Cornhusker Kitchen\'s Duck Fat Cooking Oil Spray 7 oz (New)\",\"sku\":\"duckfat-1\",\"bin_picking_number\":null,\"bundled_product\":null,\"weight_in_ounces\":\"12.0\",\"quantity\":1,\"total_excluding_tax\":\"0.00\",\"price_excluding_tax\":\"13.85\",\"unit_price\":\"13.85\",\"ext_line_item_id\":\"15927212948650\",\"ext_product_id\":null,\"product_options\":null,\"uuid\":\"9e22a955-ee3c-4f4e-9a54-504e40a506e0\",\"order_source_id\":218387003,\"gift_message\":null}],\"original_order\":{\"id\":208720083,\"customer_id\":33773,\"store_id\":70647,\"order_detail_id\":210863523,\"workflow_state\":\"shipped\",\"shipment_id\":null,\"destination_id\":null,\"split_from_order_id\":null,\"total_weight_in_ounces\":\"12.0\",\"total_quantity\":1,\"is_international\":false,\"usps_shipping_zone\":6,\"created_at\":\"2017-12-30T03:07:05Z\",\"updated_at\":\"2018-01-01T10:10:52Z\",\"ext_shipment_confirmation_id\":1,\"store_order_status\":\"awaiting_fulfillment\",\"drop_ship_tracking_number\":null,\"category_id\":136973,\"internal_notes\":\"\",\"line_item_name\":\"cornhusker kitchen\'s duck fat cooking oil spray 7 oz (new)\",\"line_item_sku\":\"duckfat-1\",\"address_kind\":\"R\",\"recipient_last_name\":\"mccauley\",\"recipient_requested_service\":\"standard\",\"gift\":null,\"prime_order_id\":208720083,\"state\":\"TX\",\"owner_id\":37098,\"denormalized_ordered_at\":\"2017-12-30T01:55:31Z\",\"grab_bag\":[],\"line_item_bin_picking_number\":null,\"denormalized_ext_order_id\":\"113-6618373-1177011\",\"packing_slip_generated\":null,\"denormalized_ext_order_reference_id\":\"113-6618373-1177011\",\"denormalized_alternate_order_id\":null,\"denormalized_sales_channel\":null,\"custom_1\":null,\"custom_2\":null,\"custom_3\":null,\"hidden\":null,\"allocated\":null}}],\"store_api_key\":\"7090b516cf49ce6d62caa5db6a7a32ab\",\"shipments\":[{\"id\":226043153,\"tracking_number\":\"9400110298370319258019\",\"carrier_key\":\"USPS\",\"carrier_service_key\":\"First\",\"shipment_cost\":374,\"ship_date\":\"2018-01-01\"}],\"updated_at\":\"2018-01-01T10:10:52Z\",\"internal_notes\":\"\",\"meta_data\":null,\"prime_order_id\":208720083,\"is_prime\":false,\"split_from_order_id\":null,\"tags\":[]}',
        CURRENT_TIMESTAMP
    )
        

Successfully added order to DB. Order ID (our DB's order ID) #7460

existingShippingEasySHipmentsDBRows:
array(0) {
}


shipmentDBRows:
array(0) {
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(226043153)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(4) "12.0"
    ["carrier_service_key"]=>
    string(5) "First"
    ["shipment_cost"]=>
    int(374)
    ["ship_date"]=>
    string(10) "2018-01-01"
    ["tracking_number"]=>
    string(22) "9400110298370319258019"
  }
}

Adding shipment info:
array(7) {
  ["se_shipment_id"]=>
  int(226043153)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(4) "12.0"
  ["carrier_service_key"]=>
  string(5) "First"
  ["shipment_cost"]=>
  int(374)
  ["ship_date"]=>
  string(10) "2018-01-01"
  ["tracking_number"]=>
  string(22) "9400110298370319258019"
}



sql:     
        INSERT INTO
            `bbqpo_se_shipments`
        (
            order_id,
            se_shipment_id,
            carrier_key,
            carrier_service_key,
            shipment_cost,
            ship_date,
            shipment_weight_ounces,
            tracking_number
        )
            VALUES
        (
            '7460',
            226043153,
            'USPS',
            'First',
            374,
            '2018-01-01',
            '12.0',
            '9400110298370319258019'
        )
        ON DUPLICATE KEY UPDATE
        
            se_shipment_id = 226043153,
            carrier_key = 'USPS',
            carrier_service_key = 'First',
            shipment_cost = 374,
            ship_date = '2018-01-01',
            tracking_number = '9400110298370319258019',
            shipment_weight_ounces = '12.0'
        

insert result:
string(4) "7112"



*** Order info:
Array
(
    [id] => 208377743
    [external_order_identifier] => 114-8954806-4314601
    [ext_order_reference_id] => 114-8954806-4314601
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-29T18:50:00Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 13.85
    [total_excluding_tax] => 13.85
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 13.85
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Vickie E. Furman
    [billing_first_name] => Vickie
    [billing_last_name] => E.
    [billing_address] => 2553 SHOREY WAY
    [billing_address2] => 
    [billing_city] => FAIRFIELD
    [billing_state] => CA
    [billing_country] => US
    [billing_postal_code] => 94533-6562
    [billing_phone_number] => 707-631-2933
    [billing_email] => s935sckjckp8100@marketplace.amazon.com
    [buyer_email] => s935sckjckp8100@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Vickie
                    [last_name] => E. Furman
                    [address] => 2553 SHOREY WAY
                    [address2] => 
                    [address3] => 
                    [city] => FAIRFIELD
                    [residential] => 1
                    [state] => CA
                    [province] => 
                    [country] => United States
                    [postal_code] => 94533
                    [postal_code_plus_4] => 6562
                    [phone_number] => 707-631-2933
                    [email] => s935sckjckp8100@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => Standard
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Cornhusker Kitchen's Duck Fat Cooking Oil Spray 7 oz (New)
                                    [sku] => duckfat-1
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 12.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 13.85
                                    [unit_price] => 13.85
                                    [ext_line_item_id] => 02686000384562
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => e0626eae-52f7-4400-b884-2fa28e3a1a0f
                                    [order_source_id] => 218012753
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 208377743
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 210515143
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 12.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 7
                            [created_at] => 2017-12-29T20:06:51Z
                            [updated_at] => 2018-01-01T10:10:52Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => cornhusker kitchen's duck fat cooking oil spray 7 oz (new)
                            [line_item_sku] => duckfat-1
                            [address_kind] => R
                            [recipient_last_name] => e. furman
                            [recipient_requested_service] => standard
                            [gift] => 
                            [prime_order_id] => 208377743
                            [state] => CA
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-29T18:50:00Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 114-8954806-4314601
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 114-8954806-4314601
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 226043183
                    [tracking_number] => 9400110298370319258026
                    [carrier_key] => USPS
                    [carrier_service_key] => First
                    [shipment_cost] => 374
                    [ship_date] => 2018-01-01
                )

        )

    [updated_at] => 2018-01-01T10:10:52Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 208377743
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsd
Customer not found in the database.  Attempting to add now
New customer ID: 10060

parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10060"
  ["ordered_time"]=>
  string(19) "2017-12-29 18:50:00"
  ["se_order_id"]=>
  int(208377743)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "114-8954806-4314601"
  ["order_weight_ounces"]=>
  string(4) "12.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4030) "{"id":208377743,"external_order_identifier":"114-8954806-4314601","ext_order_reference_id":"114-8954806-4314601","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-29T18:50:00Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"13.85","total_excluding_tax":"13.85","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"13.85","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Vickie E. Furman","billing_first_name":"Vickie","billing_last_name":"E.","billing_address":"2553 SHOREY WAY","billing_address2":null,"billing_city":"FAIRFIELD","billing_state":"CA","billing_country":"US","billing_postal_code":"94533-6562","billing_phone_number":"707-631-2933","billing_email":"s935sckjckp8100@marketplace.amazon.com","buyer_email":"s935sckjckp8100@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Vickie","last_name":"E. Furman","address":"2553 SHOREY WAY","address2":null,"address3":null,"city":"FAIRFIELD","residential":true,"state":"CA","province":null,"country":"United States","postal_code":"94533","postal_code_plus_4":"6562","phone_number":"707-631-2933","email":"s935sckjckp8100@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"Standard","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Cornhusker Kitchen's Duck Fat Cooking Oil Spray 7 oz (New)","sku":"duckfat-1","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"12.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"13.85","unit_price":"13.85","ext_line_item_id":"02686000384562","ext_product_id":null,"product_options":null,"uuid":"e0626eae-52f7-4400-b884-2fa28e3a1a0f","order_source_id":218012753,"gift_message":null}],"original_order":{"id":208377743,"customer_id":33773,"store_id":70647,"order_detail_id":210515143,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"12.0","total_quantity":1,"is_international":false,"usps_shipping_zone":7,"created_at":"2017-12-29T20:06:51Z","updated_at":"2018-01-01T10:10:52Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"cornhusker kitchen's duck fat cooking oil spray 7 oz (new)","line_item_sku":"duckfat-1","address_kind":"R","recipient_last_name":"e. furman","recipient_requested_service":"standard","gift":null,"prime_order_id":208377743,"state":"CA","owner_id":37098,"denormalized_ordered_at":"2017-12-29T18:50:00Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"114-8954806-4314601","packing_slip_generated":null,"denormalized_ext_order_reference_id":"114-8954806-4314601","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":226043183,"tracking_number":"9400110298370319258026","carrier_key":"USPS","carrier_service_key":"First","shipment_cost":374,"ship_date":"2018-01-01"}],"updated_at":"2018-01-01T10:10:52Z","internal_notes":"","meta_data":null,"prime_order_id":208377743,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(226043183)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(4) "12.0"
      ["carrier_service_key"]=>
      string(5) "First"
      ["shipment_cost"]=>
      int(374)
      ["ship_date"]=>
      string(10) "2018-01-01"
      ["tracking_number"]=>
      string(22) "9400110298370319258026"
    }
  }
}


sql:     INSERT INTO
        `bbqpo_se_orders`
    (
        `customer_id`,
        `ordered_time`,
        `se_order_id`,
        `se_order_status`,
        `store_ordered_from`,
        `store_order_id`,
        `store_order_status`,
        `order_weight_ounces`,
        `se_api_response`,
        `last_updated`
    )
        VALUES 
    (
        '10060',
        '2017-12-29 18:50:00',
        '208377743',
        'shipped',
        'Amazon',
        '114-8954806-4314601',
        'awaiting_fulfillment',
        '12.0',
        '{\"id\":208377743,\"external_order_identifier\":\"114-8954806-4314601\",\"ext_order_reference_id\":\"114-8954806-4314601\",\"owner_id\":37098,\"sales_channel\":null,\"fulfillment_channel\":null,\"ordered_at\":\"2017-12-29T18:50:00Z\",\"order_status\":\"shipped\",\"parent_order_id\":null,\"source_order_ids\":null,\"total_including_tax\":\"13.85\",\"total_excluding_tax\":\"13.85\",\"discount_amount\":\"0.00\",\"coupon_discount\":\"0.00\",\"subtotal_including_tax\":\"13.85\",\"subtotal_excluding_tax\":\"0.00\",\"subtotal_tax\":\"0.00\",\"total_tax\":\"0.00\",\"base_shipping_cost\":\"0.00\",\"shipping_cost_including_tax\":\"0.00\",\"shipping_cost_excluding_tax\":\"0.00\",\"shipping_cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"base_wrapping_cost\":\"0.00\",\"wrapping_cost_excluding_tax\":\"0.00\",\"wrapping_cost_including_tax\":\"0.00\",\"wrapping_cost_tax\":\"0.00\",\"billing_company\":\"Vickie E. Furman\",\"billing_first_name\":\"Vickie\",\"billing_last_name\":\"E.\",\"billing_address\":\"2553 SHOREY WAY\",\"billing_address2\":null,\"billing_city\":\"FAIRFIELD\",\"billing_state\":\"CA\",\"billing_country\":\"US\",\"billing_postal_code\":\"94533-6562\",\"billing_phone_number\":\"707-631-2933\",\"billing_email\":\"s935sckjckp8100@marketplace.amazon.com\",\"buyer_email\":\"s935sckjckp8100@marketplace.amazon.com\",\"recipients\":[{\"company\":null,\"first_name\":\"Vickie\",\"last_name\":\"E. Furman\",\"address\":\"2553 SHOREY WAY\",\"address2\":null,\"address3\":null,\"city\":\"FAIRFIELD\",\"residential\":true,\"state\":\"CA\",\"province\":null,\"country\":\"United States\",\"postal_code\":\"94533\",\"postal_code_plus_4\":\"6562\",\"phone_number\":\"707-631-2933\",\"email\":\"s935sckjckp8100@marketplace.amazon.com\",\"base_cost\":\"0.00\",\"cost_excluding_tax\":\"0.00\",\"cost_including_tax\":\"0.00\",\"cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"shipping_zone_id\":null,\"shipping_zone_name\":null,\"items_total\":null,\"shipping_method\":\"Standard\",\"items_shipped\":null,\"ext_shipping_detail_id\":null,\"line_items\":[{\"item_name\":\"Cornhusker Kitchen\'s Duck Fat Cooking Oil Spray 7 oz (New)\",\"sku\":\"duckfat-1\",\"bin_picking_number\":null,\"bundled_product\":null,\"weight_in_ounces\":\"12.0\",\"quantity\":1,\"total_excluding_tax\":\"0.00\",\"price_excluding_tax\":\"13.85\",\"unit_price\":\"13.85\",\"ext_line_item_id\":\"02686000384562\",\"ext_product_id\":null,\"product_options\":null,\"uuid\":\"e0626eae-52f7-4400-b884-2fa28e3a1a0f\",\"order_source_id\":218012753,\"gift_message\":null}],\"original_order\":{\"id\":208377743,\"customer_id\":33773,\"store_id\":70647,\"order_detail_id\":210515143,\"workflow_state\":\"shipped\",\"shipment_id\":null,\"destination_id\":null,\"split_from_order_id\":null,\"total_weight_in_ounces\":\"12.0\",\"total_quantity\":1,\"is_international\":false,\"usps_shipping_zone\":7,\"created_at\":\"2017-12-29T20:06:51Z\",\"updated_at\":\"2018-01-01T10:10:52Z\",\"ext_shipment_confirmation_id\":1,\"store_order_status\":\"awaiting_fulfillment\",\"drop_ship_tracking_number\":null,\"category_id\":136973,\"internal_notes\":\"\",\"line_item_name\":\"cornhusker kitchen\'s duck fat cooking oil spray 7 oz (new)\",\"line_item_sku\":\"duckfat-1\",\"address_kind\":\"R\",\"recipient_last_name\":\"e. furman\",\"recipient_requested_service\":\"standard\",\"gift\":null,\"prime_order_id\":208377743,\"state\":\"CA\",\"owner_id\":37098,\"denormalized_ordered_at\":\"2017-12-29T18:50:00Z\",\"grab_bag\":[],\"line_item_bin_picking_number\":null,\"denormalized_ext_order_id\":\"114-8954806-4314601\",\"packing_slip_generated\":null,\"denormalized_ext_order_reference_id\":\"114-8954806-4314601\",\"denormalized_alternate_order_id\":null,\"denormalized_sales_channel\":null,\"custom_1\":null,\"custom_2\":null,\"custom_3\":null,\"hidden\":null,\"allocated\":null}}],\"store_api_key\":\"7090b516cf49ce6d62caa5db6a7a32ab\",\"shipments\":[{\"id\":226043183,\"tracking_number\":\"9400110298370319258026\",\"carrier_key\":\"USPS\",\"carrier_service_key\":\"First\",\"shipment_cost\":374,\"ship_date\":\"2018-01-01\"}],\"updated_at\":\"2018-01-01T10:10:52Z\",\"internal_notes\":\"\",\"meta_data\":null,\"prime_order_id\":208377743,\"is_prime\":false,\"split_from_order_id\":null,\"tags\":[]}',
        CURRENT_TIMESTAMP
    )
        

Successfully added order to DB. Order ID (our DB's order ID) #7461

existingShippingEasySHipmentsDBRows:
array(0) {
}


shipmentDBRows:
array(0) {
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(226043183)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(4) "12.0"
    ["carrier_service_key"]=>
    string(5) "First"
    ["shipment_cost"]=>
    int(374)
    ["ship_date"]=>
    string(10) "2018-01-01"
    ["tracking_number"]=>
    string(22) "9400110298370319258026"
  }
}

Adding shipment info:
array(7) {
  ["se_shipment_id"]=>
  int(226043183)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(4) "12.0"
  ["carrier_service_key"]=>
  string(5) "First"
  ["shipment_cost"]=>
  int(374)
  ["ship_date"]=>
  string(10) "2018-01-01"
  ["tracking_number"]=>
  string(22) "9400110298370319258026"
}



sql:     
        INSERT INTO
            `bbqpo_se_shipments`
        (
            order_id,
            se_shipment_id,
            carrier_key,
            carrier_service_key,
            shipment_cost,
            ship_date,
            shipment_weight_ounces,
            tracking_number
        )
            VALUES
        (
            '7461',
            226043183,
            'USPS',
            'First',
            374,
            '2018-01-01',
            '12.0',
            '9400110298370319258026'
        )
        ON DUPLICATE KEY UPDATE
        
            se_shipment_id = 226043183,
            carrier_key = 'USPS',
            carrier_service_key = 'First',
            shipment_cost = 374,
            ship_date = '2018-01-01',
            tracking_number = '9400110298370319258026',
            shipment_weight_ounces = '12.0'
        

insert result:
string(4) "7113"



*** Order info:
Array
(
    [id] => 208800093
    [external_order_identifier] => 113-7275596-0042629
    [ext_order_reference_id] => 113-7275596-0042629
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-30T04:22:10Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 42.88
    [total_excluding_tax] => 39.98
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 42.88
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 2.90
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Christa McGarey
    [billing_first_name] => Christa
    [billing_last_name] => J.
    [billing_address] => 455 A AVE
    [billing_address2] => 
    [billing_city] => CORONADO
    [billing_state] => CA
    [billing_country] => US
    [billing_postal_code] => 92118-1915
    [billing_phone_number] => 2567010300
    [billing_email] => 7hpy4pzg94txnzv@marketplace.amazon.com
    [buyer_email] => 7hpy4pzg94txnzv@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Christa
                    [last_name] => McGarey
                    [address] => 455 A AVE
                    [address2] => 
                    [address3] => 
                    [city] => CORONADO
                    [residential] => 1
                    [state] => CA
                    [province] => 
                    [country] => United States
                    [postal_code] => 92118
                    [postal_code_plus_4] => 1915
                    [phone_number] => 2567010300
                    [email] => 7hpy4pzg94txnzv@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => Standard
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => World's Best Fire Starter - Wood Stove, Pellet Stove, BBQ (New)
                                    [sku] => firestarter1fbb
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 12.0
                                    [quantity] => 2
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 19.99
                                    [unit_price] => 19.99
                                    [ext_line_item_id] => 02237486205882
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 5a609085-4308-4ab3-aed3-5fb8c79c5eb0
                                    [order_source_id] => 218477153
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 208800093
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 210946963
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 24.0
                            [total_quantity] => 2
                            [is_international] => 
                            [usps_shipping_zone] => 7
                            [created_at] => 2017-12-30T05:07:04Z
                            [updated_at] => 2018-01-01T10:10:52Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => world's best fire starter - wood stove, pellet stove, bbq (new)
                            [line_item_sku] => firestarter1fbb
                            [address_kind] => R
                            [recipient_last_name] => mcgarey
                            [recipient_requested_service] => standard
                            [gift] => 
                            [prime_order_id] => 208800093
                            [state] => CA
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-30T04:22:10Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 113-7275596-0042629
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 113-7275596-0042629
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 226043193
                    [tracking_number] => 9405510298370319257855
                    [carrier_key] => USPS
                    [carrier_service_key] => Priority
                    [shipment_cost] => 575
                    [ship_date] => 2018-01-01
                )

        )

    [updated_at] => 2018-01-01T10:10:52Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 208800093
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsd
Customer not found in the database.  Attempting to add now
New customer ID: 10061

parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10061"
  ["ordered_time"]=>
  string(19) "2017-12-30 04:22:10"
  ["se_order_id"]=>
  int(208800093)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "113-7275596-0042629"
  ["order_weight_ounces"]=>
  string(4) "24.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4034) "{"id":208800093,"external_order_identifier":"113-7275596-0042629","ext_order_reference_id":"113-7275596-0042629","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-30T04:22:10Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"42.88","total_excluding_tax":"39.98","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"42.88","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"2.90","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Christa McGarey","billing_first_name":"Christa","billing_last_name":"J.","billing_address":"455 A AVE","billing_address2":null,"billing_city":"CORONADO","billing_state":"CA","billing_country":"US","billing_postal_code":"92118-1915","billing_phone_number":"2567010300","billing_email":"7hpy4pzg94txnzv@marketplace.amazon.com","buyer_email":"7hpy4pzg94txnzv@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Christa","last_name":"McGarey","address":"455 A AVE","address2":null,"address3":null,"city":"CORONADO","residential":true,"state":"CA","province":null,"country":"United States","postal_code":"92118","postal_code_plus_4":"1915","phone_number":"2567010300","email":"7hpy4pzg94txnzv@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"Standard","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"World's Best Fire Starter - Wood Stove, Pellet Stove, BBQ (New)","sku":"firestarter1fbb","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"12.0","quantity":2,"total_excluding_tax":"0.00","price_excluding_tax":"19.99","unit_price":"19.99","ext_line_item_id":"02237486205882","ext_product_id":null,"product_options":null,"uuid":"5a609085-4308-4ab3-aed3-5fb8c79c5eb0","order_source_id":218477153,"gift_message":null}],"original_order":{"id":208800093,"customer_id":33773,"store_id":70647,"order_detail_id":210946963,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"24.0","total_quantity":2,"is_international":false,"usps_shipping_zone":7,"created_at":"2017-12-30T05:07:04Z","updated_at":"2018-01-01T10:10:52Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"world's best fire starter - wood stove, pellet stove, bbq (new)","line_item_sku":"firestarter1fbb","address_kind":"R","recipient_last_name":"mcgarey","recipient_requested_service":"standard","gift":null,"prime_order_id":208800093,"state":"CA","owner_id":37098,"denormalized_ordered_at":"2017-12-30T04:22:10Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"113-7275596-0042629","packing_slip_generated":null,"denormalized_ext_order_reference_id":"113-7275596-0042629","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":226043193,"tracking_number":"9405510298370319257855","carrier_key":"USPS","carrier_service_key":"Priority","shipment_cost":575,"ship_date":"2018-01-01"}],"updated_at":"2018-01-01T10:10:52Z","internal_notes":"","meta_data":null,"prime_order_id":208800093,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(226043193)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(4) "24.0"
      ["carrier_service_key"]=>
      string(8) "Priority"
      ["shipment_cost"]=>
      int(575)
      ["ship_date"]=>
      string(10) "2018-01-01"
      ["tracking_number"]=>
      string(22) "9405510298370319257855"
    }
  }
}


sql:     INSERT INTO
        `bbqpo_se_orders`
    (
        `customer_id`,
        `ordered_time`,
        `se_order_id`,
        `se_order_status`,
        `store_ordered_from`,
        `store_order_id`,
        `store_order_status`,
        `order_weight_ounces`,
        `se_api_response`,
        `last_updated`
    )
        VALUES 
    (
        '10061',
        '2017-12-30 04:22:10',
        '208800093',
        'shipped',
        'Amazon',
        '113-7275596-0042629',
        'awaiting_fulfillment',
        '24.0',
        '{\"id\":208800093,\"external_order_identifier\":\"113-7275596-0042629\",\"ext_order_reference_id\":\"113-7275596-0042629\",\"owner_id\":37098,\"sales_channel\":null,\"fulfillment_channel\":null,\"ordered_at\":\"2017-12-30T04:22:10Z\",\"order_status\":\"shipped\",\"parent_order_id\":null,\"source_order_ids\":null,\"total_including_tax\":\"42.88\",\"total_excluding_tax\":\"39.98\",\"discount_amount\":\"0.00\",\"coupon_discount\":\"0.00\",\"subtotal_including_tax\":\"42.88\",\"subtotal_excluding_tax\":\"0.00\",\"subtotal_tax\":\"0.00\",\"total_tax\":\"2.90\",\"base_shipping_cost\":\"0.00\",\"shipping_cost_including_tax\":\"0.00\",\"shipping_cost_excluding_tax\":\"0.00\",\"shipping_cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"base_wrapping_cost\":\"0.00\",\"wrapping_cost_excluding_tax\":\"0.00\",\"wrapping_cost_including_tax\":\"0.00\",\"wrapping_cost_tax\":\"0.00\",\"billing_company\":\"Christa McGarey\",\"billing_first_name\":\"Christa\",\"billing_last_name\":\"J.\",\"billing_address\":\"455 A AVE\",\"billing_address2\":null,\"billing_city\":\"CORONADO\",\"billing_state\":\"CA\",\"billing_country\":\"US\",\"billing_postal_code\":\"92118-1915\",\"billing_phone_number\":\"2567010300\",\"billing_email\":\"7hpy4pzg94txnzv@marketplace.amazon.com\",\"buyer_email\":\"7hpy4pzg94txnzv@marketplace.amazon.com\",\"recipients\":[{\"company\":null,\"first_name\":\"Christa\",\"last_name\":\"McGarey\",\"address\":\"455 A AVE\",\"address2\":null,\"address3\":null,\"city\":\"CORONADO\",\"residential\":true,\"state\":\"CA\",\"province\":null,\"country\":\"United States\",\"postal_code\":\"92118\",\"postal_code_plus_4\":\"1915\",\"phone_number\":\"2567010300\",\"email\":\"7hpy4pzg94txnzv@marketplace.amazon.com\",\"base_cost\":\"0.00\",\"cost_excluding_tax\":\"0.00\",\"cost_including_tax\":\"0.00\",\"cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"shipping_zone_id\":null,\"shipping_zone_name\":null,\"items_total\":null,\"shipping_method\":\"Standard\",\"items_shipped\":null,\"ext_shipping_detail_id\":null,\"line_items\":[{\"item_name\":\"World\'s Best Fire Starter - Wood Stove, Pellet Stove, BBQ (New)\",\"sku\":\"firestarter1fbb\",\"bin_picking_number\":null,\"bundled_product\":null,\"weight_in_ounces\":\"12.0\",\"quantity\":2,\"total_excluding_tax\":\"0.00\",\"price_excluding_tax\":\"19.99\",\"unit_price\":\"19.99\",\"ext_line_item_id\":\"02237486205882\",\"ext_product_id\":null,\"product_options\":null,\"uuid\":\"5a609085-4308-4ab3-aed3-5fb8c79c5eb0\",\"order_source_id\":218477153,\"gift_message\":null}],\"original_order\":{\"id\":208800093,\"customer_id\":33773,\"store_id\":70647,\"order_detail_id\":210946963,\"workflow_state\":\"shipped\",\"shipment_id\":null,\"destination_id\":null,\"split_from_order_id\":null,\"total_weight_in_ounces\":\"24.0\",\"total_quantity\":2,\"is_international\":false,\"usps_shipping_zone\":7,\"created_at\":\"2017-12-30T05:07:04Z\",\"updated_at\":\"2018-01-01T10:10:52Z\",\"ext_shipment_confirmation_id\":1,\"store_order_status\":\"awaiting_fulfillment\",\"drop_ship_tracking_number\":null,\"category_id\":136973,\"internal_notes\":\"\",\"line_item_name\":\"world\'s best fire starter - wood stove, pellet stove, bbq (new)\",\"line_item_sku\":\"firestarter1fbb\",\"address_kind\":\"R\",\"recipient_last_name\":\"mcgarey\",\"recipient_requested_service\":\"standard\",\"gift\":null,\"prime_order_id\":208800093,\"state\":\"CA\",\"owner_id\":37098,\"denormalized_ordered_at\":\"2017-12-30T04:22:10Z\",\"grab_bag\":[],\"line_item_bin_picking_number\":null,\"denormalized_ext_order_id\":\"113-7275596-0042629\",\"packing_slip_generated\":null,\"denormalized_ext_order_reference_id\":\"113-7275596-0042629\",\"denormalized_alternate_order_id\":null,\"denormalized_sales_channel\":null,\"custom_1\":null,\"custom_2\":null,\"custom_3\":null,\"hidden\":null,\"allocated\":null}}],\"store_api_key\":\"7090b516cf49ce6d62caa5db6a7a32ab\",\"shipments\":[{\"id\":226043193,\"tracking_number\":\"9405510298370319257855\",\"carrier_key\":\"USPS\",\"carrier_service_key\":\"Priority\",\"shipment_cost\":575,\"ship_date\":\"2018-01-01\"}],\"updated_at\":\"2018-01-01T10:10:52Z\",\"internal_notes\":\"\",\"meta_data\":null,\"prime_order_id\":208800093,\"is_prime\":false,\"split_from_order_id\":null,\"tags\":[]}',
        CURRENT_TIMESTAMP
    )
        

Successfully added order to DB. Order ID (our DB's order ID) #7462

existingShippingEasySHipmentsDBRows:
array(0) {
}


shipmentDBRows:
array(0) {
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(226043193)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(4) "24.0"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    int(575)
    ["ship_date"]=>
    string(10) "2018-01-01"
    ["tracking_number"]=>
    string(22) "9405510298370319257855"
  }
}

Adding shipment info:
array(7) {
  ["se_shipment_id"]=>
  int(226043193)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(4) "24.0"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  int(575)
  ["ship_date"]=>
  string(10) "2018-01-01"
  ["tracking_number"]=>
  string(22) "9405510298370319257855"
}



sql:     
        INSERT INTO
            `bbqpo_se_shipments`
        (
            order_id,
            se_shipment_id,
            carrier_key,
            carrier_service_key,
            shipment_cost,
            ship_date,
            shipment_weight_ounces,
            tracking_number
        )
            VALUES
        (
            '7462',
            226043193,
            'USPS',
            'Priority',
            575,
            '2018-01-01',
            '24.0',
            '9405510298370319257855'
        )
        ON DUPLICATE KEY UPDATE
        
            se_shipment_id = 226043193,
            carrier_key = 'USPS',
            carrier_service_key = 'Priority',
            shipment_cost = 575,
            ship_date = '2018-01-01',
            tracking_number = '9405510298370319257855',
            shipment_weight_ounces = '24.0'
        

insert result:
string(4) "7114"



*** Order info:
Array
(
    [id] => 208829523
    [external_order_identifier] => 112-2497717-7951413
    [ext_order_reference_id] => 112-2497717-7951413
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-30T04:41:36Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 18.40
    [total_excluding_tax] => 18.40
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 18.40
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Kellee Captain
    [billing_first_name] => Kellee
    [billing_last_name] => Captain
    [billing_address] => 185 MEADOW GLEN DR
    [billing_address2] => 
    [billing_city] => KILLEEN
    [billing_state] => TX
    [billing_country] => US
    [billing_postal_code] => 76543-8066
    [billing_phone_number] => 2544238035
    [billing_email] => wz4d8lz8wkb0dhw@marketplace.amazon.com
    [buyer_email] => wz4d8lz8wkb0dhw@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Kellee
                    [last_name] => Captain
                    [address] => 185 MEADOW GLEN DR
                    [address2] => 
                    [address3] => 
                    [city] => KILLEEN
                    [residential] => 1
                    [state] => TX
                    [province] => 
                    [country] => United States
                    [postal_code] => 76543
                    [postal_code_plus_4] => 8066
                    [phone_number] => 2544238035
                    [email] => wz4d8lz8wkb0dhw@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack 100% Hardwood Grilling Smoker Pellets, Pecan Blend, 20 LB (New)
                                    [sku] => 20PecComp
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 336.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 18.40
                                    [unit_price] => 18.40
                                    [ext_line_item_id] => 06199205648986
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 93bb3332-4033-4852-a237-791392f63a15
                                    [order_source_id] => 218510803
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 208829523
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 210979493
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 336.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 6
                            [created_at] => 2017-12-30T06:07:10Z
                            [updated_at] => 2018-01-01T10:10:52Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack 100% hardwood grilling smoker pellets, pecan blend, 20 lb (new)
                            [line_item_sku] => 20peccomp
                            [address_kind] => R
                            [recipient_last_name] => captain
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 208829523
                            [state] => TX
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-30T04:41:36Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 112-2497717-7951413
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 112-2497717-7951413
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 226043253
                    [tracking_number] => 789173978840
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 934
                    [ship_date] => 2018-01-01
                )

        )

    [updated_at] => 2018-01-01T10:10:52Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 208829523
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for wz4d8lz8wkb0dhw@marketplace.amazon.com) was previously inserted to the DB.
Existing customer ID: 8317

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(6) "Kellee"
  ["customer_last_name"]=>
  string(7) "Captain"
  ["customer_email"]=>
  string(38) "wz4d8lz8wkb0dhw@marketplace.amazon.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  string(14) "Kellee Captain"
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(18) "185 MEADOW GLEN DR"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(7) "KILLEEN"
    ["address_state"]=>
    string(2) "TX"
    ["address_zip"]=>
    string(10) "76543-8066"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(4) "8317"
  ["ordered_time"]=>
  string(19) "2017-12-30 04:41:36"
  ["se_order_id"]=>
  int(208829523)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "112-2497717-7951413"
  ["order_weight_ounces"]=>
  string(5) "336.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4067) "{"id":208829523,"external_order_identifier":"112-2497717-7951413","ext_order_reference_id":"112-2497717-7951413","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-30T04:41:36Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"18.40","total_excluding_tax":"18.40","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"18.40","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Kellee Captain","billing_first_name":"Kellee","billing_last_name":"Captain","billing_address":"185 MEADOW GLEN DR","billing_address2":null,"billing_city":"KILLEEN","billing_state":"TX","billing_country":"US","billing_postal_code":"76543-8066","billing_phone_number":"2544238035","billing_email":"wz4d8lz8wkb0dhw@marketplace.amazon.com","buyer_email":"wz4d8lz8wkb0dhw@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Kellee","last_name":"Captain","address":"185 MEADOW GLEN DR","address2":null,"address3":null,"city":"KILLEEN","residential":true,"state":"TX","province":null,"country":"United States","postal_code":"76543","postal_code_plus_4":"8066","phone_number":"2544238035","email":"wz4d8lz8wkb0dhw@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack 100% Hardwood Grilling Smoker Pellets, Pecan Blend, 20 LB (New)","sku":"20PecComp","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"336.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"18.40","unit_price":"18.40","ext_line_item_id":"06199205648986","ext_product_id":null,"product_options":null,"uuid":"93bb3332-4033-4852-a237-791392f63a15","order_source_id":218510803,"gift_message":null}],"original_order":{"id":208829523,"customer_id":33773,"store_id":70647,"order_detail_id":210979493,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"336.0","total_quantity":1,"is_international":false,"usps_shipping_zone":6,"created_at":"2017-12-30T06:07:10Z","updated_at":"2018-01-01T10:10:52Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack 100% hardwood grilling smoker pellets, pecan blend, 20 lb (new)","line_item_sku":"20peccomp","address_kind":"R","recipient_last_name":"captain","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":208829523,"state":"TX","owner_id":37098,"denormalized_ordered_at":"2017-12-30T04:41:36Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"112-2497717-7951413","packing_slip_generated":null,"denormalized_ext_order_reference_id":"112-2497717-7951413","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":226043253,"tracking_number":"789173978840","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":934,"ship_date":"2018-01-01"}],"updated_at":"2018-01-01T10:10:52Z","internal_notes":"","meta_data":null,"prime_order_id":208829523,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(226043253)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(5) "336.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(934)
      ["ship_date"]=>
      string(10) "2018-01-01"
      ["tracking_number"]=>
      string(12) "789173978840"
    }
  }
}


sql:     INSERT INTO
        `bbqpo_se_orders`
    (
        `customer_id`,
        `ordered_time`,
        `se_order_id`,
        `se_order_status`,
        `store_ordered_from`,
        `store_order_id`,
        `store_order_status`,
        `order_weight_ounces`,
        `se_api_response`,
        `last_updated`
    )
        VALUES 
    (
        '8317',
        '2017-12-30 04:41:36',
        '208829523',
        'shipped',
        'Amazon',
        '112-2497717-7951413',
        'awaiting_fulfillment',
        '336.0',
        '{\"id\":208829523,\"external_order_identifier\":\"112-2497717-7951413\",\"ext_order_reference_id\":\"112-2497717-7951413\",\"owner_id\":37098,\"sales_channel\":null,\"fulfillment_channel\":null,\"ordered_at\":\"2017-12-30T04:41:36Z\",\"order_status\":\"shipped\",\"parent_order_id\":null,\"source_order_ids\":null,\"total_including_tax\":\"18.40\",\"total_excluding_tax\":\"18.40\",\"discount_amount\":\"0.00\",\"coupon_discount\":\"0.00\",\"subtotal_including_tax\":\"18.40\",\"subtotal_excluding_tax\":\"0.00\",\"subtotal_tax\":\"0.00\",\"total_tax\":\"0.00\",\"base_shipping_cost\":\"0.00\",\"shipping_cost_including_tax\":\"0.00\",\"shipping_cost_excluding_tax\":\"0.00\",\"shipping_cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"base_wrapping_cost\":\"0.00\",\"wrapping_cost_excluding_tax\":\"0.00\",\"wrapping_cost_including_tax\":\"0.00\",\"wrapping_cost_tax\":\"0.00\",\"billing_company\":\"Kellee Captain\",\"billing_first_name\":\"Kellee\",\"billing_last_name\":\"Captain\",\"billing_address\":\"185 MEADOW GLEN DR\",\"billing_address2\":null,\"billing_city\":\"KILLEEN\",\"billing_state\":\"TX\",\"billing_country\":\"US\",\"billing_postal_code\":\"76543-8066\",\"billing_phone_number\":\"2544238035\",\"billing_email\":\"wz4d8lz8wkb0dhw@marketplace.amazon.com\",\"buyer_email\":\"wz4d8lz8wkb0dhw@marketplace.amazon.com\",\"recipients\":[{\"company\":null,\"first_name\":\"Kellee\",\"last_name\":\"Captain\",\"address\":\"185 MEADOW GLEN DR\",\"address2\":null,\"address3\":null,\"city\":\"KILLEEN\",\"residential\":true,\"state\":\"TX\",\"province\":null,\"country\":\"United States\",\"postal_code\":\"76543\",\"postal_code_plus_4\":\"8066\",\"phone_number\":\"2544238035\",\"email\":\"wz4d8lz8wkb0dhw@marketplace.amazon.com\",\"base_cost\":\"0.00\",\"cost_excluding_tax\":\"0.00\",\"cost_including_tax\":\"0.00\",\"cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"shipping_zone_id\":null,\"shipping_zone_name\":null,\"items_total\":null,\"shipping_method\":\"FreeEconomy\",\"items_shipped\":null,\"ext_shipping_detail_id\":null,\"line_items\":[{\"item_name\":\"Lumber Jack 100% Hardwood Grilling Smoker Pellets, Pecan Blend, 20 LB (New)\",\"sku\":\"20PecComp\",\"bin_picking_number\":null,\"bundled_product\":null,\"weight_in_ounces\":\"336.0\",\"quantity\":1,\"total_excluding_tax\":\"0.00\",\"price_excluding_tax\":\"18.40\",\"unit_price\":\"18.40\",\"ext_line_item_id\":\"06199205648986\",\"ext_product_id\":null,\"product_options\":null,\"uuid\":\"93bb3332-4033-4852-a237-791392f63a15\",\"order_source_id\":218510803,\"gift_message\":null}],\"original_order\":{\"id\":208829523,\"customer_id\":33773,\"store_id\":70647,\"order_detail_id\":210979493,\"workflow_state\":\"shipped\",\"shipment_id\":null,\"destination_id\":null,\"split_from_order_id\":null,\"total_weight_in_ounces\":\"336.0\",\"total_quantity\":1,\"is_international\":false,\"usps_shipping_zone\":6,\"created_at\":\"2017-12-30T06:07:10Z\",\"updated_at\":\"2018-01-01T10:10:52Z\",\"ext_shipment_confirmation_id\":1,\"store_order_status\":\"awaiting_fulfillment\",\"drop_ship_tracking_number\":null,\"category_id\":136973,\"internal_notes\":\"\",\"line_item_name\":\"lumber jack 100% hardwood grilling smoker pellets, pecan blend, 20 lb (new)\",\"line_item_sku\":\"20peccomp\",\"address_kind\":\"R\",\"recipient_last_name\":\"captain\",\"recipient_requested_service\":\"freeeconomy\",\"gift\":null,\"prime_order_id\":208829523,\"state\":\"TX\",\"owner_id\":37098,\"denormalized_ordered_at\":\"2017-12-30T04:41:36Z\",\"grab_bag\":[],\"line_item_bin_picking_number\":null,\"denormalized_ext_order_id\":\"112-2497717-7951413\",\"packing_slip_generated\":null,\"denormalized_ext_order_reference_id\":\"112-2497717-7951413\",\"denormalized_alternate_order_id\":null,\"denormalized_sales_channel\":null,\"custom_1\":null,\"custom_2\":null,\"custom_3\":null,\"hidden\":null,\"allocated\":null}}],\"store_api_key\":\"7090b516cf49ce6d62caa5db6a7a32ab\",\"shipments\":[{\"id\":226043253,\"tracking_number\":\"789173978840\",\"carrier_key\":\"FEDEX\",\"carrier_service_key\":\"FEDEX_GROUND\",\"shipment_cost\":934,\"ship_date\":\"2018-01-01\"}],\"updated_at\":\"2018-01-01T10:10:52Z\",\"internal_notes\":\"\",\"meta_data\":null,\"prime_order_id\":208829523,\"is_prime\":false,\"split_from_order_id\":null,\"tags\":[]}',
        CURRENT_TIMESTAMP
    )
        

Successfully added order to DB. Order ID (our DB's order ID) #7463

existingShippingEasySHipmentsDBRows:
array(0) {
}


shipmentDBRows:
array(0) {
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(226043253)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(5) "336.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(934)
    ["ship_date"]=>
    string(10) "2018-01-01"
    ["tracking_number"]=>
    string(12) "789173978840"
  }
}

Adding shipment info:
array(7) {
  ["se_shipment_id"]=>
  int(226043253)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(5) "336.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(934)
  ["ship_date"]=>
  string(10) "2018-01-01"
  ["tracking_number"]=>
  string(12) "789173978840"
}



sql:     
        INSERT INTO
            `bbqpo_se_shipments`
        (
            order_id,
            se_shipment_id,
            carrier_key,
            carrier_service_key,
            shipment_cost,
            ship_date,
            shipment_weight_ounces,
            tracking_number
        )
            VALUES
        (
            '7463',
            226043253,
            'FEDEX',
            'FEDEX_GROUND',
            934,
            '2018-01-01',
            '336.0',
            '789173978840'
        )
        ON DUPLICATE KEY UPDATE
        
            se_shipment_id = 226043253,
            carrier_key = 'FEDEX',
            carrier_service_key = 'FEDEX_GROUND',
            shipment_cost = 934,
            ship_date = '2018-01-01',
            tracking_number = '789173978840',
            shipment_weight_ounces = '336.0'
        

insert result:
string(4) "7115"



*** Order info:
Array
(
    [id] => 208543723
    [external_order_identifier] => 114-2966077-0036202
    [ext_order_reference_id] => 114-2966077-0036202
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-29T22:05:01Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 25.00
    [total_excluding_tax] => 25.00
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 25.00
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Chelsea Budd
    [billing_first_name] => Justin
    [billing_last_name] => budd
    [billing_address] => 15564 SE MORRISON ST
    [billing_address2] => 
    [billing_city] => PORTLAND
    [billing_state] => OR
    [billing_country] => US
    [billing_postal_code] => 97233-3236
    [billing_phone_number] => 5039753238
    [billing_email] => 1k50br807mbgtlw@marketplace.amazon.com
    [buyer_email] => 1k50br807mbgtlw@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Chelsea
                    [last_name] => Budd
                    [address] => 15564 SE MORRISON ST
                    [address2] => 
                    [address3] => 
                    [city] => PORTLAND
                    [residential] => 1
                    [state] => OR
                    [province] => 
                    [country] => United States
                    [postal_code] => 97233
                    [postal_code_plus_4] => 3236
                    [phone_number] => 5039753238
                    [email] => 1k50br807mbgtlw@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack 20-pounds BBQ Grilling wood pellets (Charblend Hickory (Hickory and Charcoal)) (New)
                                    [sku] => 20poundljcharhick
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 336.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 25.00
                                    [unit_price] => 25.00
                                    [ext_line_item_id] => 69524208596146
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 901b85fe-2af6-47cd-9ac1-3e6395dae569
                                    [order_source_id] => 218192063
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 208543723
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 210683623
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 336.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 7
                            [created_at] => 2017-12-29T23:06:35Z
                            [updated_at] => 2018-01-01T10:10:52Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack 20-pounds bbq grilling wood pellets (charblend hickory (hickory and charcoal)) (new)
                            [line_item_sku] => 20poundljcharhick
                            [address_kind] => R
                            [recipient_last_name] => budd
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 208543723
                            [state] => OR
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-29T22:05:01Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 114-2966077-0036202
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 114-2966077-0036202
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 226043263
                    [tracking_number] => 789173978872
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 1132
                    [ship_date] => 2018-01-01
                )

        )

    [updated_at] => 2018-01-01T10:10:52Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 208543723
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsd
Customer not found in the database.  Attempting to add now
New customer ID: 10062

parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10062"
  ["ordered_time"]=>
  string(19) "2017-12-29 22:05:01"
  ["se_order_id"]=>
  int(208543723)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "114-2966077-0036202"
  ["order_weight_ounces"]=>
  string(5) "336.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4122) "{"id":208543723,"external_order_identifier":"114-2966077-0036202","ext_order_reference_id":"114-2966077-0036202","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-29T22:05:01Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"25.00","total_excluding_tax":"25.00","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"25.00","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Chelsea Budd","billing_first_name":"Justin","billing_last_name":"budd","billing_address":"15564 SE MORRISON ST","billing_address2":null,"billing_city":"PORTLAND","billing_state":"OR","billing_country":"US","billing_postal_code":"97233-3236","billing_phone_number":"5039753238","billing_email":"1k50br807mbgtlw@marketplace.amazon.com","buyer_email":"1k50br807mbgtlw@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Chelsea","last_name":"Budd","address":"15564 SE MORRISON ST","address2":null,"address3":null,"city":"PORTLAND","residential":true,"state":"OR","province":null,"country":"United States","postal_code":"97233","postal_code_plus_4":"3236","phone_number":"5039753238","email":"1k50br807mbgtlw@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack 20-pounds BBQ Grilling wood pellets (Charblend Hickory (Hickory and Charcoal)) (New)","sku":"20poundljcharhick","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"336.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"25.00","unit_price":"25.00","ext_line_item_id":"69524208596146","ext_product_id":null,"product_options":null,"uuid":"901b85fe-2af6-47cd-9ac1-3e6395dae569","order_source_id":218192063,"gift_message":null}],"original_order":{"id":208543723,"customer_id":33773,"store_id":70647,"order_detail_id":210683623,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"336.0","total_quantity":1,"is_international":false,"usps_shipping_zone":7,"created_at":"2017-12-29T23:06:35Z","updated_at":"2018-01-01T10:10:52Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack 20-pounds bbq grilling wood pellets (charblend hickory (hickory and charcoal)) (new)","line_item_sku":"20poundljcharhick","address_kind":"R","recipient_last_name":"budd","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":208543723,"state":"OR","owner_id":37098,"denormalized_ordered_at":"2017-12-29T22:05:01Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"114-2966077-0036202","packing_slip_generated":null,"denormalized_ext_order_reference_id":"114-2966077-0036202","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":226043263,"tracking_number":"789173978872","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":1132,"ship_date":"2018-01-01"}],"updated_at":"2018-01-01T10:10:52Z","internal_notes":"","meta_data":null,"prime_order_id":208543723,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(226043263)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(5) "336.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(1132)
      ["ship_date"]=>
      string(10) "2018-01-01"
      ["tracking_number"]=>
      string(12) "789173978872"
    }
  }
}


sql:     INSERT INTO
        `bbqpo_se_orders`
    (
        `customer_id`,
        `ordered_time`,
        `se_order_id`,
        `se_order_status`,
        `store_ordered_from`,
        `store_order_id`,
        `store_order_status`,
        `order_weight_ounces`,
        `se_api_response`,
        `last_updated`
    )
        VALUES 
    (
        '10062',
        '2017-12-29 22:05:01',
        '208543723',
        'shipped',
        'Amazon',
        '114-2966077-0036202',
        'awaiting_fulfillment',
        '336.0',
        '{\"id\":208543723,\"external_order_identifier\":\"114-2966077-0036202\",\"ext_order_reference_id\":\"114-2966077-0036202\",\"owner_id\":37098,\"sales_channel\":null,\"fulfillment_channel\":null,\"ordered_at\":\"2017-12-29T22:05:01Z\",\"order_status\":\"shipped\",\"parent_order_id\":null,\"source_order_ids\":null,\"total_including_tax\":\"25.00\",\"total_excluding_tax\":\"25.00\",\"discount_amount\":\"0.00\",\"coupon_discount\":\"0.00\",\"subtotal_including_tax\":\"25.00\",\"subtotal_excluding_tax\":\"0.00\",\"subtotal_tax\":\"0.00\",\"total_tax\":\"0.00\",\"base_shipping_cost\":\"0.00\",\"shipping_cost_including_tax\":\"0.00\",\"shipping_cost_excluding_tax\":\"0.00\",\"shipping_cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"base_wrapping_cost\":\"0.00\",\"wrapping_cost_excluding_tax\":\"0.00\",\"wrapping_cost_including_tax\":\"0.00\",\"wrapping_cost_tax\":\"0.00\",\"billing_company\":\"Chelsea Budd\",\"billing_first_name\":\"Justin\",\"billing_last_name\":\"budd\",\"billing_address\":\"15564 SE MORRISON ST\",\"billing_address2\":null,\"billing_city\":\"PORTLAND\",\"billing_state\":\"OR\",\"billing_country\":\"US\",\"billing_postal_code\":\"97233-3236\",\"billing_phone_number\":\"5039753238\",\"billing_email\":\"1k50br807mbgtlw@marketplace.amazon.com\",\"buyer_email\":\"1k50br807mbgtlw@marketplace.amazon.com\",\"recipients\":[{\"company\":null,\"first_name\":\"Chelsea\",\"last_name\":\"Budd\",\"address\":\"15564 SE MORRISON ST\",\"address2\":null,\"address3\":null,\"city\":\"PORTLAND\",\"residential\":true,\"state\":\"OR\",\"province\":null,\"country\":\"United States\",\"postal_code\":\"97233\",\"postal_code_plus_4\":\"3236\",\"phone_number\":\"5039753238\",\"email\":\"1k50br807mbgtlw@marketplace.amazon.com\",\"base_cost\":\"0.00\",\"cost_excluding_tax\":\"0.00\",\"cost_including_tax\":\"0.00\",\"cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"shipping_zone_id\":null,\"shipping_zone_name\":null,\"items_total\":null,\"shipping_method\":\"FreeEconomy\",\"items_shipped\":null,\"ext_shipping_detail_id\":null,\"line_items\":[{\"item_name\":\"Lumber Jack 20-pounds BBQ Grilling wood pellets (Charblend Hickory (Hickory and Charcoal)) (New)\",\"sku\":\"20poundljcharhick\",\"bin_picking_number\":null,\"bundled_product\":null,\"weight_in_ounces\":\"336.0\",\"quantity\":1,\"total_excluding_tax\":\"0.00\",\"price_excluding_tax\":\"25.00\",\"unit_price\":\"25.00\",\"ext_line_item_id\":\"69524208596146\",\"ext_product_id\":null,\"product_options\":null,\"uuid\":\"901b85fe-2af6-47cd-9ac1-3e6395dae569\",\"order_source_id\":218192063,\"gift_message\":null}],\"original_order\":{\"id\":208543723,\"customer_id\":33773,\"store_id\":70647,\"order_detail_id\":210683623,\"workflow_state\":\"shipped\",\"shipment_id\":null,\"destination_id\":null,\"split_from_order_id\":null,\"total_weight_in_ounces\":\"336.0\",\"total_quantity\":1,\"is_international\":false,\"usps_shipping_zone\":7,\"created_at\":\"2017-12-29T23:06:35Z\",\"updated_at\":\"2018-01-01T10:10:52Z\",\"ext_shipment_confirmation_id\":1,\"store_order_status\":\"awaiting_fulfillment\",\"drop_ship_tracking_number\":null,\"category_id\":136973,\"internal_notes\":\"\",\"line_item_name\":\"lumber jack 20-pounds bbq grilling wood pellets (charblend hickory (hickory and charcoal)) (new)\",\"line_item_sku\":\"20poundljcharhick\",\"address_kind\":\"R\",\"recipient_last_name\":\"budd\",\"recipient_requested_service\":\"freeeconomy\",\"gift\":null,\"prime_order_id\":208543723,\"state\":\"OR\",\"owner_id\":37098,\"denormalized_ordered_at\":\"2017-12-29T22:05:01Z\",\"grab_bag\":[],\"line_item_bin_picking_number\":null,\"denormalized_ext_order_id\":\"114-2966077-0036202\",\"packing_slip_generated\":null,\"denormalized_ext_order_reference_id\":\"114-2966077-0036202\",\"denormalized_alternate_order_id\":null,\"denormalized_sales_channel\":null,\"custom_1\":null,\"custom_2\":null,\"custom_3\":null,\"hidden\":null,\"allocated\":null}}],\"store_api_key\":\"7090b516cf49ce6d62caa5db6a7a32ab\",\"shipments\":[{\"id\":226043263,\"tracking_number\":\"789173978872\",\"carrier_key\":\"FEDEX\",\"carrier_service_key\":\"FEDEX_GROUND\",\"shipment_cost\":1132,\"ship_date\":\"2018-01-01\"}],\"updated_at\":\"2018-01-01T10:10:52Z\",\"internal_notes\":\"\",\"meta_data\":null,\"prime_order_id\":208543723,\"is_prime\":false,\"split_from_order_id\":null,\"tags\":[]}',
        CURRENT_TIMESTAMP
    )
        

Successfully added order to DB. Order ID (our DB's order ID) #7464

existingShippingEasySHipmentsDBRows:
array(0) {
}


shipmentDBRows:
array(0) {
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(226043263)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(5) "336.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(1132)
    ["ship_date"]=>
    string(10) "2018-01-01"
    ["tracking_number"]=>
    string(12) "789173978872"
  }
}

Adding shipment info:
array(7) {
  ["se_shipment_id"]=>
  int(226043263)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(5) "336.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(1132)
  ["ship_date"]=>
  string(10) "2018-01-01"
  ["tracking_number"]=>
  string(12) "789173978872"
}



sql:     
        INSERT INTO
            `bbqpo_se_shipments`
        (
            order_id,
            se_shipment_id,
            carrier_key,
            carrier_service_key,
            shipment_cost,
            ship_date,
            shipment_weight_ounces,
            tracking_number
        )
            VALUES
        (
            '7464',
            226043263,
            'FEDEX',
            'FEDEX_GROUND',
            1132,
            '2018-01-01',
            '336.0',
            '789173978872'
        )
        ON DUPLICATE KEY UPDATE
        
            se_shipment_id = 226043263,
            carrier_key = 'FEDEX',
            carrier_service_key = 'FEDEX_GROUND',
            shipment_cost = 1132,
            ship_date = '2018-01-01',
            tracking_number = '789173978872',
            shipment_weight_ounces = '336.0'
        

insert result:
string(4) "7116"



*** Order info:
Array
(
    [id] => 208439853
    [external_order_identifier] => 111-0919055-8883434
    [ext_order_reference_id] => 111-0919055-8883434
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-29T19:32:32Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 18.40
    [total_excluding_tax] => 18.40
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 18.40
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Triton Electronics
    [billing_first_name] => Marsh
    [billing_last_name] => Wilkes
    [billing_address] => 415 E BAY ST
    [billing_address2] => 
    [billing_city] => PERRY
    [billing_state] => FL
    [billing_country] => US
    [billing_postal_code] => 32347-2807
    [billing_phone_number] => 850-295-5997
    [billing_email] => b0nxfcg9sjs0wrk@marketplace.amazon.com
    [buyer_email] => b0nxfcg9sjs0wrk@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Triton
                    [last_name] => Electronics
                    [address] => 415 E BAY ST
                    [address2] => 
                    [address3] => 
                    [city] => PERRY
                    [residential] => 1
                    [state] => FL
                    [province] => 
                    [country] => United States
                    [postal_code] => 32347
                    [postal_code_plus_4] => 2807
                    [phone_number] => 850-295-5997
                    [email] => b0nxfcg9sjs0wrk@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack 100-Percent Hickory Wood BBQ Grilling Pellets, 20-Pound Bag (New)
                                    [sku] => 20hick100Comp1
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 336.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 18.40
                                    [unit_price] => 18.40
                                    [ext_line_item_id] => 47595328182402
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 79854d49-151d-482a-b31c-ada0893143d8
                                    [order_source_id] => 218079833
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 208439853
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 210577653
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 336.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 6
                            [created_at] => 2017-12-29T21:06:54Z
                            [updated_at] => 2018-01-01T10:10:52Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack 100-percent hickory wood bbq grilling pellets, 20-pound bag (new)
                            [line_item_sku] => 20hick100comp1
                            [address_kind] => R
                            [recipient_last_name] => electronics
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 208439853
                            [state] => FL
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-29T19:32:32Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 111-0919055-8883434
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 111-0919055-8883434
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 226043273
                    [tracking_number] => 9405510298370319257619
                    [carrier_key] => USPS
                    [carrier_service_key] => Priority
                    [shipment_cost] => 1655
                    [ship_date] => 2018-01-01
                )

        )

    [updated_at] => 2018-01-01T10:10:52Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 208439853
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsd
Customer not found in the database.  Attempting to add now
New customer ID: 10063

parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10063"
  ["ordered_time"]=>
  string(19) "2017-12-29 19:32:32"
  ["se_order_id"]=>
  int(208439853)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "111-0919055-8883434"
  ["order_weight_ounces"]=>
  string(5) "336.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4085) "{"id":208439853,"external_order_identifier":"111-0919055-8883434","ext_order_reference_id":"111-0919055-8883434","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-29T19:32:32Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"18.40","total_excluding_tax":"18.40","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"18.40","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Triton Electronics","billing_first_name":"Marsh","billing_last_name":"Wilkes","billing_address":"415 E BAY ST","billing_address2":null,"billing_city":"PERRY","billing_state":"FL","billing_country":"US","billing_postal_code":"32347-2807","billing_phone_number":"850-295-5997","billing_email":"b0nxfcg9sjs0wrk@marketplace.amazon.com","buyer_email":"b0nxfcg9sjs0wrk@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Triton","last_name":"Electronics","address":"415 E BAY ST","address2":null,"address3":null,"city":"PERRY","residential":true,"state":"FL","province":null,"country":"United States","postal_code":"32347","postal_code_plus_4":"2807","phone_number":"850-295-5997","email":"b0nxfcg9sjs0wrk@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack 100-Percent Hickory Wood BBQ Grilling Pellets, 20-Pound Bag (New)","sku":"20hick100Comp1","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"336.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"18.40","unit_price":"18.40","ext_line_item_id":"47595328182402","ext_product_id":null,"product_options":null,"uuid":"79854d49-151d-482a-b31c-ada0893143d8","order_source_id":218079833,"gift_message":null}],"original_order":{"id":208439853,"customer_id":33773,"store_id":70647,"order_detail_id":210577653,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"336.0","total_quantity":1,"is_international":false,"usps_shipping_zone":6,"created_at":"2017-12-29T21:06:54Z","updated_at":"2018-01-01T10:10:52Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack 100-percent hickory wood bbq grilling pellets, 20-pound bag (new)","line_item_sku":"20hick100comp1","address_kind":"R","recipient_last_name":"electronics","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":208439853,"state":"FL","owner_id":37098,"denormalized_ordered_at":"2017-12-29T19:32:32Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"111-0919055-8883434","packing_slip_generated":null,"denormalized_ext_order_reference_id":"111-0919055-8883434","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":226043273,"tracking_number":"9405510298370319257619","carrier_key":"USPS","carrier_service_key":"Priority","shipment_cost":1655,"ship_date":"2018-01-01"}],"updated_at":"2018-01-01T10:10:52Z","internal_notes":"","meta_data":null,"prime_order_id":208439853,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(226043273)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(5) "336.0"
      ["carrier_service_key"]=>
      string(8) "Priority"
      ["shipment_cost"]=>
      int(1655)
      ["ship_date"]=>
      string(10) "2018-01-01"
      ["tracking_number"]=>
      string(22) "9405510298370319257619"
    }
  }
}


sql:     INSERT INTO
        `bbqpo_se_orders`
    (
        `customer_id`,
        `ordered_time`,
        `se_order_id`,
        `se_order_status`,
        `store_ordered_from`,
        `store_order_id`,
        `store_order_status`,
        `order_weight_ounces`,
        `se_api_response`,
        `last_updated`
    )
        VALUES 
    (
        '10063',
        '2017-12-29 19:32:32',
        '208439853',
        'shipped',
        'Amazon',
        '111-0919055-8883434',
        'awaiting_fulfillment',
        '336.0',
        '{\"id\":208439853,\"external_order_identifier\":\"111-0919055-8883434\",\"ext_order_reference_id\":\"111-0919055-8883434\",\"owner_id\":37098,\"sales_channel\":null,\"fulfillment_channel\":null,\"ordered_at\":\"2017-12-29T19:32:32Z\",\"order_status\":\"shipped\",\"parent_order_id\":null,\"source_order_ids\":null,\"total_including_tax\":\"18.40\",\"total_excluding_tax\":\"18.40\",\"discount_amount\":\"0.00\",\"coupon_discount\":\"0.00\",\"subtotal_including_tax\":\"18.40\",\"subtotal_excluding_tax\":\"0.00\",\"subtotal_tax\":\"0.00\",\"total_tax\":\"0.00\",\"base_shipping_cost\":\"0.00\",\"shipping_cost_including_tax\":\"0.00\",\"shipping_cost_excluding_tax\":\"0.00\",\"shipping_cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"base_wrapping_cost\":\"0.00\",\"wrapping_cost_excluding_tax\":\"0.00\",\"wrapping_cost_including_tax\":\"0.00\",\"wrapping_cost_tax\":\"0.00\",\"billing_company\":\"Triton Electronics\",\"billing_first_name\":\"Marsh\",\"billing_last_name\":\"Wilkes\",\"billing_address\":\"415 E BAY ST\",\"billing_address2\":null,\"billing_city\":\"PERRY\",\"billing_state\":\"FL\",\"billing_country\":\"US\",\"billing_postal_code\":\"32347-2807\",\"billing_phone_number\":\"850-295-5997\",\"billing_email\":\"b0nxfcg9sjs0wrk@marketplace.amazon.com\",\"buyer_email\":\"b0nxfcg9sjs0wrk@marketplace.amazon.com\",\"recipients\":[{\"company\":null,\"first_name\":\"Triton\",\"last_name\":\"Electronics\",\"address\":\"415 E BAY ST\",\"address2\":null,\"address3\":null,\"city\":\"PERRY\",\"residential\":true,\"state\":\"FL\",\"province\":null,\"country\":\"United States\",\"postal_code\":\"32347\",\"postal_code_plus_4\":\"2807\",\"phone_number\":\"850-295-5997\",\"email\":\"b0nxfcg9sjs0wrk@marketplace.amazon.com\",\"base_cost\":\"0.00\",\"cost_excluding_tax\":\"0.00\",\"cost_including_tax\":\"0.00\",\"cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"shipping_zone_id\":null,\"shipping_zone_name\":null,\"items_total\":null,\"shipping_method\":\"FreeEconomy\",\"items_shipped\":null,\"ext_shipping_detail_id\":null,\"line_items\":[{\"item_name\":\"Lumber Jack 100-Percent Hickory Wood BBQ Grilling Pellets, 20-Pound Bag (New)\",\"sku\":\"20hick100Comp1\",\"bin_picking_number\":null,\"bundled_product\":null,\"weight_in_ounces\":\"336.0\",\"quantity\":1,\"total_excluding_tax\":\"0.00\",\"price_excluding_tax\":\"18.40\",\"unit_price\":\"18.40\",\"ext_line_item_id\":\"47595328182402\",\"ext_product_id\":null,\"product_options\":null,\"uuid\":\"79854d49-151d-482a-b31c-ada0893143d8\",\"order_source_id\":218079833,\"gift_message\":null}],\"original_order\":{\"id\":208439853,\"customer_id\":33773,\"store_id\":70647,\"order_detail_id\":210577653,\"workflow_state\":\"shipped\",\"shipment_id\":null,\"destination_id\":null,\"split_from_order_id\":null,\"total_weight_in_ounces\":\"336.0\",\"total_quantity\":1,\"is_international\":false,\"usps_shipping_zone\":6,\"created_at\":\"2017-12-29T21:06:54Z\",\"updated_at\":\"2018-01-01T10:10:52Z\",\"ext_shipment_confirmation_id\":1,\"store_order_status\":\"awaiting_fulfillment\",\"drop_ship_tracking_number\":null,\"category_id\":136973,\"internal_notes\":\"\",\"line_item_name\":\"lumber jack 100-percent hickory wood bbq grilling pellets, 20-pound bag (new)\",\"line_item_sku\":\"20hick100comp1\",\"address_kind\":\"R\",\"recipient_last_name\":\"electronics\",\"recipient_requested_service\":\"freeeconomy\",\"gift\":null,\"prime_order_id\":208439853,\"state\":\"FL\",\"owner_id\":37098,\"denormalized_ordered_at\":\"2017-12-29T19:32:32Z\",\"grab_bag\":[],\"line_item_bin_picking_number\":null,\"denormalized_ext_order_id\":\"111-0919055-8883434\",\"packing_slip_generated\":null,\"denormalized_ext_order_reference_id\":\"111-0919055-8883434\",\"denormalized_alternate_order_id\":null,\"denormalized_sales_channel\":null,\"custom_1\":null,\"custom_2\":null,\"custom_3\":null,\"hidden\":null,\"allocated\":null}}],\"store_api_key\":\"7090b516cf49ce6d62caa5db6a7a32ab\",\"shipments\":[{\"id\":226043273,\"tracking_number\":\"9405510298370319257619\",\"carrier_key\":\"USPS\",\"carrier_service_key\":\"Priority\",\"shipment_cost\":1655,\"ship_date\":\"2018-01-01\"}],\"updated_at\":\"2018-01-01T10:10:52Z\",\"internal_notes\":\"\",\"meta_data\":null,\"prime_order_id\":208439853,\"is_prime\":false,\"split_from_order_id\":null,\"tags\":[]}',
        CURRENT_TIMESTAMP
    )
        

Successfully added order to DB. Order ID (our DB's order ID) #7465

existingShippingEasySHipmentsDBRows:
array(0) {
}


shipmentDBRows:
array(0) {
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(226043273)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(5) "336.0"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    int(1655)
    ["ship_date"]=>
    string(10) "2018-01-01"
    ["tracking_number"]=>
    string(22) "9405510298370319257619"
  }
}

Adding shipment info:
array(7) {
  ["se_shipment_id"]=>
  int(226043273)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(5) "336.0"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  int(1655)
  ["ship_date"]=>
  string(10) "2018-01-01"
  ["tracking_number"]=>
  string(22) "9405510298370319257619"
}



sql:     
        INSERT INTO
            `bbqpo_se_shipments`
        (
            order_id,
            se_shipment_id,
            carrier_key,
            carrier_service_key,
            shipment_cost,
            ship_date,
            shipment_weight_ounces,
            tracking_number
        )
            VALUES
        (
            '7465',
            226043273,
            'USPS',
            'Priority',
            1655,
            '2018-01-01',
            '336.0',
            '9405510298370319257619'
        )
        ON DUPLICATE KEY UPDATE
        
            se_shipment_id = 226043273,
            carrier_key = 'USPS',
            carrier_service_key = 'Priority',
            shipment_cost = 1655,
            ship_date = '2018-01-01',
            tracking_number = '9405510298370319257619',
            shipment_weight_ounces = '336.0'
        

insert result:
string(4) "7117"



*** Order info:
Array
(
    [id] => 208241413
    [external_order_identifier] => 112-0123205-8022600
    [ext_order_reference_id] => 112-0123205-8022600
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-29T16:57:47Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 18.40
    [total_excluding_tax] => 18.40
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 18.40
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Sean caldwell
    [billing_first_name] => sean
    [billing_last_name] => 
    [billing_address] => 3768 SILVER FOX LN
    [billing_address2] => 
    [billing_city] => CLARKSVILLE
    [billing_state] => TN
    [billing_country] => US
    [billing_postal_code] => 37040-6290
    [billing_phone_number] => 4043949250
    [billing_email] => 2mf7ckvn9h3d9q2@marketplace.amazon.com
    [buyer_email] => 2mf7ckvn9h3d9q2@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Sean
                    [last_name] => caldwell
                    [address] => 3768 SILVER FOX LN
                    [address2] => 
                    [address3] => 
                    [city] => CLARKSVILLE
                    [residential] => 1
                    [state] => TN
                    [province] => 
                    [country] => United States
                    [postal_code] => 37040
                    [postal_code_plus_4] => 6290
                    [phone_number] => 4043949250
                    [email] => 2mf7ckvn9h3d9q2@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack 100% Hardwood Grilling Smoker Pellets, Pecan Blend, 20 LB (New)
                                    [sku] => 20PecComp
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 336.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 18.40
                                    [unit_price] => 18.40
                                    [ext_line_item_id] => 07952792647418
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 99787b84-227b-4a97-b71c-39e2ae068376
                                    [order_source_id] => 217867653
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 208241413
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 210376193
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 336.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-29T18:06:46Z
                            [updated_at] => 2018-01-01T10:10:53Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack 100% hardwood grilling smoker pellets, pecan blend, 20 lb (new)
                            [line_item_sku] => 20peccomp
                            [address_kind] => R
                            [recipient_last_name] => caldwell
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 208241413
                            [state] => TN
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-29T16:57:47Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 112-0123205-8022600
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 112-0123205-8022600
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 226043313
                    [tracking_number] => 789174009223
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 771
                    [ship_date] => 2018-01-01
                )

        )

    [updated_at] => 2018-01-01T10:10:53Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 208241413
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsd
Customer not found in the database.  Attempting to add now
New customer ID: 10064

parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10064"
  ["ordered_time"]=>
  string(19) "2017-12-29 16:57:47"
  ["se_order_id"]=>
  int(208241413)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "112-0123205-8022600"
  ["order_weight_ounces"]=>
  string(5) "336.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4067) "{"id":208241413,"external_order_identifier":"112-0123205-8022600","ext_order_reference_id":"112-0123205-8022600","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-29T16:57:47Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"18.40","total_excluding_tax":"18.40","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"18.40","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Sean caldwell","billing_first_name":"sean","billing_last_name":null,"billing_address":"3768 SILVER FOX LN","billing_address2":null,"billing_city":"CLARKSVILLE","billing_state":"TN","billing_country":"US","billing_postal_code":"37040-6290","billing_phone_number":"4043949250","billing_email":"2mf7ckvn9h3d9q2@marketplace.amazon.com","buyer_email":"2mf7ckvn9h3d9q2@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Sean","last_name":"caldwell","address":"3768 SILVER FOX LN","address2":null,"address3":null,"city":"CLARKSVILLE","residential":true,"state":"TN","province":null,"country":"United States","postal_code":"37040","postal_code_plus_4":"6290","phone_number":"4043949250","email":"2mf7ckvn9h3d9q2@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack 100% Hardwood Grilling Smoker Pellets, Pecan Blend, 20 LB (New)","sku":"20PecComp","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"336.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"18.40","unit_price":"18.40","ext_line_item_id":"07952792647418","ext_product_id":null,"product_options":null,"uuid":"99787b84-227b-4a97-b71c-39e2ae068376","order_source_id":217867653,"gift_message":null}],"original_order":{"id":208241413,"customer_id":33773,"store_id":70647,"order_detail_id":210376193,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"336.0","total_quantity":1,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-29T18:06:46Z","updated_at":"2018-01-01T10:10:53Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack 100% hardwood grilling smoker pellets, pecan blend, 20 lb (new)","line_item_sku":"20peccomp","address_kind":"R","recipient_last_name":"caldwell","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":208241413,"state":"TN","owner_id":37098,"denormalized_ordered_at":"2017-12-29T16:57:47Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"112-0123205-8022600","packing_slip_generated":null,"denormalized_ext_order_reference_id":"112-0123205-8022600","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":226043313,"tracking_number":"789174009223","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":771,"ship_date":"2018-01-01"}],"updated_at":"2018-01-01T10:10:53Z","internal_notes":"","meta_data":null,"prime_order_id":208241413,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(226043313)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(5) "336.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(771)
      ["ship_date"]=>
      string(10) "2018-01-01"
      ["tracking_number"]=>
      string(12) "789174009223"
    }
  }
}


sql:     INSERT INTO
        `bbqpo_se_orders`
    (
        `customer_id`,
        `ordered_time`,
        `se_order_id`,
        `se_order_status`,
        `store_ordered_from`,
        `store_order_id`,
        `store_order_status`,
        `order_weight_ounces`,
        `se_api_response`,
        `last_updated`
    )
        VALUES 
    (
        '10064',
        '2017-12-29 16:57:47',
        '208241413',
        'shipped',
        'Amazon',
        '112-0123205-8022600',
        'awaiting_fulfillment',
        '336.0',
        '{\"id\":208241413,\"external_order_identifier\":\"112-0123205-8022600\",\"ext_order_reference_id\":\"112-0123205-8022600\",\"owner_id\":37098,\"sales_channel\":null,\"fulfillment_channel\":null,\"ordered_at\":\"2017-12-29T16:57:47Z\",\"order_status\":\"shipped\",\"parent_order_id\":null,\"source_order_ids\":null,\"total_including_tax\":\"18.40\",\"total_excluding_tax\":\"18.40\",\"discount_amount\":\"0.00\",\"coupon_discount\":\"0.00\",\"subtotal_including_tax\":\"18.40\",\"subtotal_excluding_tax\":\"0.00\",\"subtotal_tax\":\"0.00\",\"total_tax\":\"0.00\",\"base_shipping_cost\":\"0.00\",\"shipping_cost_including_tax\":\"0.00\",\"shipping_cost_excluding_tax\":\"0.00\",\"shipping_cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"base_wrapping_cost\":\"0.00\",\"wrapping_cost_excluding_tax\":\"0.00\",\"wrapping_cost_including_tax\":\"0.00\",\"wrapping_cost_tax\":\"0.00\",\"billing_company\":\"Sean caldwell\",\"billing_first_name\":\"sean\",\"billing_last_name\":null,\"billing_address\":\"3768 SILVER FOX LN\",\"billing_address2\":null,\"billing_city\":\"CLARKSVILLE\",\"billing_state\":\"TN\",\"billing_country\":\"US\",\"billing_postal_code\":\"37040-6290\",\"billing_phone_number\":\"4043949250\",\"billing_email\":\"2mf7ckvn9h3d9q2@marketplace.amazon.com\",\"buyer_email\":\"2mf7ckvn9h3d9q2@marketplace.amazon.com\",\"recipients\":[{\"company\":null,\"first_name\":\"Sean\",\"last_name\":\"caldwell\",\"address\":\"3768 SILVER FOX LN\",\"address2\":null,\"address3\":null,\"city\":\"CLARKSVILLE\",\"residential\":true,\"state\":\"TN\",\"province\":null,\"country\":\"United States\",\"postal_code\":\"37040\",\"postal_code_plus_4\":\"6290\",\"phone_number\":\"4043949250\",\"email\":\"2mf7ckvn9h3d9q2@marketplace.amazon.com\",\"base_cost\":\"0.00\",\"cost_excluding_tax\":\"0.00\",\"cost_including_tax\":\"0.00\",\"cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"shipping_zone_id\":null,\"shipping_zone_name\":null,\"items_total\":null,\"shipping_method\":\"FreeEconomy\",\"items_shipped\":null,\"ext_shipping_detail_id\":null,\"line_items\":[{\"item_name\":\"Lumber Jack 100% Hardwood Grilling Smoker Pellets, Pecan Blend, 20 LB (New)\",\"sku\":\"20PecComp\",\"bin_picking_number\":null,\"bundled_product\":null,\"weight_in_ounces\":\"336.0\",\"quantity\":1,\"total_excluding_tax\":\"0.00\",\"price_excluding_tax\":\"18.40\",\"unit_price\":\"18.40\",\"ext_line_item_id\":\"07952792647418\",\"ext_product_id\":null,\"product_options\":null,\"uuid\":\"99787b84-227b-4a97-b71c-39e2ae068376\",\"order_source_id\":217867653,\"gift_message\":null}],\"original_order\":{\"id\":208241413,\"customer_id\":33773,\"store_id\":70647,\"order_detail_id\":210376193,\"workflow_state\":\"shipped\",\"shipment_id\":null,\"destination_id\":null,\"split_from_order_id\":null,\"total_weight_in_ounces\":\"336.0\",\"total_quantity\":1,\"is_international\":false,\"usps_shipping_zone\":5,\"created_at\":\"2017-12-29T18:06:46Z\",\"updated_at\":\"2018-01-01T10:10:53Z\",\"ext_shipment_confirmation_id\":1,\"store_order_status\":\"awaiting_fulfillment\",\"drop_ship_tracking_number\":null,\"category_id\":136973,\"internal_notes\":\"\",\"line_item_name\":\"lumber jack 100% hardwood grilling smoker pellets, pecan blend, 20 lb (new)\",\"line_item_sku\":\"20peccomp\",\"address_kind\":\"R\",\"recipient_last_name\":\"caldwell\",\"recipient_requested_service\":\"freeeconomy\",\"gift\":null,\"prime_order_id\":208241413,\"state\":\"TN\",\"owner_id\":37098,\"denormalized_ordered_at\":\"2017-12-29T16:57:47Z\",\"grab_bag\":[],\"line_item_bin_picking_number\":null,\"denormalized_ext_order_id\":\"112-0123205-8022600\",\"packing_slip_generated\":null,\"denormalized_ext_order_reference_id\":\"112-0123205-8022600\",\"denormalized_alternate_order_id\":null,\"denormalized_sales_channel\":null,\"custom_1\":null,\"custom_2\":null,\"custom_3\":null,\"hidden\":null,\"allocated\":null}}],\"store_api_key\":\"7090b516cf49ce6d62caa5db6a7a32ab\",\"shipments\":[{\"id\":226043313,\"tracking_number\":\"789174009223\",\"carrier_key\":\"FEDEX\",\"carrier_service_key\":\"FEDEX_GROUND\",\"shipment_cost\":771,\"ship_date\":\"2018-01-01\"}],\"updated_at\":\"2018-01-01T10:10:53Z\",\"internal_notes\":\"\",\"meta_data\":null,\"prime_order_id\":208241413,\"is_prime\":false,\"split_from_order_id\":null,\"tags\":[]}',
        CURRENT_TIMESTAMP
    )
        

Successfully added order to DB. Order ID (our DB's order ID) #7466

existingShippingEasySHipmentsDBRows:
array(0) {
}


shipmentDBRows:
array(0) {
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(226043313)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(5) "336.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(771)
    ["ship_date"]=>
    string(10) "2018-01-01"
    ["tracking_number"]=>
    string(12) "789174009223"
  }
}

Adding shipment info:
array(7) {
  ["se_shipment_id"]=>
  int(226043313)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(5) "336.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(771)
  ["ship_date"]=>
  string(10) "2018-01-01"
  ["tracking_number"]=>
  string(12) "789174009223"
}



sql:     
        INSERT INTO
            `bbqpo_se_shipments`
        (
            order_id,
            se_shipment_id,
            carrier_key,
            carrier_service_key,
            shipment_cost,
            ship_date,
            shipment_weight_ounces,
            tracking_number
        )
            VALUES
        (
            '7466',
            226043313,
            'FEDEX',
            'FEDEX_GROUND',
            771,
            '2018-01-01',
            '336.0',
            '789174009223'
        )
        ON DUPLICATE KEY UPDATE
        
            se_shipment_id = 226043313,
            carrier_key = 'FEDEX',
            carrier_service_key = 'FEDEX_GROUND',
            shipment_cost = 771,
            ship_date = '2018-01-01',
            tracking_number = '789174009223',
            shipment_weight_ounces = '336.0'
        

insert result:
string(4) "7118"



*** Order info:
Array
(
    [id] => 208100183
    [external_order_identifier] => 111-5371132-1076255
    [ext_order_reference_id] => 111-5371132-1076255
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-29T14:48:44Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 18.40
    [total_excluding_tax] => 18.40
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 18.40
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Stephen W. Lowder
    [billing_first_name] => Stephen
    [billing_last_name] => W.
    [billing_address] => 1995 MICHELLE DR
    [billing_address2] => 
    [billing_city] => CLEMMONS
    [billing_state] => NC
    [billing_country] => US
    [billing_postal_code] => 27012-8898
    [billing_phone_number] => 3367669499
    [billing_email] => 8rtlfltnsshdkfj@marketplace.amazon.com
    [buyer_email] => 8rtlfltnsshdkfj@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Stephen
                    [last_name] => W. Lowder
                    [address] => 1995 MICHELLE DR
                    [address2] => 
                    [address3] => 
                    [city] => CLEMMONS
                    [residential] => 1
                    [state] => NC
                    [province] => 
                    [country] => United States
                    [postal_code] => 27012
                    [postal_code_plus_4] => 8898
                    [phone_number] => 3367669499
                    [email] => 8rtlfltnsshdkfj@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack 100-Percent Hickory Wood BBQ Grilling Pellets, 20-Pound Bag (New)
                                    [sku] => 20hick100Comp1
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 336.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 18.40
                                    [unit_price] => 18.40
                                    [ext_line_item_id] => 35938876365322
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 80b5c95b-f9eb-47bd-90c4-f11ba4a832c9
                                    [order_source_id] => 217718523
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 208100183
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 210229333
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 336.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-29T16:07:01Z
                            [updated_at] => 2018-01-01T10:10:53Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack 100-percent hickory wood bbq grilling pellets, 20-pound bag (new)
                            [line_item_sku] => 20hick100comp1
                            [address_kind] => R
                            [recipient_last_name] => w. lowder
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 208100183
                            [state] => NC
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-29T14:48:44Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 111-5371132-1076255
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 111-5371132-1076255
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 226043323
                    [tracking_number] => 789174008834
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 771
                    [ship_date] => 2018-01-01
                )

        )

    [updated_at] => 2018-01-01T10:10:53Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 208100183
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsd
Customer not found in the database.  Attempting to add now
New customer ID: 10065

parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10065"
  ["ordered_time"]=>
  string(19) "2017-12-29 14:48:44"
  ["se_order_id"]=>
  int(208100183)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "111-5371132-1076255"
  ["order_weight_ounces"]=>
  string(5) "336.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4083) "{"id":208100183,"external_order_identifier":"111-5371132-1076255","ext_order_reference_id":"111-5371132-1076255","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-29T14:48:44Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"18.40","total_excluding_tax":"18.40","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"18.40","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Stephen W. Lowder","billing_first_name":"Stephen","billing_last_name":"W.","billing_address":"1995 MICHELLE DR","billing_address2":null,"billing_city":"CLEMMONS","billing_state":"NC","billing_country":"US","billing_postal_code":"27012-8898","billing_phone_number":"3367669499","billing_email":"8rtlfltnsshdkfj@marketplace.amazon.com","buyer_email":"8rtlfltnsshdkfj@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Stephen","last_name":"W. Lowder","address":"1995 MICHELLE DR","address2":null,"address3":null,"city":"CLEMMONS","residential":true,"state":"NC","province":null,"country":"United States","postal_code":"27012","postal_code_plus_4":"8898","phone_number":"3367669499","email":"8rtlfltnsshdkfj@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack 100-Percent Hickory Wood BBQ Grilling Pellets, 20-Pound Bag (New)","sku":"20hick100Comp1","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"336.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"18.40","unit_price":"18.40","ext_line_item_id":"35938876365322","ext_product_id":null,"product_options":null,"uuid":"80b5c95b-f9eb-47bd-90c4-f11ba4a832c9","order_source_id":217718523,"gift_message":null}],"original_order":{"id":208100183,"customer_id":33773,"store_id":70647,"order_detail_id":210229333,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"336.0","total_quantity":1,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-29T16:07:01Z","updated_at":"2018-01-01T10:10:53Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack 100-percent hickory wood bbq grilling pellets, 20-pound bag (new)","line_item_sku":"20hick100comp1","address_kind":"R","recipient_last_name":"w. lowder","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":208100183,"state":"NC","owner_id":37098,"denormalized_ordered_at":"2017-12-29T14:48:44Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"111-5371132-1076255","packing_slip_generated":null,"denormalized_ext_order_reference_id":"111-5371132-1076255","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":226043323,"tracking_number":"789174008834","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":771,"ship_date":"2018-01-01"}],"updated_at":"2018-01-01T10:10:53Z","internal_notes":"","meta_data":null,"prime_order_id":208100183,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(226043323)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(5) "336.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(771)
      ["ship_date"]=>
      string(10) "2018-01-01"
      ["tracking_number"]=>
      string(12) "789174008834"
    }
  }
}


sql:     INSERT INTO
        `bbqpo_se_orders`
    (
        `customer_id`,
        `ordered_time`,
        `se_order_id`,
        `se_order_status`,
        `store_ordered_from`,
        `store_order_id`,
        `store_order_status`,
        `order_weight_ounces`,
        `se_api_response`,
        `last_updated`
    )
        VALUES 
    (
        '10065',
        '2017-12-29 14:48:44',
        '208100183',
        'shipped',
        'Amazon',
        '111-5371132-1076255',
        'awaiting_fulfillment',
        '336.0',
        '{\"id\":208100183,\"external_order_identifier\":\"111-5371132-1076255\",\"ext_order_reference_id\":\"111-5371132-1076255\",\"owner_id\":37098,\"sales_channel\":null,\"fulfillment_channel\":null,\"ordered_at\":\"2017-12-29T14:48:44Z\",\"order_status\":\"shipped\",\"parent_order_id\":null,\"source_order_ids\":null,\"total_including_tax\":\"18.40\",\"total_excluding_tax\":\"18.40\",\"discount_amount\":\"0.00\",\"coupon_discount\":\"0.00\",\"subtotal_including_tax\":\"18.40\",\"subtotal_excluding_tax\":\"0.00\",\"subtotal_tax\":\"0.00\",\"total_tax\":\"0.00\",\"base_shipping_cost\":\"0.00\",\"shipping_cost_including_tax\":\"0.00\",\"shipping_cost_excluding_tax\":\"0.00\",\"shipping_cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"base_wrapping_cost\":\"0.00\",\"wrapping_cost_excluding_tax\":\"0.00\",\"wrapping_cost_including_tax\":\"0.00\",\"wrapping_cost_tax\":\"0.00\",\"billing_company\":\"Stephen W. Lowder\",\"billing_first_name\":\"Stephen\",\"billing_last_name\":\"W.\",\"billing_address\":\"1995 MICHELLE DR\",\"billing_address2\":null,\"billing_city\":\"CLEMMONS\",\"billing_state\":\"NC\",\"billing_country\":\"US\",\"billing_postal_code\":\"27012-8898\",\"billing_phone_number\":\"3367669499\",\"billing_email\":\"8rtlfltnsshdkfj@marketplace.amazon.com\",\"buyer_email\":\"8rtlfltnsshdkfj@marketplace.amazon.com\",\"recipients\":[{\"company\":null,\"first_name\":\"Stephen\",\"last_name\":\"W. Lowder\",\"address\":\"1995 MICHELLE DR\",\"address2\":null,\"address3\":null,\"city\":\"CLEMMONS\",\"residential\":true,\"state\":\"NC\",\"province\":null,\"country\":\"United States\",\"postal_code\":\"27012\",\"postal_code_plus_4\":\"8898\",\"phone_number\":\"3367669499\",\"email\":\"8rtlfltnsshdkfj@marketplace.amazon.com\",\"base_cost\":\"0.00\",\"cost_excluding_tax\":\"0.00\",\"cost_including_tax\":\"0.00\",\"cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"shipping_zone_id\":null,\"shipping_zone_name\":null,\"items_total\":null,\"shipping_method\":\"FreeEconomy\",\"items_shipped\":null,\"ext_shipping_detail_id\":null,\"line_items\":[{\"item_name\":\"Lumber Jack 100-Percent Hickory Wood BBQ Grilling Pellets, 20-Pound Bag (New)\",\"sku\":\"20hick100Comp1\",\"bin_picking_number\":null,\"bundled_product\":null,\"weight_in_ounces\":\"336.0\",\"quantity\":1,\"total_excluding_tax\":\"0.00\",\"price_excluding_tax\":\"18.40\",\"unit_price\":\"18.40\",\"ext_line_item_id\":\"35938876365322\",\"ext_product_id\":null,\"product_options\":null,\"uuid\":\"80b5c95b-f9eb-47bd-90c4-f11ba4a832c9\",\"order_source_id\":217718523,\"gift_message\":null}],\"original_order\":{\"id\":208100183,\"customer_id\":33773,\"store_id\":70647,\"order_detail_id\":210229333,\"workflow_state\":\"shipped\",\"shipment_id\":null,\"destination_id\":null,\"split_from_order_id\":null,\"total_weight_in_ounces\":\"336.0\",\"total_quantity\":1,\"is_international\":false,\"usps_shipping_zone\":5,\"created_at\":\"2017-12-29T16:07:01Z\",\"updated_at\":\"2018-01-01T10:10:53Z\",\"ext_shipment_confirmation_id\":1,\"store_order_status\":\"awaiting_fulfillment\",\"drop_ship_tracking_number\":null,\"category_id\":136973,\"internal_notes\":\"\",\"line_item_name\":\"lumber jack 100-percent hickory wood bbq grilling pellets, 20-pound bag (new)\",\"line_item_sku\":\"20hick100comp1\",\"address_kind\":\"R\",\"recipient_last_name\":\"w. lowder\",\"recipient_requested_service\":\"freeeconomy\",\"gift\":null,\"prime_order_id\":208100183,\"state\":\"NC\",\"owner_id\":37098,\"denormalized_ordered_at\":\"2017-12-29T14:48:44Z\",\"grab_bag\":[],\"line_item_bin_picking_number\":null,\"denormalized_ext_order_id\":\"111-5371132-1076255\",\"packing_slip_generated\":null,\"denormalized_ext_order_reference_id\":\"111-5371132-1076255\",\"denormalized_alternate_order_id\":null,\"denormalized_sales_channel\":null,\"custom_1\":null,\"custom_2\":null,\"custom_3\":null,\"hidden\":null,\"allocated\":null}}],\"store_api_key\":\"7090b516cf49ce6d62caa5db6a7a32ab\",\"shipments\":[{\"id\":226043323,\"tracking_number\":\"789174008834\",\"carrier_key\":\"FEDEX\",\"carrier_service_key\":\"FEDEX_GROUND\",\"shipment_cost\":771,\"ship_date\":\"2018-01-01\"}],\"updated_at\":\"2018-01-01T10:10:53Z\",\"internal_notes\":\"\",\"meta_data\":null,\"prime_order_id\":208100183,\"is_prime\":false,\"split_from_order_id\":null,\"tags\":[]}',
        CURRENT_TIMESTAMP
    )
        

Successfully added order to DB. Order ID (our DB's order ID) #7467

existingShippingEasySHipmentsDBRows:
array(0) {
}


shipmentDBRows:
array(0) {
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(226043323)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(5) "336.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(771)
    ["ship_date"]=>
    string(10) "2018-01-01"
    ["tracking_number"]=>
    string(12) "789174008834"
  }
}

Adding shipment info:
array(7) {
  ["se_shipment_id"]=>
  int(226043323)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(5) "336.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(771)
  ["ship_date"]=>
  string(10) "2018-01-01"
  ["tracking_number"]=>
  string(12) "789174008834"
}



sql:     
        INSERT INTO
            `bbqpo_se_shipments`
        (
            order_id,
            se_shipment_id,
            carrier_key,
            carrier_service_key,
            shipment_cost,
            ship_date,
            shipment_weight_ounces,
            tracking_number
        )
            VALUES
        (
            '7467',
            226043323,
            'FEDEX',
            'FEDEX_GROUND',
            771,
            '2018-01-01',
            '336.0',
            '789174008834'
        )
        ON DUPLICATE KEY UPDATE
        
            se_shipment_id = 226043323,
            carrier_key = 'FEDEX',
            carrier_service_key = 'FEDEX_GROUND',
            shipment_cost = 771,
            ship_date = '2018-01-01',
            tracking_number = '789174008834',
            shipment_weight_ounces = '336.0'
        

insert result:
string(4) "7119"



*** Order info:
Array
(
    [id] => 208829573
    [external_order_identifier] => 114-8694856-5413850
    [ext_order_reference_id] => 114-8694856-5413850
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-30T04:55:52Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 18.50
    [total_excluding_tax] => 18.50
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 18.50
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => bradford young
    [billing_first_name] => BRADFORD
    [billing_last_name] => G
    [billing_address] => 102 PEMBROKE RD
    [billing_address2] => 
    [billing_city] => EGG HARBOR TOWNSHIP
    [billing_state] => NJ
    [billing_country] => US
    [billing_postal_code] => 08234-6519
    [billing_phone_number] => 3102003728
    [billing_email] => wvxxgw6gpc6gj09@marketplace.amazon.com
    [buyer_email] => wvxxgw6gpc6gj09@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => bradford
                    [last_name] => young
                    [address] => 102 PEMBROKE RD
                    [address2] => 
                    [address3] => 
                    [city] => EGG HARBOR TOWNSHIP
                    [residential] => 1
                    [state] => NJ
                    [province] => 
                    [country] => United States
                    [postal_code] => 08234
                    [postal_code_plus_4] => 6519
                    [phone_number] => 3102003728
                    [email] => wvxxgw6gpc6gj09@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack 20-pounds BBQ Grilling wood pellets (100% Alder) (New)
                                    [sku] => 20poundalder100
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 336.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 18.50
                                    [unit_price] => 18.50
                                    [ext_line_item_id] => 05935626100474
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 9407d01f-10ec-4809-8c0e-34bd41c0cadd
                                    [order_source_id] => 218510883
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 208829573
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 210979543
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 336.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-30T06:07:12Z
                            [updated_at] => 2018-01-01T10:10:53Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack 20-pounds bbq grilling wood pellets (100% alder) (new)
                            [line_item_sku] => 20poundalder100
                            [address_kind] => R
                            [recipient_last_name] => young
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 208829573
                            [state] => NJ
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-30T04:55:52Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 114-8694856-5413850
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 114-8694856-5413850
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 226043333
                    [tracking_number] => 789174008812
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 771
                    [ship_date] => 2018-01-01
                )

        )

    [updated_at] => 2018-01-01T10:10:53Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 208829573
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsd
Customer not found in the database.  Attempting to add now
New customer ID: 10066

parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10066"
  ["ordered_time"]=>
  string(19) "2017-12-30 04:55:52"
  ["se_order_id"]=>
  int(208829573)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "114-8694856-5413850"
  ["order_weight_ounces"]=>
  string(5) "336.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4073) "{"id":208829573,"external_order_identifier":"114-8694856-5413850","ext_order_reference_id":"114-8694856-5413850","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-30T04:55:52Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"18.50","total_excluding_tax":"18.50","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"18.50","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"bradford young","billing_first_name":"BRADFORD","billing_last_name":"G","billing_address":"102 PEMBROKE RD","billing_address2":null,"billing_city":"EGG HARBOR TOWNSHIP","billing_state":"NJ","billing_country":"US","billing_postal_code":"08234-6519","billing_phone_number":"3102003728","billing_email":"wvxxgw6gpc6gj09@marketplace.amazon.com","buyer_email":"wvxxgw6gpc6gj09@marketplace.amazon.com","recipients":[{"company":null,"first_name":"bradford","last_name":"young","address":"102 PEMBROKE RD","address2":null,"address3":null,"city":"EGG HARBOR TOWNSHIP","residential":true,"state":"NJ","province":null,"country":"United States","postal_code":"08234","postal_code_plus_4":"6519","phone_number":"3102003728","email":"wvxxgw6gpc6gj09@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack 20-pounds BBQ Grilling wood pellets (100% Alder) (New)","sku":"20poundalder100","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"336.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"18.50","unit_price":"18.50","ext_line_item_id":"05935626100474","ext_product_id":null,"product_options":null,"uuid":"9407d01f-10ec-4809-8c0e-34bd41c0cadd","order_source_id":218510883,"gift_message":null}],"original_order":{"id":208829573,"customer_id":33773,"store_id":70647,"order_detail_id":210979543,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"336.0","total_quantity":1,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-30T06:07:12Z","updated_at":"2018-01-01T10:10:53Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack 20-pounds bbq grilling wood pellets (100% alder) (new)","line_item_sku":"20poundalder100","address_kind":"R","recipient_last_name":"young","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":208829573,"state":"NJ","owner_id":37098,"denormalized_ordered_at":"2017-12-30T04:55:52Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"114-8694856-5413850","packing_slip_generated":null,"denormalized_ext_order_reference_id":"114-8694856-5413850","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":226043333,"tracking_number":"789174008812","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":771,"ship_date":"2018-01-01"}],"updated_at":"2018-01-01T10:10:53Z","internal_notes":"","meta_data":null,"prime_order_id":208829573,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(226043333)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(5) "336.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(771)
      ["ship_date"]=>
      string(10) "2018-01-01"
      ["tracking_number"]=>
      string(12) "789174008812"
    }
  }
}


sql:     INSERT INTO
        `bbqpo_se_orders`
    (
        `customer_id`,
        `ordered_time`,
        `se_order_id`,
        `se_order_status`,
        `store_ordered_from`,
        `store_order_id`,
        `store_order_status`,
        `order_weight_ounces`,
        `se_api_response`,
        `last_updated`
    )
        VALUES 
    (
        '10066',
        '2017-12-30 04:55:52',
        '208829573',
        'shipped',
        'Amazon',
        '114-8694856-5413850',
        'awaiting_fulfillment',
        '336.0',
        '{\"id\":208829573,\"external_order_identifier\":\"114-8694856-5413850\",\"ext_order_reference_id\":\"114-8694856-5413850\",\"owner_id\":37098,\"sales_channel\":null,\"fulfillment_channel\":null,\"ordered_at\":\"2017-12-30T04:55:52Z\",\"order_status\":\"shipped\",\"parent_order_id\":null,\"source_order_ids\":null,\"total_including_tax\":\"18.50\",\"total_excluding_tax\":\"18.50\",\"discount_amount\":\"0.00\",\"coupon_discount\":\"0.00\",\"subtotal_including_tax\":\"18.50\",\"subtotal_excluding_tax\":\"0.00\",\"subtotal_tax\":\"0.00\",\"total_tax\":\"0.00\",\"base_shipping_cost\":\"0.00\",\"shipping_cost_including_tax\":\"0.00\",\"shipping_cost_excluding_tax\":\"0.00\",\"shipping_cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"base_wrapping_cost\":\"0.00\",\"wrapping_cost_excluding_tax\":\"0.00\",\"wrapping_cost_including_tax\":\"0.00\",\"wrapping_cost_tax\":\"0.00\",\"billing_company\":\"bradford young\",\"billing_first_name\":\"BRADFORD\",\"billing_last_name\":\"G\",\"billing_address\":\"102 PEMBROKE RD\",\"billing_address2\":null,\"billing_city\":\"EGG HARBOR TOWNSHIP\",\"billing_state\":\"NJ\",\"billing_country\":\"US\",\"billing_postal_code\":\"08234-6519\",\"billing_phone_number\":\"3102003728\",\"billing_email\":\"wvxxgw6gpc6gj09@marketplace.amazon.com\",\"buyer_email\":\"wvxxgw6gpc6gj09@marketplace.amazon.com\",\"recipients\":[{\"company\":null,\"first_name\":\"bradford\",\"last_name\":\"young\",\"address\":\"102 PEMBROKE RD\",\"address2\":null,\"address3\":null,\"city\":\"EGG HARBOR TOWNSHIP\",\"residential\":true,\"state\":\"NJ\",\"province\":null,\"country\":\"United States\",\"postal_code\":\"08234\",\"postal_code_plus_4\":\"6519\",\"phone_number\":\"3102003728\",\"email\":\"wvxxgw6gpc6gj09@marketplace.amazon.com\",\"base_cost\":\"0.00\",\"cost_excluding_tax\":\"0.00\",\"cost_including_tax\":\"0.00\",\"cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"shipping_zone_id\":null,\"shipping_zone_name\":null,\"items_total\":null,\"shipping_method\":\"FreeEconomy\",\"items_shipped\":null,\"ext_shipping_detail_id\":null,\"line_items\":[{\"item_name\":\"Lumber Jack 20-pounds BBQ Grilling wood pellets (100% Alder) (New)\",\"sku\":\"20poundalder100\",\"bin_picking_number\":null,\"bundled_product\":null,\"weight_in_ounces\":\"336.0\",\"quantity\":1,\"total_excluding_tax\":\"0.00\",\"price_excluding_tax\":\"18.50\",\"unit_price\":\"18.50\",\"ext_line_item_id\":\"05935626100474\",\"ext_product_id\":null,\"product_options\":null,\"uuid\":\"9407d01f-10ec-4809-8c0e-34bd41c0cadd\",\"order_source_id\":218510883,\"gift_message\":null}],\"original_order\":{\"id\":208829573,\"customer_id\":33773,\"store_id\":70647,\"order_detail_id\":210979543,\"workflow_state\":\"shipped\",\"shipment_id\":null,\"destination_id\":null,\"split_from_order_id\":null,\"total_weight_in_ounces\":\"336.0\",\"total_quantity\":1,\"is_international\":false,\"usps_shipping_zone\":5,\"created_at\":\"2017-12-30T06:07:12Z\",\"updated_at\":\"2018-01-01T10:10:53Z\",\"ext_shipment_confirmation_id\":1,\"store_order_status\":\"awaiting_fulfillment\",\"drop_ship_tracking_number\":null,\"category_id\":136973,\"internal_notes\":\"\",\"line_item_name\":\"lumber jack 20-pounds bbq grilling wood pellets (100% alder) (new)\",\"line_item_sku\":\"20poundalder100\",\"address_kind\":\"R\",\"recipient_last_name\":\"young\",\"recipient_requested_service\":\"freeeconomy\",\"gift\":null,\"prime_order_id\":208829573,\"state\":\"NJ\",\"owner_id\":37098,\"denormalized_ordered_at\":\"2017-12-30T04:55:52Z\",\"grab_bag\":[],\"line_item_bin_picking_number\":null,\"denormalized_ext_order_id\":\"114-8694856-5413850\",\"packing_slip_generated\":null,\"denormalized_ext_order_reference_id\":\"114-8694856-5413850\",\"denormalized_alternate_order_id\":null,\"denormalized_sales_channel\":null,\"custom_1\":null,\"custom_2\":null,\"custom_3\":null,\"hidden\":null,\"allocated\":null}}],\"store_api_key\":\"7090b516cf49ce6d62caa5db6a7a32ab\",\"shipments\":[{\"id\":226043333,\"tracking_number\":\"789174008812\",\"carrier_key\":\"FEDEX\",\"carrier_service_key\":\"FEDEX_GROUND\",\"shipment_cost\":771,\"ship_date\":\"2018-01-01\"}],\"updated_at\":\"2018-01-01T10:10:53Z\",\"internal_notes\":\"\",\"meta_data\":null,\"prime_order_id\":208829573,\"is_prime\":false,\"split_from_order_id\":null,\"tags\":[]}',
        CURRENT_TIMESTAMP
    )
        

Successfully added order to DB. Order ID (our DB's order ID) #7468

existingShippingEasySHipmentsDBRows:
array(0) {
}


shipmentDBRows:
array(0) {
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(226043333)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(5) "336.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(771)
    ["ship_date"]=>
    string(10) "2018-01-01"
    ["tracking_number"]=>
    string(12) "789174008812"
  }
}

Adding shipment info:
array(7) {
  ["se_shipment_id"]=>
  int(226043333)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(5) "336.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(771)
  ["ship_date"]=>
  string(10) "2018-01-01"
  ["tracking_number"]=>
  string(12) "789174008812"
}



sql:     
        INSERT INTO
            `bbqpo_se_shipments`
        (
            order_id,
            se_shipment_id,
            carrier_key,
            carrier_service_key,
            shipment_cost,
            ship_date,
            shipment_weight_ounces,
            tracking_number
        )
            VALUES
        (
            '7468',
            226043333,
            'FEDEX',
            'FEDEX_GROUND',
            771,
            '2018-01-01',
            '336.0',
            '789174008812'
        )
        ON DUPLICATE KEY UPDATE
        
            se_shipment_id = 226043333,
            carrier_key = 'FEDEX',
            carrier_service_key = 'FEDEX_GROUND',
            shipment_cost = 771,
            ship_date = '2018-01-01',
            tracking_number = '789174008812',
            shipment_weight_ounces = '336.0'
        

insert result:
string(4) "7120"



*** Order info:
Array
(
    [id] => 208377803
    [external_order_identifier] => 113-7718792-2305040
    [ext_order_reference_id] => 113-7718792-2305040
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-29T19:26:03Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 25.00
    [total_excluding_tax] => 25.00
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 25.00
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Kenneth Berend
    [billing_first_name] => Kenneth
    [billing_last_name] => Berend
    [billing_address] => 1114 LORI DR
    [billing_address2] => 
    [billing_city] => IMPERIAL
    [billing_state] => MO
    [billing_country] => US
    [billing_postal_code] => 63052-2628
    [billing_phone_number] => 314-971-0573
    [billing_email] => gnt8yzc8sdf1nh7@marketplace.amazon.com
    [buyer_email] => gnt8yzc8sdf1nh7@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Kenneth
                    [last_name] => Berend
                    [address] => 1114 LORI DR
                    [address2] => 
                    [address3] => 
                    [city] => IMPERIAL
                    [residential] => 1
                    [state] => MO
                    [province] => 
                    [country] => United States
                    [postal_code] => 63052
                    [postal_code_plus_4] => 2628
                    [phone_number] => 314-971-0573
                    [email] => gnt8yzc8sdf1nh7@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack 20-pounds BBQ Grilling wood pellets (Charblend Hickory (Hickory and Charcoal)) (New)
                                    [sku] => 20poundljcharhick
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 336.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 25.00
                                    [unit_price] => 25.00
                                    [ext_line_item_id] => 52943373531698
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => f568e609-7253-4829-8a6f-d5318be127da
                                    [order_source_id] => 218012823
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 208377803
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 210515193
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 336.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 4
                            [created_at] => 2017-12-29T20:06:53Z
                            [updated_at] => 2018-01-01T10:10:53Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack 20-pounds bbq grilling wood pellets (charblend hickory (hickory and charcoal)) (new)
                            [line_item_sku] => 20poundljcharhick
                            [address_kind] => R
                            [recipient_last_name] => berend
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 208377803
                            [state] => MO
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-29T19:26:03Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 113-7718792-2305040
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 113-7718792-2305040
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 226043353
                    [tracking_number] => 789174008823
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 714
                    [ship_date] => 2018-01-01
                )

        )

    [updated_at] => 2018-01-01T10:10:53Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 208377803
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsd
Customer not found in the database.  Attempting to add now
New customer ID: 10067

parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10067"
  ["ordered_time"]=>
  string(19) "2017-12-29 19:26:03"
  ["se_order_id"]=>
  int(208377803)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "113-7718792-2305040"
  ["order_weight_ounces"]=>
  string(5) "336.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4118) "{"id":208377803,"external_order_identifier":"113-7718792-2305040","ext_order_reference_id":"113-7718792-2305040","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-29T19:26:03Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"25.00","total_excluding_tax":"25.00","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"25.00","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Kenneth Berend","billing_first_name":"Kenneth","billing_last_name":"Berend","billing_address":"1114 LORI DR","billing_address2":null,"billing_city":"IMPERIAL","billing_state":"MO","billing_country":"US","billing_postal_code":"63052-2628","billing_phone_number":"314-971-0573","billing_email":"gnt8yzc8sdf1nh7@marketplace.amazon.com","buyer_email":"gnt8yzc8sdf1nh7@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Kenneth","last_name":"Berend","address":"1114 LORI DR","address2":null,"address3":null,"city":"IMPERIAL","residential":true,"state":"MO","province":null,"country":"United States","postal_code":"63052","postal_code_plus_4":"2628","phone_number":"314-971-0573","email":"gnt8yzc8sdf1nh7@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack 20-pounds BBQ Grilling wood pellets (Charblend Hickory (Hickory and Charcoal)) (New)","sku":"20poundljcharhick","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"336.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"25.00","unit_price":"25.00","ext_line_item_id":"52943373531698","ext_product_id":null,"product_options":null,"uuid":"f568e609-7253-4829-8a6f-d5318be127da","order_source_id":218012823,"gift_message":null}],"original_order":{"id":208377803,"customer_id":33773,"store_id":70647,"order_detail_id":210515193,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"336.0","total_quantity":1,"is_international":false,"usps_shipping_zone":4,"created_at":"2017-12-29T20:06:53Z","updated_at":"2018-01-01T10:10:53Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack 20-pounds bbq grilling wood pellets (charblend hickory (hickory and charcoal)) (new)","line_item_sku":"20poundljcharhick","address_kind":"R","recipient_last_name":"berend","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":208377803,"state":"MO","owner_id":37098,"denormalized_ordered_at":"2017-12-29T19:26:03Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"113-7718792-2305040","packing_slip_generated":null,"denormalized_ext_order_reference_id":"113-7718792-2305040","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":226043353,"tracking_number":"789174008823","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":714,"ship_date":"2018-01-01"}],"updated_at":"2018-01-01T10:10:53Z","internal_notes":"","meta_data":null,"prime_order_id":208377803,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(226043353)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(5) "336.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(714)
      ["ship_date"]=>
      string(10) "2018-01-01"
      ["tracking_number"]=>
      string(12) "789174008823"
    }
  }
}


sql:     INSERT INTO
        `bbqpo_se_orders`
    (
        `customer_id`,
        `ordered_time`,
        `se_order_id`,
        `se_order_status`,
        `store_ordered_from`,
        `store_order_id`,
        `store_order_status`,
        `order_weight_ounces`,
        `se_api_response`,
        `last_updated`
    )
        VALUES 
    (
        '10067',
        '2017-12-29 19:26:03',
        '208377803',
        'shipped',
        'Amazon',
        '113-7718792-2305040',
        'awaiting_fulfillment',
        '336.0',
        '{\"id\":208377803,\"external_order_identifier\":\"113-7718792-2305040\",\"ext_order_reference_id\":\"113-7718792-2305040\",\"owner_id\":37098,\"sales_channel\":null,\"fulfillment_channel\":null,\"ordered_at\":\"2017-12-29T19:26:03Z\",\"order_status\":\"shipped\",\"parent_order_id\":null,\"source_order_ids\":null,\"total_including_tax\":\"25.00\",\"total_excluding_tax\":\"25.00\",\"discount_amount\":\"0.00\",\"coupon_discount\":\"0.00\",\"subtotal_including_tax\":\"25.00\",\"subtotal_excluding_tax\":\"0.00\",\"subtotal_tax\":\"0.00\",\"total_tax\":\"0.00\",\"base_shipping_cost\":\"0.00\",\"shipping_cost_including_tax\":\"0.00\",\"shipping_cost_excluding_tax\":\"0.00\",\"shipping_cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"base_wrapping_cost\":\"0.00\",\"wrapping_cost_excluding_tax\":\"0.00\",\"wrapping_cost_including_tax\":\"0.00\",\"wrapping_cost_tax\":\"0.00\",\"billing_company\":\"Kenneth Berend\",\"billing_first_name\":\"Kenneth\",\"billing_last_name\":\"Berend\",\"billing_address\":\"1114 LORI DR\",\"billing_address2\":null,\"billing_city\":\"IMPERIAL\",\"billing_state\":\"MO\",\"billing_country\":\"US\",\"billing_postal_code\":\"63052-2628\",\"billing_phone_number\":\"314-971-0573\",\"billing_email\":\"gnt8yzc8sdf1nh7@marketplace.amazon.com\",\"buyer_email\":\"gnt8yzc8sdf1nh7@marketplace.amazon.com\",\"recipients\":[{\"company\":null,\"first_name\":\"Kenneth\",\"last_name\":\"Berend\",\"address\":\"1114 LORI DR\",\"address2\":null,\"address3\":null,\"city\":\"IMPERIAL\",\"residential\":true,\"state\":\"MO\",\"province\":null,\"country\":\"United States\",\"postal_code\":\"63052\",\"postal_code_plus_4\":\"2628\",\"phone_number\":\"314-971-0573\",\"email\":\"gnt8yzc8sdf1nh7@marketplace.amazon.com\",\"base_cost\":\"0.00\",\"cost_excluding_tax\":\"0.00\",\"cost_including_tax\":\"0.00\",\"cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"shipping_zone_id\":null,\"shipping_zone_name\":null,\"items_total\":null,\"shipping_method\":\"FreeEconomy\",\"items_shipped\":null,\"ext_shipping_detail_id\":null,\"line_items\":[{\"item_name\":\"Lumber Jack 20-pounds BBQ Grilling wood pellets (Charblend Hickory (Hickory and Charcoal)) (New)\",\"sku\":\"20poundljcharhick\",\"bin_picking_number\":null,\"bundled_product\":null,\"weight_in_ounces\":\"336.0\",\"quantity\":1,\"total_excluding_tax\":\"0.00\",\"price_excluding_tax\":\"25.00\",\"unit_price\":\"25.00\",\"ext_line_item_id\":\"52943373531698\",\"ext_product_id\":null,\"product_options\":null,\"uuid\":\"f568e609-7253-4829-8a6f-d5318be127da\",\"order_source_id\":218012823,\"gift_message\":null}],\"original_order\":{\"id\":208377803,\"customer_id\":33773,\"store_id\":70647,\"order_detail_id\":210515193,\"workflow_state\":\"shipped\",\"shipment_id\":null,\"destination_id\":null,\"split_from_order_id\":null,\"total_weight_in_ounces\":\"336.0\",\"total_quantity\":1,\"is_international\":false,\"usps_shipping_zone\":4,\"created_at\":\"2017-12-29T20:06:53Z\",\"updated_at\":\"2018-01-01T10:10:53Z\",\"ext_shipment_confirmation_id\":1,\"store_order_status\":\"awaiting_fulfillment\",\"drop_ship_tracking_number\":null,\"category_id\":136973,\"internal_notes\":\"\",\"line_item_name\":\"lumber jack 20-pounds bbq grilling wood pellets (charblend hickory (hickory and charcoal)) (new)\",\"line_item_sku\":\"20poundljcharhick\",\"address_kind\":\"R\",\"recipient_last_name\":\"berend\",\"recipient_requested_service\":\"freeeconomy\",\"gift\":null,\"prime_order_id\":208377803,\"state\":\"MO\",\"owner_id\":37098,\"denormalized_ordered_at\":\"2017-12-29T19:26:03Z\",\"grab_bag\":[],\"line_item_bin_picking_number\":null,\"denormalized_ext_order_id\":\"113-7718792-2305040\",\"packing_slip_generated\":null,\"denormalized_ext_order_reference_id\":\"113-7718792-2305040\",\"denormalized_alternate_order_id\":null,\"denormalized_sales_channel\":null,\"custom_1\":null,\"custom_2\":null,\"custom_3\":null,\"hidden\":null,\"allocated\":null}}],\"store_api_key\":\"7090b516cf49ce6d62caa5db6a7a32ab\",\"shipments\":[{\"id\":226043353,\"tracking_number\":\"789174008823\",\"carrier_key\":\"FEDEX\",\"carrier_service_key\":\"FEDEX_GROUND\",\"shipment_cost\":714,\"ship_date\":\"2018-01-01\"}],\"updated_at\":\"2018-01-01T10:10:53Z\",\"internal_notes\":\"\",\"meta_data\":null,\"prime_order_id\":208377803,\"is_prime\":false,\"split_from_order_id\":null,\"tags\":[]}',
        CURRENT_TIMESTAMP
    )
        

Successfully added order to DB. Order ID (our DB's order ID) #7469

existingShippingEasySHipmentsDBRows:
array(0) {
}


shipmentDBRows:
array(0) {
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(226043353)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(5) "336.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(714)
    ["ship_date"]=>
    string(10) "2018-01-01"
    ["tracking_number"]=>
    string(12) "789174008823"
  }
}

Adding shipment info:
array(7) {
  ["se_shipment_id"]=>
  int(226043353)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(5) "336.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(714)
  ["ship_date"]=>
  string(10) "2018-01-01"
  ["tracking_number"]=>
  string(12) "789174008823"
}



sql:     
        INSERT INTO
            `bbqpo_se_shipments`
        (
            order_id,
            se_shipment_id,
            carrier_key,
            carrier_service_key,
            shipment_cost,
            ship_date,
            shipment_weight_ounces,
            tracking_number
        )
            VALUES
        (
            '7469',
            226043353,
            'FEDEX',
            'FEDEX_GROUND',
            714,
            '2018-01-01',
            '336.0',
            '789174008823'
        )
        ON DUPLICATE KEY UPDATE
        
            se_shipment_id = 226043353,
            carrier_key = 'FEDEX',
            carrier_service_key = 'FEDEX_GROUND',
            shipment_cost = 714,
            ship_date = '2018-01-01',
            tracking_number = '789174008823',
            shipment_weight_ounces = '336.0'
        

insert result:
string(4) "7121"



*** Order info:
Array
(
    [id] => 208586123
    [external_order_identifier] => 112-5451620-6908260
    [ext_order_reference_id] => 112-5451620-6908260
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-29T23:21:53Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 28.95
    [total_excluding_tax] => 28.95
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 28.95
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => James R Collins Jr
    [billing_first_name] => Karen
    [billing_last_name] => R.
    [billing_address] => 5396 SPRINGFIELD RD
    [billing_address2] => 
    [billing_city] => WILLISTON
    [billing_state] => SC
    [billing_country] => US
    [billing_postal_code] => 29853-2534
    [billing_phone_number] => 8032667990
    [billing_email] => 7rqgd67bfwsgfq5@marketplace.amazon.com
    [buyer_email] => 7rqgd67bfwsgfq5@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => James
                    [last_name] => R Collins Jr
                    [address] => 5396 SPRINGFIELD RD
                    [address2] => 
                    [address3] => 
                    [city] => WILLISTON
                    [residential] => 1
                    [state] => SC
                    [province] => 
                    [country] => United States
                    [postal_code] => 29853
                    [postal_code_plus_4] => 2534
                    [phone_number] => 8032667990
                    [email] => 7rqgd67bfwsgfq5@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Lumber Jack 20-pounds BBQ Grilling wood pellets (Fruitwood Blend (80% Cherry/20% Apple)) (New)
                                    [sku] => 20poundljfruit
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 336.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 28.95
                                    [unit_price] => 28.95
                                    [ext_line_item_id] => 42690203927234
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 4505c08f-4a50-4235-9062-a483fdd42478
                                    [order_source_id] => 218238543
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 208586123
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 210726683
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 336.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-30T00:06:29Z
                            [updated_at] => 2018-01-01T10:10:53Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => lumber jack 20-pounds bbq grilling wood pellets (fruitwood blend (80% cherry/20% apple)) (new)
                            [line_item_sku] => 20poundljfruit
                            [address_kind] => R
                            [recipient_last_name] => r collins jr
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 208586123
                            [state] => SC
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-29T23:21:53Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 112-5451620-6908260
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 112-5451620-6908260
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 226043363
                    [tracking_number] => 789174009510
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 1039
                    [ship_date] => 2018-01-01
                )

        )

    [updated_at] => 2018-01-01T10:10:53Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 208586123
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsd
Customer not found in the database.  Attempting to add now
New customer ID: 10068

parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10068"
  ["ordered_time"]=>
  string(19) "2017-12-29 23:21:53"
  ["se_order_id"]=>
  int(208586123)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "112-5451620-6908260"
  ["order_weight_ounces"]=>
  string(5) "336.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4131) "{"id":208586123,"external_order_identifier":"112-5451620-6908260","ext_order_reference_id":"112-5451620-6908260","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-29T23:21:53Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"28.95","total_excluding_tax":"28.95","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"28.95","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"James R Collins Jr","billing_first_name":"Karen","billing_last_name":"R.","billing_address":"5396 SPRINGFIELD RD","billing_address2":null,"billing_city":"WILLISTON","billing_state":"SC","billing_country":"US","billing_postal_code":"29853-2534","billing_phone_number":"8032667990","billing_email":"7rqgd67bfwsgfq5@marketplace.amazon.com","buyer_email":"7rqgd67bfwsgfq5@marketplace.amazon.com","recipients":[{"company":null,"first_name":"James","last_name":"R Collins Jr","address":"5396 SPRINGFIELD RD","address2":null,"address3":null,"city":"WILLISTON","residential":true,"state":"SC","province":null,"country":"United States","postal_code":"29853","postal_code_plus_4":"2534","phone_number":"8032667990","email":"7rqgd67bfwsgfq5@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Lumber Jack 20-pounds BBQ Grilling wood pellets (Fruitwood Blend (80% Cherry\/20% Apple)) (New)","sku":"20poundljfruit","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"336.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"28.95","unit_price":"28.95","ext_line_item_id":"42690203927234","ext_product_id":null,"product_options":null,"uuid":"4505c08f-4a50-4235-9062-a483fdd42478","order_source_id":218238543,"gift_message":null}],"original_order":{"id":208586123,"customer_id":33773,"store_id":70647,"order_detail_id":210726683,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"336.0","total_quantity":1,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-30T00:06:29Z","updated_at":"2018-01-01T10:10:53Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"lumber jack 20-pounds bbq grilling wood pellets (fruitwood blend (80% cherry\/20% apple)) (new)","line_item_sku":"20poundljfruit","address_kind":"R","recipient_last_name":"r collins jr","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":208586123,"state":"SC","owner_id":37098,"denormalized_ordered_at":"2017-12-29T23:21:53Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"112-5451620-6908260","packing_slip_generated":null,"denormalized_ext_order_reference_id":"112-5451620-6908260","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":226043363,"tracking_number":"789174009510","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":1039,"ship_date":"2018-01-01"}],"updated_at":"2018-01-01T10:10:53Z","internal_notes":"","meta_data":null,"prime_order_id":208586123,"is_prime":false,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(226043363)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(5) "336.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(1039)
      ["ship_date"]=>
      string(10) "2018-01-01"
      ["tracking_number"]=>
      string(12) "789174009510"
    }
  }
}


sql:     INSERT INTO
        `bbqpo_se_orders`
    (
        `customer_id`,
        `ordered_time`,
        `se_order_id`,
        `se_order_status`,
        `store_ordered_from`,
        `store_order_id`,
        `store_order_status`,
        `order_weight_ounces`,
        `se_api_response`,
        `last_updated`
    )
        VALUES 
    (
        '10068',
        '2017-12-29 23:21:53',
        '208586123',
        'shipped',
        'Amazon',
        '112-5451620-6908260',
        'awaiting_fulfillment',
        '336.0',
        '{\"id\":208586123,\"external_order_identifier\":\"112-5451620-6908260\",\"ext_order_reference_id\":\"112-5451620-6908260\",\"owner_id\":37098,\"sales_channel\":null,\"fulfillment_channel\":null,\"ordered_at\":\"2017-12-29T23:21:53Z\",\"order_status\":\"shipped\",\"parent_order_id\":null,\"source_order_ids\":null,\"total_including_tax\":\"28.95\",\"total_excluding_tax\":\"28.95\",\"discount_amount\":\"0.00\",\"coupon_discount\":\"0.00\",\"subtotal_including_tax\":\"28.95\",\"subtotal_excluding_tax\":\"0.00\",\"subtotal_tax\":\"0.00\",\"total_tax\":\"0.00\",\"base_shipping_cost\":\"0.00\",\"shipping_cost_including_tax\":\"0.00\",\"shipping_cost_excluding_tax\":\"0.00\",\"shipping_cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"base_wrapping_cost\":\"0.00\",\"wrapping_cost_excluding_tax\":\"0.00\",\"wrapping_cost_including_tax\":\"0.00\",\"wrapping_cost_tax\":\"0.00\",\"billing_company\":\"James R Collins Jr\",\"billing_first_name\":\"Karen\",\"billing_last_name\":\"R.\",\"billing_address\":\"5396 SPRINGFIELD RD\",\"billing_address2\":null,\"billing_city\":\"WILLISTON\",\"billing_state\":\"SC\",\"billing_country\":\"US\",\"billing_postal_code\":\"29853-2534\",\"billing_phone_number\":\"8032667990\",\"billing_email\":\"7rqgd67bfwsgfq5@marketplace.amazon.com\",\"buyer_email\":\"7rqgd67bfwsgfq5@marketplace.amazon.com\",\"recipients\":[{\"company\":null,\"first_name\":\"James\",\"last_name\":\"R Collins Jr\",\"address\":\"5396 SPRINGFIELD RD\",\"address2\":null,\"address3\":null,\"city\":\"WILLISTON\",\"residential\":true,\"state\":\"SC\",\"province\":null,\"country\":\"United States\",\"postal_code\":\"29853\",\"postal_code_plus_4\":\"2534\",\"phone_number\":\"8032667990\",\"email\":\"7rqgd67bfwsgfq5@marketplace.amazon.com\",\"base_cost\":\"0.00\",\"cost_excluding_tax\":\"0.00\",\"cost_including_tax\":\"0.00\",\"cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"shipping_zone_id\":null,\"shipping_zone_name\":null,\"items_total\":null,\"shipping_method\":\"FreeEconomy\",\"items_shipped\":null,\"ext_shipping_detail_id\":null,\"line_items\":[{\"item_name\":\"Lumber Jack 20-pounds BBQ Grilling wood pellets (Fruitwood Blend (80% Cherry\\/20% Apple)) (New)\",\"sku\":\"20poundljfruit\",\"bin_picking_number\":null,\"bundled_product\":null,\"weight_in_ounces\":\"336.0\",\"quantity\":1,\"total_excluding_tax\":\"0.00\",\"price_excluding_tax\":\"28.95\",\"unit_price\":\"28.95\",\"ext_line_item_id\":\"42690203927234\",\"ext_product_id\":null,\"product_options\":null,\"uuid\":\"4505c08f-4a50-4235-9062-a483fdd42478\",\"order_source_id\":218238543,\"gift_message\":null}],\"original_order\":{\"id\":208586123,\"customer_id\":33773,\"store_id\":70647,\"order_detail_id\":210726683,\"workflow_state\":\"shipped\",\"shipment_id\":null,\"destination_id\":null,\"split_from_order_id\":null,\"total_weight_in_ounces\":\"336.0\",\"total_quantity\":1,\"is_international\":false,\"usps_shipping_zone\":5,\"created_at\":\"2017-12-30T00:06:29Z\",\"updated_at\":\"2018-01-01T10:10:53Z\",\"ext_shipment_confirmation_id\":1,\"store_order_status\":\"awaiting_fulfillment\",\"drop_ship_tracking_number\":null,\"category_id\":136973,\"internal_notes\":\"\",\"line_item_name\":\"lumber jack 20-pounds bbq grilling wood pellets (fruitwood blend (80% cherry\\/20% apple)) (new)\",\"line_item_sku\":\"20poundljfruit\",\"address_kind\":\"R\",\"recipient_last_name\":\"r collins jr\",\"recipient_requested_service\":\"freeeconomy\",\"gift\":null,\"prime_order_id\":208586123,\"state\":\"SC\",\"owner_id\":37098,\"denormalized_ordered_at\":\"2017-12-29T23:21:53Z\",\"grab_bag\":[],\"line_item_bin_picking_number\":null,\"denormalized_ext_order_id\":\"112-5451620-6908260\",\"packing_slip_generated\":null,\"denormalized_ext_order_reference_id\":\"112-5451620-6908260\",\"denormalized_alternate_order_id\":null,\"denormalized_sales_channel\":null,\"custom_1\":null,\"custom_2\":null,\"custom_3\":null,\"hidden\":null,\"allocated\":null}}],\"store_api_key\":\"7090b516cf49ce6d62caa5db6a7a32ab\",\"shipments\":[{\"id\":226043363,\"tracking_number\":\"789174009510\",\"carrier_key\":\"FEDEX\",\"carrier_service_key\":\"FEDEX_GROUND\",\"shipment_cost\":1039,\"ship_date\":\"2018-01-01\"}],\"updated_at\":\"2018-01-01T10:10:53Z\",\"internal_notes\":\"\",\"meta_data\":null,\"prime_order_id\":208586123,\"is_prime\":false,\"split_from_order_id\":null,\"tags\":[]}',
        CURRENT_TIMESTAMP
    )
        

Successfully added order to DB. Order ID (our DB's order ID) #7470

existingShippingEasySHipmentsDBRows:
array(0) {
}


shipmentDBRows:
array(0) {
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(226043363)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(5) "336.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(1039)
    ["ship_date"]=>
    string(10) "2018-01-01"
    ["tracking_number"]=>
    string(12) "789174009510"
  }
}

Adding shipment info:
array(7) {
  ["se_shipment_id"]=>
  int(226043363)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(5) "336.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(1039)
  ["ship_date"]=>
  string(10) "2018-01-01"
  ["tracking_number"]=>
  string(12) "789174009510"
}



sql:     
        INSERT INTO
            `bbqpo_se_shipments`
        (
            order_id,
            se_shipment_id,
            carrier_key,
            carrier_service_key,
            shipment_cost,
            ship_date,
            shipment_weight_ounces,
            tracking_number
        )
            VALUES
        (
            '7470',
            226043363,
            'FEDEX',
            'FEDEX_GROUND',
            1039,
            '2018-01-01',
            '336.0',
            '789174009510'
        )
        ON DUPLICATE KEY UPDATE
        
            se_shipment_id = 226043363,
            carrier_key = 'FEDEX',
            carrier_service_key = 'FEDEX_GROUND',
            shipment_cost = 1039,
            ship_date = '2018-01-01',
            tracking_number = '789174009510',
            shipment_weight_ounces = '336.0'
        

insert result:
string(4) "7122"



*** Order info:
Array
(
    [id] => 209696333
    [external_order_identifier] => M-123117-001
    [ext_order_reference_id] => 0918740caf3ac916cc0f4ab9026cb886
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-31T05:00:00Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 0.00
    [total_excluding_tax] => 0.00
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 0.00
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => 
    [billing_first_name] => Doug
    [billing_last_name] => Castagnasso
    [billing_address] => 716 Alwyn Blvd
    [billing_address2] => 
    [billing_city] => Summerville
    [billing_state] => SC
    [billing_country] => United States
    [billing_postal_code] => 29485-4095
    [billing_phone_number] => 
    [billing_email] => lynnemarie1962@aol.com
    [buyer_email] => lynnemarie1962@aol.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Doug
                    [last_name] => Castagnasso
                    [address] => 716 Alwyn Blvd
                    [address2] => 
                    [address3] => 
                    [city] => Summerville
                    [residential] => 1
                    [state] => SC
                    [province] => 
                    [country] => United States
                    [postal_code] => 29485
                    [postal_code_plus_4] => 4095
                    [phone_number] => 
                    [email] => lynnemarie1962@aol.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 0
                    [shipping_method] => 
                    [items_shipped] => 0
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Smokin Wedgie
                                    [sku] => wedgie
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 11.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 0.00
                                    [unit_price] => 0.00
                                    [ext_line_item_id] => 
                                    [ext_product_id] => 
                                    [product_options] => 
                                    [uuid] => 572166f9-7f0f-4a92-9d9c-72c6c7df6da7
                                    [order_source_id] => 219483933
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 209696333
                            [customer_id] => 33773
                            [store_id] => 70641
                            [order_detail_id] => 211872383
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 11.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 6
                            [created_at] => 2017-12-31T15:35:02Z
                            [updated_at] => 2018-01-01T10:36:56Z
                            [ext_shipment_confirmation_id] => 
                            [store_order_status] => awaiting_shipment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => smokin wedgie
                            [line_item_sku] => wedgie
                            [address_kind] => R
                            [recipient_last_name] => castagnasso
                            [recipient_requested_service] => 
                            [gift] => 
                            [prime_order_id] => 209696333
                            [state] => SC
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-31T05:00:00Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => M-123117-001
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 0918740caf3ac916cc0f4ab9026cb886
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 2176d64d37ab878b37f246d849dcde35
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 226410323
                    [tracking_number] => 9400110298370319259092
                    [carrier_key] => USPS
                    [carrier_service_key] => First
                    [shipment_cost] => 360
                    [ship_date] => 2018-01-01
                )

        )

    [updated_at] => 2018-01-01T10:36:56Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 209696333
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for lynnemarie1962@aol.com) was previously inserted to the DB.
Existing customer ID: 10037

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(4) "Doug"
  ["customer_last_name"]=>
  string(11) "Castagnasso"
  ["customer_email"]=>
  string(22) "lynnemarie1962@aol.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  NULL
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(14) "716 Alwyn Blvd"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(11) "Summerville"
    ["address_state"]=>
    string(2) "SC"
    ["address_zip"]=>
    string(10) "29485-4095"
    ["address_country"]=>
    string(13) "United States"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10037"
  ["ordered_time"]=>
  string(19) "2017-12-31 05:00:00"
  ["se_order_id"]=>
  int(209696333)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Manual"
  ["store_order_id"]=>
  string(12) "M-123117-001"
  ["order_weight_ounces"]=>
  string(4) "11.0"
  ["store_order_status"]=>
  string(17) "awaiting_shipment"
  ["se_api_response"]=>
  string(3837) "{"id":209696333,"external_order_identifier":"M-123117-001","ext_order_reference_id":"0918740caf3ac916cc0f4ab9026cb886","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-31T05:00:00Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"0.00","total_excluding_tax":"0.00","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"0.00","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":null,"billing_first_name":"Doug","billing_last_name":"Castagnasso","billing_address":"716 Alwyn Blvd","billing_address2":null,"billing_city":"Summerville","billing_state":"SC","billing_country":"United States","billing_postal_code":"29485-4095","billing_phone_number":"","billing_email":"lynnemarie1962@aol.com","buyer_email":"lynnemarie1962@aol.com","recipients":[{"company":null,"first_name":"Doug","last_name":"Castagnasso","address":"716 Alwyn Blvd","address2":null,"address3":null,"city":"Summerville","residential":true,"state":"SC","province":null,"country":"United States","postal_code":"29485","postal_code_plus_4":"4095","phone_number":"","email":"lynnemarie1962@aol.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":0,"shipping_method":null,"items_shipped":0,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Smokin Wedgie","sku":"wedgie","bin_picking_number":"","bundled_product":null,"weight_in_ounces":"11.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"0.00","unit_price":"0.00","ext_line_item_id":null,"ext_product_id":null,"product_options":null,"uuid":"572166f9-7f0f-4a92-9d9c-72c6c7df6da7","order_source_id":219483933,"gift_message":null}],"original_order":{"id":209696333,"customer_id":33773,"store_id":70641,"order_detail_id":211872383,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"11.0","total_quantity":1,"is_international":false,"usps_shipping_zone":6,"created_at":"2017-12-31T15:35:02Z","updated_at":"2018-01-01T10:36:56Z","ext_shipment_confirmation_id":null,"store_order_status":"awaiting_shipment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"smokin wedgie","line_item_sku":"wedgie","address_kind":"R","recipient_last_name":"castagnasso","recipient_requested_service":null,"gift":false,"prime_order_id":209696333,"state":"SC","owner_id":37098,"denormalized_ordered_at":"2017-12-31T05:00:00Z","grab_bag":[],"line_item_bin_picking_number":"","denormalized_ext_order_id":"M-123117-001","packing_slip_generated":null,"denormalized_ext_order_reference_id":"0918740caf3ac916cc0f4ab9026cb886","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":"","custom_2":"","custom_3":"","hidden":null,"allocated":null}}],"store_api_key":"2176d64d37ab878b37f246d849dcde35","shipments":[{"id":226410323,"tracking_number":"9400110298370319259092","carrier_key":"USPS","carrier_service_key":"First","shipment_cost":360,"ship_date":"2018-01-01"}],"updated_at":"2018-01-01T10:36:56Z","internal_notes":"","meta_data":null,"prime_order_id":209696333,"is_prime":null,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(226410323)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(4) "11.0"
      ["carrier_service_key"]=>
      string(5) "First"
      ["shipment_cost"]=>
      int(360)
      ["ship_date"]=>
      string(10) "2018-01-01"
      ["tracking_number"]=>
      string(22) "9400110298370319259092"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7438

existingShippingEasySHipmentsDBRows:
array(0) {
}


shipmentDBRows:
array(0) {
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(226410323)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(4) "11.0"
    ["carrier_service_key"]=>
    string(5) "First"
    ["shipment_cost"]=>
    int(360)
    ["ship_date"]=>
    string(10) "2018-01-01"
    ["tracking_number"]=>
    string(22) "9400110298370319259092"
  }
}

Adding shipment info:
array(7) {
  ["se_shipment_id"]=>
  int(226410323)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(4) "11.0"
  ["carrier_service_key"]=>
  string(5) "First"
  ["shipment_cost"]=>
  int(360)
  ["ship_date"]=>
  string(10) "2018-01-01"
  ["tracking_number"]=>
  string(22) "9400110298370319259092"
}



sql:     
        INSERT INTO
            `bbqpo_se_shipments`
        (
            order_id,
            se_shipment_id,
            carrier_key,
            carrier_service_key,
            shipment_cost,
            ship_date,
            shipment_weight_ounces,
            tracking_number
        )
            VALUES
        (
            '7438',
            226410323,
            'USPS',
            'First',
            360,
            '2018-01-01',
            '11.0',
            '9400110298370319259092'
        )
        ON DUPLICATE KEY UPDATE
        
            se_shipment_id = 226410323,
            carrier_key = 'USPS',
            carrier_service_key = 'First',
            shipment_cost = 360,
            ship_date = '2018-01-01',
            tracking_number = '9400110298370319259092',
            shipment_weight_ounces = '11.0'
        

insert result:
string(4) "7123"



*** Order info:
Array
(
    [id] => 208521813
    [external_order_identifier] => 3942
    [ext_order_reference_id] => 3942
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-29T22:40:05Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 37.48
    [total_excluding_tax] => 0.00
    [discount_amount] => 5.00
    [coupon_discount] => 5.00
    [subtotal_including_tax] => 0.00
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 2.48
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => 
    [billing_first_name] => Josh
    [billing_last_name] => Augustine
    [billing_address] => 1145 Music Pl
    [billing_address2] => 
    [billing_city] => Lebanon
    [billing_state] => OH
    [billing_country] => US
    [billing_postal_code] => 45036-7982
    [billing_phone_number] => 9376081932
    [billing_email] => JAugie83@gmail.com
    [buyer_email] => JAugie83@gmail.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Josh
                    [last_name] => Augustine
                    [address] => 1145 Music Pl
                    [address2] => 
                    [address3] => 
                    [city] => Lebanon
                    [residential] => 1
                    [state] => OH
                    [province] => 
                    [country] => United States
                    [postal_code] => 45036
                    [postal_code_plus_4] => 7982
                    [phone_number] => 9376081932
                    [email] => JAugie83@gmail.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 0
                    [shipping_method] => Free Shipping - No PO Boxes or APO
                    [items_shipped] => 0
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => 1 or 2 Wedgies with Smoker Pellets Variety Pack (Select up to 6 3-lb. Assortments at Checkout = min 9 lbs.)
                                    [sku] => wedgie-9-pounds-1
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 144.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 40.00
                                    [price_excluding_tax] => 0.00
                                    [unit_price] => 40.00
                                    [ext_line_item_id] => 
                                    [ext_product_id] => 80439134
                                    [product_options] => Array
                                        (
                                            [Number of Wedgies] => 1 wedgie
                                            [Bag 1 (3#)] => 100% Hickory
                                            [Bag 2 (3#)] => 100% Cherry
                                            [Bag 3 (3#)] => 100% Apple
                                            [Add 4th Sample Bag Below] => Maple-Hickory-Cherry (MHC)
                                            [Add 5th Sample Bag Below] => Do Not include 5th Sample Bag
                                            [Add 6th Sample  Bag Below] => Do Not include 6th Sample Bag
                                            [Add Can(s) Gourmet Duck Fat Spray Here] => Array
                                                (
                                                )

                                            [Add Smokin Wedgie Leg Kit for Flat Bottom Smokers] => Array
                                                (
                                                )

                                        )

                                    [uuid] => 38b40392-97e6-4bb2-94ee-fcc431fc8c0b
                                    [order_source_id] => 218168513
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 208521813
                            [customer_id] => 33773
                            [store_id] => 70642
                            [order_detail_id] => 210661483
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 160.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 4
                            [created_at] => 2017-12-29T22:31:40Z
                            [updated_at] => 2018-01-01T10:40:37Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_shipment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => 1 or 2 wedgies with smoker pellets variety pack (select up to 6 3-lb. assortments at checkout = min 9 lbs.)
                            [line_item_sku] => wedgie-9-pounds-1
                            [address_kind] => R
                            [recipient_last_name] => augustine
                            [recipient_requested_service] => free shipping - no po boxes or apo
                            [gift] => 
                            [prime_order_id] => 208521813
                            [state] => OH
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-29T22:40:05Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 3942
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 3942
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 276833075f862f916ca417ff8ccb9564
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 226043233
                    [tracking_number] => 789174056310
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 714
                    [ship_date] => 2018-01-01
                )

        )

    [updated_at] => 2018-01-01T10:40:37Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 208521813
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsd
Customer not found in the database.  Attempting to add now
New customer ID: 10069

parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10069"
  ["ordered_time"]=>
  string(19) "2017-12-29 22:40:05"
  ["se_order_id"]=>
  int(208521813)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(5) "Ecwid"
  ["store_order_id"]=>
  string(4) "3942"
  ["order_weight_ounces"]=>
  string(5) "160.0"
  ["store_order_status"]=>
  string(17) "awaiting_shipment"
  ["se_api_response"]=>
  string(4417) "{"id":208521813,"external_order_identifier":"3942","ext_order_reference_id":"3942","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-29T22:40:05Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"37.48","total_excluding_tax":"0.00","discount_amount":"5.00","coupon_discount":"5.00","subtotal_including_tax":"0.00","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"2.48","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":null,"billing_first_name":"Josh","billing_last_name":"Augustine","billing_address":"1145 Music Pl","billing_address2":null,"billing_city":"Lebanon","billing_state":"OH","billing_country":"US","billing_postal_code":"45036-7982","billing_phone_number":"9376081932","billing_email":"JAugie83@gmail.com","buyer_email":"JAugie83@gmail.com","recipients":[{"company":"","first_name":"Josh","last_name":"Augustine","address":"1145 Music Pl","address2":null,"address3":null,"city":"Lebanon","residential":true,"state":"OH","province":null,"country":"United States","postal_code":"45036","postal_code_plus_4":"7982","phone_number":"9376081932","email":"JAugie83@gmail.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":0,"shipping_method":"Free Shipping - No PO Boxes or APO","items_shipped":0,"ext_shipping_detail_id":null,"line_items":[{"item_name":"1 or 2 Wedgies with Smoker Pellets Variety Pack (Select up to 6 3-lb. Assortments at Checkout = min 9 lbs.)","sku":"wedgie-9-pounds-1","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"144.0","quantity":1,"total_excluding_tax":"40.00","price_excluding_tax":"0.00","unit_price":"40.00","ext_line_item_id":null,"ext_product_id":"80439134","product_options":{"Number of Wedgies":"1 wedgie","Bag 1 (3#)":"100% Hickory","Bag 2 (3#)":"100% Cherry","Bag 3 (3#)":"100% Apple","Add 4th Sample Bag Below":"Maple-Hickory-Cherry (MHC)","Add 5th Sample Bag Below":"Do Not include 5th Sample Bag","Add 6th Sample  Bag Below":"Do Not include 6th Sample Bag","Add Can(s) Gourmet Duck Fat Spray Here":[],"Add Smokin Wedgie Leg Kit for Flat Bottom Smokers":[]},"uuid":"38b40392-97e6-4bb2-94ee-fcc431fc8c0b","order_source_id":218168513,"gift_message":null}],"original_order":{"id":208521813,"customer_id":33773,"store_id":70642,"order_detail_id":210661483,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"160.0","total_quantity":1,"is_international":false,"usps_shipping_zone":4,"created_at":"2017-12-29T22:31:40Z","updated_at":"2018-01-01T10:40:37Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_shipment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"1 or 2 wedgies with smoker pellets variety pack (select up to 6 3-lb. assortments at checkout = min 9 lbs.)","line_item_sku":"wedgie-9-pounds-1","address_kind":"R","recipient_last_name":"augustine","recipient_requested_service":"free shipping - no po boxes or apo","gift":false,"prime_order_id":208521813,"state":"OH","owner_id":37098,"denormalized_ordered_at":"2017-12-29T22:40:05Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"3942","packing_slip_generated":null,"denormalized_ext_order_reference_id":"3942","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"276833075f862f916ca417ff8ccb9564","shipments":[{"id":226043233,"tracking_number":"789174056310","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":714,"ship_date":"2018-01-01"}],"updated_at":"2018-01-01T10:40:37Z","internal_notes":"","meta_data":null,"prime_order_id":208521813,"is_prime":null,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(226043233)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(5) "160.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(714)
      ["ship_date"]=>
      string(10) "2018-01-01"
      ["tracking_number"]=>
      string(12) "789174056310"
    }
  }
}


sql:     INSERT INTO
        `bbqpo_se_orders`
    (
        `customer_id`,
        `ordered_time`,
        `se_order_id`,
        `se_order_status`,
        `store_ordered_from`,
        `store_order_id`,
        `store_order_status`,
        `order_weight_ounces`,
        `se_api_response`,
        `last_updated`
    )
        VALUES 
    (
        '10069',
        '2017-12-29 22:40:05',
        '208521813',
        'shipped',
        'Ecwid',
        '3942',
        'awaiting_shipment',
        '160.0',
        '{\"id\":208521813,\"external_order_identifier\":\"3942\",\"ext_order_reference_id\":\"3942\",\"owner_id\":37098,\"sales_channel\":null,\"fulfillment_channel\":null,\"ordered_at\":\"2017-12-29T22:40:05Z\",\"order_status\":\"shipped\",\"parent_order_id\":null,\"source_order_ids\":null,\"total_including_tax\":\"37.48\",\"total_excluding_tax\":\"0.00\",\"discount_amount\":\"5.00\",\"coupon_discount\":\"5.00\",\"subtotal_including_tax\":\"0.00\",\"subtotal_excluding_tax\":\"0.00\",\"subtotal_tax\":\"0.00\",\"total_tax\":\"2.48\",\"base_shipping_cost\":\"0.00\",\"shipping_cost_including_tax\":\"0.00\",\"shipping_cost_excluding_tax\":\"0.00\",\"shipping_cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"base_wrapping_cost\":\"0.00\",\"wrapping_cost_excluding_tax\":\"0.00\",\"wrapping_cost_including_tax\":\"0.00\",\"wrapping_cost_tax\":\"0.00\",\"billing_company\":null,\"billing_first_name\":\"Josh\",\"billing_last_name\":\"Augustine\",\"billing_address\":\"1145 Music Pl\",\"billing_address2\":null,\"billing_city\":\"Lebanon\",\"billing_state\":\"OH\",\"billing_country\":\"US\",\"billing_postal_code\":\"45036-7982\",\"billing_phone_number\":\"9376081932\",\"billing_email\":\"JAugie83@gmail.com\",\"buyer_email\":\"JAugie83@gmail.com\",\"recipients\":[{\"company\":\"\",\"first_name\":\"Josh\",\"last_name\":\"Augustine\",\"address\":\"1145 Music Pl\",\"address2\":null,\"address3\":null,\"city\":\"Lebanon\",\"residential\":true,\"state\":\"OH\",\"province\":null,\"country\":\"United States\",\"postal_code\":\"45036\",\"postal_code_plus_4\":\"7982\",\"phone_number\":\"9376081932\",\"email\":\"JAugie83@gmail.com\",\"base_cost\":\"0.00\",\"cost_excluding_tax\":\"0.00\",\"cost_including_tax\":\"0.00\",\"cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"shipping_zone_id\":null,\"shipping_zone_name\":null,\"items_total\":0,\"shipping_method\":\"Free Shipping - No PO Boxes or APO\",\"items_shipped\":0,\"ext_shipping_detail_id\":null,\"line_items\":[{\"item_name\":\"1 or 2 Wedgies with Smoker Pellets Variety Pack (Select up to 6 3-lb. Assortments at Checkout = min 9 lbs.)\",\"sku\":\"wedgie-9-pounds-1\",\"bin_picking_number\":null,\"bundled_product\":null,\"weight_in_ounces\":\"144.0\",\"quantity\":1,\"total_excluding_tax\":\"40.00\",\"price_excluding_tax\":\"0.00\",\"unit_price\":\"40.00\",\"ext_line_item_id\":null,\"ext_product_id\":\"80439134\",\"product_options\":{\"Number of Wedgies\":\"1 wedgie\",\"Bag 1 (3#)\":\"100% Hickory\",\"Bag 2 (3#)\":\"100% Cherry\",\"Bag 3 (3#)\":\"100% Apple\",\"Add 4th Sample Bag Below\":\"Maple-Hickory-Cherry (MHC)\",\"Add 5th Sample Bag Below\":\"Do Not include 5th Sample Bag\",\"Add 6th Sample  Bag Below\":\"Do Not include 6th Sample Bag\",\"Add Can(s) Gourmet Duck Fat Spray Here\":[],\"Add Smokin Wedgie Leg Kit for Flat Bottom Smokers\":[]},\"uuid\":\"38b40392-97e6-4bb2-94ee-fcc431fc8c0b\",\"order_source_id\":218168513,\"gift_message\":null}],\"original_order\":{\"id\":208521813,\"customer_id\":33773,\"store_id\":70642,\"order_detail_id\":210661483,\"workflow_state\":\"shipped\",\"shipment_id\":null,\"destination_id\":null,\"split_from_order_id\":null,\"total_weight_in_ounces\":\"160.0\",\"total_quantity\":1,\"is_international\":false,\"usps_shipping_zone\":4,\"created_at\":\"2017-12-29T22:31:40Z\",\"updated_at\":\"2018-01-01T10:40:37Z\",\"ext_shipment_confirmation_id\":1,\"store_order_status\":\"awaiting_shipment\",\"drop_ship_tracking_number\":null,\"category_id\":136973,\"internal_notes\":\"\",\"line_item_name\":\"1 or 2 wedgies with smoker pellets variety pack (select up to 6 3-lb. assortments at checkout = min 9 lbs.)\",\"line_item_sku\":\"wedgie-9-pounds-1\",\"address_kind\":\"R\",\"recipient_last_name\":\"augustine\",\"recipient_requested_service\":\"free shipping - no po boxes or apo\",\"gift\":false,\"prime_order_id\":208521813,\"state\":\"OH\",\"owner_id\":37098,\"denormalized_ordered_at\":\"2017-12-29T22:40:05Z\",\"grab_bag\":[],\"line_item_bin_picking_number\":null,\"denormalized_ext_order_id\":\"3942\",\"packing_slip_generated\":null,\"denormalized_ext_order_reference_id\":\"3942\",\"denormalized_alternate_order_id\":null,\"denormalized_sales_channel\":null,\"custom_1\":null,\"custom_2\":null,\"custom_3\":null,\"hidden\":null,\"allocated\":null}}],\"store_api_key\":\"276833075f862f916ca417ff8ccb9564\",\"shipments\":[{\"id\":226043233,\"tracking_number\":\"789174056310\",\"carrier_key\":\"FEDEX\",\"carrier_service_key\":\"FEDEX_GROUND\",\"shipment_cost\":714,\"ship_date\":\"2018-01-01\"}],\"updated_at\":\"2018-01-01T10:40:37Z\",\"internal_notes\":\"\",\"meta_data\":null,\"prime_order_id\":208521813,\"is_prime\":null,\"split_from_order_id\":null,\"tags\":[]}',
        CURRENT_TIMESTAMP
    )
        

Successfully added order to DB. Order ID (our DB's order ID) #7471

existingShippingEasySHipmentsDBRows:
array(0) {
}


shipmentDBRows:
array(0) {
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(226043233)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(5) "160.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(714)
    ["ship_date"]=>
    string(10) "2018-01-01"
    ["tracking_number"]=>
    string(12) "789174056310"
  }
}

Adding shipment info:
array(7) {
  ["se_shipment_id"]=>
  int(226043233)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(5) "160.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(714)
  ["ship_date"]=>
  string(10) "2018-01-01"
  ["tracking_number"]=>
  string(12) "789174056310"
}



sql:     
        INSERT INTO
            `bbqpo_se_shipments`
        (
            order_id,
            se_shipment_id,
            carrier_key,
            carrier_service_key,
            shipment_cost,
            ship_date,
            shipment_weight_ounces,
            tracking_number
        )
            VALUES
        (
            '7471',
            226043233,
            'FEDEX',
            'FEDEX_GROUND',
            714,
            '2018-01-01',
            '160.0',
            '789174056310'
        )
        ON DUPLICATE KEY UPDATE
        
            se_shipment_id = 226043233,
            carrier_key = 'FEDEX',
            carrier_service_key = 'FEDEX_GROUND',
            shipment_cost = 714,
            ship_date = '2018-01-01',
            tracking_number = '789174056310',
            shipment_weight_ounces = '160.0'
        

insert result:
string(4) "7124"



*** Order info:
Array
(
    [id] => 208173473
    [external_order_identifier] => 112-5776779-3016200
    [ext_order_reference_id] => 112-5776779-3016200
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-29T15:45:31Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 34.99
    [total_excluding_tax] => 34.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 34.99
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => Faith Herrington
    [billing_first_name] => Faith
    [billing_last_name] => Herrington
    [billing_address] => 10193 KRISTEN DR
    [billing_address2] => 
    [billing_city] => MABELVALE
    [billing_state] => AR
    [billing_country] => US
    [billing_postal_code] => 72103-8761
    [billing_phone_number] => 5016500727
    [billing_email] => fsql32hh5mn0759@marketplace.amazon.com
    [buyer_email] => fsql32hh5mn0759@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Faith
                    [last_name] => Herrington
                    [address] => 10193 KRISTEN DR
                    [address2] => 
                    [address3] => 
                    [city] => MABELVALE
                    [residential] => 1
                    [state] => AR
                    [province] => 
                    [country] => United States
                    [postal_code] => 72103
                    [postal_code_plus_4] => 8761
                    [phone_number] => 5016500727
                    [email] => fsql32hh5mn0759@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Smokin Wedgie Pellet Smoker (Stainless Steel) with Lumber Jack BBQ Smoker Pellets Assortment - 9 Pounds - Pick 3-Pound Packs (See Description for Flavors) - Shipped Priority Mail if Qty 1 (New)
                                    [sku] => sw-9lb-assort-9lb
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 144.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 34.99
                                    [unit_price] => 34.99
                                    [ext_line_item_id] => 12095894742562
                                    [ext_product_id] => 
                                    [product_options] => Array
                                        (
                                            [Select Bag # 1] => 
                                            [Color (Select Bag # 1)] => 
                                            [Font (Select Bag # 1)] => 
                                            [Select Bag # 2] => 
                                            [Color (Select Bag # 2)] => 
                                            [Font (Select Bag # 2)] => 
                                            [Select Bag # 3] => 
                                            [Color (Select Bag # 3)] => 
                                            [Font (Select Bag # 3)] => 
                                            [2nd Wedgie] => 
                                            [Color (2nd Wedgie)] => 
                                            [Font (2nd Wedgie)] => 
                                            [Wedgie Feet] => 
                                            [Color (Wedgie Feet)] => 
                                            [Font (Wedgie Feet)] => 
                                            [Duck Fat] => 
                                            [Color (Duck Fat)] => 
                                            [Font (Duck Fat)] => 
                                        )

                                    [uuid] => 184f1552-af0d-4fbf-9ab2-cbdc5c930642
                                    [order_source_id] => 217795783
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 208173473
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 210303313
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 144.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2017-12-29T17:06:39Z
                            [updated_at] => 2018-01-01T10:40:46Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => smokin wedgie pellet smoker (stainless steel) with lumber jack bbq smoker pellets assortment - 9 pounds - pick 3-pound packs (see description for flavors) - shipped priority mail if qty 1 (new)
                            [line_item_sku] => sw-9lb-assort-9lb
                            [address_kind] => R
                            [recipient_last_name] => herrington
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 208173473
                            [state] => AR
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-29T15:45:31Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 112-5776779-3016200
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 112-5776779-3016200
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 226043203
                    [tracking_number] => 9405510298370319259088
                    [carrier_key] => USPS
                    [carrier_service_key] => Priority
                    [shipment_cost] => 1095
                    [ship_date] => 2018-01-01
                )

        )

    [updated_at] => 2018-01-01T10:40:46Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 208173473
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
            [0] => custom order
        )

)
sdsdsd
Customer not found in the database.  Attempting to add now
New customer ID: 10070

parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10070"
  ["ordered_time"]=>
  string(19) "2017-12-29 15:45:31"
  ["se_order_id"]=>
  int(208173473)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "112-5776779-3016200"
  ["order_weight_ounces"]=>
  string(5) "144.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4792) "{"id":208173473,"external_order_identifier":"112-5776779-3016200","ext_order_reference_id":"112-5776779-3016200","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-29T15:45:31Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"34.99","total_excluding_tax":"34.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"34.99","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"Faith Herrington","billing_first_name":"Faith","billing_last_name":"Herrington","billing_address":"10193 KRISTEN DR","billing_address2":null,"billing_city":"MABELVALE","billing_state":"AR","billing_country":"US","billing_postal_code":"72103-8761","billing_phone_number":"5016500727","billing_email":"fsql32hh5mn0759@marketplace.amazon.com","buyer_email":"fsql32hh5mn0759@marketplace.amazon.com","recipients":[{"company":null,"first_name":"Faith","last_name":"Herrington","address":"10193 KRISTEN DR","address2":null,"address3":null,"city":"MABELVALE","residential":true,"state":"AR","province":null,"country":"United States","postal_code":"72103","postal_code_plus_4":"8761","phone_number":"5016500727","email":"fsql32hh5mn0759@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Smokin Wedgie Pellet Smoker (Stainless Steel) with Lumber Jack BBQ Smoker Pellets Assortment - 9 Pounds - Pick 3-Pound Packs (See Description for Flavors) - Shipped Priority Mail if Qty 1 (New)","sku":"sw-9lb-assort-9lb","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"144.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"34.99","unit_price":"34.99","ext_line_item_id":"12095894742562","ext_product_id":null,"product_options":{"Select Bag # 1":null,"Color (Select Bag # 1)":null,"Font (Select Bag # 1)":null,"Select Bag # 2":null,"Color (Select Bag # 2)":null,"Font (Select Bag # 2)":null,"Select Bag # 3":null,"Color (Select Bag # 3)":null,"Font (Select Bag # 3)":null,"2nd Wedgie":null,"Color (2nd Wedgie)":null,"Font (2nd Wedgie)":null,"Wedgie Feet":null,"Color (Wedgie Feet)":null,"Font (Wedgie Feet)":null,"Duck Fat":null,"Color (Duck Fat)":null,"Font (Duck Fat)":null},"uuid":"184f1552-af0d-4fbf-9ab2-cbdc5c930642","order_source_id":217795783,"gift_message":null}],"original_order":{"id":208173473,"customer_id":33773,"store_id":70647,"order_detail_id":210303313,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"144.0","total_quantity":1,"is_international":false,"usps_shipping_zone":5,"created_at":"2017-12-29T17:06:39Z","updated_at":"2018-01-01T10:40:46Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"smokin wedgie pellet smoker (stainless steel) with lumber jack bbq smoker pellets assortment - 9 pounds - pick 3-pound packs (see description for flavors) - shipped priority mail if qty 1 (new)","line_item_sku":"sw-9lb-assort-9lb","address_kind":"R","recipient_last_name":"herrington","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":208173473,"state":"AR","owner_id":37098,"denormalized_ordered_at":"2017-12-29T15:45:31Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"112-5776779-3016200","packing_slip_generated":null,"denormalized_ext_order_reference_id":"112-5776779-3016200","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":226043203,"tracking_number":"9405510298370319259088","carrier_key":"USPS","carrier_service_key":"Priority","shipment_cost":1095,"ship_date":"2018-01-01"}],"updated_at":"2018-01-01T10:40:46Z","internal_notes":"","meta_data":null,"prime_order_id":208173473,"is_prime":false,"split_from_order_id":null,"tags":["custom order"]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(226043203)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(5) "144.0"
      ["carrier_service_key"]=>
      string(8) "Priority"
      ["shipment_cost"]=>
      int(1095)
      ["ship_date"]=>
      string(10) "2018-01-01"
      ["tracking_number"]=>
      string(22) "9405510298370319259088"
    }
  }
}


sql:     INSERT INTO
        `bbqpo_se_orders`
    (
        `customer_id`,
        `ordered_time`,
        `se_order_id`,
        `se_order_status`,
        `store_ordered_from`,
        `store_order_id`,
        `store_order_status`,
        `order_weight_ounces`,
        `se_api_response`,
        `last_updated`
    )
        VALUES 
    (
        '10070',
        '2017-12-29 15:45:31',
        '208173473',
        'shipped',
        'Amazon',
        '112-5776779-3016200',
        'awaiting_fulfillment',
        '144.0',
        '{\"id\":208173473,\"external_order_identifier\":\"112-5776779-3016200\",\"ext_order_reference_id\":\"112-5776779-3016200\",\"owner_id\":37098,\"sales_channel\":null,\"fulfillment_channel\":null,\"ordered_at\":\"2017-12-29T15:45:31Z\",\"order_status\":\"shipped\",\"parent_order_id\":null,\"source_order_ids\":null,\"total_including_tax\":\"34.99\",\"total_excluding_tax\":\"34.99\",\"discount_amount\":\"0.00\",\"coupon_discount\":\"0.00\",\"subtotal_including_tax\":\"34.99\",\"subtotal_excluding_tax\":\"0.00\",\"subtotal_tax\":\"0.00\",\"total_tax\":\"0.00\",\"base_shipping_cost\":\"0.00\",\"shipping_cost_including_tax\":\"0.00\",\"shipping_cost_excluding_tax\":\"0.00\",\"shipping_cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"base_wrapping_cost\":\"0.00\",\"wrapping_cost_excluding_tax\":\"0.00\",\"wrapping_cost_including_tax\":\"0.00\",\"wrapping_cost_tax\":\"0.00\",\"billing_company\":\"Faith Herrington\",\"billing_first_name\":\"Faith\",\"billing_last_name\":\"Herrington\",\"billing_address\":\"10193 KRISTEN DR\",\"billing_address2\":null,\"billing_city\":\"MABELVALE\",\"billing_state\":\"AR\",\"billing_country\":\"US\",\"billing_postal_code\":\"72103-8761\",\"billing_phone_number\":\"5016500727\",\"billing_email\":\"fsql32hh5mn0759@marketplace.amazon.com\",\"buyer_email\":\"fsql32hh5mn0759@marketplace.amazon.com\",\"recipients\":[{\"company\":null,\"first_name\":\"Faith\",\"last_name\":\"Herrington\",\"address\":\"10193 KRISTEN DR\",\"address2\":null,\"address3\":null,\"city\":\"MABELVALE\",\"residential\":true,\"state\":\"AR\",\"province\":null,\"country\":\"United States\",\"postal_code\":\"72103\",\"postal_code_plus_4\":\"8761\",\"phone_number\":\"5016500727\",\"email\":\"fsql32hh5mn0759@marketplace.amazon.com\",\"base_cost\":\"0.00\",\"cost_excluding_tax\":\"0.00\",\"cost_including_tax\":\"0.00\",\"cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"shipping_zone_id\":null,\"shipping_zone_name\":null,\"items_total\":null,\"shipping_method\":\"FreeEconomy\",\"items_shipped\":null,\"ext_shipping_detail_id\":null,\"line_items\":[{\"item_name\":\"Smokin Wedgie Pellet Smoker (Stainless Steel) with Lumber Jack BBQ Smoker Pellets Assortment - 9 Pounds - Pick 3-Pound Packs (See Description for Flavors) - Shipped Priority Mail if Qty 1 (New)\",\"sku\":\"sw-9lb-assort-9lb\",\"bin_picking_number\":null,\"bundled_product\":null,\"weight_in_ounces\":\"144.0\",\"quantity\":1,\"total_excluding_tax\":\"0.00\",\"price_excluding_tax\":\"34.99\",\"unit_price\":\"34.99\",\"ext_line_item_id\":\"12095894742562\",\"ext_product_id\":null,\"product_options\":{\"Select Bag # 1\":null,\"Color (Select Bag # 1)\":null,\"Font (Select Bag # 1)\":null,\"Select Bag # 2\":null,\"Color (Select Bag # 2)\":null,\"Font (Select Bag # 2)\":null,\"Select Bag # 3\":null,\"Color (Select Bag # 3)\":null,\"Font (Select Bag # 3)\":null,\"2nd Wedgie\":null,\"Color (2nd Wedgie)\":null,\"Font (2nd Wedgie)\":null,\"Wedgie Feet\":null,\"Color (Wedgie Feet)\":null,\"Font (Wedgie Feet)\":null,\"Duck Fat\":null,\"Color (Duck Fat)\":null,\"Font (Duck Fat)\":null},\"uuid\":\"184f1552-af0d-4fbf-9ab2-cbdc5c930642\",\"order_source_id\":217795783,\"gift_message\":null}],\"original_order\":{\"id\":208173473,\"customer_id\":33773,\"store_id\":70647,\"order_detail_id\":210303313,\"workflow_state\":\"shipped\",\"shipment_id\":null,\"destination_id\":null,\"split_from_order_id\":null,\"total_weight_in_ounces\":\"144.0\",\"total_quantity\":1,\"is_international\":false,\"usps_shipping_zone\":5,\"created_at\":\"2017-12-29T17:06:39Z\",\"updated_at\":\"2018-01-01T10:40:46Z\",\"ext_shipment_confirmation_id\":1,\"store_order_status\":\"awaiting_fulfillment\",\"drop_ship_tracking_number\":null,\"category_id\":136973,\"internal_notes\":\"\",\"line_item_name\":\"smokin wedgie pellet smoker (stainless steel) with lumber jack bbq smoker pellets assortment - 9 pounds - pick 3-pound packs (see description for flavors) - shipped priority mail if qty 1 (new)\",\"line_item_sku\":\"sw-9lb-assort-9lb\",\"address_kind\":\"R\",\"recipient_last_name\":\"herrington\",\"recipient_requested_service\":\"freeeconomy\",\"gift\":null,\"prime_order_id\":208173473,\"state\":\"AR\",\"owner_id\":37098,\"denormalized_ordered_at\":\"2017-12-29T15:45:31Z\",\"grab_bag\":[],\"line_item_bin_picking_number\":null,\"denormalized_ext_order_id\":\"112-5776779-3016200\",\"packing_slip_generated\":null,\"denormalized_ext_order_reference_id\":\"112-5776779-3016200\",\"denormalized_alternate_order_id\":null,\"denormalized_sales_channel\":null,\"custom_1\":null,\"custom_2\":null,\"custom_3\":null,\"hidden\":null,\"allocated\":null}}],\"store_api_key\":\"7090b516cf49ce6d62caa5db6a7a32ab\",\"shipments\":[{\"id\":226043203,\"tracking_number\":\"9405510298370319259088\",\"carrier_key\":\"USPS\",\"carrier_service_key\":\"Priority\",\"shipment_cost\":1095,\"ship_date\":\"2018-01-01\"}],\"updated_at\":\"2018-01-01T10:40:46Z\",\"internal_notes\":\"\",\"meta_data\":null,\"prime_order_id\":208173473,\"is_prime\":false,\"split_from_order_id\":null,\"tags\":[\"custom order\"]}',
        CURRENT_TIMESTAMP
    )
        

Successfully added order to DB. Order ID (our DB's order ID) #7472

existingShippingEasySHipmentsDBRows:
array(0) {
}


shipmentDBRows:
array(0) {
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(226043203)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(5) "144.0"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    int(1095)
    ["ship_date"]=>
    string(10) "2018-01-01"
    ["tracking_number"]=>
    string(22) "9405510298370319259088"
  }
}

Adding shipment info:
array(7) {
  ["se_shipment_id"]=>
  int(226043203)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(5) "144.0"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  int(1095)
  ["ship_date"]=>
  string(10) "2018-01-01"
  ["tracking_number"]=>
  string(22) "9405510298370319259088"
}



sql:     
        INSERT INTO
            `bbqpo_se_shipments`
        (
            order_id,
            se_shipment_id,
            carrier_key,
            carrier_service_key,
            shipment_cost,
            ship_date,
            shipment_weight_ounces,
            tracking_number
        )
            VALUES
        (
            '7472',
            226043203,
            'USPS',
            'Priority',
            1095,
            '2018-01-01',
            '144.0',
            '9405510298370319259088'
        )
        ON DUPLICATE KEY UPDATE
        
            se_shipment_id = 226043203,
            carrier_key = 'USPS',
            carrier_service_key = 'Priority',
            shipment_cost = 1095,
            ship_date = '2018-01-01',
            tracking_number = '9405510298370319259088',
            shipment_weight_ounces = '144.0'
        

insert result:
string(4) "7125"



*** Order info:
Array
(
    [id] => 208044753
    [external_order_identifier] => 113-5367200-3740219
    [ext_order_reference_id] => 113-5367200-3740219
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-29T14:17:26Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 34.99
    [total_excluding_tax] => 34.99
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 34.99
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => TONY PIERCE
    [billing_first_name] => TONY
    [billing_last_name] => PIERCE
    [billing_address] => 7930 ROTH RD
    [billing_address2] => 
    [billing_city] => EVANSVILLE
    [billing_state] => IN
    [billing_country] => US
    [billing_postal_code] => 47712-9320
    [billing_phone_number] => 8124550341
    [billing_email] => jd061gw93xlxxdj@marketplace.amazon.com
    [buyer_email] => jd061gw93xlxxdj@marketplace.amazon.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => TONY
                    [last_name] => PIERCE
                    [address] => 7930 ROTH RD
                    [address2] => 
                    [address3] => 
                    [city] => EVANSVILLE
                    [residential] => 1
                    [state] => IN
                    [province] => 
                    [country] => United States
                    [postal_code] => 47712
                    [postal_code_plus_4] => 9320
                    [phone_number] => 8124550341
                    [email] => jd061gw93xlxxdj@marketplace.amazon.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 
                    [shipping_method] => FreeEconomy
                    [items_shipped] => 
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => Smokin Wedgie Pellet Smoker (Stainless Steel) with Lumber Jack BBQ Smoker Pellets Assortment - 9 Pounds - Pick 3-Pound Packs (See Description for Flavors) - Shipped Priority Mail if Qty 1 (New)
                                    [sku] => sw-9lb-assort-9lb
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 144.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 0.00
                                    [price_excluding_tax] => 34.99
                                    [unit_price] => 34.99
                                    [ext_line_item_id] => 61775393608546
                                    [ext_product_id] => 
                                    [product_options] => Array
                                        (
                                            [Select Bag # 1] => 
                                            [Color (Select Bag # 1)] => 
                                            [Font (Select Bag # 1)] => 
                                            [Select Bag # 2] => 
                                            [Color (Select Bag # 2)] => 
                                            [Font (Select Bag # 2)] => 
                                            [Select Bag # 3] => 
                                            [Color (Select Bag # 3)] => 
                                            [Font (Select Bag # 3)] => 
                                            [2nd Wedgie] => 
                                            [Color (2nd Wedgie)] => 
                                            [Font (2nd Wedgie)] => 
                                            [Wedgie Feet] => 
                                            [Color (Wedgie Feet)] => 
                                            [Font (Wedgie Feet)] => 
                                            [Duck Fat] => 
                                            [Color (Duck Fat)] => 
                                            [Font (Duck Fat)] => 
                                        )

                                    [uuid] => 1ab2ac23-3250-4a15-8814-76380a39f3dc
                                    [order_source_id] => 217659763
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 208044753
                            [customer_id] => 33773
                            [store_id] => 70647
                            [order_detail_id] => 210169363
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 144.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 4
                            [created_at] => 2017-12-29T15:06:38Z
                            [updated_at] => 2018-01-01T10:40:46Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_fulfillment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => smokin wedgie pellet smoker (stainless steel) with lumber jack bbq smoker pellets assortment - 9 pounds - pick 3-pound packs (see description for flavors) - shipped priority mail if qty 1 (new)
                            [line_item_sku] => sw-9lb-assort-9lb
                            [address_kind] => R
                            [recipient_last_name] => pierce
                            [recipient_requested_service] => freeeconomy
                            [gift] => 
                            [prime_order_id] => 208044753
                            [state] => IN
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-29T14:17:26Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 113-5367200-3740219
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 113-5367200-3740219
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 7090b516cf49ce6d62caa5db6a7a32ab
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 226043213
                    [tracking_number] => 9405510298370319259071
                    [carrier_key] => USPS
                    [carrier_service_key] => Priority
                    [shipment_cost] => 919
                    [ship_date] => 2018-01-01
                )

        )

    [updated_at] => 2018-01-01T10:40:46Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 208044753
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
            [0] => custom order
        )

)
sdsdsd
Customer not found in the database.  Attempting to add now
New customer ID: 10071

parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10071"
  ["ordered_time"]=>
  string(19) "2017-12-29 14:17:26"
  ["se_order_id"]=>
  int(208044753)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(6) "Amazon"
  ["store_order_id"]=>
  string(19) "113-5367200-3740219"
  ["order_weight_ounces"]=>
  string(5) "144.0"
  ["store_order_status"]=>
  string(20) "awaiting_fulfillment"
  ["se_api_response"]=>
  string(4766) "{"id":208044753,"external_order_identifier":"113-5367200-3740219","ext_order_reference_id":"113-5367200-3740219","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-29T14:17:26Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"34.99","total_excluding_tax":"34.99","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"34.99","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":"TONY PIERCE","billing_first_name":"TONY","billing_last_name":"PIERCE","billing_address":"7930 ROTH RD","billing_address2":null,"billing_city":"EVANSVILLE","billing_state":"IN","billing_country":"US","billing_postal_code":"47712-9320","billing_phone_number":"8124550341","billing_email":"jd061gw93xlxxdj@marketplace.amazon.com","buyer_email":"jd061gw93xlxxdj@marketplace.amazon.com","recipients":[{"company":null,"first_name":"TONY","last_name":"PIERCE","address":"7930 ROTH RD","address2":null,"address3":null,"city":"EVANSVILLE","residential":true,"state":"IN","province":null,"country":"United States","postal_code":"47712","postal_code_plus_4":"9320","phone_number":"8124550341","email":"jd061gw93xlxxdj@marketplace.amazon.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":null,"shipping_method":"FreeEconomy","items_shipped":null,"ext_shipping_detail_id":null,"line_items":[{"item_name":"Smokin Wedgie Pellet Smoker (Stainless Steel) with Lumber Jack BBQ Smoker Pellets Assortment - 9 Pounds - Pick 3-Pound Packs (See Description for Flavors) - Shipped Priority Mail if Qty 1 (New)","sku":"sw-9lb-assort-9lb","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"144.0","quantity":1,"total_excluding_tax":"0.00","price_excluding_tax":"34.99","unit_price":"34.99","ext_line_item_id":"61775393608546","ext_product_id":null,"product_options":{"Select Bag # 1":null,"Color (Select Bag # 1)":null,"Font (Select Bag # 1)":null,"Select Bag # 2":null,"Color (Select Bag # 2)":null,"Font (Select Bag # 2)":null,"Select Bag # 3":null,"Color (Select Bag # 3)":null,"Font (Select Bag # 3)":null,"2nd Wedgie":null,"Color (2nd Wedgie)":null,"Font (2nd Wedgie)":null,"Wedgie Feet":null,"Color (Wedgie Feet)":null,"Font (Wedgie Feet)":null,"Duck Fat":null,"Color (Duck Fat)":null,"Font (Duck Fat)":null},"uuid":"1ab2ac23-3250-4a15-8814-76380a39f3dc","order_source_id":217659763,"gift_message":null}],"original_order":{"id":208044753,"customer_id":33773,"store_id":70647,"order_detail_id":210169363,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"144.0","total_quantity":1,"is_international":false,"usps_shipping_zone":4,"created_at":"2017-12-29T15:06:38Z","updated_at":"2018-01-01T10:40:46Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_fulfillment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"smokin wedgie pellet smoker (stainless steel) with lumber jack bbq smoker pellets assortment - 9 pounds - pick 3-pound packs (see description for flavors) - shipped priority mail if qty 1 (new)","line_item_sku":"sw-9lb-assort-9lb","address_kind":"R","recipient_last_name":"pierce","recipient_requested_service":"freeeconomy","gift":null,"prime_order_id":208044753,"state":"IN","owner_id":37098,"denormalized_ordered_at":"2017-12-29T14:17:26Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"113-5367200-3740219","packing_slip_generated":null,"denormalized_ext_order_reference_id":"113-5367200-3740219","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"7090b516cf49ce6d62caa5db6a7a32ab","shipments":[{"id":226043213,"tracking_number":"9405510298370319259071","carrier_key":"USPS","carrier_service_key":"Priority","shipment_cost":919,"ship_date":"2018-01-01"}],"updated_at":"2018-01-01T10:40:46Z","internal_notes":"","meta_data":null,"prime_order_id":208044753,"is_prime":false,"split_from_order_id":null,"tags":["custom order"]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(226043213)
      ["carrier_key"]=>
      string(4) "USPS"
      ["shipment_weight_ounces"]=>
      string(5) "144.0"
      ["carrier_service_key"]=>
      string(8) "Priority"
      ["shipment_cost"]=>
      int(919)
      ["ship_date"]=>
      string(10) "2018-01-01"
      ["tracking_number"]=>
      string(22) "9405510298370319259071"
    }
  }
}


sql:     INSERT INTO
        `bbqpo_se_orders`
    (
        `customer_id`,
        `ordered_time`,
        `se_order_id`,
        `se_order_status`,
        `store_ordered_from`,
        `store_order_id`,
        `store_order_status`,
        `order_weight_ounces`,
        `se_api_response`,
        `last_updated`
    )
        VALUES 
    (
        '10071',
        '2017-12-29 14:17:26',
        '208044753',
        'shipped',
        'Amazon',
        '113-5367200-3740219',
        'awaiting_fulfillment',
        '144.0',
        '{\"id\":208044753,\"external_order_identifier\":\"113-5367200-3740219\",\"ext_order_reference_id\":\"113-5367200-3740219\",\"owner_id\":37098,\"sales_channel\":null,\"fulfillment_channel\":null,\"ordered_at\":\"2017-12-29T14:17:26Z\",\"order_status\":\"shipped\",\"parent_order_id\":null,\"source_order_ids\":null,\"total_including_tax\":\"34.99\",\"total_excluding_tax\":\"34.99\",\"discount_amount\":\"0.00\",\"coupon_discount\":\"0.00\",\"subtotal_including_tax\":\"34.99\",\"subtotal_excluding_tax\":\"0.00\",\"subtotal_tax\":\"0.00\",\"total_tax\":\"0.00\",\"base_shipping_cost\":\"0.00\",\"shipping_cost_including_tax\":\"0.00\",\"shipping_cost_excluding_tax\":\"0.00\",\"shipping_cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"base_wrapping_cost\":\"0.00\",\"wrapping_cost_excluding_tax\":\"0.00\",\"wrapping_cost_including_tax\":\"0.00\",\"wrapping_cost_tax\":\"0.00\",\"billing_company\":\"TONY PIERCE\",\"billing_first_name\":\"TONY\",\"billing_last_name\":\"PIERCE\",\"billing_address\":\"7930 ROTH RD\",\"billing_address2\":null,\"billing_city\":\"EVANSVILLE\",\"billing_state\":\"IN\",\"billing_country\":\"US\",\"billing_postal_code\":\"47712-9320\",\"billing_phone_number\":\"8124550341\",\"billing_email\":\"jd061gw93xlxxdj@marketplace.amazon.com\",\"buyer_email\":\"jd061gw93xlxxdj@marketplace.amazon.com\",\"recipients\":[{\"company\":null,\"first_name\":\"TONY\",\"last_name\":\"PIERCE\",\"address\":\"7930 ROTH RD\",\"address2\":null,\"address3\":null,\"city\":\"EVANSVILLE\",\"residential\":true,\"state\":\"IN\",\"province\":null,\"country\":\"United States\",\"postal_code\":\"47712\",\"postal_code_plus_4\":\"9320\",\"phone_number\":\"8124550341\",\"email\":\"jd061gw93xlxxdj@marketplace.amazon.com\",\"base_cost\":\"0.00\",\"cost_excluding_tax\":\"0.00\",\"cost_including_tax\":\"0.00\",\"cost_tax\":\"0.00\",\"base_handling_cost\":\"0.00\",\"handling_cost_excluding_tax\":\"0.00\",\"handling_cost_including_tax\":\"0.00\",\"handling_cost_tax\":\"0.00\",\"shipping_zone_id\":null,\"shipping_zone_name\":null,\"items_total\":null,\"shipping_method\":\"FreeEconomy\",\"items_shipped\":null,\"ext_shipping_detail_id\":null,\"line_items\":[{\"item_name\":\"Smokin Wedgie Pellet Smoker (Stainless Steel) with Lumber Jack BBQ Smoker Pellets Assortment - 9 Pounds - Pick 3-Pound Packs (See Description for Flavors) - Shipped Priority Mail if Qty 1 (New)\",\"sku\":\"sw-9lb-assort-9lb\",\"bin_picking_number\":null,\"bundled_product\":null,\"weight_in_ounces\":\"144.0\",\"quantity\":1,\"total_excluding_tax\":\"0.00\",\"price_excluding_tax\":\"34.99\",\"unit_price\":\"34.99\",\"ext_line_item_id\":\"61775393608546\",\"ext_product_id\":null,\"product_options\":{\"Select Bag # 1\":null,\"Color (Select Bag # 1)\":null,\"Font (Select Bag # 1)\":null,\"Select Bag # 2\":null,\"Color (Select Bag # 2)\":null,\"Font (Select Bag # 2)\":null,\"Select Bag # 3\":null,\"Color (Select Bag # 3)\":null,\"Font (Select Bag # 3)\":null,\"2nd Wedgie\":null,\"Color (2nd Wedgie)\":null,\"Font (2nd Wedgie)\":null,\"Wedgie Feet\":null,\"Color (Wedgie Feet)\":null,\"Font (Wedgie Feet)\":null,\"Duck Fat\":null,\"Color (Duck Fat)\":null,\"Font (Duck Fat)\":null},\"uuid\":\"1ab2ac23-3250-4a15-8814-76380a39f3dc\",\"order_source_id\":217659763,\"gift_message\":null}],\"original_order\":{\"id\":208044753,\"customer_id\":33773,\"store_id\":70647,\"order_detail_id\":210169363,\"workflow_state\":\"shipped\",\"shipment_id\":null,\"destination_id\":null,\"split_from_order_id\":null,\"total_weight_in_ounces\":\"144.0\",\"total_quantity\":1,\"is_international\":false,\"usps_shipping_zone\":4,\"created_at\":\"2017-12-29T15:06:38Z\",\"updated_at\":\"2018-01-01T10:40:46Z\",\"ext_shipment_confirmation_id\":1,\"store_order_status\":\"awaiting_fulfillment\",\"drop_ship_tracking_number\":null,\"category_id\":136973,\"internal_notes\":\"\",\"line_item_name\":\"smokin wedgie pellet smoker (stainless steel) with lumber jack bbq smoker pellets assortment - 9 pounds - pick 3-pound packs (see description for flavors) - shipped priority mail if qty 1 (new)\",\"line_item_sku\":\"sw-9lb-assort-9lb\",\"address_kind\":\"R\",\"recipient_last_name\":\"pierce\",\"recipient_requested_service\":\"freeeconomy\",\"gift\":null,\"prime_order_id\":208044753,\"state\":\"IN\",\"owner_id\":37098,\"denormalized_ordered_at\":\"2017-12-29T14:17:26Z\",\"grab_bag\":[],\"line_item_bin_picking_number\":null,\"denormalized_ext_order_id\":\"113-5367200-3740219\",\"packing_slip_generated\":null,\"denormalized_ext_order_reference_id\":\"113-5367200-3740219\",\"denormalized_alternate_order_id\":null,\"denormalized_sales_channel\":null,\"custom_1\":null,\"custom_2\":null,\"custom_3\":null,\"hidden\":null,\"allocated\":null}}],\"store_api_key\":\"7090b516cf49ce6d62caa5db6a7a32ab\",\"shipments\":[{\"id\":226043213,\"tracking_number\":\"9405510298370319259071\",\"carrier_key\":\"USPS\",\"carrier_service_key\":\"Priority\",\"shipment_cost\":919,\"ship_date\":\"2018-01-01\"}],\"updated_at\":\"2018-01-01T10:40:46Z\",\"internal_notes\":\"\",\"meta_data\":null,\"prime_order_id\":208044753,\"is_prime\":false,\"split_from_order_id\":null,\"tags\":[\"custom order\"]}',
        CURRENT_TIMESTAMP
    )
        

Successfully added order to DB. Order ID (our DB's order ID) #7473

existingShippingEasySHipmentsDBRows:
array(0) {
}


shipmentDBRows:
array(0) {
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(226043213)
    ["carrier_key"]=>
    string(4) "USPS"
    ["shipment_weight_ounces"]=>
    string(5) "144.0"
    ["carrier_service_key"]=>
    string(8) "Priority"
    ["shipment_cost"]=>
    int(919)
    ["ship_date"]=>
    string(10) "2018-01-01"
    ["tracking_number"]=>
    string(22) "9405510298370319259071"
  }
}

Adding shipment info:
array(7) {
  ["se_shipment_id"]=>
  int(226043213)
  ["carrier_key"]=>
  string(4) "USPS"
  ["shipment_weight_ounces"]=>
  string(5) "144.0"
  ["carrier_service_key"]=>
  string(8) "Priority"
  ["shipment_cost"]=>
  int(919)
  ["ship_date"]=>
  string(10) "2018-01-01"
  ["tracking_number"]=>
  string(22) "9405510298370319259071"
}



sql:     
        INSERT INTO
            `bbqpo_se_shipments`
        (
            order_id,
            se_shipment_id,
            carrier_key,
            carrier_service_key,
            shipment_cost,
            ship_date,
            shipment_weight_ounces,
            tracking_number
        )
            VALUES
        (
            '7473',
            226043213,
            'USPS',
            'Priority',
            919,
            '2018-01-01',
            '144.0',
            '9405510298370319259071'
        )
        ON DUPLICATE KEY UPDATE
        
            se_shipment_id = 226043213,
            carrier_key = 'USPS',
            carrier_service_key = 'Priority',
            shipment_cost = 919,
            ship_date = '2018-01-01',
            tracking_number = '9405510298370319259071',
            shipment_weight_ounces = '144.0'
        

insert result:
string(4) "7126"



*** Order info:
Array
(
    [id] => 209804403
    [external_order_identifier] => 3948
    [ext_order_reference_id] => 3948
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2017-12-31T18:57:12Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 84.00
    [total_excluding_tax] => 0.00
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 0.00
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => 
    [billing_first_name] => Scott
    [billing_last_name] => Ogilvie
    [billing_address] => 2404 E Glen Oaks Dr
    [billing_address2] => 
    [billing_city] => Wichita
    [billing_state] => KS
    [billing_country] => US
    [billing_postal_code] => 67216
    [billing_phone_number] => 3166120740
    [billing_email] => ogo2404@gmail.com
    [buyer_email] => ogo2404@gmail.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => Ogilvie @ Son
                    [first_name] => Scott
                    [last_name] => Ogilvie
                    [address] => 2404 E Glen Oaks Dr
                    [address2] => 
                    [address3] => 
                    [city] => Wichita
                    [residential] => 1
                    [state] => KS
                    [province] => 
                    [country] => United States
                    [postal_code] => 67216
                    [postal_code_plus_4] => 2221
                    [phone_number] => 3166120740
                    [email] => ogo2404@gmail.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 0
                    [shipping_method] => Free Shipping - No PO Boxes or APO
                    [items_shipped] => 0
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => 60 Pound BBQ Pellets Variety Box  (Select 6 10-Pound Varieties)
                                    [sku] => 6010variety
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 976.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 84.00
                                    [price_excluding_tax] => 0.00
                                    [unit_price] => 84.00
                                    [ext_line_item_id] => 
                                    [ext_product_id] => 75381193
                                    [product_options] => Array
                                        (
                                            [Box 1 (10#)] => 100% Cherry
                                            [Box 2 (10#)] => 100% Pecan
                                            [Box 3 (10#)] => CharBlend Hickory
                                            [Box 4 (10#)] => 100% Apple
                                            [Box 5 (10#)] => Pecan Blend
                                            [Box 6 (10#)] => Fruitwood (80% Cherry/20% Apple)
                                            [Handy Camel Bag Clip] => Array
                                                (
                                                    [0] => Add Handy Camel Bag Clip
                                                )

                                            [Smokin Wedgie Pellet Smoker(s)] => Array
                                                (
                                                )

                                            [Smokin Wedgie Leg Kit(s) for Flat Bottom Smokers] => Array
                                                (
                                                )

                                            [Gourmet Duck Fat Spray Can(s) Here (7 Ounce)] => Array
                                                (
                                                )

                                            [BBQ Bottle Openers] => Array
                                                (
                                                )

                                        )

                                    [uuid] => fef30e6e-83cb-4116-a9c2-741a4796da53
                                    [order_source_id] => 219604973
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 209804403
                            [customer_id] => 33773
                            [store_id] => 70642
                            [order_detail_id] => 211984623
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 976.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 4
                            [created_at] => 2017-12-31T18:31:32Z
                            [updated_at] => 2018-01-01T10:42:47Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_shipment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => 60 pound bbq pellets variety box  (select 6 10-pound varieties)
                            [line_item_sku] => 6010variety
                            [address_kind] => R
                            [recipient_last_name] => ogilvie
                            [recipient_requested_service] => free shipping - no po boxes or apo
                            [gift] => 
                            [prime_order_id] => 209804403
                            [state] => KS
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2017-12-31T18:57:12Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 3948
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 3948
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 276833075f862f916ca417ff8ccb9564
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 226428613
                    [tracking_number] => 789174060493
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 1301
                    [ship_date] => 2018-01-01
                )

        )

    [updated_at] => 2018-01-01T10:42:47Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 209804403
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for ogo2404@gmail.com) was previously inserted to the DB.
Existing customer ID: 10039

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(5) "Scott"
  ["customer_last_name"]=>
  string(7) "Ogilvie"
  ["customer_email"]=>
  string(17) "ogo2404@gmail.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  NULL
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(19) "2404 E Glen Oaks Dr"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(7) "Wichita"
    ["address_state"]=>
    string(2) "KS"
    ["address_zip"]=>
    string(5) "67216"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10039"
  ["ordered_time"]=>
  string(19) "2017-12-31 18:57:12"
  ["se_order_id"]=>
  int(209804403)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(5) "Ecwid"
  ["store_order_id"]=>
  string(4) "3948"
  ["order_weight_ounces"]=>
  string(5) "976.0"
  ["store_order_status"]=>
  string(17) "awaiting_shipment"
  ["se_api_response"]=>
  string(4355) "{"id":209804403,"external_order_identifier":"3948","ext_order_reference_id":"3948","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2017-12-31T18:57:12Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"84.00","total_excluding_tax":"0.00","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"0.00","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":null,"billing_first_name":"Scott","billing_last_name":"Ogilvie","billing_address":"2404 E Glen Oaks Dr","billing_address2":null,"billing_city":"Wichita","billing_state":"KS","billing_country":"US","billing_postal_code":"67216","billing_phone_number":"3166120740","billing_email":"ogo2404@gmail.com","buyer_email":"ogo2404@gmail.com","recipients":[{"company":"Ogilvie @ Son","first_name":"Scott","last_name":"Ogilvie","address":"2404 E Glen Oaks Dr","address2":null,"address3":null,"city":"Wichita","residential":true,"state":"KS","province":null,"country":"United States","postal_code":"67216","postal_code_plus_4":"2221","phone_number":"3166120740","email":"ogo2404@gmail.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":0,"shipping_method":"Free Shipping - No PO Boxes or APO","items_shipped":0,"ext_shipping_detail_id":null,"line_items":[{"item_name":"60 Pound BBQ Pellets Variety Box  (Select 6 10-Pound Varieties)","sku":"6010variety","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"976.0","quantity":1,"total_excluding_tax":"84.00","price_excluding_tax":"0.00","unit_price":"84.00","ext_line_item_id":null,"ext_product_id":"75381193","product_options":{"Box 1 (10#)":"100% Cherry","Box 2 (10#)":"100% Pecan","Box 3 (10#)":"CharBlend Hickory","Box 4 (10#)":"100% Apple","Box 5 (10#)":"Pecan Blend","Box 6 (10#)":"Fruitwood (80% Cherry\/20% Apple)","Handy Camel Bag Clip":["Add Handy Camel Bag Clip"],"Smokin Wedgie Pellet Smoker(s)":[],"Smokin Wedgie Leg Kit(s) for Flat Bottom Smokers":[],"Gourmet Duck Fat Spray Can(s) Here (7 Ounce)":[],"BBQ Bottle Openers":[]},"uuid":"fef30e6e-83cb-4116-a9c2-741a4796da53","order_source_id":219604973,"gift_message":null}],"original_order":{"id":209804403,"customer_id":33773,"store_id":70642,"order_detail_id":211984623,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"976.0","total_quantity":1,"is_international":false,"usps_shipping_zone":4,"created_at":"2017-12-31T18:31:32Z","updated_at":"2018-01-01T10:42:47Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_shipment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"60 pound bbq pellets variety box  (select 6 10-pound varieties)","line_item_sku":"6010variety","address_kind":"R","recipient_last_name":"ogilvie","recipient_requested_service":"free shipping - no po boxes or apo","gift":false,"prime_order_id":209804403,"state":"KS","owner_id":37098,"denormalized_ordered_at":"2017-12-31T18:57:12Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"3948","packing_slip_generated":null,"denormalized_ext_order_reference_id":"3948","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"276833075f862f916ca417ff8ccb9564","shipments":[{"id":226428613,"tracking_number":"789174060493","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":1301,"ship_date":"2018-01-01"}],"updated_at":"2018-01-01T10:42:47Z","internal_notes":"","meta_data":null,"prime_order_id":209804403,"is_prime":null,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(226428613)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(5) "976.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(1301)
      ["ship_date"]=>
      string(10) "2018-01-01"
      ["tracking_number"]=>
      string(12) "789174060493"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7440

existingShippingEasySHipmentsDBRows:
array(0) {
}


shipmentDBRows:
array(0) {
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(226428613)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(5) "976.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(1301)
    ["ship_date"]=>
    string(10) "2018-01-01"
    ["tracking_number"]=>
    string(12) "789174060493"
  }
}

Adding shipment info:
array(7) {
  ["se_shipment_id"]=>
  int(226428613)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(5) "976.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(1301)
  ["ship_date"]=>
  string(10) "2018-01-01"
  ["tracking_number"]=>
  string(12) "789174060493"
}



sql:     
        INSERT INTO
            `bbqpo_se_shipments`
        (
            order_id,
            se_shipment_id,
            carrier_key,
            carrier_service_key,
            shipment_cost,
            ship_date,
            shipment_weight_ounces,
            tracking_number
        )
            VALUES
        (
            '7440',
            226428613,
            'FEDEX',
            'FEDEX_GROUND',
            1301,
            '2018-01-01',
            '976.0',
            '789174060493'
        )
        ON DUPLICATE KEY UPDATE
        
            se_shipment_id = 226428613,
            carrier_key = 'FEDEX',
            carrier_service_key = 'FEDEX_GROUND',
            shipment_cost = 1301,
            ship_date = '2018-01-01',
            tracking_number = '789174060493',
            shipment_weight_ounces = '976.0'
        

insert result:
string(4) "7127"



*** Order info:
Array
(
    [id] => 210147723
    [external_order_identifier] => 3951
    [ext_order_reference_id] => 3951
    [owner_id] => 37098
    [sales_channel] => 
    [fulfillment_channel] => 
    [ordered_at] => 2018-01-01T03:36:11Z
    [order_status] => shipped
    [parent_order_id] => 
    [source_order_ids] => 
    [total_including_tax] => 76.50
    [total_excluding_tax] => 0.00
    [discount_amount] => 0.00
    [coupon_discount] => 0.00
    [subtotal_including_tax] => 0.00
    [subtotal_excluding_tax] => 0.00
    [subtotal_tax] => 0.00
    [total_tax] => 0.00
    [base_shipping_cost] => 0.00
    [shipping_cost_including_tax] => 0.00
    [shipping_cost_excluding_tax] => 0.00
    [shipping_cost_tax] => 0.00
    [base_handling_cost] => 0.00
    [handling_cost_excluding_tax] => 0.00
    [handling_cost_including_tax] => 0.00
    [handling_cost_tax] => 0.00
    [base_wrapping_cost] => 0.00
    [wrapping_cost_excluding_tax] => 0.00
    [wrapping_cost_including_tax] => 0.00
    [wrapping_cost_tax] => 0.00
    [billing_company] => 
    [billing_first_name] => Kim
    [billing_last_name] => Taitt
    [billing_address] => 23208 Spring Crest Dr
    [billing_address2] => 
    [billing_city] => Carrollton
    [billing_state] => VA
    [billing_country] => US
    [billing_postal_code] => 23314
    [billing_phone_number] => +17572382670
    [billing_email] => westvahilbil@msn.com
    [buyer_email] => westvahilbil@msn.com
    [recipients] => Array
        (
            [0] => Array
                (
                    [company] => 
                    [first_name] => Kim
                    [last_name] => Taitt
                    [address] => 23208 Spring Crest Dr
                    [address2] => 
                    [address3] => 
                    [city] => Carrollton
                    [residential] => 1
                    [state] => VA
                    [province] => 
                    [country] => United States
                    [postal_code] => 23314
                    [postal_code_plus_4] => 2688
                    [phone_number] => +17572382670
                    [email] => westvahilbil@msn.com
                    [base_cost] => 0.00
                    [cost_excluding_tax] => 0.00
                    [cost_including_tax] => 0.00
                    [cost_tax] => 0.00
                    [base_handling_cost] => 0.00
                    [handling_cost_excluding_tax] => 0.00
                    [handling_cost_including_tax] => 0.00
                    [handling_cost_tax] => 0.00
                    [shipping_zone_id] => 
                    [shipping_zone_name] => 
                    [items_total] => 0
                    [shipping_method] => Free Shipping - No PO Boxes or APO
                    [items_shipped] => 0
                    [ext_shipping_detail_id] => 
                    [line_items] => Array
                        (
                            [0] => Array
                                (
                                    [item_name] => 60 Pound BBQ Pellets Variety Box  (Select 6 10-Pound Varieties)
                                    [sku] => 6010variety
                                    [bin_picking_number] => 
                                    [bundled_product] => 
                                    [weight_in_ounces] => 976.0
                                    [quantity] => 1
                                    [total_excluding_tax] => 76.50
                                    [price_excluding_tax] => 0.00
                                    [unit_price] => 76.50
                                    [ext_line_item_id] => 
                                    [ext_product_id] => 75381193
                                    [product_options] => Array
                                        (
                                            [Box 1 (10#)] => 100% Hickory
                                            [Box 2 (10#)] => 100% Mesquite
                                            [Box 3 (10#)] => 100% Cherry
                                            [Box 4 (10#)] => 100% Alder
                                            [Box 5 (10#)] => 100% Apple
                                            [Box 6 (10#)] => 100% Pecan
                                            [Handy Camel Bag Clip] => Array
                                                (
                                                )

                                            [Smokin Wedgie Pellet Smoker(s)] => Array
                                                (
                                                )

                                            [Smokin Wedgie Leg Kit(s) for Flat Bottom Smokers] => Array
                                                (
                                                )

                                            [Gourmet Duck Fat Spray Can(s) Here (7 Ounce)] => Array
                                                (
                                                )

                                            [BBQ Bottle Openers] => Array
                                                (
                                                )

                                        )

                                    [uuid] => 91523190-cfb1-4dc8-aa02-c5ce8f7fa44f
                                    [order_source_id] => 219992383
                                    [gift_message] => 
                                )

                        )

                    [original_order] => Array
                        (
                            [id] => 210147723
                            [customer_id] => 33773
                            [store_id] => 70642
                            [order_detail_id] => 212333803
                            [workflow_state] => shipped
                            [shipment_id] => 
                            [destination_id] => 
                            [split_from_order_id] => 
                            [total_weight_in_ounces] => 976.0
                            [total_quantity] => 1
                            [is_international] => 
                            [usps_shipping_zone] => 5
                            [created_at] => 2018-01-01T03:31:24Z
                            [updated_at] => 2018-01-01T10:42:47Z
                            [ext_shipment_confirmation_id] => 1
                            [store_order_status] => awaiting_shipment
                            [drop_ship_tracking_number] => 
                            [category_id] => 136973
                            [internal_notes] => 
                            [line_item_name] => 60 pound bbq pellets variety box  (select 6 10-pound varieties)
                            [line_item_sku] => 6010variety
                            [address_kind] => R
                            [recipient_last_name] => taitt
                            [recipient_requested_service] => free shipping - no po boxes or apo
                            [gift] => 
                            [prime_order_id] => 210147723
                            [state] => VA
                            [owner_id] => 37098
                            [denormalized_ordered_at] => 2018-01-01T03:36:11Z
                            [grab_bag] => Array
                                (
                                )

                            [line_item_bin_picking_number] => 
                            [denormalized_ext_order_id] => 3951
                            [packing_slip_generated] => 
                            [denormalized_ext_order_reference_id] => 3951
                            [denormalized_alternate_order_id] => 
                            [denormalized_sales_channel] => 
                            [custom_1] => 
                            [custom_2] => 
                            [custom_3] => 
                            [hidden] => 
                            [allocated] => 
                        )

                )

        )

    [store_api_key] => 276833075f862f916ca417ff8ccb9564
    [shipments] => Array
        (
            [0] => Array
                (
                    [id] => 226428623
                    [tracking_number] => 789174060508
                    [carrier_key] => FEDEX
                    [carrier_service_key] => FEDEX_GROUND
                    [shipment_cost] => 1898
                    [ship_date] => 2018-01-01
                )

        )

    [updated_at] => 2018-01-01T10:42:47Z
    [internal_notes] => 
    [meta_data] => 
    [prime_order_id] => 210147723
    [is_prime] => 
    [split_from_order_id] => 
    [tags] => Array
        (
        )

)
sdsdsdArray
This record (for westvahilbil@msn.com) was previously inserted to the DB.
Existing customer ID: 10043

No delivery address set for this customer

Parsed customer info from ShippingEasy API Response
array(8) {
  ["customer_first_name"]=>
  string(3) "Kim"
  ["customer_last_name"]=>
  string(5) "Taitt"
  ["customer_email"]=>
  string(20) "westvahilbil@msn.com"
  ["customer_phone"]=>
  NULL
  ["customer_business"]=>
  NULL
  ["billing_address"]=>
  array(6) {
    ["address_line_1"]=>
    string(21) "23208 Spring Crest Dr"
    ["address_line_2"]=>
    NULL
    ["address_city"]=>
    string(10) "Carrollton"
    ["address_state"]=>
    string(2) "VA"
    ["address_zip"]=>
    string(5) "23314"
    ["address_country"]=>
    string(2) "US"
  }
  ["contactually_id"]=>
  NULL
  ["extra_info"]=>
  NULL
}



parsed shipping easy order data:
array(10) {
  ["customer_id"]=>
  string(5) "10043"
  ["ordered_time"]=>
  string(19) "2018-01-01 03:36:11"
  ["se_order_id"]=>
  int(210147723)
  ["se_order_status"]=>
  string(7) "shipped"
  ["store_ordered_from"]=>
  string(5) "Ecwid"
  ["store_order_id"]=>
  string(4) "3951"
  ["order_weight_ounces"]=>
  string(5) "976.0"
  ["store_order_status"]=>
  string(17) "awaiting_shipment"
  ["se_api_response"]=>
  string(4303) "{"id":210147723,"external_order_identifier":"3951","ext_order_reference_id":"3951","owner_id":37098,"sales_channel":null,"fulfillment_channel":null,"ordered_at":"2018-01-01T03:36:11Z","order_status":"shipped","parent_order_id":null,"source_order_ids":null,"total_including_tax":"76.50","total_excluding_tax":"0.00","discount_amount":"0.00","coupon_discount":"0.00","subtotal_including_tax":"0.00","subtotal_excluding_tax":"0.00","subtotal_tax":"0.00","total_tax":"0.00","base_shipping_cost":"0.00","shipping_cost_including_tax":"0.00","shipping_cost_excluding_tax":"0.00","shipping_cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","base_wrapping_cost":"0.00","wrapping_cost_excluding_tax":"0.00","wrapping_cost_including_tax":"0.00","wrapping_cost_tax":"0.00","billing_company":null,"billing_first_name":"Kim","billing_last_name":"Taitt","billing_address":"23208 Spring Crest Dr","billing_address2":null,"billing_city":"Carrollton","billing_state":"VA","billing_country":"US","billing_postal_code":"23314","billing_phone_number":"+17572382670","billing_email":"westvahilbil@msn.com","buyer_email":"westvahilbil@msn.com","recipients":[{"company":"","first_name":"Kim","last_name":"Taitt","address":"23208 Spring Crest Dr","address2":null,"address3":null,"city":"Carrollton","residential":true,"state":"VA","province":null,"country":"United States","postal_code":"23314","postal_code_plus_4":"2688","phone_number":"+17572382670","email":"westvahilbil@msn.com","base_cost":"0.00","cost_excluding_tax":"0.00","cost_including_tax":"0.00","cost_tax":"0.00","base_handling_cost":"0.00","handling_cost_excluding_tax":"0.00","handling_cost_including_tax":"0.00","handling_cost_tax":"0.00","shipping_zone_id":null,"shipping_zone_name":null,"items_total":0,"shipping_method":"Free Shipping - No PO Boxes or APO","items_shipped":0,"ext_shipping_detail_id":null,"line_items":[{"item_name":"60 Pound BBQ Pellets Variety Box  (Select 6 10-Pound Varieties)","sku":"6010variety","bin_picking_number":null,"bundled_product":null,"weight_in_ounces":"976.0","quantity":1,"total_excluding_tax":"76.50","price_excluding_tax":"0.00","unit_price":"76.50","ext_line_item_id":null,"ext_product_id":"75381193","product_options":{"Box 1 (10#)":"100% Hickory","Box 2 (10#)":"100% Mesquite","Box 3 (10#)":"100% Cherry","Box 4 (10#)":"100% Alder","Box 5 (10#)":"100% Apple","Box 6 (10#)":"100% Pecan","Handy Camel Bag Clip":[],"Smokin Wedgie Pellet Smoker(s)":[],"Smokin Wedgie Leg Kit(s) for Flat Bottom Smokers":[],"Gourmet Duck Fat Spray Can(s) Here (7 Ounce)":[],"BBQ Bottle Openers":[]},"uuid":"91523190-cfb1-4dc8-aa02-c5ce8f7fa44f","order_source_id":219992383,"gift_message":null}],"original_order":{"id":210147723,"customer_id":33773,"store_id":70642,"order_detail_id":212333803,"workflow_state":"shipped","shipment_id":null,"destination_id":null,"split_from_order_id":null,"total_weight_in_ounces":"976.0","total_quantity":1,"is_international":false,"usps_shipping_zone":5,"created_at":"2018-01-01T03:31:24Z","updated_at":"2018-01-01T10:42:47Z","ext_shipment_confirmation_id":1,"store_order_status":"awaiting_shipment","drop_ship_tracking_number":null,"category_id":136973,"internal_notes":"","line_item_name":"60 pound bbq pellets variety box  (select 6 10-pound varieties)","line_item_sku":"6010variety","address_kind":"R","recipient_last_name":"taitt","recipient_requested_service":"free shipping - no po boxes or apo","gift":false,"prime_order_id":210147723,"state":"VA","owner_id":37098,"denormalized_ordered_at":"2018-01-01T03:36:11Z","grab_bag":[],"line_item_bin_picking_number":null,"denormalized_ext_order_id":"3951","packing_slip_generated":null,"denormalized_ext_order_reference_id":"3951","denormalized_alternate_order_id":null,"denormalized_sales_channel":null,"custom_1":null,"custom_2":null,"custom_3":null,"hidden":null,"allocated":null}}],"store_api_key":"276833075f862f916ca417ff8ccb9564","shipments":[{"id":226428623,"tracking_number":"789174060508","carrier_key":"FEDEX","carrier_service_key":"FEDEX_GROUND","shipment_cost":1898,"ship_date":"2018-01-01"}],"updated_at":"2018-01-01T10:42:47Z","internal_notes":"","meta_data":null,"prime_order_id":210147723,"is_prime":null,"split_from_order_id":null,"tags":[]}"
  ["shipment_data"]=>
  array(1) {
    [0]=>
    array(7) {
      ["se_shipment_id"]=>
      int(226428623)
      ["carrier_key"]=>
      string(5) "FEDEX"
      ["shipment_weight_ounces"]=>
      string(5) "976.0"
      ["carrier_service_key"]=>
      string(12) "FEDEX_GROUND"
      ["shipment_cost"]=>
      int(1898)
      ["ship_date"]=>
      string(10) "2018-01-01"
      ["tracking_number"]=>
      string(12) "789174060508"
    }
  }
}


This order already added to the DB
Existing ShippingEasy Order ID (relative to our table): 7444

existingShippingEasySHipmentsDBRows:
array(0) {
}


shipmentDBRows:
array(0) {
}



shippingeasyshipmentinfo:
array(1) {
  [""]=>
  array(7) {
    ["se_shipment_id"]=>
    int(226428623)
    ["carrier_key"]=>
    string(5) "FEDEX"
    ["shipment_weight_ounces"]=>
    string(5) "976.0"
    ["carrier_service_key"]=>
    string(12) "FEDEX_GROUND"
    ["shipment_cost"]=>
    int(1898)
    ["ship_date"]=>
    string(10) "2018-01-01"
    ["tracking_number"]=>
    string(12) "789174060508"
  }
}

Adding shipment info:
array(7) {
  ["se_shipment_id"]=>
  int(226428623)
  ["carrier_key"]=>
  string(5) "FEDEX"
  ["shipment_weight_ounces"]=>
  string(5) "976.0"
  ["carrier_service_key"]=>
  string(12) "FEDEX_GROUND"
  ["shipment_cost"]=>
  int(1898)
  ["ship_date"]=>
  string(10) "2018-01-01"
  ["tracking_number"]=>
  string(12) "789174060508"
}



sql:     
        INSERT INTO
            `bbqpo_se_shipments`
        (
            order_id,
            se_shipment_id,
            carrier_key,
            carrier_service_key,
            shipment_cost,
            ship_date,
            shipment_weight_ounces,
            tracking_number
        )
            VALUES
        (
            '7444',
            226428623,
            'FEDEX',
            'FEDEX_GROUND',
            1898,
            '2018-01-01',
            '976.0',
            '789174060508'
        )
        ON DUPLICATE KEY UPDATE
        
            se_shipment_id = 226428623,
            carrier_key = 'FEDEX',
            carrier_service_key = 'FEDEX_GROUND',
            shipment_cost = 1898,
            ship_date = '2018-01-01',
            tracking_number = '789174060508',
            shipment_weight_ounces = '976.0'
        

insert result:
string(4) "7128"