2


=====montblanc great characters miles dewey davis special edition fountain pen=====Updated Data Response
stdClass Object
(
    [product] => stdClass Object
        (
            [id] => 7438091321559
            [title] => Montblanc Great Characters Miles Dewey Davis Special Edition Fountain Pen
            [body_html] => Montblanc Great Characters Miles Dewey Davis Special Edition Fountain Pen. Commemorates the trumpeter and jazz musician. Platinum-plated clip features the finger buttons of a trumpet. Cap and barrel are crafted in black precious resin. 14 karat gold nib.
            [vendor] => Montblanc
            [product_type] => Writing Instruments
            [created_at] => 2021-11-10T07:37:36-06:00
            [handle] => montblanc-great-characters-miles-dewey-davis-special-edition-fountain-pen-mb114344-364796
            [updated_at] => 2021-12-05T21:10:59-06:00
            [published_at] => 2021-11-10T07:37:36-06:00
            [template_suffix] => 
            [status] => active
            [published_scope] => web
            [tags] => Designer_Montblanc, Price_$1000-$2500
            [admin_graphql_api_id] => gid://shopify/Product/7438091321559
            [variants] => Array
                (
                    [0] => stdClass Object
                        (
                            [id] => 42146437529815
                            [product_id] => 7438091321559
                            [title] => Default Title
                            [price] => 1090.00
                            [sku] => 364796
                            [position] => 1
                            [inventory_policy] => deny
                            [compare_at_price] => 
                            [fulfillment_service] => manual
                            [inventory_management] => shopify
                            [option1] => Default Title
                            [option2] => 
                            [option3] => 
                            [created_at] => 2021-12-05T21:10:59-06:00
                            [updated_at] => 2021-12-05T21:10:59-06:00
                            [taxable] => 1
                            [barcode] => 
                            [grams] => 0
                            [image_id] => 
                            [weight] => 0
                            [weight_unit] => oz
                            [inventory_item_id] => 44240542695639
                            [inventory_quantity] => 1
                            [old_inventory_quantity] => 1
                            [requires_shipping] => 1
                            [admin_graphql_api_id] => gid://shopify/ProductVariant/42146437529815
                        )

                )

            [options] => Array
                (
                    [0] => stdClass Object
                        (
                            [id] => 9466801258711
                            [product_id] => 7438091321559
                            [name] => Title
                            [position] => 1
                            [values] => Array
                                (
                                    [0] => Default Title
                                )

                        )

                )

            [images] => Array
                (
                    [0] => stdClass Object
                        (
                            [id] => 36149491138775
                            [product_id] => 7438091321559
                            [position] => 1
                            [created_at] => 2021-11-19T02:32:10-06:00
                            [updated_at] => 2021-11-19T02:32:10-06:00
                            [alt] => csv_image
                            [width] => 490
                            [height] => 490
                            [src] => https://cdn.shopify.com/s/files/1/0577/5314/1438/products/364796_64981.png?v=1637310730
                            [variant_ids] => Array
                                (
                                )

                            [admin_graphql_api_id] => gid://shopify/ProductImage/36149491138775
                        )

                    [1] => stdClass Object
                        (
                            [id] => 36149491171543
                            [product_id] => 7438091321559
                            [position] => 2
                            [created_at] => 2021-11-19T02:32:12-06:00
                            [updated_at] => 2021-11-19T02:32:12-06:00
                            [alt] => csv_image
                            [width] => 490
                            [height] => 490
                            [src] => https://cdn.shopify.com/s/files/1/0577/5314/1438/products/364796_64982.png?v=1637310732
                            [variant_ids] => Array
                                (
                                )

                            [admin_graphql_api_id] => gid://shopify/ProductImage/36149491171543
                        )

                )

            [image] => stdClass Object
                (
                    [id] => 36149491138775
                    [product_id] => 7438091321559
                    [position] => 1
                    [created_at] => 2021-11-19T02:32:10-06:00
                    [updated_at] => 2021-11-19T02:32:10-06:00
                    [alt] => csv_image
                    [width] => 490
                    [height] => 490
                    [src] => https://cdn.shopify.com/s/files/1/0577/5314/1438/products/364796_64981.png?v=1637310730
                    [variant_ids] => Array
                        (
                        )

                    [admin_graphql_api_id] => gid://shopify/ProductImage/36149491138775
                )

        )

)


Insert Colection case


stdClass Object
(
    [errors] => stdClass Object
        (
            [title] => Array
                (
                    [0] => can't be blank
                )

        )

)

Notice: Undefined property: stdClass::$custom_collection in /var/www/html/importScriptApp/index.php on line 117

Notice: Trying to get property 'id' of non-object in /var/www/html/importScriptApp/index.php on line 117